From owner-freebsd-ports@FreeBSD.ORG Wed Jun 11 13:59:40 2014 Return-Path: Delivered-To: ports@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 CF6E5573 for ; Wed, 11 Jun 2014 13:59:40 +0000 (UTC) Received: from mail-yh0-x22a.google.com (mail-yh0-x22a.google.com [IPv6:2607:f8b0:4002:c01::22a]) (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 8F0F62AA5 for ; Wed, 11 Jun 2014 13:59:40 +0000 (UTC) Received: by mail-yh0-f42.google.com with SMTP id i57so4081105yha.1 for ; Wed, 11 Jun 2014 06:59:39 -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=kIb85154YXL7v/pmrjv4YaFxJ5Lj37A0KLs/29qpJLs=; b=IzftAIXi8nwsuJoeX0LvXPkkGxE0ys8HUZJJb2+mgc6eCqWxl/q3XSmw5TPFaNHck2 UWZI9hKEUXHpES2KjzyNHniWbgLHQce7Lt8AswFW2Aj/KtGa/GXBhUE/B3UjxHMbBXjQ XLlXitNQH2NxaAMx4QJLLWQ/DfswvDtaBaVdBL+wq0xD6v5lQG6b0vaeofhwdmb3JZfI RNknZ5M179D8GUUGR6C0ihdCISx8mwVE7WtfxE0I8NxoOvfnYU34rW9hA6yjMTt/7lUb lOoxg6Uu+HxLQQc2KsYb+ql46ipfEiZggZc5DM6BmNZtEKwMwjByHQ71D00T/xIEFS98 Wavw== MIME-Version: 1.0 X-Received: by 10.236.157.40 with SMTP id n28mr6035531yhk.29.1402495179669; Wed, 11 Jun 2014 06:59:39 -0700 (PDT) Sender: antoine.brodin.freebsd@gmail.com Received: by 10.170.50.80 with HTTP; Wed, 11 Jun 2014 06:59:39 -0700 (PDT) In-Reply-To: References: Date: Wed, 11 Jun 2014 15:59:39 +0200 X-Google-Sender-Auth: J5_5ol4CljSfxAyPkpBZVG6rxNk Message-ID: Subject: Re: Who broke staging as user? From: Antoine Brodin To: Gerald Pfeifer Content-Type: multipart/mixed; boundary=20cf30363ccffbe1ec04fb8fda64 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:59:41 -0000 --20cf30363ccffbe1ec04fb8fda64 Content-Type: text/plain; charset=UTF-8 On Wed, Jun 11, 2014 at 3:22 PM, Antoine Brodin wrote: > 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. Please try attached patch. Cheers, Antoine --20cf30363ccffbe1ec04fb8fda64 Content-Type: text/plain; charset=US-ASCII; name="ldconfig.diff" Content-Disposition: attachment; filename="ldconfig.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hwape9hq0 SW5kZXg6IE1rL2JzZC5wb3J0Lm1rCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIE1rL2JzZC5wb3J0Lm1rCShyZXZp c2lvbiAzNTc0NzgpCisrKyBNay9ic2QucG9ydC5tawkod29ya2luZyBjb3B5KQpAQCAtNDAxOCw3 ICs0MDE4LDcgQEAKIC5lbmRpZgogLmlmICR7VVNFX0xEQ09ORklHfSAhPSAiJHtMT0NBTEJBU0V9 L2xpYiIgJiYgIWRlZmluZWQoSU5TVEFMTF9BU19VU0VSKQogCUAke0VDSE9fTVNHfSAiPT09PiAg IEluc3RhbGxpbmcgbGRjb25maWcgY29uZmlndXJhdGlvbiBmaWxlIgotLmlmIGRlZmluZWQoTk9f TVRSRUUpCisuaWYgZGVmaW5lZChOT19NVFJFRSkgfHwgJHtQUkVGSVh9ICE9ICR7TE9DQUxCQVNF fQogCUAke01LRElSfSAke1NUQUdFRElSfSR7TE9DQUxCQVNFfS8ke0xEQ09ORklHX0RJUn0KIC5l bmRpZgogCUAke0VDSE9fQ01EfSAke1VTRV9MRENPTkZJR30gfCAke1RSfSAnICcgJ1xuJyBcCkBA IC00MDQwLDcgKzQwNDAsNyBAQAogLmVuZGlmCiAuaWYgIWRlZmluZWQoSU5TV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