From 8d7b994cbf893c891a8ab5b4ca1cedbb8d211244 Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 11 Dec 2020 01:16:28 +0100 Subject: [PATCH] azpainter: fix build the configure script was erasing the enviroment's compiler/cflags setting, which resulted in broken builds with ccache enabled - this is because with ccache we have a bunch of symlinks installed, one of which is clang, and the configure script's autodetection first checks for clang and then for gcc however, there is no actual clang installed, and their check is wrong, as it uses 'type' rather than 'command' and the former will also succeed for broken symlinks (as it only checks the existence of the path, regardless of if it's broken or not) that said, even with ccache off, this would still build wrong, since it would be ignoring the compiler flags on native builds, and additionally the cross-compiling environment on cross builds --- .../patches/fix-compiler-environment.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/azpainter/patches/fix-compiler-environment.patch diff --git a/srcpkgs/azpainter/patches/fix-compiler-environment.patch b/srcpkgs/azpainter/patches/fix-compiler-environment.patch new file mode 100644 index 00000000000..86418e450b8 --- /dev/null +++ b/srcpkgs/azpainter/patches/fix-compiler-environment.patch @@ -0,0 +1,18 @@ +--- configure ++++ configure +@@ -150,10 +150,11 @@ fc_check_command_err sed + #------------- + # option + +-CC= +-CFLAGS= +-LDFLAGS= +-LIBS= ++# sketchy nonsense overriding our environment ++#CC= ++#CFLAGS= ++#LDFLAGS= ++#LIBS= + + CFLAGS_ADD= + LDFLAGS_ADD=