diff options
Diffstat (limited to 'sys-block')
-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() { |