gentoo-ebuilds/dev-java/openjfx/files/11/0001-c99.patch
Sam James 6da9779d9b
dev-java/openjfx: various fixes to 11.x
I don't even know where to start with this, so I'll keep it brief before
I pop several veins.

* Filter LTO (bundled gstreamer breaks).
* Waste several hours debugging broken arg handling, despite inventing a DSL
  for the build system, making the same errors as CMake. Most of the build
  failure bugs linked are actually because of whitespace _somewhere_ within
  {C,CXX,LD}FLAGS. Strip it.
* Respect AR, CC, CXX.
* Various Modern C fixes from Fedora (and are upstream).

Bug: https://bugs.gentoo.org/713488
Bug: https://bugs.gentoo.org/857942
Closes: https://bugs.gentoo.org/715092
Closes: https://bugs.gentoo.org/719484
Closes: https://bugs.gentoo.org/799227
Closes: https://bugs.gentoo.org/915727
Closes: https://bugs.gentoo.org/919413
Signed-off-by: Sam James <sam@gentoo.org>
2024-03-06 15:21:36 +00:00

22 lines
940 B
Diff

https://bugs.gentoo.org/919413
https://src.fedoraproject.org/rpms/openjfx/c/9e893037f3a20273c79603220b7a18a44be60fcc?branch=rawhide
commit 42321838b98d2ebb3d8384c88a764ff2b4d70581
Author: Florian Weimer <fweimer@openjdk.org>
Date: Fri Jun 16 12:19:10 2023 +0000
8307542: Call to FcConfigAppFontAddFile uses wrong prototype, arguments
Reviewed-by: kcr
--- a/modules/javafx.graphics/src/main/native-font/pango.c
+++ b/modules/javafx.graphics/src/main/native-font/pango.c
@@ -243,7 +243,7 @@ JNIEXPORT jboolean JNICALL OS_NATIVE(FcConfigAppFontAddFile)
if (text) {
// rc = (jboolean)FcConfigAppFontAddFile(arg0, text);
if (fp) {
- rc = (jboolean)((jboolean (*)(void *, const char *))fp)(arg0, text);
+ rc = (jboolean)((int (*)(void *, const char *))fp)((void *)arg0, text);
}
(*env)->ReleaseStringUTFChars(env, arg1, text);
}