Hello community,
here is the log from the commit of package post-build-checks
checked in at Wed Oct 8 12:03:26 CEST 2008.
--------
--- post-build-checks/post-build-checks.changes 2008-10-06 17:54:01.000000000 +0200
+++ /mounts/work_src_done/STABLE/post-build-checks/post-build-checks.changes 2008-10-07 21:40:44.000000000 +0200
@@ -1,0 +2,7 @@
+Tue Oct 7 21:40:17 CEST 2008 - meissner@suse.de
+
+- testsuite for check_gcc_output. marked the currently non
+ working tests as "BROKEN.C" (not built).
+- fixed implicit fortify function check to work with newer gccs.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ post-build-checks.spec ++++++
--- /var/tmp/diff_new_pack.O32679/_old 2008-10-08 12:02:02.000000000 +0200
+++ /var/tmp/diff_new_pack.O32679/_new 2008-10-08 12:02:02.000000000 +0200
@@ -24,7 +24,7 @@
AutoReqProv: on
Summary: post checks for build after rpms have been created
Version: 1.0
-Release: 45
+Release: 46
PreReq: aaa_base permissions sed
Source0: %{name}-%{version}.tar.bz2
BuildArch: noarch
@@ -56,6 +56,12 @@
install -m 755 helper/* $RPM_BUILD_ROOT/usr/lib/build/helper
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
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -73,6 +79,10 @@
/usr/lib/build
%changelog
+* Tue Oct 07 2008 meissner@suse.de
+- testsuite for check_gcc_output. marked the currently non
+ working tests as "BROKEN.C" (not built).
+- fixed implicit fortify function check to work with newer gccs.
* Mon Oct 06 2008 meissner@suse.de
- added checks for newer glibcs destination buffer overflow
warning.
++++++ post-build-checks-1.0.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/post-build-checks-1.0/checks-data/check_gcc_output new/post-build-checks-1.0/checks-data/check_gcc_output
--- old/post-build-checks-1.0/checks-data/check_gcc_output 2008-10-06 16:43:34.000000000 +0200
+++ new/post-build-checks-1.0/checks-data/check_gcc_output 2008-10-07 13:42:31.000000000 +0200
@@ -29,7 +29,7 @@
'warning:.*called with bigger.*destination buffer' => "destbufferoverflow",
'warning:.*is used uninitialized in this function' => "uninitialized-variable",
'warning:.*too few arguments for format' => "missing-arg-for-fmt-string",
- "warning:.*implicit .*\b(recv|recvfrom|read|pread|pread64|readlink|getwd|getcwd|fgets|fgets_unlock|strncat|strcat|memmove|memcpy|mempcpy|strpcpy|strcpy|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|)\b" => "implicit-fortify-decl",
+ "warning:.*implicit .*'(recv|recvfrom|read|pread|pread64|readlink|getwd|getcwd|fgets|fgets_unlock|strncat|strcat|memmove|memcpy|mempcpy|strpcpy|strcpy|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|)'" => "implicit-fortify-decl",
'warning:.*memset used with constant zero length parameter' => "memset-with-zero-length",
'warning:.*comparison with string literal' => "stringcompare",
);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/post-build-checks-1.0/tests/xx10.BROKEN.C new/post-build-checks-1.0/tests/xx10.BROKEN.C
--- old/post-build-checks-1.0/tests/xx10.BROKEN.C 1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-1.0/tests/xx10.BROKEN.C 2008-10-07 14:26:51.000000000 +0200
@@ -0,0 +1,8 @@
+#include
+
+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-1.0/tests/xx11.c new/post-build-checks-1.0/tests/xx11.c
--- old/post-build-checks-1.0/tests/xx11.c 1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-1.0/tests/xx11.c 2008-10-07 14:28:00.000000000 +0200
@@ -0,0 +1,8 @@
+#include
+
+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-1.0/tests/xx12.c new/post-build-checks-1.0/tests/xx12.c
--- old/post-build-checks-1.0/tests/xx12.c 1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-1.0/tests/xx12.c 2008-10-07 14:29:20.000000000 +0200
@@ -0,0 +1,6 @@
+#include
+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-1.0/tests/xx13.c new/post-build-checks-1.0/tests/xx13.c
--- old/post-build-checks-1.0/tests/xx13.c 1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-1.0/tests/xx13.c 2008-10-07 14:29:50.000000000 +0200
@@ -0,0 +1,5 @@
+int main(int argc, char **argv) {
+ int i;
+
+ return i;
+}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/post-build-checks-1.0/tests/xx14.c new/post-build-checks-1.0/tests/xx14.c
--- old/post-build-checks-1.0/tests/xx14.c 1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-1.0/tests/xx14.c 2008-10-07 14:31:37.000000000 +0200
@@ -0,0 +1,4 @@
+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-1.0/tests/xx15.c new/post-build-checks-1.0/tests/xx15.c
--- old/post-build-checks-1.0/tests/xx15.c 1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-1.0/tests/xx15.c 2008-10-07 14:33:33.000000000 +0200
@@ -0,0 +1,4 @@
+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-1.0/tests/xx16.c new/post-build-checks-1.0/tests/xx16.c
--- old/post-build-checks-1.0/tests/xx16.c 1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-1.0/tests/xx16.c 2008-10-07 21:11:17.000000000 +0200
@@ -0,0 +1,9 @@
+struct s {
+ char *p;
+};
+
+void
+func(struct s *ptr)
+{
+ *(void **)&ptr->p = 0; /* { dg-warning "type-punned pointer" } */
+}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/post-build-checks-1.0/tests/xx1.c new/post-build-checks-1.0/tests/xx1.c
--- old/post-build-checks-1.0/tests/xx1.c 1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-1.0/tests/xx1.c 2008-10-07 14:16:23.000000000 +0200
@@ -0,0 +1,6 @@
+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-1.0/tests/xx2.BROKEN.C new/post-build-checks-1.0/tests/xx2.BROKEN.C
--- old/post-build-checks-1.0/tests/xx2.BROKEN.C 1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-1.0/tests/xx2.BROKEN.C 2008-10-07 14:16:51.000000000 +0200
@@ -0,0 +1,6 @@
+#include
+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-1.0/tests/xx3.c new/post-build-checks-1.0/tests/xx3.c
--- old/post-build-checks-1.0/tests/xx3.c 1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-1.0/tests/xx3.c 2008-10-07 14:17:53.000000000 +0200
@@ -0,0 +1,3 @@
+int main(int argc, char **argv) {
+ return argv[0] == "something";
+}
Files old/post-build-checks-1.0/tests/xx3.o and new/post-build-checks-1.0/tests/xx3.o differ
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/post-build-checks-1.0/tests/xx4.c new/post-build-checks-1.0/tests/xx4.c
--- old/post-build-checks-1.0/tests/xx4.c 1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-1.0/tests/xx4.c 2008-10-07 14:18:55.000000000 +0200
@@ -0,0 +1,5 @@
+#include
+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-1.0/tests/xx5.BROKEN.C new/post-build-checks-1.0/tests/xx5.BROKEN.C
--- old/post-build-checks-1.0/tests/xx5.BROKEN.C 1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-1.0/tests/xx5.BROKEN.C 2008-10-07 14:20:39.000000000 +0200
@@ -0,0 +1,6 @@
+#include
+int main(int argc, char **argv) {
+ setuid(42);
+ return 0;
+}
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/post-build-checks-1.0/tests/xx6.c new/post-build-checks-1.0/tests/xx6.c
--- old/post-build-checks-1.0/tests/xx6.c 1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-1.0/tests/xx6.c 2008-10-07 14:21:43.000000000 +0200
@@ -0,0 +1,7 @@
+#include
+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-1.0/tests/xx7.c new/post-build-checks-1.0/tests/xx7.c
--- old/post-build-checks-1.0/tests/xx7.c 1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-1.0/tests/xx7.c 2008-10-07 14:22:19.000000000 +0200
@@ -0,0 +1,2 @@
+int main(int argc, char **argv) {
+}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/post-build-checks-1.0/tests/xx8.BROKEN.C new/post-build-checks-1.0/tests/xx8.BROKEN.C
--- old/post-build-checks-1.0/tests/xx8.BROKEN.C 1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-1.0/tests/xx8.BROKEN.C 2008-10-07 14:23:17.000000000 +0200
@@ -0,0 +1,6 @@
+#include
+
+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-1.0/tests/xx9.c new/post-build-checks-1.0/tests/xx9.c
--- old/post-build-checks-1.0/tests/xx9.c 1970-01-01 01:00:00.000000000 +0100
+++ new/post-build-checks-1.0/tests/xx9.c 2008-10-07 14:24:54.000000000 +0200
@@ -0,0 +1,5 @@
+#include
+int main(int argc, char **argv) {
+ execl("hello","world","!");
+ return 0;
+}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org