From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-917568-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7B3E5139086 for <garchives@archives.gentoo.org>; Sun, 18 Dec 2016 00:14:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B85E0E0D0E; Sun, 18 Dec 2016 00:14:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 86900E0D0E for <gentoo-commits@lists.gentoo.org>; Sun, 18 Dec 2016 00:14:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 745B0340F43 for <gentoo-commits@lists.gentoo.org>; Sun, 18 Dec 2016 00:14:48 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 16EFB24DF for <gentoo-commits@lists.gentoo.org>; Sun, 18 Dec 2016 00:14:47 +0000 (UTC) From: "Mike Frysinger" <vapier@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" <vapier@gentoo.org> Message-ID: <1482020023.655594736c943e5569b1aab633ec656b08f0af71.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/iproute2/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/iproute2/iproute2-4.4.0.ebuild sys-apps/iproute2/iproute2-4.5.0.ebuild sys-apps/iproute2/iproute2-4.6.0.ebuild sys-apps/iproute2/iproute2-4.7.0.ebuild sys-apps/iproute2/iproute2-4.8.0.ebuild sys-apps/iproute2/iproute2-4.9.0.ebuild sys-apps/iproute2/iproute2-9999.ebuild X-VCS-Directories: sys-apps/iproute2/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 655594736c943e5569b1aab633ec656b08f0af71 X-VCS-Branch: master Date: Sun, 18 Dec 2016 00:14:47 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 3a688269-22aa-43e3-bc35-18953a3f22f1 X-Archives-Hash: 344bcec10609a517f4f7e8c00906ae96 commit: 655594736c943e5569b1aab633ec656b08f0af71 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Sun Dec 18 00:12:23 2016 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Sun Dec 18 00:13:43 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65559473 sys-apps/iproute2: improve configure tests #602960 sys-apps/iproute2/iproute2-4.4.0.ebuild | 8 ++++---- sys-apps/iproute2/iproute2-4.5.0.ebuild | 8 ++++---- sys-apps/iproute2/iproute2-4.6.0.ebuild | 8 ++++---- sys-apps/iproute2/iproute2-4.7.0.ebuild | 8 ++++---- sys-apps/iproute2/iproute2-4.8.0.ebuild | 8 ++++---- sys-apps/iproute2/iproute2-4.9.0.ebuild | 8 ++++---- sys-apps/iproute2/iproute2-9999.ebuild | 8 ++++---- 7 files changed, 28 insertions(+), 28 deletions(-) diff --git a/sys-apps/iproute2/iproute2-4.4.0.ebuild b/sys-apps/iproute2/iproute2-4.4.0.ebuild index 1689227..50d9b37 100644 --- a/sys-apps/iproute2/iproute2-4.4.0.ebuild +++ b/sys-apps/iproute2/iproute2-4.4.0.ebuild @@ -69,10 +69,10 @@ src_configure() { # This sure is ugly. Should probably move into toolchain-funcs at some point. local setns pushd "${T}" >/dev/null - echo 'main(){return setns();};' > test.c - ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n - echo 'main(){};' > test.c - ${CC} ${CFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile + printf '#include <sched.h>\nint main(){return setns(0, 0);}\n' > test.c + ${CC} ${CFLAGS} ${CPPFLAGS} -D_GNU_SOURCE ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n + echo 'int main(){return 0;}' > test.c + ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile popd >/dev/null cat <<-EOF > Config diff --git a/sys-apps/iproute2/iproute2-4.5.0.ebuild b/sys-apps/iproute2/iproute2-4.5.0.ebuild index e916e84..d144f17 100644 --- a/sys-apps/iproute2/iproute2-4.5.0.ebuild +++ b/sys-apps/iproute2/iproute2-4.5.0.ebuild @@ -69,10 +69,10 @@ src_configure() { # This sure is ugly. Should probably move into toolchain-funcs at some point. local setns pushd "${T}" >/dev/null - echo 'main(){return setns();};' > test.c - ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n - echo 'main(){};' > test.c - ${CC} ${CFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile + printf '#include <sched.h>\nint main(){return setns(0, 0);}\n' > test.c + ${CC} ${CFLAGS} ${CPPFLAGS} -D_GNU_SOURCE ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n + echo 'int main(){return 0;}' > test.c + ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile popd >/dev/null cat <<-EOF > Config diff --git a/sys-apps/iproute2/iproute2-4.6.0.ebuild b/sys-apps/iproute2/iproute2-4.6.0.ebuild index 9a1447d..f8ff844 100644 --- a/sys-apps/iproute2/iproute2-4.6.0.ebuild +++ b/sys-apps/iproute2/iproute2-4.6.0.ebuild @@ -79,10 +79,10 @@ src_configure() { # This sure is ugly. Should probably move into toolchain-funcs at some point. local setns pushd "${T}" >/dev/null - echo 'main(){return setns();};' > test.c - ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n - echo 'main(){};' > test.c - ${CC} ${CFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile + printf '#include <sched.h>\nint main(){return setns(0, 0);}\n' > test.c + ${CC} ${CFLAGS} ${CPPFLAGS} -D_GNU_SOURCE ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n + echo 'int main(){return 0;}' > test.c + ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile popd >/dev/null cat <<-EOF > Config diff --git a/sys-apps/iproute2/iproute2-4.7.0.ebuild b/sys-apps/iproute2/iproute2-4.7.0.ebuild index 4b4f69e..89523f6 100644 --- a/sys-apps/iproute2/iproute2-4.7.0.ebuild +++ b/sys-apps/iproute2/iproute2-4.7.0.ebuild @@ -79,10 +79,10 @@ src_configure() { # This sure is ugly. Should probably move into toolchain-funcs at some point. local setns pushd "${T}" >/dev/null - echo 'main(){return setns();};' > test.c - ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n - echo 'main(){};' > test.c - ${CC} ${CFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile + printf '#include <sched.h>\nint main(){return setns(0, 0);}\n' > test.c + ${CC} ${CFLAGS} ${CPPFLAGS} -D_GNU_SOURCE ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n + echo 'int main(){return 0;}' > test.c + ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile popd >/dev/null cat <<-EOF > Config diff --git a/sys-apps/iproute2/iproute2-4.8.0.ebuild b/sys-apps/iproute2/iproute2-4.8.0.ebuild index 4b4f69e..89523f6 100644 --- a/sys-apps/iproute2/iproute2-4.8.0.ebuild +++ b/sys-apps/iproute2/iproute2-4.8.0.ebuild @@ -79,10 +79,10 @@ src_configure() { # This sure is ugly. Should probably move into toolchain-funcs at some point. local setns pushd "${T}" >/dev/null - echo 'main(){return setns();};' > test.c - ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n - echo 'main(){};' > test.c - ${CC} ${CFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile + printf '#include <sched.h>\nint main(){return setns(0, 0);}\n' > test.c + ${CC} ${CFLAGS} ${CPPFLAGS} -D_GNU_SOURCE ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n + echo 'int main(){return 0;}' > test.c + ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile popd >/dev/null cat <<-EOF > Config diff --git a/sys-apps/iproute2/iproute2-4.9.0.ebuild b/sys-apps/iproute2/iproute2-4.9.0.ebuild index e1d9159..d82b3ad 100644 --- a/sys-apps/iproute2/iproute2-4.9.0.ebuild +++ b/sys-apps/iproute2/iproute2-4.9.0.ebuild @@ -78,10 +78,10 @@ src_configure() { # This sure is ugly. Should probably move into toolchain-funcs at some point. local setns pushd "${T}" >/dev/null - echo 'main(){return setns();};' > test.c - ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n - echo 'main(){};' > test.c - ${CC} ${CFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile + printf '#include <sched.h>\nint main(){return setns(0, 0);}\n' > test.c + ${CC} ${CFLAGS} ${CPPFLAGS} -D_GNU_SOURCE ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n + echo 'int main(){return 0;}' > test.c + ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile popd >/dev/null cat <<-EOF > Config diff --git a/sys-apps/iproute2/iproute2-9999.ebuild b/sys-apps/iproute2/iproute2-9999.ebuild index 2e7af2b..e9beb84 100644 --- a/sys-apps/iproute2/iproute2-9999.ebuild +++ b/sys-apps/iproute2/iproute2-9999.ebuild @@ -70,10 +70,10 @@ src_configure() { # This sure is ugly. Should probably move into toolchain-funcs at some point. local setns pushd "${T}" >/dev/null - echo 'main(){return setns();};' > test.c - ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n - echo 'main(){};' > test.c - ${CC} ${CFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile + printf '#include <sched.h>\nint main(){return setns(0, 0);}\n' > test.c + ${CC} ${CFLAGS} ${CPPFLAGS} -D_GNU_SOURCE ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n + echo 'int main(){return 0;}' > test.c + ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile popd >/dev/null cat <<-EOF > Config