diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-08-05 03:29:15 +0800 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-08-05 03:29:45 +0800 |
commit | bc9e1b1929349952aefaf1577dfdccd917d0cdf6 (patch) | |
tree | 567c37da0c5bdc4c5089d4fb182da33f2db7a84d /sys-block/sedutil | |
parent | dev-libs/nss: fix CAcert URL in metadata.xml (diff) | |
download | gentoo-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.ebuild | 6 |
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() { |