SPECS: builder - print _smp_mflags state on build start

glen glen at pld-linux.org
Wed Mar 11 10:54:58 CET 2009


Author: glen                         Date: Wed Mar 11 09:54:58 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- print _smp_mflags state on build start

---- Files affected:
SPECS:
   builder (1.571 -> 1.572) 

---- Diffs:

================================================================
Index: SPECS/builder
diff -u SPECS/builder:1.571 SPECS/builder:1.572
--- SPECS/builder:1.571	Thu Jan 15 15:24:56 2009
+++ SPECS/builder	Wed Mar 11 10:54:53 2009
@@ -2287,7 +2287,7 @@
 if [ -f CVS/Entries ] && [ -z "$CVSTAG" ]; then
 	CVSTAG=$(awk -vSPECFILE=$(basename ${SPECFILE%.spec}.spec) -F/ '$2 == SPECFILE && $6 ~ /^T/{print substr($6, 2)}' CVS/Entries)
 	if [ "$CVSTAG" ]; then
-		echo >&2 "builder: Stick tag $CVSTAG active. Use -r TAGNAME to override."
+		echo >&2 "builder: Sticky tag $CVSTAG active. Use -r TAGNAME to override."
 	fi
 elif [ "$CVSTAG" = "HEAD" ]; then
 	# assume -r HEAD is same as -A
@@ -2342,6 +2342,12 @@
 	"build" | "build-binary" | "build-source" | "build-prep" | "build-build" | "build-install" | "build-list")
 		init_builder
 		if [ -n "$SPECFILE" ]; then
+			# display SMP make flags if set
+			smp_mflags=$(rpm -E %{?_smp_mflags})
+			if [ "$smp_mflags" ]; then
+				echo >&2 "builder: SMP make flags are set to $smp_mflags"
+			fi
+
 			get_spec
 			parse_spec
 			set_bconds_values
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/builder?r1=1.571&r2=1.572&f=u



More information about the pld-cvs-commit mailing list