jlec        14/10/09 09:51:51

  Modified:             suse-build-2014.09.18-libexec-paths.patch
  Log:
  dev-util/suse-build: Update libexec patch part II
  
  (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with 
key B9D4F231BD1558AB!)

Revision  Changes    Path
1.3                  
dev-util/suse-build/files/suse-build-2014.09.18-libexec-paths.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/suse-build/files/suse-build-2014.09.18-libexec-paths.patch?rev=1.3&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/suse-build/files/suse-build-2014.09.18-libexec-paths.patch?rev=1.3&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/suse-build/files/suse-build-2014.09.18-libexec-paths.patch?r1=1.2&r2=1.3

Index: suse-build-2014.09.18-libexec-paths.patch
===================================================================
RCS file: 
/var/cvsroot/gentoo-x86/dev-util/suse-build/files/suse-build-2014.09.18-libexec-paths.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- suse-build-2014.09.18-libexec-paths.patch   9 Oct 2014 09:48:31 -0000       
1.2
+++ suse-build-2014.09.18-libexec-paths.patch   9 Oct 2014 09:51:51 -0000       
1.3
@@ -1,24 +1,30 @@
- build            |  2 +-
- changelog2spec   |  2 +-
- createarchdeps   |  2 +-
- createrepomddeps |  2 +-
- createrpmdeps    |  2 +-
- createyastdeps   |  2 +-
- download         |  2 +-
- expanddeps       |  2 +-
- getbinaryid      |  2 +-
- init_buildsystem |  2 +-
- initvm.c         | 13 +++++++++----
- mkdrpms          |  2 +-
- order            |  2 +-
- spectool         |  2 +-
- substitutedeps   |  2 +-
- 15 files changed, 23 insertions(+), 18 deletions(-)
+ build                  | 18 +++++++++---------
+ build-recipe-kiwi      |  4 ++--
+ build-recipe-livebuild |  4 ++--
+ build-recipe-spec      |  8 ++++----
+ changelog2spec         |  2 +-
+ createarchdeps         |  2 +-
+ createrepomddeps       |  2 +-
+ createrpmdeps          |  2 +-
+ createyastdeps         |  2 +-
+ createzyppdeps         |  2 +-
+ download               |  2 +-
+ expanddeps             |  4 ++--
+ getbinaryid            |  2 +-
+ init_buildsystem       |  2 +-
+ initvm.c               | 13 +++++++++----
+ mkdrpms                |  2 +-
+ order                  |  4 ++--
+ queryconfig            |  4 ++--
+ spectool               |  2 +-
+ substitutedeps         |  4 ++--
+ test/common            |  2 +-
+ 21 files changed, 46 insertions(+), 41 deletions(-)
 
 diff --git a/build b/build
 old mode 100755
 new mode 100644
-index 9f9fb72..e88f5b6
+index 9f9fb72..fcfec70
 --- a/build
 +++ b/build
 @@ -13,7 +13,7 @@ if test "$0" = /sbin/init ; then
@@ -30,6 +36,114 @@
  test -z "$BUILD_ROOT" && BUILD_ROOT=/var/tmp/build-root
  test -z "$CONFIG_DIR" && CONFIG_DIR="$BUILD_DIR/configs"
  
