[arch-commits] Commit in java8-openjfx/trunk (PKGBUILD java8-openjfx-flags.patch)
Frederik Schwan
freswa at gemini.archlinux.org
Wed Feb 16 23:24:19 UTC 2022
Date: Wednesday, February 16, 2022 @ 23:24:19
Author: freswa
Revision: 437539
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:
java8-openjfx/trunk/PKGBUILD
java8-openjfx/trunk/java8-openjfx-flags.patch
---------------------------+
PKGBUILD | 2 +-
java8-openjfx-flags.patch | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-16 23:20:04 UTC (rev 437538)
+++ PKGBUILD 2022-02-16 23:24:19 UTC (rev 437539)
@@ -54,7 +54,7 @@
sha256sums=('12b0538d04c4bd451e4692ee06357ac36233ff4ec2af9fa3b9bbdbab48c3f2fc'
'd1c2255893e5ec6268d7c92bb6539cde629d325872f26cffb5f1f616c9d5f30d'
'f3e29692a8faa94eb0b02ebf36fa263a642b3ae8694ef806c45c345b8683f1ba'
- 'ea252a3b1305705c5ce10e42e64a46f7beb1008a20dcd132a798fec16e2cd958'
+ 'a2e0d5ac5cdb83958d2886aef7f5a419f460e103959f65aaadd69cb26cc6adec'
'b21f6b254acc7aa2124521b6521d3bdfdfcfd9b062624a84ef73608120957d0d'
'cd1a2bd60f636662e4f3334217b3e14f1d51cf30b77b9ca3eff8d030312fd26a'
'4db6e995d46f5ab29c4169dab5dbbe367ebd01dee66ef1750abe5cf0c8364d42'
Modified: java8-openjfx-flags.patch
===================================================================
--- java8-openjfx-flags.patch 2022-02-16 23:20:04 UTC (rev 437538)
+++ java8-openjfx-flags.patch 2022-02-16 23:24:19 UTC (rev 437539)
@@ -8,7 +8,7 @@
+ "-Wno-error=cast-function-type","-Wno-error=deprecated-declarations",
"-W", "-Wall", "-Wno-unused", "-Wno-parentheses", "-Werror=implicit-function-declaration"] // 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