Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package brp-check-suse for openSUSE:Factory 
checked in at 2021-05-21 21:49:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/brp-check-suse (Old)
 and      /work/SRC/openSUSE:Factory/.brp-check-suse.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "brp-check-suse"

Fri May 21 21:49:42 2021 rev:70 rq:893668 version:84.87+git20210517.7005a76

Changes:
--------
--- /work/SRC/openSUSE:Factory/brp-check-suse/brp-check-suse.changes    
2021-04-23 17:49:36.742689646 +0200
+++ /work/SRC/openSUSE:Factory/.brp-check-suse.new.2988/brp-check-suse.changes  
2021-05-21 21:49:46.278294284 +0200
@@ -1,0 +2,8 @@
+Mon May 17 09:22:27 UTC 2021 - r...@suse.de
+
+- Update to version 84.87+git20210517.7005a76:
+  * support cross arch builds
+  * Makefile only set CXXFLAGS and CXX if not set in env yet
+  * brp-25-symlink: Follow deeper symlinks to avoid false positives
+
+-------------------------------------------------------------------

Old:
----
  brp-check-suse-84.87+git20210420.a4765d7.tar.xz

New:
----
  brp-check-suse-84.87+git20210517.7005a76.tar.xz

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

Other differences:
------------------
++++++ brp-check-suse.spec ++++++
--- /var/tmp/diff_new_pack.00tOkD/_old  2021-05-21 21:49:46.794292147 +0200
+++ /var/tmp/diff_new_pack.00tOkD/_new  2021-05-21 21:49:46.798292131 +0200
@@ -23,7 +23,7 @@
 License:        GPL-2.0-or-later
 Group:          Development/Tools/Building
 Requires:       perl
-Version:        84.87+git20210420.a4765d7
+Version:        84.87+git20210517.7005a76
 Release:        0
 URL:            https://github.com/openSUSE/brp-check-suse
 BuildRequires:  gcc-c++

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.00tOkD/_old  2021-05-21 21:49:46.834291982 +0200
+++ /var/tmp/diff_new_pack.00tOkD/_new  2021-05-21 21:49:46.838291964 +0200
@@ -1,5 +1,5 @@
 <servicedata>
   <service name="tar_scm">
     <param name="url">git://github.com/openSUSE/brp-check-suse.git</param>
-  <param 
name="changesrevision">a4765d7748331b102a367eefe2f9c5d774998ed0</param></service>
+  <param 
name="changesrevision">7005a767f6f0cc87fa17ea9a10084e64d6e7fd96</param></service>
 </servicedata>
\ No newline at end of file

++++++ brp-check-suse-84.87+git20210420.a4765d7.tar.xz -> 
brp-check-suse-84.87+git20210517.7005a76.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/brp-check-suse-84.87+git20210420.a4765d7/brp-15-strip-debug 
new/brp-check-suse-84.87+git20210517.7005a76/brp-15-strip-debug
--- old/brp-check-suse-84.87+git20210420.a4765d7/brp-15-strip-debug     
2021-04-20 17:08:35.000000000 +0200
+++ new/brp-check-suse-84.87+git20210517.7005a76/brp-15-strip-debug     
2021-05-17 11:21:53.000000000 +0200
@@ -26,7 +26,7 @@
 sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*$/\1/p' |  while read f; do
        mode="$(stat -c %a "$f")"
        chmod u+w "$f" || :
-       strip -p --strip-debug --discard-locals -R .comment -R .note "$f" || :
+       ${CROSS_COMPILE}strip -p --strip-debug --discard-locals -R .comment -R 
.note "$f" || :
        chmod "$mode" "$f"
 done
 
@@ -35,7 +35,7 @@
        case $(file "$f") in
            *"current ar"*|*ELF*", not stripped"*)
                chmod u+w "$f" || :
-               strip -p --discard-locals -R .comment -R .note -R .gnu.lto_* -R 
.gnu.debuglto_* -N __gnu_lto_v1 "$f" || :
+               ${CROSS_COMPILE}strip -p --discard-locals -R .comment -R .note 
-R .gnu.lto_* -R .gnu.debuglto_* -N __gnu_lto_v1 "$f" || :
                ;;
            *)
                echo "WARNING: Strange looking archive $(file $f)"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/brp-check-suse-84.87+git20210420.a4765d7/brp-25-symlink 
new/brp-check-suse-84.87+git20210517.7005a76/brp-25-symlink
--- old/brp-check-suse-84.87+git20210420.a4765d7/brp-25-symlink 2021-04-20 
17:08:35.000000000 +0200
+++ new/brp-check-suse-84.87+git20210517.7005a76/brp-25-symlink 2021-05-17 
11:21:53.000000000 +0200
@@ -28,6 +28,44 @@
 
 had_errors=0
 
