* [gentoo-commits] gentoo-x86 commit in app-admin/eselect-python/files: eselect-python-20090824-old-glibc.patch
@ 2009-09-02 17:28 Arfrever Frehtes Taifersar Arahesis (arfrever)
0 siblings, 0 replies; 2+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis (arfrever) @ 2009-09-02 17:28 UTC (permalink / raw
To: gentoo-commits
arfrever 09/09/02 17:28:57
Added: eselect-python-20090824-old-glibc.patch
Log:
Fix building with old versions of sys-libs/glibc.
(Portage version: 14176-svn/cvs/Linux x86_64)
Revision Changes Path
1.1 app-admin/eselect-python/files/eselect-python-20090824-old-glibc.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-python/files/eselect-python-20090824-old-glibc.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-python/files/eselect-python-20090824-old-glibc.patch?rev=1.1&content-type=text/plain
Index: eselect-python-20090824-old-glibc.patch
===================================================================
--- configure.ac
+++ configure.ac
@@ -7,8 +7,26 @@
AC_PATH_PROG(INSTALL, install)
MKDIR="${MKDIR:-${INSTALL} -d}"
+AC_USE_SYSTEM_EXTENSIONS
+
# strndup() was introduced in POSIX.1-2008.
-AC_CHECK_FUNCS([strndup])
+AC_MSG_CHECKING([for strndup])
+old_CFLAGS="${CFLAGS}"
+CFLAGS="${CFLAGS} -Wall -Werror -Wextra"
+AC_LINK_IFELSE(
+[#include <string.h>
+int main()
+{
+ strndup("", 0);
+ return 0;
+}], [have_strndup="1"], [have_strndup="0"])
+if test "${have_strndup}" = "1"; then
+ AC_MSG_RESULT([yes])
+ AC_DEFINE([HAVE_STRNDUP], [1], [Define to 1 if you have the 'strndup' function.])
+else
+ AC_MSG_RESULT([no])
+fi
+CFLAGS="${old_CFLAGS}"
AC_SUBST([ASFLAGS])
AC_SUBST([MKDIR])
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in app-admin/eselect-python/files: eselect-python-20090824-old-glibc.patch
@ 2010-03-21 21:51 Arfrever Frehtes Taifersar Arahesis (arfrever)
0 siblings, 0 replies; 2+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis (arfrever) @ 2010-03-21 21:51 UTC (permalink / raw
To: gentoo-commits
arfrever 10/03/21 21:51:13
Removed: eselect-python-20090824-old-glibc.patch
Log:
Delete older ebuild.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-21 21:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-02 17:28 [gentoo-commits] gentoo-x86 commit in app-admin/eselect-python/files: eselect-python-20090824-old-glibc.patch Arfrever Frehtes Taifersar Arahesis (arfrever)
-- strict thread matches above, loose matches on Subject: below --
2010-03-21 21:51 Arfrever Frehtes Taifersar Arahesis (arfrever)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox