commit post-build-checks for openSUSE:Factory
Hello community, here is the log from the commit of package post-build-checks for openSUSE:Factory checked in at Tue Apr 13 22:39:09 CEST 2010. -------- --- post-build-checks/post-build-checks.changes 2010-02-23 12:22:23.000000000 +0100 +++ /mounts/work_src_done/STABLE/post-build-checks/post-build-checks.changes 2010-04-07 16:52:24.000000000 +0200 @@ -1,0 +2,9 @@ +Wed Apr 7 16:48:52 CEST 2010 - ro@suse.de + +- remove debuginfo packages for nosrc rpms unless + package is either kernel or java or texlive-bin or glibc + or removal is disabled in specfile by adding a line + #KEEP NOSOURCE DEBUGINFO + to the specfile (bnc#572695) + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- post-build-checks-nosrsc-nodebug.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ post-build-checks.spec ++++++ --- /var/tmp/diff_new_pack.TrMLlP/_old 2010-04-13 22:37:08.000000000 +0200 +++ /var/tmp/diff_new_pack.TrMLlP/_new 2010-04-13 22:37:08.000000000 +0200 @@ -24,13 +24,14 @@ AutoReqProv: on Summary: post checks for build after rpms have been created Version: 1.0 -Release: 70 +Release: 71 PreReq: aaa_base permissions sed Source0: %{name}-%{version}.tar.bz2 Source1: suse-buildsystem.sh Patch0: %{name}-umount.patch Patch1: %{name}-parrot.patch Patch2: post-build-checks-nonvoid_new.patch +Patch3: post-build-checks-nosrsc-nodebug.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -50,6 +51,7 @@ %patch0 -p1 %patch1 %patch2 +%patch3 %build # nothing to do ++++++ post-build-checks-nosrsc-nodebug.patch ++++++ --- checks/01-check-debuginfo +++ checks/01-check-debuginfo @@ -5,11 +5,29 @@ fast= test -x /usr/lib/rpm/rpmi && fast="--nodigest --nosignature" +NOSOURCE=0 +SRPMS=`find $BUILD_ROOT/usr/src/packages/SRPMS -name "*.nosrc.rpm"` +#grep -qE "^NoSource:|^NoPatch:" $BUILD_ROOT/usr/src/packages/SOURCES/$PNAME.spec && NOSOURCE=1 +test -n "$SRPMS" && NOSOURCE=1 +grep -qE "^#KEEP NOSOURCE DEBUGINFO" $BUILD_ROOT/usr/src/packages/SOURCES/$PNAME.spec && NOSOURCE=0 +case $PNAME in + kernel*|java*|texlive-bin*|glibc*) NOSOURCE=0 ;; +esac + RPMS=`find $BUILD_ROOT/usr/src/packages/RPMS -name "*-debuginfo-*.rpm" -o -name "*-debugsource-*.rpm"` test -z "$RPMS" && exit 0 for rpm in $RPMS ; do HAS_DEBUG= HAS_SRC= + if test "$NOSOURCE" = "1" ; then + echo '!' + echo "! $rpm: specfile is nosource, deleting" + echo "! to disable have a line \"#KEEP NOSOURCE DEBUGINFO\" in your specfile" + echo '!' + rm -f "$rpm" + continue + fi + for l in `rpm -qpl $fast "$rpm"` ; do case "$l" in /usr/lib/debug/*) HAS_DEBUG=true ;; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de