summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-08-05 03:29:15 +0800
committerMike Frysinger <vapier@gentoo.org>2016-08-05 03:29:45 +0800
commitbc9e1b1929349952aefaf1577dfdccd917d0cdf6 (patch)
tree567c37da0c5bdc4c5089d4fb182da33f2db7a84d /sys-block/sedutil
parentdev-libs/nss: fix CAcert URL in metadata.xml (diff)
downloadgentoo-bc9e1b1929349952aefaf1577dfdccd917d0cdf6.tar.gz
gentoo-bc9e1b1929349952aefaf1577dfdccd917d0cdf6.tar.bz2
gentoo-bc9e1b1929349952aefaf1577dfdccd917d0cdf6.zip
sys-block/sedutil: only apply nvme.h fix w/newer linux-headers #590486
Diffstat (limited to 'sys-block/sedutil')
-rw-r--r--sys-block/sedutil/sedutil-1.12.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys-block/sedutil/sedutil-1.12.ebuild b/sys-block/sedutil/sedutil-1.12.ebuild
index 7e65008ea2d0..f2aa19f911da 100644
--- a/sys-block/sedutil/sedutil-1.12.ebuild
+++ b/sys-block/sedutil/sedutil-1.12.ebuild
@@ -17,8 +17,10 @@ IUSE=""
src_prepare() {
# https://github.com/Drive-Trust-Alliance/sedutil/pull/49
find -name '*.mk' -exec sed -E -i 's: -(Werror|g|O[0-9]?) : :g' {} + || die
- mkdir linux/linux || die
- cp "${FILESDIR}"/nvme.h linux/linux/ || die
+ if has_version '>=sys-kernel/linux-headers-4.4' ; then
+ mkdir linux/linux || die
+ cp "${FILESDIR}"/nvme.h linux/linux/ || die
+ fi
}
src_configure() {