Accepting request 39595 from Base:System
Copy from Base:System/post-build-checks based on submit request 39595 from user lrupp OBS-URL: https://build.opensuse.org/request/show/39595 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/post-build-checks?expand=0&rev=32
This commit is contained in:
commit
7fc161a2f2
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:048ffc00a6d325f48842aaa06486a64c56f25c0147cf1d0e79dad2e6110dd547
|
oid sha256:efb57a803ebc6fc37c77cc5a495865066279b158d12c63da832fdf1bc97bbe5d
|
||||||
size 34171
|
size 33145
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
--- checks-data/check_gcc_output
|
|
||||||
+++ checks-data/check_gcc_output
|
|
||||||
@@ -22,6 +22,7 @@
|
|
||||||
'warning:.*ignoring return value of (?:.*alloc.*|set.*uid), declared with' => "unchecked-return-value",
|
|
||||||
'warning:.*type-punned.*strict-aliasing' => "strict-aliasing-punning",
|
|
||||||
'warning:.*control reaches end of non-void function' => "no-return-in-nonvoid-function",
|
|
||||||
+ 'warning:.*no return statement in function returning non-void' => "no-return-in-nonvoid-function",
|
|
||||||
'warning:.*format not a string literal and no format arguments' => "format-security",
|
|
||||||
'warning:.*missing sentinel in function call' => "missing-sentinel",
|
|
||||||
'warning:.*call to .* will always overflow destination buffer' => "bufferoverflow",
|
|
@ -1,32 +0,0 @@
|
|||||||
--- 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,19 +0,0 @@
|
|||||||
--- ./checks/04-check-filelist.orig 2009-08-10 00:17:17.000000000 +0000
|
|
||||||
+++ ./checks/04-check-filelist 2010-02-19 10:59:17.000000000 +0000
|
|
||||||
@@ -125,6 +125,16 @@ if [ ! -z "$ALL_RPMS" ] ; then
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
+ /usr/src/parrot*)
|
|
||||||
+ case $RPM_NAME in
|
|
||||||
+ parrot-devel)
|
|
||||||
+ ;;
|
|
||||||
+ *)
|
|
||||||
+ echo "$RPM_NAME: \"$LINE\" may only be packaged in the parrot-devel package"
|
|
||||||
+ UNVALID_FILE_FOUND=true
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+ ;;
|
|
||||||
# exceptions for CVS/RCS/liveeval
|
|
||||||
/usr/share/doc/howto/en/txt/RCS|\
|
|
||||||
/usr/share/YaST2/data/devtools/*|\
|
|
@ -1,12 +0,0 @@
|
|||||||
diff -Nur post-build-checks-1.0/checks/99-check-remove-rpms post-build-checks-1.0-new//checks/99-check-remove-rpms
|
|
||||||
--- post-build-checks-1.0/checks/99-check-remove-rpms 2008-09-03 15:10:17.000000000 +0200
|
|
||||||
+++ post-build-checks-1.0-new//checks/99-check-remove-rpms 2010-02-06 18:28:48.718027110 +0100
|
|
||||||
@@ -67,4 +67,7 @@
|
|
||||||
}
|
|
||||||
fi
|
|
||||||
|
|
||||||
-
|
|
||||||
+# umount proc
|
|
||||||
+if [ -e $BUILD_ROOT/proc/uptime ]
|
|
||||||
+ then umount $BUILD_ROOT/proc
|
|
||||||
+fi
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 6 17:41:41 UTC 2010 - lnussel@suse.de
|
||||||
|
|
||||||
|
- finally remove 04-check-filelist as it's obsoleted by
|
||||||
|
CheckFilelist.py in rpmlint
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 7 16:48:52 CEST 2010 - ro@suse.de
|
Wed Apr 7 16:48:52 CEST 2010 - ro@suse.de
|
||||||
|
|
||||||
|
@ -24,14 +24,10 @@ Group: Development/Tools/Building
|
|||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Summary: post checks for build after rpms have been created
|
Summary: post checks for build after rpms have been created
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Release: 71
|
Release: 72
|
||||||
PreReq: aaa_base permissions sed
|
PreReq: aaa_base permissions sed
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
Source1: suse-buildsystem.sh
|
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
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
@ -48,10 +44,6 @@ it may not be a good idea to install this to a running system:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
|
||||||
%patch1
|
|
||||||
%patch2
|
|
||||||
%patch3
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# nothing to do
|
# nothing to do
|
||||||
|
Loading…
Reference in New Issue
Block a user