[packages/pl] - disabled debug packages - build all programs without march option - builds now, but tests segfault

baggins baggins at pld-linux.org
Mon Dec 2 09:35:45 CET 2013


commit 6eaa153519a463b5ebeca6668955549c26b79580
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Dec 2 09:35:07 2013 +0100

    - disabled debug packages
    - build all programs without march option
    - builds now, but tests segfault on i686

 pl.spec | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/pl.spec b/pl.spec
index d7a1e31..11ebd96 100644
--- a/pl.spec
+++ b/pl.spec
@@ -1,16 +1,21 @@
 #
 # TODO
-# 	- maybe separate other prolog packages to rpm subpackages
+#	- maybe separate other prolog packages to rpm subpackages
 #
 # Conditional build:
 %bcond_without	java		# Java bindings (so far, JPL only works with Sun Java and IBM Java)
 %bcond_without	tests		# make check
 #
 
-%ifnarch %{x8664} i586 i686 pentium3 pentium4 athlon 
+%ifnarch %{x8664} i586 i686 pentium3 pentium4 athlon
 %undefine	with_java
 %endif
 
+# packages use SWI-Prolog own linker which doesn't understand -gdwarf* and
+# some -march= options passed to it by gcc
+# No poin in building debug packages without debug info
+%define		_enable_debug_packages	0
+
 Summary:	SWI Prolog Language
 Summary(pl.UTF-8):	Język SWI Prolog
 Name:		pl
@@ -149,6 +154,11 @@ Prolog.
 %patch2 -p1
 
 %build
+# packages use SWI-Prolog own linker which doesn't understand -gdwarf* and
+# some -march= options passed to it by gcc
+CFLAGS=$(echo %{rpmcflags} | sed 's|-march=[^ ]*||')
+export CFLAGS
+
 cd src
 cp -f /usr/share/automake/config.sub .
 %{__aclocal}
@@ -162,12 +172,6 @@ PATH="$(pwd)/src:$PATH"; export PATH
 LD_LIBRARY_PATH="$(pwd)/lib/%{_target_cpu}-linux"; export LD_LIBRARY_PATH
 export CLASSPATH=.
 
-# packages use SWI-Prolog own linker which doesn't understand -gdwarf* and
-# some -march= options passed to it by gcc
-%undefine	debuginfocflags
-CFLAGS=$(echo %{rpmcflags} | sed 's|-march=[^ ]*||')
-export CFLAGS
-
 cd packages
 wd=`pwd`
 # see packages/configure for default packages list and their order
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pl.git/commitdiff/6eaa153519a463b5ebeca6668955549c26b79580



More information about the pld-cvs-commit mailing list