commit bec03478a6613d3b64fe3b0d36e4b675d51e0120
Author: Jan Palus <[email protected]>
Date:   Mon Nov 16 01:45:26 2020 +0100

    fix build without both static and tests
    
    [ "shared" = "static ] effectively becomes last statement which rpmbuild
    treats as failure. convert to if.

 bash.spec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/bash.spec b/bash.spec
index b525f66..cf9ceed 100644
--- a/bash.spec
+++ b/bash.spec
@@ -233,7 +233,9 @@ for mode in %{?with_static:static} shared; do
 %{__make} \
        DEFS="-DHAVE_CONFIG_H -D_GNU_SOURCE"
 
-[ "$mode" = "static" ] && mv -f bash bash.static
+if [ "$mode" = "static" ]; then
+       mv -f bash bash.static
+fi
 done
 
 %{?with_tests:%{__make} tests}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bash.git/commitdiff/bec03478a6613d3b64fe3b0d36e4b675d51e0120

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to