From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libupnp/files/, net-libs/libupnp/
Date: Mon, 13 Feb 2017 20:28:47 +0000 (UTC) [thread overview]
Message-ID: <1487017652.c8a6c9470bc973290b00373a552cd61b4503db9e.vapier@gentoo> (raw)
commit: c8a6c9470bc973290b00373a552cd61b4503db9e
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 13 20:27:04 2017 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> 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() {
next reply other threads:[~2017-02-13 20:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-13 20:28 Mike Frysinger [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-10-03 13:16 [gentoo-commits] repo/gentoo:master commit in: net-libs/libupnp/files/, net-libs/libupnp/ Conrad Kostecki
2020-01-29 17:47 Ian Whyman
2017-01-04 23:11 Ian Whyman
2016-09-15 19:51 Ian Whyman
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=1487017652.c8a6c9470bc973290b00373a552cd61b4503db9e.vapier@gentoo \
--to=vapier@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