From c9b11ff0d4e95e1c02e68379276ec0d92c2b2878 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Sat, 16 Feb 2013 07:38:46 -0600 Subject: [PATCH] [libpng16] Fixed a race condition in the creation of the build 'scripts' directory while building with a parallel make. --- ANNOUNCE | 19 +++++++++++-------- CHANGES | 19 +++++++++++-------- Makefile.am | 2 +- 3 files changed, 23 insertions(+), 17 deletions(-) diff --git a/ANNOUNCE b/ANNOUNCE index c7c3322f0..a4346cf0a 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -26,17 +26,20 @@ Other information: Changes since the last public release (1.6.0): Version 1.6.1 [February 16, 2013] - Made symbol prefixing work with the ARM neon optimizations. Also allow pngpriv.h - to be included for preprocessor definitions only, so it can be used in non-C/C++ - files. Back ported from libpng 1.7. + Made symbol prefixing work with the ARM neon optimizations. Also allow + pngpriv.h to be included for preprocessor definitions only, so it can + be used in non-C/C++ files. Back ported from libpng 1.7. Made sRGB check numbers consistent. Ported libpng 1.5 options.awk/dfn file handling to 1.6, fixed one bug. - Removed cc -E workround, corrected png_get_palette_max API Tested on SUN OS cc 5.9, - which demonstrates the tokenization problem previously avoided by using /lib/cpp. - Since all .dfn output is now protected in double quotes unless it is to be macro - substituted the fix should work everywhere. + Removed cc -E workround, corrected png_get_palette_max API Tested on + SUN OS cc 5.9, which demonstrates the tokenization problem previously + avoided by using /lib/cpp. Since all .dfn output is now protected in + double quotes unless it is to be macro substituted the fix should + work everywhere. Enabled parallel tests - back ported from libpng-1.7. - scripts/pnglibconf.dfa formatting improvements back ported from libpng 1.7. + scripts/pnglibconf.dfa formatting improvements back ported from libpng17. + Fixed a race condition in the creation of the build 'scripts' directory + while building with a parallel make. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CHANGES b/CHANGES index 3e91fbc51..7ddf310bd 100644 --- a/CHANGES +++ b/CHANGES @@ -4382,17 +4382,20 @@ Version 1.6.0 [February 14, 2013] No changes. Version 1.6.1 [February 16, 2013] - Made symbol prefixing work with the ARM neon optimizations. Also allow pngpriv.h - to be included for preprocessor definitions only, so it can be used in non-C/C++ - files. Back ported from libpng 1.7. + Made symbol prefixing work with the ARM neon optimizations. Also allow + pngpriv.h to be included for preprocessor definitions only, so it can + be used in non-C/C++ files. Back ported from libpng 1.7. Made sRGB check numbers consistent. Ported libpng 1.5 options.awk/dfn file handling to 1.6, fixed one bug. - Removed cc -E workround, corrected png_get_palette_max API Tested on SUN OS cc 5.9, - which demonstrates the tokenization problem previously avoided by using /lib/cpp. - Since all .dfn output is now protected in double quotes unless it is to be macro - substituted the fix should work everywhere. + Removed cc -E workround, corrected png_get_palette_max API Tested on + SUN OS cc 5.9, which demonstrates the tokenization problem previously + avoided by using /lib/cpp. Since all .dfn output is now protected in + double quotes unless it is to be macro substituted the fix should + work everywhere. Enabled parallel tests - back ported from libpng-1.7. - scripts/pnglibconf.dfa formatting improvements back ported from libpng 1.7. + scripts/pnglibconf.dfa formatting improvements back ported from libpng17. + Fixed a race condition in the creation of the build 'scripts' directory + while building with a parallel make. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/Makefile.am b/Makefile.am index dbb34ae3f..0f6eb890d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -203,7 +203,7 @@ endif .dfn.out: rm -f $@ $*.c $*.tf[12] - test -d scripts || mkdir scripts + test -d scripts || mkdir scripts || test -d scripts echo '#include "$<"' >$*.c $(DFNCPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES)\ $(CPPFLAGS) $(SYMBOL_CFLAGS) $*.c > $*.tf1