app-arch/zpaq: Fix Hardened w/ USE=jit, #411521
authorMichał Górny <mgorny@gentoo.org>
Sun, 3 Jul 2016 13:27:43 +0000 (15:27 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sun, 3 Jul 2016 13:29:24 +0000 (15:29 +0200)
app-arch/zpaq/zpaq-7.13-r1.ebuild

index a05100ba522875f758a07f8bfaede182a038d1ff..d4dbbe979a81b7d88fdb40177f03bf8874e4358b 100644 (file)
@@ -4,7 +4,7 @@
 
 EAPI=6
 
-inherit flag-o-matic toolchain-funcs
+inherit flag-o-matic pax-utils toolchain-funcs
 
 MY_P=${PN}${PV/./}
 DESCRIPTION="Journaling incremental deduplicating archiving compressor"
@@ -38,11 +38,13 @@ src_compile() {
 
 src_test() {
        local -x LD_LIBRARY_PATH=".${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}"
+       use jit && pax-mark m zpaq
        default
 }
 
 src_install() {
        emake install PREFIX="${ED%/}"/usr LIBDIR="\$(PREFIX)/$(get_libdir)"
+       use jit && pax-mark m "${ED%/}"/usr/bin/zpaq
        einstalldocs
 }