public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/eselect-python/files: eselect-python-20090824-old-glibc.patch
Date: Wed, 02 Sep 2009 17:28:57 +0000	[thread overview]
Message-ID: <E1Mitdh-0003Xl-F5@stork.gentoo.org> (raw)

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])






             reply	other threads:[~2009-09-02 12:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-02 17:28 Arfrever Frehtes Taifersar Arahesis (arfrever) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-03-21 21:51 [gentoo-commits] gentoo-x86 commit in app-admin/eselect-python/files: eselect-python-20090824-old-glibc.patch Arfrever Frehtes Taifersar Arahesis (arfrever)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1Mitdh-0003Xl-F5@stork.gentoo.org \
    --to=arfrever@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox