Hello community,

here is the log from the commit of package autogen for openSUSE:Factory checked 
in at 2017-02-26 16:59:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/autogen (Old)
 and      /work/SRC/openSUSE:Factory/.autogen.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "autogen"

Changes:
--------
--- /work/SRC/openSUSE:Factory/autogen/autogen.changes  2017-01-11 
12:01:48.666218234 +0100
+++ /work/SRC/openSUSE:Factory/.autogen.new/autogen.changes     2017-02-26 
16:59:58.540365026 +0100
@@ -1,0 +2,5 @@
+Wed Feb 22 14:28:17 UTC 2017 - [email protected]
+
+- Add autogen-catch-race-error.patch (boo#1021353)
+
+-------------------------------------------------------------------

New:
----
  autogen-catch-race-error.patch

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

Other differences:
------------------
++++++ autogen.spec ++++++
--- /var/tmp/diff_new_pack.MVYcrH/_old  2017-02-26 16:59:58.972299508 +0100
+++ /var/tmp/diff_new_pack.MVYcrH/_new  2017-02-26 16:59:58.976298902 +0100
@@ -28,6 +28,8 @@
 Source1:        
https://ftp.gnu.org/gnu/autogen/rel%{version}/%{name}-%{version}.tar.xz.sig
 Source2:        
http://savannah.gnu.org/project/memberlist-gpgkeys.php?group=autogen&download=1#/%{name}.keyring
 Patch1:         autogen-build_ldpath.patch
+# PATCH-FIX-UPSTREAM -- https://savannah.gnu.org/support/index.php?109234 
boo#1021353
+Patch2:         autogen-catch-race-error.patch
 BuildRequires:  fdupes
 BuildRequires:  guile-devel
 BuildRequires:  libtool
@@ -80,6 +82,7 @@
 %prep
 %setup -q
 %patch1
+%patch2 -p1
 
 %build
 %configure \


++++++ autogen-catch-race-error.patch ++++++
This would have made the racy build fail
instead of producing missing and incorrect files

https://bugzilla.opensuse.org/show_bug.cgi?id=1021353

Index: autogen-5.18.12/agen5/agDep.c
===================================================================
--- autogen-5.18.12.orig/agen5/agDep.c
+++ autogen-5.18.12/agen5/agDep.c
@@ -303,7 +303,7 @@ tidy_dep_file(void)
         pzn[len] = NUL;
 
         unlink(pzn);
-        rename(dep_file, pzn);
+        if (rename(dep_file, pzn)) { exit(95); }
         AGFREE(dep_file);
         dep_file = pzn;
     } while (false);
Index: autogen-5.18.12/agen5/expOutput.c
===================================================================
--- autogen-5.18.12.orig/agen5/expOutput.c
+++ autogen-5.18.12/agen5/expOutput.c
@@ -251,7 +251,7 @@ ag_scm_out_move(SCM new_file)
 
     if (strcmp(pz, cur_fpstack->stk_fname) != 0) {
 
-        rename(cur_fpstack->stk_fname, pz);
+        if (rename(cur_fpstack->stk_fname, pz)) { exit(94); }
 
         if (dep_fp != NULL) {
             rm_target_file(cur_fpstack->stk_fname);


Reply via email to