[arch-commits] Commit in java-openjfx/trunk (java-openjfx-flags.patch)

Frederik Schwan freswa at gemini.archlinux.org
Thu Feb 17 00:56:55 UTC 2022


    Date: Thursday, February 17, 2022 @ 00:56:55
  Author: freswa
Revision: 437546

fix gcc error

Due to multiple consecutive whitespaces in our CFLAGS variable,
the gradle function introduced to parse these options failed
and added whitespaces as arguments. This made gcc fail with messages
like
```
gcc: warning: : linker input file unused because linking not done
gcc: error: : linker input file not found: No such file or directory
```
Creds @loqs for finding the root cause of this.

Fixed by replacing multiple consecutive whitespaces within the
parsing code in gradle

Modified:
  java-openjfx/trunk/java-openjfx-flags.patch

--------------------------+
 java-openjfx-flags.patch |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: java-openjfx-flags.patch
===================================================================
--- java-openjfx-flags.patch	2022-02-17 00:33:25 UTC (rev 437545)
+++ java-openjfx-flags.patch	2022-02-17 00:56:55 UTC (rev 437546)
@@ -22,7 +22,7 @@
 +        "-Wno-error=cast-function-type",
          "-Wextra", "-Wall", "-Wformat-security", "-Wno-unused", "-Wno-parentheses", "-Werror=trampolines"] // warning flags
  
-+commonFlags.addAll(System.getenv("CFLAGS").trim().split(" "))
++commonFlags.addAll(System.getenv("CFLAGS").trim().replaceAll(" +", " ").split(" "))
 +
  if (!IS_64) {
      commonFlags += "-m32"



More information about the arch-commits mailing list