develooper Front page | perl.perl5.porters | Postings from July 2013

[perl #118987] ext/SDBM_File: parallel build fails (make -j)

Thread Previous
From:
Anton V . Yuzhaninov
Date:
July 23, 2013 18:25
Subject:
[perl #118987] ext/SDBM_File: parallel build fails (make -j)
Message ID:
rt-3.6.HEAD-2552-1374594059-858.118987-75-0@perl.org
# New Ticket Created by  Anton V. Yuzhaninov 
# Please include the string:  [perl #118987]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118987 >


-----------------------------------------------------------------

perl 5.14.4 fails to build under FreeBSD when make jobs is used (make -j).

Example build log:
https://qat.redports.org/~az@FreeBSD.org/20130722155800-29664-164000/perl-5.14.4.log
(grep by libsdbm)

Bug located in ext/SDBM_File/Makefile

This Makefile has two conflicting targets, that do the same thing (make all in 
sdbm subdir):

subdirs ::
         $(NOECHO) cd sdbm && $(MAKE) $(USEMAKEFILE) $(FIRST_MAKEFILE) all 
$(PASTHRU)

and

$(MYEXTLIB): sdbm/Makefile
         cd sdbm && $(MAKE) all

First target created by MakeMaker because of existence ./sdbm/Makefile.PL

Second target is explicitly added in Makefile.PL (in MY::postamble).

With 'make -j N' this two targets can be run in parallel, causing build failure.

It sees to be, that one of this targets should be removed to fix parallel build.

Build failure can be repeated with 5.14.4 and 5.16.3, but 
ext/SDBM_File/Makefile.PL in
the latest version is same.

-----------------------------------------------------------------
---
Flags:
     category=library
     severity=low
     module=SDBM_File
---


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About