From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 D2AE5139695 for ; Mon, 13 Feb 2017 20:28:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0D1B2E0C78; Mon, 13 Feb 2017 20:28:51 +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 DD5A9E0C78 for ; Mon, 13 Feb 2017 20:28:50 +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 9FC8F340F2A for ; Mon, 13 Feb 2017 20:28:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A610E46C3 for ; Mon, 13 Feb 2017 20:28:47 +0000 (UTC) From: "Mike Frysinger" 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" Message-ID: <1487017652.c8a6c9470bc973290b00373a552cd61b4503db9e.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libupnp/files/, net-libs/libupnp/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libupnp/files/libupnp-1.6.21-cflags.patch net-libs/libupnp/libupnp-1.6.21.ebuild net-libs/libupnp/libupnp-1.8.0.ebuild X-VCS-Directories: net-libs/libupnp/files/ net-libs/libupnp/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: c8a6c9470bc973290b00373a552cd61b4503db9e X-VCS-Branch: master Date: Mon, 13 Feb 2017 20:28:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f198aaec-2e0e-4109-8044-bf93151e9ad8 X-Archives-Hash: 783c3f9702a491af5ead665d00105283 commit: c8a6c9470bc973290b00373a552cd61b4503db9e Author: Mike Frysinger gentoo org> AuthorDate: Mon Feb 13 20:27:04 2017 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Mon Feb 13 20:27:32 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8a6c947 net-libs/libupnp: do not override user CFLAGS net-libs/libupnp/files/libupnp-1.6.21-cflags.patch | 30 ++++++++++++++++++++++ net-libs/libupnp/libupnp-1.6.21.ebuild | 1 + net-libs/libupnp/libupnp-1.8.0.ebuild | 1 + 3 files changed, 32 insertions(+) diff --git a/net-libs/libupnp/files/libupnp-1.6.21-cflags.patch b/net-libs/libupnp/files/libupnp-1.6.21-cflags.patch new file mode 100644 index 0000000000..3eaf66e804 --- /dev/null +++ b/net-libs/libupnp/files/libupnp-1.6.21-cflags.patch @@ -0,0 +1,30 @@ +don't append flags like -O0/-Os which clobber the user's settings + +--- a/configure.ac ++++ b/configure.ac +@@ -539,25 +539,6 @@ AC_PROG_EGREP + echo "--------------------- Default compilation flags -------------------------------" + echo host is $host + echo host_os is $host_os +-case $host_os in +-freebsd*) +- echo "Using FreeBSD specific compiler settings" +- # Put FreeBSD specific compiler flags here +- ;; +-*) +- echo "Using non-specific system compiler settings" +- if test x"$enable_debug" = xyes; then +- # AC_PROG_CC already sets CFLAGS to "-g -O2" by default, +- # but only if CFLAGS was not previously set. +- #: +- # Use -O0 in debug so that variables do not get optimized out +- AX_CFLAGS_GCC_OPTION([-O0, -g]) +- else +- # add optimise for size +- AX_CFLAGS_GCC_OPTION([-Os]) +- fi +- ;; +-esac + + AX_CFLAGS_WARN_ALL + echo "-------------------------------------------------------------------------------" diff --git a/net-libs/libupnp/libupnp-1.6.21.ebuild b/net-libs/libupnp/libupnp-1.6.21.ebuild index 4e7f7656a0..4342f131eb 100644 --- a/net-libs/libupnp/libupnp-1.6.21.ebuild +++ b/net-libs/libupnp/libupnp-1.6.21.ebuild @@ -19,6 +19,7 @@ DOCS="NEWS README ChangeLog" PATCHES=( "${FILESDIR}"/${PN}-1.6.19-docs-install.patch + "${FILESDIR}"/${PN}-1.6.21-cflags.patch ) src_prepare() { diff --git a/net-libs/libupnp/libupnp-1.8.0.ebuild b/net-libs/libupnp/libupnp-1.8.0.ebuild index abee901f84..32baec6ad6 100644 --- a/net-libs/libupnp/libupnp-1.8.0.ebuild +++ b/net-libs/libupnp/libupnp-1.8.0.ebuild @@ -19,6 +19,7 @@ DOCS="NEWS README.md ChangeLog" PATCHES=( "${FILESDIR}"/${PN}-1.8.0-docs-install.patch + "${FILESDIR}"/${PN}-1.6.21-cflags.patch ) src_prepare() {