dev-libs/gmp: make sure configure stays +x
authorMike Frysinger <vapier@gentoo.org>
Thu, 8 Dec 2016 16:46:20 +0000 (11:46 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 8 Dec 2016 16:47:03 +0000 (11:47 -0500)
Depending on the version of patch used, updates to the configure script
might have lost the +x bit.  Since we already chmod the main script, add
the wrapped one to the list too to workaround patch misbehavior.

dev-libs/gmp/gmp-6.0.0a.ebuild
dev-libs/gmp/gmp-6.1.0.ebuild
dev-libs/gmp/gmp-6.1.1.ebuild

index 62f3477c389b4f81974571ceeb851e17aab63260..3beced7294a5b014a1cf7495a187f15187d28cf5 100644 (file)
@@ -43,7 +43,8 @@ src_prepare() {
        #!/bin/sh
        exec env ABI="${GMPABI}" "$0.wrapped" "$@"
        EOF
-       chmod a+rx configure
+       # Patches to original configure might have lost the +x bit.
+       chmod a+rx configure{,.wrapped}
 }
 
 multilib_src_configure() {
index 519ff18c3031d9dfe52b82f49e62cf77959b6d6f..456ed0492a247ce290accdca34e5466e2a5d0f7c 100644 (file)
@@ -49,7 +49,8 @@ src_prepare() {
        #!/bin/sh
        exec env ABI="${GMPABI}" "$0.wrapped" "$@"
        EOF
-       chmod a+rx configure
+       # Patches to original configure might have lost the +x bit.
+       chmod a+rx configure{,.wrapped}
 }
 
 multilib_src_configure() {
index 6aa461d57909c7476b754504199869a273798f55..3096454b0d315ecb9438b9fc0f7f59180fd0bbd1 100644 (file)
@@ -48,7 +48,8 @@ src_prepare() {
        #!/bin/sh
        exec env ABI="${GMPABI}" "$0.wrapped" "$@"
        EOF
-       chmod a+rx configure
+       # Patches to original configure might have lost the +x bit.
+       chmod a+rx configure{,.wrapped}
 }
 
 multilib_src_configure() {