diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2020-09-16 23:18:09 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2020-09-16 23:18:09 +0200 |
commit | 6ec68de4d1843117f17a96bccb281a3f21947345 (patch) | |
tree | a37003412b92d95b0f556b7f0b230d533b7e330f /x11-plugins/pidgin-telegram | |
parent | profiles/package.mask: un-last-rite dev-lang/cll1h (diff) | |
download | gentoo-6ec68de4d1843117f17a96bccb281a3f21947345.tar.gz gentoo-6ec68de4d1843117f17a96bccb281a3f21947345.tar.bz2 gentoo-6ec68de4d1843117f17a96bccb281a3f21947345.zip |
x11-plugins/pidgin-telegram: fix compilation with clang
Closes: https://bugs.gentoo.org/742944
Package-Manager: Portage-3.0.6, Repoman-3.0.1
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'x11-plugins/pidgin-telegram')
-rw-r--r-- | x11-plugins/pidgin-telegram/files/pidgin-telegram-1.4.3-clang.patch | 101 | ||||
-rw-r--r-- | x11-plugins/pidgin-telegram/pidgin-telegram-1.4.3.ebuild | 5 |
2 files changed, 105 insertions, 1 deletions
diff --git a/x11-plugins/pidgin-telegram/files/pidgin-telegram-1.4.3-clang.patch b/x11-plugins/pidgin-telegram/files/pidgin-telegram-1.4.3-clang.patch new file mode 100644 index 000000000000..d7d00d6234e3 --- /dev/null +++ b/x11-plugins/pidgin-telegram/files/pidgin-telegram-1.4.3-clang.patch @@ -0,0 +1,101 @@ +From b196e11eabb14d11e5a6b4c3cd65bf115a71f0d9 Mon Sep 17 00:00:00 2001 +From: Conrad Kostecki <conrad@kostecki.com> +Date: Wed, 16 Sep 2020 20:55:21 +0200 +Subject: [PATCH] configure: fix compilation with clang + +If -L/usr/lib is being included, this will break compiling on 64-bit with clang. + +Signed-off-by: Conrad Kostecki <conrad@kostecki.com> +--- + configure | 11 ++++------- + 1 file changed, 4 insertions(+), 7 deletions(-) + +diff --git a/configure b/configure +index 5142055..aed9234 100755 +--- a/configure ++++ b/configure +@@ -2283,11 +2283,10 @@ ac_config_headers="$ac_config_headers config.h" + # + # If both header file and library are found, shell commands + # 'action-if-found' is run. If 'action-if-found' is not specified, the +-# default action appends '-I${ZLIB_HOME}/include' to CPFLAGS, appends +-# '-L$ZLIB_HOME}/lib' to LDFLAGS, prepends '-lz' to LIBS, and calls +-# AC_DEFINE(HAVE_LIBZ). You should use autoheader to include a definition +-# for this symbol in a config.h file. Sample usage in a C/C++ source is as +-# follows: ++# default action appends '-I${ZLIB_HOME}/include' to CPFLAGS,prepends '-lz' ++# to LIBS, and calls AC_DEFINE(HAVE_LIBZ). You should use autoheader to ++# include a definition for this symbol in a config.h file. ++# Sample usage in a C/C++ source is as follows: + # + # #ifdef HAVE_LIBZ + # #include <zlib.h> +@@ -4079,7 +4078,6 @@ then + ZLIB_OLD_LDFLAGS=$LDFLAGS + ZLIB_OLD_CPPFLAGS=$CPPFLAGS + if test -n "${ZLIB_HOME}"; then +- LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" + CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" + fi + +@@ -4152,7 +4150,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu + # + + CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" +- LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" + LIBS="-lz $LIBS" + + $as_echo "#define HAVE_LIBZ 1" >>confdefs.h +-- +2.28.0 + +From b7d92ac6c01f006dde8d317a4311497c6eda0bd7 Mon Sep 17 00:00:00 2001 +From: Conrad Kostecki <conrad@kostecki.com> +Date: Wed, 16 Sep 2020 21:02:07 +0200 +Subject: [PATCH] configure: fix compilation with clang + +If -L/usr/lib is being included, this will break compiling on 64-bit with clang. + +Signed-off-by: Conrad Kostecki <conrad@kostecki.com> +--- + configure | 11 ++++------- + 1 file changed, 4 insertions(+), 7 deletions(-) + +diff --git a/tgl/configure b/tgl/configure +index 701a5d6..7ff1dac 100755 +--- a/tgl/configure ++++ b/tgl/configure +@@ -2245,11 +2245,10 @@ + # + # If both header file and library are found, shell commands + # 'action-if-found' is run. If 'action-if-found' is not specified, the +-# default action appends '-I${ZLIB_HOME}/include' to CPFLAGS, appends +-# '-L$ZLIB_HOME}/lib' to LDFLAGS, prepends '-lz' to LIBS, and calls +-# AC_DEFINE(HAVE_LIBZ). You should use autoheader to include a definition +-# for this symbol in a config.h file. Sample usage in a C/C++ source is as +-# follows: ++# default action appends '-I${ZLIB_HOME}/include' to CPFLAGS, prepends '-lz' ++# to LIBS, and calls AC_DEFINE(HAVE_LIBZ). You should use autoheader to ++# include a definition for this symbol in a config.h file. Sample usage ++# in a C/C++ source is as follows: + # + # #ifdef HAVE_LIBZ + # #include <zlib.h> +@@ -4072,7 +4071,6 @@ + ZLIB_OLD_LDFLAGS=$LDFLAGS + ZLIB_OLD_CPPFLAGS=$CPPFLAGS + if test -n "${ZLIB_HOME}"; then +- LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" + CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" + fi + +@@ -4145,7 +4143,6 @@ + # + + CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" +- LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" + LIBS="-lz $LIBS" + + $as_echo "#define HAVE_LIBZ 1" >>confdefs.h +-- +2.28.0 diff --git a/x11-plugins/pidgin-telegram/pidgin-telegram-1.4.3.ebuild b/x11-plugins/pidgin-telegram/pidgin-telegram-1.4.3.ebuild index 605769b62335..2683ce2015f4 100644 --- a/x11-plugins/pidgin-telegram/pidgin-telegram-1.4.3.ebuild +++ b/x11-plugins/pidgin-telegram/pidgin-telegram-1.4.3.ebuild @@ -35,7 +35,10 @@ S="${WORKDIR}/telegram-purple" DOCS=( "AUTHORS" "CHANGELOG.md" "HACKING.md" "HACKING.BUILD.md" "README.md" ) -PATCHES="${FILESDIR}/${P}-change-metadata-location.patch" +PATCHES=( + "${FILESDIR}/${P}-change-metadata-location.patch" + "${FILESDIR}/${P}-clang.patch" +) src_prepare() { default |