From owner-freebsd-multimedia@FreeBSD.ORG Wed Dec 25 13:20:01 2013 Return-Path: Delivered-To: freebsd-multimedia@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B5C4F216 for ; Wed, 25 Dec 2013 13:20:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A1BB5159F for ; Wed, 25 Dec 2013 13:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBPDK1V3039076 for ; Wed, 25 Dec 2013 13:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBPDK1dj039075; Wed, 25 Dec 2013 13:20:01 GMT (envelope-from gnats) Date: Wed, 25 Dec 2013 13:20:01 GMT Message-Id: <201312251320.rBPDK1dj039075@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org Cc: From: Peter Subject: Re: ports/183791: audio/liba52 (liba52-0.7.4_2) is not jobs safe X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Peter List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Dec 2013 13:20:01 -0000 The following reply was made to PR ports/183791; it has been noted by GNATS. From: Peter 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