+follow() {
+# poor man's endless recursion checker
+    follow=0
+    _follow $1
+}
+
+_follow() {
+    local file=$1
+    local base=$(basename $file)
+    local dir=$(dirname $file)
+    local link
+
+    test $(( ++follow )) -gt 16 && return 1
+    test "$dir" = "/" && return 1
+    if test -L "$dir"; then
+       link=$(readlink $dir) || return 1
+    elif test -L "./$dir"; then
+       link=$(readlink ./$dir) || return 1
+    fi
+    if test -n "$link"; then
+       if [[ $link =~ ^/ ]]; then
+           dir=$link
+       else
+           dir=$(dirname $dir)/$link
+           dir=$(realpath -m $dir)
+       fi
+       if test -e ./$dir/$base || test -e $dir/$base; then
+           echo $dir/$base
+          return 0
+       fi
+    fi
+    if dir=$(_follow $dir) && test -e ./$dir/$base -o -e $dir/$base; then
+       echo $dir/$base
+       return 0
+    fi
+    return 1
+}
+
 while IFS="|" read link link_orig link_dest link_absolut
 do
     if test "$link" = "$link_dest"; then
@@ -61,12 +99,14 @@
             ;;
         *)
             if test ! -L ./"$link_absolut" && test ! -e "$link_absolut" && 
test ! -e ./"$link_absolut"; then
-                echo "ERROR: link target doesn't exist (neither in build root 
nor in installed system):"
-                echo "  $link -> $link_orig"
-                echo "Add the package providing the target to BuildRequires 
and Requires"
-                if [ "$NO_BRP_STALE_LINK_ERROR" != "yes" ]; then
-                    had_errors=1
-                    continue
+               if ! follow $link_absolut >/dev/null; then
+                    echo "ERROR: link target doesn't exist (neither in build 
root nor in installed system):"
+                    echo "  $link -> $link_orig"
+                    echo "Add the package providing the target to 
BuildRequires and Requires"
+                    if [ "$NO_BRP_STALE_LINK_ERROR" != "yes" ]; then
+                       had_errors=1
+                       continue
+                   fi
                 fi
             fi
             ;;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/brp-check-suse-84.87+git20210420.a4765d7/brp-40-rootfs 
new/brp-check-suse-84.87+git20210517.7005a76/brp-40-rootfs
--- old/brp-check-suse-84.87+git20210420.a4765d7/brp-40-rootfs  2021-04-20 
17:08:35.000000000 +0200
+++ new/brp-check-suse-84.87+git20210517.7005a76/brp-40-rootfs  2021-05-17 
11:21:53.000000000 +0200
@@ -20,7 +20,7 @@
        find "$RPM_BUILD_ROOT"/{bin,sbin} -type f -exec file {} + 2>/dev/null | 
tee /tmp/find | \
        sed -n -e 
's/^\(.*\):[[:space:]]*ELF.*/\1/p;/\/bin\/rpm/d;/\/sbin\/install-info/d' \
            -e '/shared 
object/{/\/\(security\|evms\|libnss_\)\//d;s/^\(.*\):[[:space:]]*ELF.*/\1/p}' | 
\
-       xargs -r  ldd | sed -nf /usr/lib/rpm/brp-rootfs.data/ldd.sed | \
+       xargs -r ${CROSS_COMPILE}ldd | sed -nf 
/usr/lib/rpm/brp-rootfs.data/ldd.sed | \
        sed -n "/\/opt/s@^\([^:]\+\):.*\(/opt/[^[:blank:]]\+\).*@binary \1 is 
linked against libraries in /opt (\2)@" | \
        grep 'is linked against libraries in /opt'
     } ; then
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/brp-check-suse-84.87+git20210420.a4765d7/brp-75-ar 
new/brp-check-suse-84.87+git20210517.7005a76/brp-75-ar
--- old/brp-check-suse-84.87+git20210420.a4765d7/brp-75-ar      2021-04-20 
17:08:35.000000000 +0200
+++ new/brp-check-suse-84.87+git20210517.7005a76/brp-75-ar      2021-05-17 
11:21:53.000000000 +0200
@@ -14,5 +14,5 @@
 fi
 
 while read f; do
-       ! file "$f" | grep -q "ar archive" || objcopy -D "$f" || true
+       ! file "$f" | grep -q "ar archive" || ${CROSS_COMPILE}objcopy -D "$f" 
|| true
 done < <(find "$RPM_BUILD_ROOT" -type f -name "*.a" -print)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/brp-check-suse-84.87+git20210420.a4765d7/prg-brp-symlink/Makefile 
new/brp-check-suse-84.87+git20210517.7005a76/prg-brp-symlink/Makefile
--- old/brp-check-suse-84.87+git20210420.a4765d7/prg-brp-symlink/Makefile       
2021-04-20 17:08:35.000000000 +0200
+++ new/brp-check-suse-84.87+git20210517.7005a76/prg-brp-symlink/Makefile       
2021-05-17 11:21:53.000000000 +0200
@@ -1,5 +1,5 @@
-CXXFLAGS=-O2 -Wall
-CXX=g++
+CXXFLAGS ?= -O2 -Wall
+CXX ?= g++
 
 all: brp-symlink
 

Reply via email to