diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-12-15 18:58:28 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-12-15 19:04:21 -0500 |
commit | 69080c7407e809df801183545d1d50138a05bda0 (patch) | |
tree | 3e5d2db4b604e30554b0fecd2c49dff7e1dc2a46 | |
parent | kernel-2.eclass: Remove kdbus support as it is discontinued. First reported i... (diff) | |
download | gentoo-69080c7407e809df801183545d1d50138a05bda0.tar.gz gentoo-69080c7407e809df801183545d1d50138a05bda0.tar.bz2 gentoo-69080c7407e809df801183545d1d50138a05bda0.zip |
sys-apps/nvme-cli: fix stripping of upstream compiler flags (like -Werror)
-rw-r--r-- | sys-apps/nvme-cli/nvme-cli-0.9.ebuild | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys-apps/nvme-cli/nvme-cli-0.9.ebuild b/sys-apps/nvme-cli/nvme-cli-0.9.ebuild index 4db21880ef59..b996e8b9039d 100644 --- a/sys-apps/nvme-cli/nvme-cli-0.9.ebuild +++ b/sys-apps/nvme-cli/nvme-cli-0.9.ebuild @@ -18,8 +18,9 @@ RDEPEND="sys-libs/libcap" DEPEND="${RDEPEND}" src_prepare() { - sed 's|-m64 \(-std=gnu99\) -O2 -g \(-pthread -D_GNU_SOURCE -D_REENTRANT -Wall\) -Werror|\1 \2|' \ - -i Makefile || die + sed -i -E \ + -e '/^CFLAGS/s: (-O2|-g|-Wall|-Werror)\>: :g' \ + Makefile || die sed 's|/usr/local|$(DESTDIR)/$(PREFIX)/share|' \ -i Documentation/Makefile || die |