Hello community,

here is the log from the commit of package post-build-checks for 
openSUSE:Leap:15.2 checked in at 2020-03-20 05:52:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/post-build-checks (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.post-build-checks.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "post-build-checks"

Fri Mar 20 05:52:33 2020 rev:29 rq:782199 version:84.87+git20200110.2d02f07

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/post-build-checks/post-build-checks.changes    
2020-02-16 18:26:03.998647204 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.post-build-checks.new.3160/post-build-checks.changes
  2020-03-20 05:52:45.792057759 +0100
@@ -2 +2 @@
-Mon Jan 20 16:51:12 CET 2020 - [email protected]
+Fri Jan 10 11:45:01 UTC 2020 - [email protected]
@@ -4,13 +4,41 @@
-- add patches from git to allow a successful build of rpm-ndb
-  - pbc-git-01-6edb1a2b83562c0e9391e251b123dadb2c5a6fc9.patch
-    99-check-remove-rpms: preserve libgomp variants
-  - pbc-git-02-e090a3d7738ee8752dc743068a192607d172a391.patch
-    Detect name of coreutils package and don't remove it
-    Handle cases of alterantive implemention.
-  - pbc-git-03-f347f2e1ffb7a22e1959d7435439dda2525f5176.patch
-    Tweaks to make rpm-ndb build
-    - we need to convert the rpm database from bdb to ndb before
-      rpm-ndb is installed because rpm-ndb cannot read a berkeley
-      db database
-    - we must not deinstall rpm-ndb because it is needed for
-      baselibs generation
+- Update to version 84.87+git20200110.2d02f07:
+  * Tweaks to make rpm-ndb build
+  * Detect name of coreutils package and don't remove it
+- restore correct version
+
+-------------------------------------------------------------------
+Tue Jan 07 10:27:55 UTC 2020 - [email protected]
+
+- Update to version 84.88+git20200107.dc3b3a3:
+  * 99-check-remove-rpms: preserve libgomp variants
+
+-------------------------------------------------------------------
+Tue Jul 16 11:32:46 UTC 2019 - [email protected]
+
+- Update to version 84.88+git20190716.5a0e034:
+  * Remove unused tests.
+
+-------------------------------------------------------------------
+Fri Jul 12 10:06:12 UTC 2019 - Martin Liška <[email protected]>
+
+- Disable tests as GCC checks are gone.
+
+-------------------------------------------------------------------
+Thu Jul 11 15:57:33 UTC 2019 - [email protected]
+
+- Update to version 84.88+git20190711.2b1c662:
+  https://github.com/openSUSE/post-build-checks/pull/26
+  * Remove GCC check output check.
+
+-------------------------------------------------------------------
+Tue Jul 02 13:25:27 UTC 2019 - [email protected]
+
+- Update to version 84.88+git20190702.429d0e0:
+  * Completly don't use ghosts like files
+  * Ignore ghosts
+
+-------------------------------------------------------------------
+Thu Jun 20 11:54:39 UTC 2019 - Martin Liška <[email protected]>
+
+- Disable LTO as some warnings are emitted late and
+  disappear with usage of -c (boo#1138834).

Old:
----
  pbc-git-01-6edb1a2b83562c0e9391e251b123dadb2c5a6fc9.patch
  pbc-git-02-e090a3d7738ee8752dc743068a192607d172a391.patch
  pbc-git-03-f347f2e1ffb7a22e1959d7435439dda2525f5176.patch
  post-build-checks-84.88+git20181015.ceb5c96.tar.xz

New:
----
  post-build-checks-84.87+git20200110.2d02f07.tar.xz

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

Other differences:
------------------
++++++ post-build-checks.spec ++++++
--- /var/tmp/diff_new_pack.YviyE4/_old  2020-03-20 05:52:46.108057970 +0100
+++ /var/tmp/diff_new_pack.YviyE4/_new  2020-03-20 05:52:46.108057970 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package post-build-checks
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,18 @@
 #
 
 
-%define version_unconverted 84.88+git20181015.ceb5c96
+%define version_unconverted 84.87+git20200110.2d02f07
 
 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.88+git20181015.ceb5c96
+Version:        84.87+git20200110.2d02f07
 Release:        0
 PreReq:         aaa_base permissions sed
 Requires:       aaa_base-malloccheck
 Requires:       gawk
-Url:            https://github.com/openSUSE/post-build-checks
+URL:            https://github.com/openSUSE/post-build-checks
 #
 # Note: don't rebuild this manually. Instead submit your patches
 # for inclusion in the git repo!
@@ -36,9 +36,6 @@
 # osc service dr
 #
 Source0:        %{name}-%{version}.tar.xz
-Patch0:         pbc-git-01-6edb1a2b83562c0e9391e251b123dadb2c5a6fc9.patch
-Patch1:         pbc-git-02-e090a3d7738ee8752dc743068a192607d172a391.patch
-Patch2:         pbc-git-03-f347f2e1ffb7a22e1959d7435439dda2525f5176.patch
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
@@ -55,11 +52,9 @@
 
 %prep
 %setup -q
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
 
 %build
+%define _lto_cflags %{nil}
 # nothing to do
 
 %install
@@ -73,12 +68,6 @@
 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*
 
-%check
-for i in tests/xx*.c
-do
-       (echo "Executing(%%build)" ; gcc $RPM_OPT_FLAGS -c $i 2>&1)| 
checks-data/check_gcc_output 2>&1|grep "^[WE]"
-done
-
 %post
 # do nothing when not in a build chroot
 if ! test -e /.buildenv; then

++++++ _service ++++++
--- /var/tmp/diff_new_pack.YviyE4/_old  2020-03-20 05:52:46.128057984 +0100
+++ /var/tmp/diff_new_pack.YviyE4/_new  2020-03-20 05:52:46.128057984 +0100
@@ -1,7 +1,7 @@
 <services>
   <service name="tar_scm" mode="disabled">
-    <param name="version">84.88</param>
-    <param name="versionformat">84.88+git%cd.%h</param>
+    <param name="version">84.87</param>
+    <param name="versionformat">84.87+git%cd.%h</param>
     <param name="url">git://github.com/openSUSE/post-build-checks.git</param>
     <param name="scm">git</param>
     <param name="exclude">.git</param>

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.YviyE4/_old  2020-03-20 05:52:46.140057991 +0100
+++ /var/tmp/diff_new_pack.YviyE4/_new  2020-03-20 05:52:46.140057991 +0100
@@ -1,5 +1,5 @@
 <servicedata>
   <service name="tar_scm">
     <param name="url">git://github.com/openSUSE/post-build-checks.git</param>
-  <param 
name="changesrevision">137cb2970fded9e1da947ae920e3ec611002c830</param></service>
+  <param 
name="changesrevision">f347f2e1ffb7a22e1959d7435439dda2525f5176</param></service>
 </servicedata>
\ No newline at end of file

++++++ post-build-checks-84.88+git20181015.ceb5c96.tar.xz -> 
post-build-checks-84.87+git20200110.2d02f07.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/checks/00-check-install-rpms 
new/post-build-checks-84.87+git20200110.2d02f07/checks/00-check-install-rpms
--- 
old/post-build-checks-84.88+git20181015.ceb5c96/checks/00-check-install-rpms    
    2018-10-15 14:30:56.000000000 +0200
+++ 
new/post-build-checks-84.87+git20200110.2d02f07/checks/00-check-install-rpms    
    2020-01-10 12:43:37.000000000 +0100
@@ -5,6 +5,15 @@
 test -d $BUILD_ROOT/.build.packages && TOPDIR=/.build.packages
 export YAST_IS_RUNNING="instsys"
 RPM_FILE_LIST=(`find $BUILD_ROOT$TOPDIR/RPMS -type f -name "*.rpm"`)
+for rpm in $RPM_FILE_LIST ; do
+  case ${rpm##*/} in
+    rpm-ndb-*) 
+      echo "converting rpm database to ndb"
+      chroot $BUILD_ROOT rpmdb --define '_db_backend ndb' --rebuilddb
+      ;;
+  esac
+done
+
 ADDITIONAL_PARAMS=
 test "$ABUILD_INIT_WITH_IGNORE_ARCH" = true && 
ADDITIONAL_PARAMS="$ADDITIONAL_PARAMS --ignorearch"
 chroot $BUILD_ROOT rpm $ADDITIONAL_PARAMS --force --nodeps -Uv 
${RPM_FILE_LIST[*]#$BUILD_ROOT} || {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/checks/50-check-gcc-output 
new/post-build-checks-84.87+git20200110.2d02f07/checks/50-check-gcc-output
--- old/post-build-checks-84.88+git20181015.ceb5c96/checks/50-check-gcc-output  
2018-10-15 14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/checks/50-check-gcc-output  
1970-01-01 01:00:00.000000000 +0100
@@ -1,23 +0,0 @@
-#!/bin/bash
-# Check for dangerous compiler warnings
-#
-
-test -z "$LOGFILE" && LOGFILE=$BUILD_ROOT/.build.log
-
-case $PNAME in
-    kernel-*) exit 0 ;;
-esac
-
-if [ -f $LOGFILE ]; then
-
-  echo "... testing for serious compiler warnings"
-  echo "    (using /usr/lib/build/checks-data/check_gcc_output)"
-  echo "    (using $LOGFILE)"
-
-  $BUILD_ROOT/usr/lib/build/checks-data/check_gcc_output $LOGFILE
-  if [ $? -ne 0 ]; then
-    exit 1;
-  fi
-fi
-
-exit 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/checks/99-check-remove-rpms 
new/post-build-checks-84.87+git20200110.2d02f07/checks/99-check-remove-rpms
--- old/post-build-checks-84.88+git20181015.ceb5c96/checks/99-check-remove-rpms 
2018-10-15 14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/checks/99-check-remove-rpms 
2020-01-10 12:43:37.000000000 +0100
@@ -46,6 +46,8 @@
 RPM_ERASE_LIST=
 RPM_FILE_LIST=(`find $BUILD_ROOT$TOPDIR/RPMS -type f -name "*.rpm"`)
 
+coreutils=`chroot $BUILD_ROOT rpm --qf '%{NAME}\n' -qf 
/usr/bin/{date,cat,rm,chown}|sort -u`
+
 for RPM in `reorder "${RPM_FILE_LIST[@]}"`; do
     PKG=${RPM##*/}
     PKG=${PKG%-*-*.*.rpm}
@@ -65,9 +67,13 @@
        echo "(keeping $PKG because of $N)"
        continue
     fi
-    # Do not remove libgcc or libstdc++ variants
+    # Do not remove libgcc/libstdc++/libgomp variants or rpm/rpm-build/rpm-ndb
     case ${PKG} in
-    libgcc*|libstdc++*)
+    libgcc*|libgomp*|libstdc++*)
+       ;;
+    $coreutils)
+       ;;
+    rpm|rpm-build|rpm-ndb)
        ;;
     *)
        RPM_ERASE_LIST="$RPM_ERASE_LIST $PKG"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/checks-data/check_gcc_output 
