sys-apps/sg3_utils: Revbump to fix broken lib symlinks
authorLars Wendler <polynomial-c@gentoo.org>
Thu, 5 Mar 2020 16:54:36 +0000 (17:54 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Thu, 5 Mar 2020 16:54:48 +0000 (17:54 +0100)
Package-Manager: Portage-2.3.92, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-apps/sg3_utils/sg3_utils-1.45-r1.ebuild [moved from sys-apps/sg3_utils/sg3_utils-1.45.ebuild with 94% similarity]

similarity index 94%
rename from sys-apps/sg3_utils/sg3_utils-1.45.ebuild
rename to sys-apps/sg3_utils/sg3_utils-1.45-r1.ebuild
index e26f49ce2411e40817e752d9548f1181b6091035..8a91099271b50ed8c94f59f1147581376bfe8fff 100644 (file)
@@ -31,13 +31,13 @@ src_install() {
        dodoc COVERAGE doc/README examples/*.txt
        newdoc scripts/README README.scripts
 
+       find "${ED}" -type f -name "*.la" -delete || die
+
        # Better fix for bug 231089; some packages look for sgutils2
        local path lib
        path="/usr/$(get_libdir)"
-       for lib in "${ED}/"${path}/libsgutils2.*; do
+       for lib in "${ED}/"${path}/libsgutils2{,-${PV}}.*; do
                lib=${lib##*/}
                dosym "${lib}" "${path}/${lib/libsgutils2/libsgutils}"
        done
-
-       find "${ED}" -type f -name "*.la" -delete || die
 }