Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Dec 2013 13:20:01 GMT
From:      Peter <pmc@citylink.dinoex.sub.org>
To:        freebsd-multimedia@FreeBSD.org
Subject:   Re: ports/183791: audio/liba52 (liba52-0.7.4_2) is not jobs safe
Message-ID:  <201312251320.rBPDK1dj039075@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/183791; it has been noted by GNATS.

From: Peter <pmc@citylink.dinoex.sub.org>
To: bug-followup@FreeBSD.org, milios@ccsys.com
Cc:  
Subject: Re: ports/183791: audio/liba52 (liba52-0.7.4_2) is not jobs safe
Date: Wed, 25 Dec 2013 14:02:13 +0100

 This seems to be a race condition with the timestamps of the Makefiles. 
 "make install" thinks that the Makefiles are outdated, and recreates
 them before doing the install - but now with the target pointing directly 
 to /usr/local and not to the staging area.
 
 In the log we can see this happening: 
 
 >Making install in liba52
 >gmake[1]: Entering directory `/usr/ports/audio/liba52/work/a52dec-0.7.4/liba52'
 >cd .. \
 >  && CONFIG_FILES=liba52/Makefile CONFIG_HEADERS= /bin/sh ./config.status
 >config.status: creating liba52/Makefile
 >config.status: executing default-1 commands
 >gmake[1]: Leaving directory `/usr/ports/audio/liba52/work/a52dec-0.7.4/liba52'
 >gmake[1]: Entering directory `/usr/ports/audio/liba52/work/a52dec-0.7.4/liba52'
 >gmake[2]: Entering directory `/usr/ports/audio/liba52/work/a52dec-0.7.4/liba52'
 >/bin/sh ../autotools/mkinstalldirs /usr/local/lib
 
 while on successful runs these lines do not appear:
 
 >Making install in liba52
 >gmake[1]: Entering directory `/usr/ports/audio/liba52/work/a52dec-0.7.4/liba52'
 >gmake[2]: Entering directory `/usr/ports/audio/liba52/work/a52dec-0.7.4/liba52'
 >/bin/sh ../autotools/mkinstalldirs /usr/ports/audio/liba52/work/stage/usr/local/lib
 
 
 I could not figure out why or how this happens - but for now a suitable 
 workaround seems to be the following addition to the (main) makefile:
 
 >pre-install:
 >        touch work/a52dec-*/*/Makefile



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312251320.rBPDK1dj039075>