new/post-build-checks-84.87+git20200110.2d02f07/checks-data/check_gcc_output
--- 
old/post-build-checks-84.88+git20181015.ceb5c96/checks-data/check_gcc_output    
    2018-10-15 14:30:56.000000000 +0200
+++ 
new/post-build-checks-84.87+git20200110.2d02f07/checks-data/check_gcc_output    
    1970-01-01 01:00:00.000000000 +0100
@@ -1,251 +0,0 @@
-#!/usr/bin/perl -w
-# vim:sw=4:et:
-
-use strict;
-
-# Re-adopted 2007 by Dirk Mueller, used code from
-# 2004 by Mads Martin Joergensen inspired by the original by
-# Andi Kleen, SuSE Labs who
-# based it on a python script by David Mosberger which was
-# Copyright (c) 2004 Hewlett-Packard Development Company, L.P.
-#      David Mosberger <[email protected]>
-
-# HOWTO:
-#   a) add a new regexp to %warn_checks. Key is regexp, Value is identifier
-#   b) optional: add an informative message to %warn_desc, Key is identifier, 
Value is message
-#   c) add severity to %warn_severity: Key is identifier, Value is 'E' (error) 
'W' (warning) or 'D' (debug)
-
-my %warn_checks = (
-    'warning:.*makes pointer from integer without a cast' => 
"64bit-portability-issue",
-    'warning:.*operation on .* may be undefined' => "sequence-point",
-    'warning:.*mathematical meaning' => "mathmeaning",
-    '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",
-    'warning:.*call to .*strncat.* might overflow destination buffer' => 
"bufferoverflowstrncat",
-    'warning:.*(called with bigger.*destination buffer)|(writing .* bytes into 
a region of size .* overflows the destination)' => "destbufferoverflow",
-    'warning:.*is used uninitialized in this function' => 
"uninitialized-variable",
-    'warning:.*too few arguments for format' => "missing-arg-for-fmt-string",
-    "warning:.*implicit 
[^\']*'(recv|recvfrom|read|pread|pread64|readlink|getwd|getcwd|fgets|fgets_unlock|strncat|strcat|memmove|memcpy|mempcpy|memcmp|strpcpy|strcpy|strchr|strncpy|printf|sprintf|snprintf|vprintf|vsprintf|vsnprintf|fprintf|vfprintf|gets|memset|bzero|bcopy|strlen|strcmp|wcscpy|wcpcpy|wcsncpy|wcpncpy|wcscat|swprintf|vswprintf|fgetws|wcsrtombs|mbsrtowcs|wcrtomb|wcsnrtombs|ptsname|realpath|wctomb|mbstowcs|ttyname_r|getlogin_r|getgroups|confstr|gethostname|getdomainname|puts|seteuid|setuid|setresuid|setgid|setegid|execvp|setgroups|setfsuid|setfsgid|setresgid|setresuid|pwrite|pread)'"
 => "implicit-fortify-decl",
-    'warning:.*memset used with constant zero length parameter' => 
"memset-with-zero-length",
-    'warning:.*comparison with string literal' => "stringcompare",
-    "warning:.*'return' with no value, in function returning non-void" => 
"voidreturn",
-    'warning:.*array subscript is (below|above) array bounds' => 
"arraysubscript",
-    "warning:.*implicit 
[^\']*'(time|unlink|isspace|qsort|finite|abs|wait3|iswprint|toupper|tolower|fileno|ftruncate|fchmod|wcwidth|isalnum|isspace|utime|access|mkdir|fputchar|close|atoi|free|geteuid|getuid|getresgid|getresuid|getopt|getpgid|srand48|initgroups|rand|ctime|putenv|fork|open|dup|pipe|ioctl|mkstemp|dirname|basename|isdigit|inet_addr|asprintf|getsid|realloc|wait|gettext|write|isatty|tputs|strtol|strtod|spawn|vfork|kill|clearenv|strerror|strdup|strcmp|openpty|ntohl|iopl|outl|gettimeofday|malloc|strncmp|printf|flock|abort|fclose|fabs|cos|inet_aton|atoi|strstr|sin|system|waitpid|dup2|lseek|strlcat|shutdown|calloc|sigset|rename|chdir|strcasecmp|strlcpy)'"
 => "implicit-pointer-decl"
-);
-
-my %warn_desc = (
-    "strict-aliasing-punning" =>  "Program is likely to break with new gcc. 
Try -fno-strict-aliasing.\n",
-    "sequence-point" => "Program causes undefined operation\n(likely same 
variable used twice" .
-            " and post/pre incremented in the same expression).\n" .
-            "e.g. x = x++; Split it in two operations.",
-    "mathmeaning" => "Program uses operation a <= b <= c, which is not well 
defined.\n",
-    "no-return-in-nonvoid-function" => "Program returns random data in a 
function",
-    "missing-sentinel" => "Function call needs to pass NULL-pointer as last 
argument",
-    "bufferoverflow" => "Statement is overflowing a buffer",
-    "bufferoverflowstrncat" => "Statement might be overflowing a buffer in 
strncat. Common mistake:\n" .
-            "BAD: strncat(buffer,charptr,sizeof(buffer)) is wrong, it takes 
the left over size as 3rd argument\n" .
-            "GOOD: strncat(buffer,charptr,sizeof(buffer)-strlen(buffer)-1)\n",
-    "destbufferoverflow" => "Statement might potentially overflow a 
destination buffer, where a size larger\n" .
-       " than the actual buffer was specified\n",
-    "missing-arg-for-fmt-string" => "Function call is passing too few 
arguments to a *printf function.\n",
-    "uninitialized-variable" => "Program is using uninitialized 
variables.\nNote the difference between \"is used\" and \"may be used\"",
-    "format-security" => "Function call uses possibly exploitable format 
strings\n",
-    "stringcompare" => "Expression compares a char* pointer with a string 
literal.\n" .
-        "Usually a strcmp() was intended by the programmer\n",
-    "unchecked-return-value" => "Program ignores return value at critical 
places",
-    "memset-with-zero-length" => "There are likely swapped arguments in a 
memset\n" .
-        "Check that the function arguments match: 
memset(ptr,BYTEVALUE,LENGTH)\n",
-
-    "implicit-fortify-decl" =>  "Program is using implicit definitions of 
special functions.\n" .
-                   "these functions need to use their correct prototypes to 
allow\n" .
-                   "the lightweight buffer overflow checking to work.\n" .
-                   "  - Implicit memory/string functions need #include 
<string.h>.\n".
-                   "  - Implicit *printf functions need #include <stdio.h>.\n" 
.
-                   "  - Implicit *printf functions need #include <stdio.h>.\n" 
.
-                   "  - Implicit *read* functions need #include <unistd.h>.\n" 
.
-                   "  - Implicit *recv* functions need #include 
<sys/socket.h>.\n",
-     "no-rpm-opt-flags" => "File is compiled without RPM_OPT_FLAGS",
-
-     "voidreturn" => "A function uses a 'return;' statement, but has actually 
a value\n" .
-               "to return, like an integer ('return 42;') or similar.\n",
-     "arraysubscript" => "A function overflows or underflows an array access. 
This could be a real error,\n" .
-                         "but occasionaly this condition is also misdetected 
due to loop unrolling or strange pointer\n" .
-                        "handling. So this is warning only, please review.\n",
-    "implicit-pointer-decl" =>  "Program is using implicit definitions of 
functions getting\n" .
-                  "pointers or implemented by macros. These functions need to 
use their\n" .
-                  "correct prototypes to allow correct argument passing on 
e.g. x86_64 .\n" .
-                   "  - Implicit memory/string functions need #include 
<string.h>.\n".
-                   "  - Implicit *printf functions need #include <stdio.h>.\n" 
.
-                   "  - Implicit *printf functions need #include <stdio.h>.\n" 
.
-                   "  - Implicit *read* functions need #include <unistd.h>.\n" 
.
-                   "  - Implicit *recv* functions need #include 
<sys/socket.h>.\n",
-);
-
-my %warn_severity = (
-    "64bit-portability-issue" => 'E',
-    "strict-aliasing-punning" => 'W',
-    "no-return-in-nonvoid-function" => 'E',
-    "missing-sentinel" => 'E',
-    "bufferoverflow" => 'E',
-    "destbufferoverflow" => 'E',
-    "memset-with-zero-length" => 'W',
-    "missing-arg-for-fmt-string" => 'W',
-    "implicit-fortify-decl" => 'W',
-    "format-security" => 'W',
-    "unchecked-return-value" => 'E',
-    "mathmeaning" => 'E',
-    "no-rpm-opt-flags" => 'W',
-    "sequence-point" => 'W',
-    "bufferoverflowstrncat" => 'E',
-    "stringcompare" => 'E',
-    "uninitialized-variable" => 'W',
-    "voidreturn" => 'W',
-    "arraysubscript" => 'W',
-    "implicit-pointer-decl" => 'W',
-);
-
-#----------------------------------------------------------------------
-
-my %warnings = ();
-
-my $inline_location = "";
-
-sub add_warning($$)
-{
-    my ($warntype, $warnline) = @_;
-
-    my ($filename, $linenum) = (split /:/, $warnline)[0,1];
-
-    ($filename, $linenum) = ($1, $2)
-        if ($warnline =~ m/\/usr\/include\/bits/ &&
-            $inline_location =~ m/ at (\S+):(\d+)/);
-
-    defined($filename) or die;
-    defined($warnline) or die;
-    defined($warntype) or die;
-    my $len = defined($warnings{$warntype}{$filename})
-        ? length($warnings{$warntype}{$filename}) : 0;
-
-    if($len > 0) {
-        $warnings{$warntype}{$filename} .= ", $linenum"
-        if ($warnings{$warntype}{$filename} !~ /\Q$linenum\E/);
-    } else {
-        $warnings{$warntype}{$filename} = $linenum;
-    }
-}
-
-my $warn_package = $ENV{'PNAME'} || "build";
-
-sub print_warning($)
-{
-    my ($warntype) = @_;
-    return if (!defined($warnings{$warntype}));
-    if (defined($warn_desc{$warntype})) {
-        my $prefix = "\nI:";
-        foreach my $l (split /^/, $warn_desc{$warntype}) {
-            chomp $l;
-            print STDERR "$prefix $l\n";
-            $prefix = "  ";
-        }
-    }
-
-    foreach my $filename (sort keys %{$warnings{$warntype}}) {
-        print STDERR "$warn_severity{$warntype}: $warn_package $warntype 
$filename:$warnings{$warntype}{$filename}\n";
-    }
-}
-
-my $warn_monster;
-
-sub analyze_for_warning($)
-{
-    my ($line) = @_;
-    $line =~ s/\e\[[\d;]*[a-zA-Z]//g;
-
-    # inlined from 'void log_status_write(UPSINFO*, char*, ...)' at 
reports.c:110
-    $inline_location = $line if ($line =~ /^\s+inlined from .* at/);
-    if ($line =~ /$warn_monster/o) {
-        # somehow I cannot precompile the regex directly, though it would
-        # help here
-        foreach my $w (keys %warn_checks) {
-            if ($line =~ $w) {
-                &add_warning($warn_checks{$w}, $_);
-                last;
-            }
-        }
-    }
-}
-
-sub sanity_check()
-{
-    foreach my $w(values %warn_checks) {
-        die "undefined severity for $w"
-            if (!defined($warn_severity{$w}));
-        die "warntype contains a space: $w"
-            if ($w =~ /\s+/);
-        die "warntype is not descriptive: $w"
-            if (length($w) < 8);
-    }
-    $warn_monster = "(?:" . join('|', sort keys %warn_checks) . ")";
-}
-
-&sanity_check();
-
-my $in_build_stage = 0;
-
-while (<>) {
-    chomp;
-    s,  +, ,g;
-    s/^\[ *\d+s\] //;
-    next if (m,/usr/include/c\+\+/,);
-
-    $in_build_stage = 1 if (/^Executing\(\%build/);
-    next if $in_build_stage == 0;
-    last if (/^Executing\(\%install/);
-
-    # We should only abort for implicits when using fortify...
-    if (/(gcc|cc|g\+\+|c\+\+) .*-D_FORTIFY_SOURCE/ ||
-        /(gcc|cc|g\+\+|c\+\+) .*-ffortify/ ) {
-        if (! /-U_FORTIFY_SOURCE/ &&
-            ! /-fno-fortify/ &&
-            ! /-ffortify=0/ ) {
-            $warn_severity{"implicit-fortify-decl"} = 'E';
-        }
-    }
-
-    # Detect if we are compiling and if the program uses RPM_OPT_FLAGS.
-    my $iscompilerline = 0;
-    if (/^(|.*[\s;\/]+)(gcc|cc|c\+\+|g\+\+) .*/i) {
-        # avoid make dep lines...
-        $iscompilerline = 1 if (! /(-E|-MD|-MM|-shared|gccmakedep)/);
-        $iscompilerline = 1 if (/(-MD|-MM)/ && /\.o /); # -MD or -MM and 
object output
-    }
-    # libtool needs some special love.
-    $iscompilerline = 1 if (/libtool.*--mode=compile.*(gcc|cc|g\+\+)/i);
-    # If a line has -fstack-clash-protection in it assume it uses 
RPM_OPT_FLAGS.
-    # If you avoid this check by adding -fml, we will hack your hands off.
-    if ($iscompilerline && ! /-fstack-clash-protection/ && /\.c/i) {
-        # split away "foo.c" or foo.c; or similar too.
-        foreach my $f(grep(/\.c(pp|c)?$/,split(/[ "';`]/))) {
-            &add_warning("no-rpm-opt-flags", "<cmdline>:$f");
-        }
-    }
-
-    &analyze_for_warning($_);
-}
-
-my $had_error = 0;
-
-foreach my $s ('D', 'W', 'E') {
-    foreach my $w (sort (values %warn_checks, "no-rpm-opt-flags")) {
-        next if $warn_severity{$w} ne $s;
-        &print_warning($w);
-        $had_error = 1
-            if (defined($warnings{$w}) && $warn_severity{$w} eq 'E');
-    }
-}
-exit $had_error;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/checks-data/findfileconflicts 
new/post-build-checks-84.87+git20200110.2d02f07/checks-data/findfileconflicts
--- 
old/post-build-checks-84.88+git20181015.ceb5c96/checks-data/findfileconflicts   
    2018-10-15 14:30:56.000000000 +0200
+++ 
new/post-build-checks-84.87+git20200110.2d02f07/checks-data/findfileconflicts   
    2020-01-10 12:43:37.000000000 +0100
@@ -217,11 +217,13 @@
          $modes_ghost[$m] = $ff & 0100;
        }
        my $f = "$n/$bn";
-       if (exists $files{$f}) {
-         $filesc{$f} ||= [ $files{$f} ];
-         push @{$filesc{$f}}, "$pkg/$m";
-       } else {
-         $files{$f} = "$pkg/$m";
+       if (($ff & 0100) != 0) {
+         if (exists $files{$f}) {
+           $filesc{$f} ||= [ $files{$f} ];
+           push @{$filesc{$f}}, "$pkg/$m";
+         } else {
+           $files{$f} = "$pkg/$m";
+         }
        }
       }
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx1.c 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx1.c
--- old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx1.c 2018-10-15 
14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/tests/xx1.c 1970-01-01 
01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-int main(int argc, char **x) {
-       int i = argc;
-
-       i = i++*i++;
-       return i;
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx10.BROKEN.C 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx10.BROKEN.C
--- old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx10.BROKEN.C 
2018-10-15 14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/tests/xx10.BROKEN.C 
1970-01-01 01:00:00.000000000 +0100
@@ -1,8 +0,0 @@
-#include <string.h>
-
-char buf[10];
-int main(int argc, char **argv) {
-       strcpy(buf,argv[0]);
-       strncat(buf,"world!",sizeof(buf));
-       return 0;
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx11.BROKEN.C 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx11.BROKEN.C
--- old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx11.BROKEN.C 
2018-10-15 14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/tests/xx11.BROKEN.C 
1970-01-01 01:00:00.000000000 +0100
@@ -1,8 +0,0 @@
-#include <string.h>
-
-char buf[6];
-int main(int argc, char **argv) {
-       strcpy(buf,"hello ");
-       strcat(buf,"world!");
-       return 0;
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx12.c 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx12.c
--- old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx12.c        
2018-10-15 14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/tests/xx12.c        
1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-#include <stdio.h>
-int main(int argc, char **argv) {
-       char buf[20];
-       fgets(buf, 21, stdin);
-       return 0;
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx13.c 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx13.c
--- old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx13.c        
2018-10-15 14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/tests/xx13.c        
1970-01-01 01:00:00.000000000 +0100
@@ -1,5 +0,0 @@
-int main(int argc, char **argv) {
-       int i;
-
-       return i;
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx14.c 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx14.c
--- old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx14.c        
2018-10-15 14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/tests/xx14.c        
1970-01-01 01:00:00.000000000 +0100
@@ -1,4 +0,0 @@
-int main(int argc, char **argv) {
-       argv[0] = argc;
-       return 0;
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx15.c 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx15.c
--- old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx15.c        
2018-10-15 14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/tests/xx15.c        
1970-01-01 01:00:00.000000000 +0100
@@ -1,4 +0,0 @@
-int a,b,c;
-int main(int argc, char **argv) {
-       return a <= b <= c;
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx16.c 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx16.c
--- old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx16.c        
2018-10-15 14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/tests/xx16.c        
1970-01-01 01:00:00.000000000 +0100
@@ -1,7 +0,0 @@
-int foo()
-{
-      int i;
-      *(long*)&i = 0;  /* { dg-warning "type-punn" } */
-      return i;
-}
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx2.BROKEN.C 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx2.BROKEN.C
--- old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx2.BROKEN.C  
2018-10-15 14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/tests/xx2.BROKEN.C  
1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-#include <string.h>
-char buf[20];
-int main(int argc, char **x) {
-       memset(buf,20,0);
-       return 0;
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx3.c 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx3.c
--- old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx3.c 2018-10-15 
14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/tests/xx3.c 1970-01-01 
01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
-int main(int argc, char **argv) {
-       return argv[0] == "something";
-}
Binary files old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx3.o and 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx3.o differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx4.BROKEN.C 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx4.BROKEN.C
--- old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx4.BROKEN.C  
2018-10-15 14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/tests/xx4.BROKEN.C  
1970-01-01 01:00:00.000000000 +0100
@@ -1,5 +0,0 @@
-#include <stdio.h>
-int main(int argc, char **argv) {
-       printf("hallo %s\n");
-       return 0;
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx5.BROKEN.C 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx5.BROKEN.C
--- old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx5.BROKEN.C  
2018-10-15 14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/tests/xx5.BROKEN.C  
1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-#include <unistd.h>
-int main(int argc, char **argv) {
-       setuid(42);
-       return 0;
-}
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx6.c 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx6.c
--- old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx6.c 2018-10-15 
14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/tests/xx6.c 1970-01-01 
01:00:00.000000000 +0100
@@ -1,7 +0,0 @@
-#include <stdlib.h>
-char *buf;
-int main(int argc, char **argv) {
-       buf = malloc(29);
-       realloc (buf, 30);
-       return 0;
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx7.c 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx7.c
--- old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx7.c 2018-10-15 
14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/tests/xx7.c 1970-01-01 
01:00:00.000000000 +0100
@@ -1,2 +0,0 @@
-int f() {
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx8.BROKEN.C 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx8.BROKEN.C
--- old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx8.BROKEN.C  
2018-10-15 14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/tests/xx8.BROKEN.C  
1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-#include <stdio.h>
-
-int main(int argc, char **argv) {
-       printf (argv[0]);
-       return 0;
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx9.c 
new/post-build-checks-84.87+git20200110.2d02f07/tests/xx9.c
--- old/post-build-checks-84.88+git20181015.ceb5c96/tests/xx9.c 2018-10-15 
14:30:56.000000000 +0200
+++ new/post-build-checks-84.87+git20200110.2d02f07/tests/xx9.c 1970-01-01 
01:00:00.000000000 +0100
@@ -1,5 +0,0 @@
-#include <unistd.h>
-int main(int argc, char **argv) {
-       execl("hello","world","!");
-       return 0;
-}


Reply via email to