Subject: | race in man page creation |
When building the perl-File-Unpack package for openSUSE
with make -j2 or -j4
sometimes the man page was missing
The build log then showed man-page output failing due to a missing directory.
Please review/test/merge the attached patch.
Subject: | fix-File-Unpack-race.patch |
Index: File-Unpack-0.70/Makefile.PL
===================================================================
--- File-Unpack-0.70.orig/Makefile.PL
+++ File-Unpack-0.70/Makefile.PL
@@ -55,6 +55,7 @@ sub MY::postamble
return q{
file_unpack: file_unpack.pl Makefile
$(CP) file_unpack.pl $@
+ mkdir -p $(INST_MAN1DIR)
## wait, so that -M < -M succeeds in ExtUtils/Command/MM.pm
(sleep 1; echo .nf; $(PERL) $@ --help) > $(INST_MAN1DIR)/$@.1 || true
};