projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13a151e
)
sys-apps/nvme-cli: fix stripping of upstream compiler flags (like -Werror)
author
Mike Frysinger
<vapier@gentoo.org>
Thu, 15 Dec 2016 23:58:28 +0000
(18:58 -0500)
committer
Mike Frysinger
<vapier@gentoo.org>
Fri, 16 Dec 2016 00:04:21 +0000
(19:04 -0500)
sys-apps/nvme-cli/nvme-cli-0.9.ebuild
patch
|
blob
|
history
diff --git
a/sys-apps/nvme-cli/nvme-cli-0.9.ebuild
b/sys-apps/nvme-cli/nvme-cli-0.9.ebuild
index 4db21880ef591807732c29080360e15503f8b47e..b996e8b9039d6125510e1f95fe46ae79383ba99f 100644
(file)
--- 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