From owner-freebsd-ports@FreeBSD.ORG Wed Jun 11 13:22:42 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 683DF249 for ; Wed, 11 Jun 2014 13:22:42 +0000 (UTC) Received: from mail-yk0-x232.google.com (mail-yk0-x232.google.com [IPv6:2607:f8b0:4002:c07::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2ECDB26F8 for ; Wed, 11 Jun 2014 13:22:42 +0000 (UTC) Received: by mail-yk0-f178.google.com with SMTP id q9so2742969ykb.37 for ; Wed, 11 Jun 2014 06:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=xX3oWzEVBsshebObVPvhgzGkI//Ot4Sn40dM0vQAnIE=; b=i35hh2FeETjU4Hmv6vIQ8hlcmkQZvelMXp6gjpT3bXDPbYtwuIL1m6MJnTrFUkNTLn vebFjMSlT0D6Vx9SFf/ngsm/yIs7yKYDl0OE8z+aMp1aJ0hzAiyPSllaoVbcwl4yqjL8 bf2XnUWilqn313hm6h/IrG/0N0Kh5JPC+4S7YLAFjKwrgiUY9tH07d+QELfJvn63/Oc/ oO1WGt9ehdi9kAaKXEivpcqWEIyWw4zNJUJtfJslq1MEoOJHI4EDGdH0JkwrU3EayuNy Vam+wNPVkWwPiyFly4gZpvaDOEbbr7BRBnrxqsuqvDRRRzgNudt20++L8qRYiRHL4shL il7g== MIME-Version: 1.0 X-Received: by 10.236.131.42 with SMTP id l30mr3582067yhi.130.1402492961242; Wed, 11 Jun 2014 06:22:41 -0700 (PDT) Sender: antoine.brodin.freebsd@gmail.com Received: by 10.170.50.80 with HTTP; Wed, 11 Jun 2014 06:22:41 -0700 (PDT) In-Reply-To: References: Date: Wed, 11 Jun 2014 15:22:41 +0200 X-Google-Sender-Auth: Ky5LVzVkDzftytt4Csl10I10cAI Message-ID: Subject: Re: Who broke staging as user? From: Antoine Brodin To: Gerald Pfeifer Content-Type: text/plain; charset=UTF-8 Cc: ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2014 13:22:42 -0000 On Wed, Jun 11, 2014 at 2:58 PM, Gerald Pfeifer wrote: > This is a new failure that I found when testing a (trivial) update > to lang/gcc410 with some of my usual scripts: > > ====> Compressing man pages (compress-man) > ===> Installing ldconfig configuration file > cannot create $WRKDIRPREFIX/stage/home/gerald/10-i386/libdata/ldconfig/gcc49: No such file or directory > *** Error code 2 > > After scratching my head, I reran my tests for lang/gcc49 as in the > tree today, and -- failure as well. > > Since I never commit an update to one of these ports without this > kind of testing something must have broken this on June 6th or later. > > Digging into svn log $PORTSDIR/Mk a bit, here is my suspect: > > r357076 | antoine | 2014-06-08 21:25:54 +0000 (Sun, 08 Jun 2014) | 8 lines > > Kill NO_LDCONFIG_MTREE, it is long dead > Make USE_LDCONFIG work when PREFIX!=LOCALBASE, > LDCONFIG_DIR and LDCONFIG_32DIR are expected in LOCALBASE > > Phabric: D195 > Reviewed by: bapt > With hat: portmgr > > For my test, LOCALBASE=/home/gerald/10-i386 and PREFIX=/scratch2/tmp/gerald/prefix. > > But, in general LOCALBASE may not be writeable, whereas PREFIX is, > so I somehow doubt the logic to begin with. > > Though the failure here is a lack of ${MKDIR} in the staging directory > somewhere it seems? Hi, I think that the problem is that your ${STAGEDIR}/${LOCALBASE} is not populated with the usual mtree (which includes the libdata/pkgconfig directory) You can try to remove the ".if defined(NO_MTREE) / .endif" around @${MKDIR} ${STAGEDIR}${LOCALBASE}/${LDCONFIG_DIR} in bsd.port.mk, although i'm not sure it's the right fix. Cheers, Antoine