Hello community,

here is the log from the commit of package post-build-checks for 
openSUSE:Factory checked in at 2020-09-23 18:39:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/post-build-checks (Old)
 and      /work/SRC/openSUSE:Factory/.post-build-checks.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "post-build-checks"

Wed Sep 23 18:39:08 2020 rev:100 rq:834886 version:84.87+git20200916.d341ab0

Changes:
--------
--- /work/SRC/openSUSE:Factory/post-build-checks/post-build-checks.changes      
2020-09-04 10:53:42.718449778 +0200
+++ 
/work/SRC/openSUSE:Factory/.post-build-checks.new.4249/post-build-checks.changes
    2020-09-23 18:39:39.049279892 +0200
@@ -1,0 +2,16 @@
+Wed Sep 16 10:12:53 UTC 2020 - [email protected]
+
+- Update to version 84.87+git20200916.d341ab0:
+  * add finalize-system hacks
+  * 01-add_abuild_user_to_trusted_group
+  *   also create abuild user if needed
+  * 02-set_timezone_to_utc
+  * 11-hack_uname_version_to_kernel_version
+  * 98-revert-uname-hack
+  *   add cleanup as check script
+- drop all pre/post scripts this is now all done by hooks
+  inside the buildsystem, the package install scripts will
+  not do any harm now and we do not depend on the install
+  sequence any more (revisited boo#1159963)
+
+-------------------------------------------------------------------

Old:
----
  post-build-checks-84.87+git20200819.5847424.tar.xz

New:
----
  post-build-checks-84.87+git20200916.d341ab0.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ post-build-checks.spec ++++++
--- /var/tmp/diff_new_pack.rAVWYG/_old  2020-09-23 18:39:40.549281272 +0200
+++ /var/tmp/diff_new_pack.rAVWYG/_new  2020-09-23 18:39:40.553281276 +0200
@@ -16,13 +16,13 @@
 #
 
 
-%define version_unconverted 84.87+git20200819.5847424
+%define version_unconverted 84.87+git20200916.d341ab0
 
 Name:           post-build-checks
 Summary:        post checks for build after rpms have been created
 License:        GPL-2.0-or-later
 Group:          Development/Tools/Building
-Version:        84.87+git20200819.5847424
+Version:        84.87+git20200916.d341ab0
 Release:        0
 PreReq:         aaa_base permissions sed
 Requires:       aaa_base-malloccheck
@@ -61,49 +61,15 @@
 install -d $RPM_BUILD_ROOT/usr/lib/build/checks
 install -d $RPM_BUILD_ROOT/usr/lib/build/checks-data
 install -d $RPM_BUILD_ROOT/usr/lib/build/helper
+install -d $RPM_BUILD_ROOT/usr/lib/build/finalize-system
 install -m 755 checks/* $RPM_BUILD_ROOT/usr/lib/build/checks
 install -m 644 checks-data/* $RPM_BUILD_ROOT/usr/lib/build/checks-data
 install -m 755 helper/* $RPM_BUILD_ROOT/usr/lib/build/helper
+install -m 755 finalize-system/* $RPM_BUILD_ROOT/usr/lib/build/finalize-system
 install -m 644 -D suse-buildsystem.sh  
$RPM_BUILD_ROOT/etc/profile.d/suse-buildsystem.sh
 install -m 644 -D suse-ignored-rpaths.conf 
$RPM_BUILD_ROOT/etc/suse-ignored-rpaths.conf
 chmod 755 $RPM_BUILD_ROOT/usr/lib/build/checks-data/check*
 
-%post
-# do nothing when not in a build chroot
-if ! test -e /.buildenv; then
-    exit 0
-fi
-# change the PERMISSION set to "secure"
-sed -i -e "s@^PERMISSION_SECURITY=.*@PERMISSION_SECURITY=\"secure\"@" 
/etc/sysconfig/security
-# add the abuild user to the trusted group so that fusermount works
-usermod -G trusted -a abuild || true
-# set the timezone to UTC
-if [ -f /etc/sysconfig/clock ] ; then
-sed -i -e "s@^TIMEZONE=.*@TIMEZONE=\"UTC\"@" /etc/sysconfig/clock
-fi
-# and add the ugly workaround to override the output of uname -v
-# to match the installed kernel sources
-UNAME=/bin/uname
-if test -f /usr/bin/uname ; then
-    UNAME=/usr/bin/uname
-fi
-if test -f $UNAME -a ! -L $UNAME ; then
-    mv $UNAME $UNAME.bin
-    ln -s /usr/lib/build/helper/uname.sh $UNAME
-fi
-
-%preun
-if ! test -e /.buildenv; then
-    exit 0
-fi
-UNAME=/bin/uname
-if test -f /usr/bin/uname.bin ; then
-    UNAME=/usr/bin/uname
-fi
-if test "$1" = 0 -a -f $UNAME.bin ; then
-    mv $UNAME.bin $UNAME
-fi
-
 %files
 %defattr(-, root, root)
 %license COPYING

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.rAVWYG/_old  2020-09-23 18:39:40.605281323 +0200
+++ /var/tmp/diff_new_pack.rAVWYG/_new  2020-09-23 18:39:40.605281323 +0200
@@ -1,5 +1,5 @@
 <servicedata>
   <service name="tar_scm">
     <param name="url">git://github.com/openSUSE/post-build-checks.git</param>
-  <param 
name="changesrevision">584742418b33de1237c278f8ba746f25b419d9cd</param></service>
+  <param 
name="changesrevision">d341ab0ee0ea0b174a510858674162129ddd30f0</param></service>
 </servicedata>
\ No newline at end of file

++++++ post-build-checks-84.87+git20200819.5847424.tar.xz -> 
post-build-checks-84.87+git20200916.d341ab0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.87+git20200819.5847424/checks/98-revert-uname-hack 
new/post-build-checks-84.87+git20200916.d341ab0/checks/98-revert-uname-hack
--- old/post-build-checks-84.87+git20200819.5847424/checks/98-revert-uname-hack 
1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-84.87+git20200916.d341ab0/checks/98-revert-uname-hack 
2020-09-16 12:12:29.000000000 +0200
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+UNAME=/bin/uname
+if test -f /usr/bin/uname.bin ; then
+    UNAME=/usr/bin/uname
+fi
+
+test -L $UNAME || exit 0
+TARG=$(readlink $UNAME)
+test "$TARG" = "/usr/lib/build/helper/uname.sh" || exit 0
+
+if test -f $UNAME.bin ; then
+    rm -f $UNAME
+    mv $UNAME.bin $UNAME
+fi
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.87+git20200819.5847424/finalize-system/01-add_abuild_user_to_trusted_group
 
new/post-build-checks-84.87+git20200916.d341ab0/finalize-system/01-add_abuild_user_to_trusted_group
--- 
old/post-build-checks-84.87+git20200819.5847424/finalize-system/01-add_abuild_user_to_trusted_group
 1970-01-01 01:00:00.000000000 +0100
+++ 
new/post-build-checks-84.87+git20200916.d341ab0/finalize-system/01-add_abuild_user_to_trusted_group
 2020-09-16 12:12:29.000000000 +0200
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+test "$BUILD_USER" = "root" && exit 0 || true
+
+test -z "$ABUILD_UID" && ABUILD_UID=399
+test -z "$ABUILD_GID" && ABUILD_GID=399
+
+grep -q "^abuild:" /etc/passwd || {
+    echo 
"abuild:x:${ABUILD_UID}:${ABUILD_GID}:Autobuild:/home/abuild:/bin/bash" >> 
/etc/passwd
+    echo 'abuild:*:::::::' >> /etc/shadow
+    echo "abuild:x:${ABUILD_GID}:" >> /etc/group
+    echo 'abuild:*::' >> /etc/gshadow
+    mkdir -p /home/abuild
+    chown "$ABUILD_UID:$ABUILD_GID" /home/abuild
+
+}
+
+id abuild >/dev/null 2>/dev/null && usermod -G trusted -a abuild || true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.87+git20200819.5847424/finalize-system/02-set_timezone_to_utc
 
new/post-build-checks-84.87+git20200916.d341ab0/finalize-system/02-set_timezone_to_utc
--- 
old/post-build-checks-84.87+git20200819.5847424/finalize-system/02-set_timezone_to_utc
      1970-01-01 01:00:00.000000000 +0100
+++ 
new/post-build-checks-84.87+git20200916.d341ab0/finalize-system/02-set_timezone_to_utc
      2020-09-16 12:12:29.000000000 +0200
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# set the timezone to UTC
+if [ -f /etc/sysconfig/clock ] ; then
+    sed -i -e "s@^TIMEZONE=.*@TIMEZONE=\"UTC\"@" /etc/sysconfig/clock
+fi
+test -e /usr/sbin/zic || exit 0
+zic -l UTC || true
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.87+git20200819.5847424/finalize-system/11-hack_uname_version_to_kernel_version
 
new/post-build-checks-84.87+git20200916.d341ab0/finalize-system/11-hack_uname_version_to_kernel_version
--- 
old/post-build-checks-84.87+git20200819.5847424/finalize-system/11-hack_uname_version_to_kernel_version
     1970-01-01 01:00:00.000000000 +0100
+++ 
new/post-build-checks-84.87+git20200916.d341ab0/finalize-system/11-hack_uname_version_to_kernel_version
     2020-09-16 12:12:29.000000000 +0200
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# and add the ugly workaround to override the output of uname -v
+# to match the installed kernel sources
+UNAME=/bin/uname
+if test -f /usr/bin/uname ; then
+    UNAME=/usr/bin/uname
+fi
+if test -f $UNAME -a ! -L $UNAME ; then
+    mv $UNAME $UNAME.bin
+    ln -s /usr/lib/build/helper/uname.sh $UNAME
+fi
+


Reply via email to