diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2022-10-09 01:17:51 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2022-10-09 01:31:03 -0400 |
commit | d2bf161e24a6e2f193ff0adc36cfbb6e539bc31e (patch) | |
tree | 6b5039a360938297907546174f8c9ccb7405cc09 /x11-plugins | |
parent | media-gfx/aview: fix build with upcoming clang16 (diff) | |
download | gentoo-d2bf161e24a6e2f193ff0adc36cfbb6e539bc31e.tar.gz gentoo-d2bf161e24a6e2f193ff0adc36cfbb6e539bc31e.tar.bz2 gentoo-d2bf161e24a6e2f193ff0adc36cfbb6e539bc31e.zip |
x11-plugins/asmem: fix configure further with upcoming clang16
autoconf/ seems like a mess, so just adding a rough addition to
the earlier direct configure patch.
Also replace CC= by tc-export CC pre-configure, or it fails
with -native-symlinks if CC is unset (due to old autoconf).
Closes: https://bugs.gentoo.org/871279
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'x11-plugins')
-rw-r--r-- | x11-plugins/asmem/asmem-1.12-r2.ebuild | 6 | ||||
-rw-r--r-- | x11-plugins/asmem/files/configure-implicit-func-decls.patch | 14 | ||||
-rw-r--r-- | x11-plugins/asmem/files/configure-implicits.patch | 25 |
3 files changed, 29 insertions, 16 deletions
diff --git a/x11-plugins/asmem/asmem-1.12-r2.ebuild b/x11-plugins/asmem/asmem-1.12-r2.ebuild index 47c255eede9c..02804f6c2ddb 100644 --- a/x11-plugins/asmem/asmem-1.12-r2.ebuild +++ b/x11-plugins/asmem/asmem-1.12-r2.ebuild @@ -29,15 +29,17 @@ DEPEND=" PATCHES=( "${FILESDIR}"/respect-ldflags.patch - "${FILESDIR}"/configure-implicit-func-decls.patch + "${FILESDIR}"/configure-implicits.patch ) src_configure() { + tc-export CC # old autoconf + econf $(use_enable jpeg) } src_compile() { - emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" + emake LDFLAGS="${LDFLAGS}" } src_install() { diff --git a/x11-plugins/asmem/files/configure-implicit-func-decls.patch b/x11-plugins/asmem/files/configure-implicit-func-decls.patch deleted file mode 100644 index 0361c3e6e9b4..000000000000 --- a/x11-plugins/asmem/files/configure-implicit-func-decls.patch +++ /dev/null @@ -1,14 +0,0 @@ -https://bugs.gentoo.org/870679 - -Generated file and configure.in is written for autoconf 2.13. ---- a/configure -+++ b/configure -@@ -751,7 +751,7 @@ cat > conftest.$ac_ext << EOF - #line 752 "configure" - #include "confdefs.h" - --main(){return(0);} -+int main(){return(0);} - EOF - if { (eval echo configure:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - ac_cv_prog_cc_works=yes diff --git a/x11-plugins/asmem/files/configure-implicits.patch b/x11-plugins/asmem/files/configure-implicits.patch new file mode 100644 index 000000000000..14eff8f58e3a --- /dev/null +++ b/x11-plugins/asmem/files/configure-implicits.patch @@ -0,0 +1,25 @@ +https://bugs.gentoo.org/870679 +https://bugs.gentoo.org/871279 + +Generated file and configure.in is written for autoconf 2.13. +--- a/configure ++++ b/configure +@@ -752,5 +752,5 @@ + #include "confdefs.h" + +-main(){return(0);} ++int main(void){return(0);} + EOF + if { (eval echo configure:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +@@ -1356,4 +1356,5 @@ + #include "confdefs.h" + ++void ${x_direct_test_function}(void); + int main() { + ${x_direct_test_function}() +@@ -2440,4 +2441,5 @@ + #include "confdefs.h" + ++void XpmReadFileToPixmap(void); + int main() { + XpmReadFileToPixmap() |