+@@ -493,8 +493,8 @@ create_baselibs() {
+       if test -e $BUILD_ROOT$TOPDIR/SOURCES/baselibs.conf ; then
+           BASELIBS_CFG="-c $TOPDIR/SOURCES/baselibs.conf"
+       fi
+-      if test -e $BUILD_ROOT/usr/lib/build/baselibs_global.conf; then
+-          BASELIBS_GLOBAL="-c /usr/lib/build/baselibs_global.conf"
++      if test -e $BUILD_ROOT/usr/libexec/suse-build/baselibs_global.conf; then
++          BASELIBS_GLOBAL="-c /usr/libexec/suse-build/baselibs_global.conf"
+       fi
+       pkgs=($RPMS)
+     fi
+@@ -503,14 +503,14 @@ create_baselibs() {
+     # don't use -R as extracted sources, build root etc might be below $TOPDIR
+     chown "$ABUILD_UID:$ABUILD_GID" "$BUILD_ROOT$TOPDIR"/* 
"$BUILD_ROOT$TOPDIR"/RPMS/* || true
+ 
+-    local mkbaselibs="/usr/lib/build/mkbaselibs"
++    local mkbaselibs="/usr/libexec/suse-build/mkbaselibs"
+     local whichone=''
+     # $BUILD_DIR is set to /.build when using a vm. So we need to
+-    # hardcode /usr/lib/build instead of $BUILD_DIR to prefer
++    # hardcode /usr/libexec/suse-build instead of $BUILD_DIR to prefer
+     # mkbaselibs from the distro.
+     if test -f $BUILD_ROOT$mkbaselibs; then
+-      if test -z "$BASELIBS_CFG" -a -e 
$BUILD_ROOT/usr/lib/build/baselibs.conf ; then
+-          BASELIBS_CFG="-c /usr/lib/build/baselibs.conf"
++      if test -z "$BASELIBS_CFG" -a -e 
$BUILD_ROOT/usr/libexec/suse-build/baselibs.conf ; then
++          BASELIBS_CFG="-c /usr/libexec/suse-build/baselibs.conf"
+       fi
+     else
+       if test "$CREATE_BASELIBS" = 'internal'; then
+@@ -1274,7 +1274,7 @@ if test -n "$RPMS" -a -n "$BUILD_USER_ABUILD_USED" ; then
+     recipe_check_file_owners
+ fi
+ 
+-if test -n "$RPMS" -a -d "$BUILD_ROOT/usr/lib/build/checks" ; then
++if test -n "$RPMS" -a -d "$BUILD_ROOT/usr/libexec/suse-build/checks" ; then
+     export DO_RPM_REMOVE=true
+     # find package name
+     export PNAME=
+@@ -1282,7 +1282,7 @@ if test -n "$RPMS" -a -d 
"$BUILD_ROOT/usr/lib/build/checks" ; then
+       test -f "$SRPM" && PNAME=`rpm --nodigest --nosignature -qp --qf 
"%{NAME}" $SRPM`
+     done
+     mount -n -tproc none $BUILD_ROOT/proc 2> /dev/null
+-    for CHECKSCRIPT in $BUILD_ROOT/usr/lib/build/checks/* ; do
++    for CHECKSCRIPT in $BUILD_ROOT/usr/libexec/suse-build/checks/* ; do
+       echo "... running ${CHECKSCRIPT##*/}"
+       $CHECKSCRIPT || cleanup_and_exit 1
+     done
+diff --git a/build-recipe-kiwi b/build-recipe-kiwi
+index 95afd3f..23cafb7 100644
+--- a/build-recipe-kiwi
++++ b/build-recipe-kiwi
+@@ -459,8 +459,8 @@ recipe_build_kiwi() {
+     fi
+ 
+     # Hook for running post kiwi build scripts like QA scripts if installed
+-    if test -x $BUILD_ROOT/usr/lib/build/kiwi_post_run ; then
+-      chroot $BUILD_ROOT su -c /usr/lib/build/kiwi_post_run || 
cleanup_and_exit 1
++    if test -x $BUILD_ROOT/usr/libexec/suse-build/kiwi_post_run ; then
++      chroot $BUILD_ROOT su -c /usr/libexec/suse-build/kiwi_post_run || 
cleanup_and_exit 1
+     fi
+ }
+ 
+diff --git a/build-recipe-livebuild b/build-recipe-livebuild
+index 6ae7046..c426ea0 100644
+--- a/build-recipe-livebuild
++++ b/build-recipe-livebuild
+@@ -172,9 +172,9 @@ recipe_build_livebuild() {
+     # TODO: Add the repository public key
+     # cp ... $BUILD_ROOT/$TOPDIR/$LIVEBUILD_ROOT/config/archives/debian.key
+ 
+-    if [ -x $BUILD_ROOT/usr/lib/build/livebuild_pre_run ] ; then
++    if [ -x $BUILD_ROOT/usr/libexec/suse-build/livebuild_pre_run ] ; then
+       echo "Running OBS build livebuild_pre_run hook"
+-      chroot $BUILD_ROOT su -c "/usr/lib/build/livebuild_pre_run" - root \
++      chroot $BUILD_ROOT su -c "/usr/libexec/suse-build/livebuild_pre_run" - 
root \
+           < /dev/null || cleanup_and_exit 1
+     fi
+ 
+diff --git a/build-recipe-spec b/build-recipe-spec
+index b120f02..7a0b424 100644
+--- a/build-recipe-spec
++++ b/build-recipe-spec
+@@ -194,10 +194,10 @@ recipe_run_rpmlint() {
+ }
+ 
+ recipe_compare_oldpackages() {
+-    if test -x "$BUILD_ROOT/usr/lib/build/same-build-result.sh" ; then 
++    if test -x "$BUILD_ROOT/usr/libexec/suse-build/same-build-result.sh" ; 
then 
+       echo "... comparing built packages with the former built"
+       mount -n -tproc none $BUILD_ROOT/proc 2> /dev/null
+-      if chroot $BUILD_ROOT /usr/lib/build/same-build-result.sh 
/.build.oldpackages "$TOPDIR/RPMS" "$TOPDIR/SRPMS"; then 
++      if chroot $BUILD_ROOT /usr/libexec/suse-build/same-build-result.sh 
/.build.oldpackages "$TOPDIR/RPMS" "$TOPDIR/SRPMS"; then 
+           chroot $BUILD_ROOT touch /.build/.same_result_marker
+           # XXX: dirty build service hack. fix bs_worker. Search for
+           # 'same_result_marker' for traces of a first try to get rid of this
+@@ -210,9 +210,9 @@ recipe_compare_oldpackages() {
+ }
+ 
+ recipe_create_deltarpms() {
+-    if test -x "$BUILD_ROOT/usr/bin/makedeltarpm" -a -x 
$BUILD_ROOT/usr/lib/build/mkdrpms ; then
++    if test -x "$BUILD_ROOT/usr/bin/makedeltarpm" -a -x 
$BUILD_ROOT/usr/libexec/suse-build/mkdrpms ; then
+       echo "... creating delta rpms"
+       ds=("$BUILD_ROOT/$TOPDIR"/RPMS/* "$BUILD_ROOT$TOPDIR/SRPMS")
+-      chroot $BUILD_ROOT /usr/lib/build/mkdrpms /.build.oldpackages 
"${ds[@]#$BUILD_ROOT}"
++      chroot $BUILD_ROOT /usr/libexec/suse-build/mkdrpms /.build.oldpackages 
"${ds[@]#$BUILD_ROOT}"
+     fi
+ }
 diff --git a/changelog2spec b/changelog2spec
 old mode 100755
 new mode 100644
@@ -105,6 +219,19 @@
  }
  
  use Build;
+diff --git a/createzyppdeps b/createzyppdeps
+index 9abf693..e78937c 100755
+--- a/createzyppdeps
++++ b/createzyppdeps
+@@ -1,7 +1,7 @@
+ #!/usr/bin/perl -w
+ 
+ BEGIN {
+-  unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
++  unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build');
+ }
+ 
+ use strict;
 diff --git a/download b/download
 old mode 100755
 new mode 100644
@@ -123,7 +250,7 @@
 diff --git a/expanddeps b/expanddeps
 old mode 100755
 new mode 100644
-index 48116d8..67caa5f
+index 48116d8..04b9c20
 --- a/expanddeps
 +++ b/expanddeps
 @@ -1,7 +1,7 @@
@@ -135,6 +262,15 @@
  }
  
  use strict;
+@@ -10,7 +10,7 @@ use Build;
+ 
+ my ($dist, $rpmdeps, $archs, $configdir, $useusedforbuild, $installonly, 
$noinstall);
+ 
+-$configdir = ($::ENV{'BUILD_DIR'} || '/usr/lib/build') . '/configs';
++$configdir = ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build') . '/configs';
+ 
+ while (@ARGV)  {
+   if ($ARGV[0] eq '--dist') {
 diff --git a/getbinaryid b/getbinaryid
 old mode 100755
 new mode 100644
@@ -166,7 +302,7 @@
  export YAST_IS_RUNNING=instsys
  
 diff --git a/initvm.c b/initvm.c
-index 55686ea..17ce70c 100644
+index 55686ea..f922eb4 100644
 --- a/initvm.c
 +++ b/initvm.c
 @@ -54,9 +54,10 @@ const int n_fields = 8;
@@ -178,7 +314,7 @@
  #define BINFMT_REGF_0         "/.build/qemu-reg"
 -#define BINFMT_REGF_1         "/usr/lib/build/qemu-reg"
 +#define BINFMT_REGF_1         "/usr/libexec/suse-build/qemu-reg"
-+#define BINFMT_REGF_2         "/usr/lib/build/qemu-reg"
++#define BINFMT_REGF_2         "/usr/libexec/suse-build/qemu-reg"
  #define BUILD                 "/.build/build"
  
  /* useful constant arrays */
@@ -216,7 +352,7 @@
 diff --git a/order b/order
 old mode 100755
 new mode 100644
-index 2236b46..fd2ebe7
+index 2236b46..246b9fd
 --- a/order
 +++ b/order
 @@ -1,7 +1,7 @@
@@ -228,6 +364,37 @@
  }
  
  use Build;
+@@ -9,7 +9,7 @@ use strict;
+ 
+ my ($dist, $archs, $configdir, $manifest);
+ 
+-$configdir = ($::ENV{'BUILD_DIR'} || '/usr/lib/build') . '/configs';
++$configdir = ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build') . '/configs';
+ 
+ while (@ARGV)  {
+   if ($ARGV[0] eq '--dist') {
+diff --git a/queryconfig b/queryconfig
+index f4d383c..bb1e018 100755
+--- a/queryconfig
++++ b/queryconfig
+@@ -1,7 +1,7 @@
+ #!/usr/bin/perl -w
+ 
+ BEGIN {
+-  unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
++  unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build');
+ }
+ 
+ use strict;
+@@ -10,7 +10,7 @@ use Build;
+ 
+ my ($dist, $archs, $configdir, $debug, $type, $argument);
+ 
+-$configdir = ($::ENV{'BUILD_DIR'} || '/usr/lib/build') . '/configs';
++$configdir = ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build') . '/configs';
+ 
+ while (@ARGV)  {
+   if ($ARGV[0] eq '--dist') {
 diff --git a/spectool b/spectool
 old mode 100755
 new mode 100644
@@ -246,7 +413,7 @@
 diff --git a/substitutedeps b/substitutedeps
 old mode 100755
 new mode 100644
-index 54e540c..1f7f7ab
+index 54e540c..d327c42
 --- a/substitutedeps
 +++ b/substitutedeps
 @@ -1,7 +1,7 @@
@@ -258,3 +425,25 @@
  }
  
  use strict;
+@@ -19,7 +19,7 @@ sub expand {
+ 
+ my ($dist, $buildroot, $rpmdeps, $archs, $configdir, $release, $changelog);
+ 
+-$configdir = ($::ENV{'BUILD_DIR'} || '/usr/lib/build') . '/configs';
++$configdir = ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build') . '/configs';
+ 
+ while (@ARGV)  {
+   if ($ARGV[0] eq '--root') {
+diff --git a/test/common b/test/common
+index 45c0da2..86a062b 100644
+--- a/test/common
++++ b/test/common
+@@ -22,7 +22,7 @@ if [ -e ${0%/*}/config.local ]; then
+       . ${0%/*}/config.local
+ fi
+ 
+-: ${BUILD_DIR:=/usr/lib/build}
++: ${BUILD_DIR:=/usr/libexec/suse-build}
+ 
+ #if [ ! -e "$build_vm_img" ]; then
+ #     sudo dd if=/dev/zero of="$build_vm_img" bs=512 count=0 
seek=$((build_vm_image_size*2*1024))




Reply via email to