[packages/libdwarf] up to 20140208, some build races fixed; cleanup .spec

glen glen at pld-linux.org
Wed Apr 2 13:09:42 CEST 2014


commit 5b55c6f60294c5bc3fbc5e4c087f28d65cc586be
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Apr 2 11:07:34 2014 +0000

    up to 20140208, some build races fixed; cleanup .spec
    
    races fixed according to author, but main build still fails according to
    my testing.
    
    $ a=0;while true; a=$((a+1)); echo $a; do ./builder -bb *.spec || { echo failed $a; break; }; done

 libdwarf.spec | 28 +++++++---------------------
 1 file changed, 7 insertions(+), 21 deletions(-)
---
diff --git a/libdwarf.spec b/libdwarf.spec
index 088ee17..d87d8b6 100644
--- a/libdwarf.spec
+++ b/libdwarf.spec
@@ -1,12 +1,12 @@
 Summary:	Library to read DWARF debug information of an ELF object
 Summary(pl.UTF-8):	Biblioteka do odczytu informacji debugowych DWARF z obiektów ELF
 Name:		libdwarf
-Version:	20130729
+Version:	20140208
 Release:	1
 License:	LGPL v2.1 (library), GPL v2 (utilities)
 Group:		Libraries
 Source0:	http://www.prevanders.net/%{name}-%{version}.tar.gz
-# Source0-md5:	4cc5e48693f7b93b7aa0261e63c0e21d
+# Source0-md5:	4dc74e08a82fa1d3cab6ca6b9610761e
 Patch0:		%{name}-makefile.patch
 Patch1:		%{name}-link.patch
 URL:		http://www.prevanders.net/dwarf.html
@@ -62,38 +62,24 @@ Narzędzie wypisujące informacje debugowe DWARF z obiektów ELF.
 %patch1 -p1
 
 %build
+die() { echo >&2 "$*"; exit 1; }
 cd libdwarf
 %configure \
 	--enable-shared
 # build races found
-%{__make} -j1
+%{__make} -j1 || die "make lib failed"
 
 cd ../dwarfdump
 %configure
-# build races found
-%{__make} -j1
+%{__make} || die "make dwarfdump failed"
 
 cd ../dwarfdump2
 %configure
-# build races found
-%{__make} -j1
+%{__make} || die "make dwarfdump2 failed"
 
 cd ../dwarfgen
 %configure
-%{__make}
-
-%{__make}
-%if 0
-cd libdwarf
-%configure \
-	CFLAGS="%{rpmcflags} -fPIC"
-%{__make} libdwarf.a libdwarf.so
-cd ..
-cd dwarfdump
-%configure
-%{__make} -j1
-cd ..
-%endif
+%{__make} || die "make dwarfgen failed"
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libdwarf.git/commitdiff/5b55c6f60294c5bc3fbc5e4c087f28d65cc586be



More information about the pld-cvs-commit mailing list