SHA256
1
0
forked from pool/autogen
autogen/autogen-catch-race-error.patch
Dirk Mueller 372e9bdc88 Accepting request 624228 from home:pluskalm:branches:Base:System
- Update to version 5.8.14:
  * several configury fixes to enable cross platform building.
  * fompletion of a change in "char-mapper" to enable bootstrapping
  * Guile 1.8 support was removed
  * Replace AG_SCM_STR02SCM with scm_from_latin1_string this breaks
    Guile 1.8.
  * adaptations for cross compiling
  * no more generating autoconf macros
  * fix internal implementation of forking off autogen in xml2ag
  * when calling abort() causes problems, exit() can now be called
    (via an option) instead.
  * add support for nanosecond precision in file times
  * suppress dumb warnings about embedded NUL bytes in formats.
- Refresh patches
- Drop not applying autogen-reproducible-tar.patch

OBS-URL: https://build.opensuse.org/request/show/624228
OBS-URL: https://build.opensuse.org/package/show/Base:System/autogen?expand=0&rev=60
2018-07-31 07:01:33 +00:00

32 lines
1.0 KiB
Diff

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.14/agen5/agDep.c
===================================================================
--- autogen-5.18.14.orig/agen5/agDep.c
+++ autogen-5.18.14/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.14/agen5/expOutput.c
===================================================================
--- autogen-5.18.14.orig/agen5/expOutput.c
+++ autogen-5.18.14/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);