From owner-freebsd-questions Wed Mar 13 23:10:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from bilbo.in.mat.cc (bilbo.in.mat.cc [212.43.217.121]) by hub.freebsd.org (Postfix) with ESMTP id 4A7AA37B400 for ; Wed, 13 Mar 2002 23:10:16 -0800 (PST) Received: from bilbo.in.org (localhost [127.0.0.1]) by bilbo.in.mat.cc (Postfix) with ESMTP id 6269A71183; Thu, 14 Mar 2002 08:10:14 +0100 (CET) Received: from sauron (sauron.in.mat.cc [212.43.217.122]) by bilbo.in.mat.cc (Postfix) with ESMTP id 5152671183; Thu, 14 Mar 2002 08:10:11 +0100 (CET) Date: Thu, 14 Mar 2002 08:10:11 +0100 From: Mathieu Arnold To: Mike Meyer Cc: questions@FreeBSD.ORG Subject: Re: read only /usr/ports Message-ID: <216976875.1016093411@sauron> In-Reply-To: <15503.53459.425125.210327@guru.mired.org> References: <15503.53459.425125.210327@guru.mired.org> X-Mailer: Mulberry/2.2.0b2 (Win32) X-wazaaa: True, true MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --On mercredi 13 mars 2002 16:21 -0600 Mike Meyer wrote: > Mathieu Arnold types: >> --On mercredi 13 mars 2002 13:25 -0600 Mike Meyer >> wrote: >> > Mathieu Arnold types: >> >> I have some problems sharing my /usr/ports among all my workstations, >> >> what I'd like to have is one master box with a real /usr/ports, have >> >> it exported (already done) and have all the clients use it and >> >> compile their ports into /usr/obj for instance. >> >> I was thinking that setting WRKDIRPREFIX=/usr/obj in /etc/make.conf >> >> would do the trick, but either that's not the right thing to do, >> >> either it's not the way to do it, as I cannot build a single >> >> package, it tells shokes on : cd >> >> /usr/obj/usr/ports///work// && make real-build >> >> which is not the thing it should do (or I have misunderstood). >> > >> > I'm running a similar system to what you're trying to do, and it >> > works. The directory name you give is the correct one for it to be >> > trying to work in given the WKRDIRPREFIX you gave. Is it possible >> > that /usr/obj is also mounted r/o from somewhere else? That would >> > cause the above behavior. >> >> nope, the pb lies around line 2481 of bsd.port.mk : >> @cd ${.CURDIR} && ${MAKE} ${__softMAKEFLAGS} real-build >> where .CURDIR is /usr/obj/usr/ports///work// >> and not /usr/ports/// >> don't ask why, I found where, but I can't find out why. > > I assume you meant that it should resolve to /usr/obj//, as > you want /usr/ports to be r/o. That's wrong. The "why" is so that you > can have multiple ports trees around, or just multiple versions of a > port - which is common for a port maintainer. The solution was to make > it resolve to /usr/obj///, which for things in > /usr/ports looks like your /usr/obj/usr/ports//. no, it shokes on : cd /usr/obj/usr/ports///work// && make real-build but the makefile that knows how to do real-build is not there but is in /usr/ports/// >> and /usr/obj is plain local rw ufs. > > So why can't it write to /usr/obj/... ? That's the problem you need to > solve. it can write to it, it decompresses the tarball, patches... but shokes on real-build. -- Mathieu Arnold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message