[packages/cross-binutils: 2/5] fix install re-entrancy

glen glen at pld-linux.org
Wed Jan 7 20:49:39 CET 2015


commit 10ca4dcc0e9c5b24a7534af97b8c471abd8fa3f5
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Jan 7 21:21:02 2015 +0200

    fix install re-entrancy

 cross-binutils.spec | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/cross-binutils.spec b/cross-binutils.spec
index 16b2673..62cb3f4 100644
--- a/cross-binutils.spec
+++ b/cross-binutils.spec
@@ -48,7 +48,7 @@
 Summary:	A GNU collection of cross-compilation binary utilities
 Name:		%{cross}-binutils
 Version:	2.25
-Release:	0.2
+Release:	0.4
 License:	GPL v3+
 Group:		Development/Tools
 URL:		http://sources.redhat.com/binutils
@@ -230,7 +230,7 @@ for tool in binutils gas ld; do
 done
 touch */configure
 
-function prep_target () {
+prep_target() {
     target=$1
     cond=$2
 
@@ -476,7 +476,6 @@ echo "=== INSTALL po targets ==="
 
 # Add the additional symlink-only targets
 grep ^powerpc target.list | sed -e s/powerpc/ppc/ > symlink-target.list
-cat symlink-target.list >> target.list
 
 # For cross-binutils we drop the documentation.
 echo "=== REMOVE documentation ==="
@@ -519,7 +518,7 @@ build_file_list() {
 	) > files.$arch
 }
 
-for target in $(cat target.list); do
+for target in $(cat target.list symlink-target.list); do
 	build_file_list $target
 done
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cross-binutils.git/commitdiff/688e32ec1bb39c594c77d9e6ce2effcf7dd3cef8



More information about the pld-cvs-commit mailing list