Accepting request 37245 from home:oertel:branches:openSUSE:Factory
Copy from home:oertel:branches:openSUSE:Factory/post-build-checks via accept of submit request 37245 revision 3. Request was accepted with message: forward OBS-URL: https://build.opensuse.org/request/show/37245 OBS-URL: https://build.opensuse.org/package/show/Base:System/post-build-checks?expand=0&rev=20
This commit is contained in:
parent
222948b073
commit
53f9290699
32
post-build-checks-nosrsc-nodebug.patch
Normal file
32
post-build-checks-nosrsc-nodebug.patch
Normal file
@ -0,0 +1,32 @@
|
||||
--- 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 ;;
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
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)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 23 12:21:52 CET 2010 - ro@suse.de
|
||||
|
||||
|
@ -31,6 +31,7 @@ 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 @@ it may not be a good idea to install this to a running system:
|
||||
%patch0 -p1
|
||||
%patch1
|
||||
%patch2
|
||||
%patch3
|
||||
|
||||
%build
|
||||
# nothing to do
|
||||
|
Loading…
Reference in New Issue
Block a user