forked from pool/post-build-checks
Accepting request 22749 from Base:System
Copy from Base:System/post-build-checks based on submit request 22749 from user msmeissn OBS-URL: https://build.opensuse.org/request/show/22749 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/post-build-checks?expand=0&rev=25
This commit is contained in:
parent
6f7ac3e971
commit
fdaf60a1e3
@ -1,51 +0,0 @@
|
||||
Index: checks/01-check-debuginfo
|
||||
===================================================================
|
||||
--- checks/01-check-debuginfo.orig 2008-07-14 13:47:43.000000000 +0200
|
||||
+++ checks/01-check-debuginfo 2009-07-30 10:11:30.000000000 +0200
|
||||
@@ -5,7 +5,7 @@ echo "... testing for empty debuginfo pa
|
||||
fast=
|
||||
test -x /usr/lib/rpm/rpmi && fast="--nodigest --nosignature"
|
||||
|
||||
-RPMS=`find $BUILD_ROOT/usr/src/packages/RPMS -name "*-debuginfo-*.rpm"`
|
||||
+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=
|
||||
@@ -16,34 +16,11 @@ for rpm in $RPMS ; do
|
||||
/usr/src/debug/*) HAS_SRC=true ;;
|
||||
esac
|
||||
done
|
||||
- if test -z "$HAS_DEBUG" ; then
|
||||
+ if test -z "$HAS_DEBUG" -a -z "$HAS_SRC"; then
|
||||
echo '!'
|
||||
- echo "! ${rpm##*/}: no debug information, deleting package"
|
||||
- echo '!'
|
||||
- rm -f "$rpm" "${rpm/-debuginfo-/-debugsource-}"
|
||||
- elif test -z "$HAS_SRC" ; then
|
||||
- rpmsource=${rpm/-debuginfo-/-debugsource-}
|
||||
- if test -s "${rpmsource}" ; then
|
||||
-# for l in "$(rpm -qpl $fast ${rpmsource})" ; do
|
||||
-# case "$l" in
|
||||
-# /usr/src/debug/*) HAS_SRC=true ;;
|
||||
-# "(contains no files)") HAS_SRC=""; break ;;
|
||||
-# esac
|
||||
-# done
|
||||
- rpm -qpl $fast "${rpmsource}" | egrep -q "^/usr/src/debug/" && HAS_SRC=true
|
||||
- if test -n "$HAS_SRC" ; then
|
||||
- continue
|
||||
- fi
|
||||
- echo '!'
|
||||
- echo "! ${rpmsource##*/}: no debug sources, deleting package"
|
||||
- echo "! ${rpm##*/}: WARNING: this probably means the debug information is invalid"
|
||||
- echo '!'
|
||||
- rm -f "${rpmsource}"
|
||||
- continue
|
||||
- fi
|
||||
- echo '!'
|
||||
- echo "! ${rpm##*/}: WARNING: no sources in debuginfo package"
|
||||
+ echo "! $rpm: empty debuginfo/debugsource package, deleting"
|
||||
echo '!'
|
||||
+ rm -f "$rpm"
|
||||
fi
|
||||
done
|
||||
exit 0
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6d2cc1a19634e870117ddba3c81c197c8a7c4708df27d2c3d02c91c167a8e337
|
||||
size 33723
|
||||
oid sha256:7661bda8b6d9ac323e1e8ea3b2af8d97667ca99a858ba4a806c0548f8898d9a3
|
||||
size 34162
|
||||
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 20 10:51:08 CEST 2009 - meissner@suse.de
|
||||
|
||||
- merge debuginfo patch into tarball
|
||||
- check for "implicit declaration of function 'xxxx'" with a fixed
|
||||
list of standard library xxxx which will change behaviour when having
|
||||
correct declaration.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 10 02:17:25 CEST 2009 - ro@suse.de
|
||||
|
||||
|
@ -24,13 +24,12 @@ Group: Development/Tools/Building
|
||||
AutoReqProv: on
|
||||
Summary: post checks for build after rpms have been created
|
||||
Version: 1.0
|
||||
Release: 65
|
||||
Release: 66
|
||||
PreReq: aaa_base permissions sed
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
Source1: suse-buildsystem.sh
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Patch: check-debuginfo.diff
|
||||
|
||||
%description
|
||||
some scripts to check for problems like test-installing the newly
|
||||
@ -45,7 +44,6 @@ it may not be a good idea to install this to a running system:
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch
|
||||
|
||||
%build
|
||||
# nothing to do
|
||||
|
Loading…
Reference in New Issue
Block a user