From owner-freebsd-ports@FreeBSD.ORG Tue Sep 1 13:16:00 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0073D1065670 for ; Tue, 1 Sep 2009 13:16:00 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-bw0-f206.google.com (mail-bw0-f206.google.com [209.85.218.206]) by mx1.freebsd.org (Postfix) with ESMTP id 69B928FC1B for ; Tue, 1 Sep 2009 13:15:59 +0000 (UTC) Received: by bwz2 with SMTP id 2so3324456bwz.43 for ; Tue, 01 Sep 2009 06:15:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=4RnHsecP4lAHrRUpXQjuM/Sc1A8VmTkESRC4to4vnXg=; b=Zw6aqACGqMq1+AsiGNOl4HrMWDJe4+ofFN67obzFC/2/Tb5vPoLoMvd/VCveKSUckE z1Q7y4MoLFNtpoLVjzzfHoCitN0EeXPUJhTCR/bKiThHu6mi9mfV6ju5/5cXZdywymxv xC3wZur0T7EGGcEKYLWjnITORi2ClxyQzlzxY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=D1cQottZ5hn5tUMOfkTaGyv13TUzIc9YqIkFx3fuTjOQgTDV0me1BfJqK1NtS+y0aZ zASCIMTk1cxmL5EGF6tkVS3Ly+PGnSwISYULCifnoBfqLHysv12D1u/hnWx5y0c6zf9f BnYi5MwrhU/rBb582eZBQ3DXjPyKmxrNM8rpQ= MIME-Version: 1.0 Received: by 10.223.74.91 with SMTP id t27mr2575725faj.62.1251810957667; Tue, 01 Sep 2009 06:15:57 -0700 (PDT) In-Reply-To: <20090901080224.GA1017@straylight.m.ringlet.net> References: <20090901080224.GA1017@straylight.m.ringlet.net> Date: Tue, 1 Sep 2009 13:15:57 +0000 Message-ID: From: Baptiste Daroussin To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Open discution for a fakeroot support for the ports infrastructure X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2009 13:16:00 -0000 Fucking gmail, I replyed in private instead of the list so here is the reply, sorry > That's actually a good idea. I'm quite used to fakeroot already from > some work I've been doing in Debian. > > Currently the fakeroot is not something like the debian fakeroot, ie it is just a directory that is considered a the a root directory (a destdir for example). But in future a program like debian's fakeroot could be considered. > > Just one comment: there are some ports, and not quite so few, either, > which override the do-install target to do some maintenance of their own. > A trivial run of > > find . -mindepth 3 -maxdepth 3 -name Makefile -type f -print0 | > xargs -0 fgrep do-install > > ...from /usr/ports gives just about 6000 results here, and most of them > are, > indeed, real cases of port Makefiles doing the install thing for > themselves. > This is done either for very, very simple programs where it would be > unnecessary overhead to recurse into the upstream's Makefile and run > its "install" target, or for programs where the upstream doesn't even > *have* an "install" target, or for programs where there is, quite simply, > no upstream - like devel/portilnt :) > > So the fakeroot implementation should take that into account, too - > and that could be a problem, since most of the do-install targets > actually do install their files directly into ${PREFIX}. > > This could actually be easier if DESTDIR were implemented first :) > > When a ports override do-install pre-install and post-install, bsd.fake.mkmanage it transparently (ie no modification) if the ports uses ${LOCALBASE} or other variables like this one because during the do-install LOCALBASE is override by ${FAKEDIR}${LOCALBASE} and it already works. the main goal I had in mind when writting the patch is that it should works with the current ports without any modification in them. It is currently not perfect but all the ports I tested works as-is, there are for sure some bugs with some ports but if they are written well bsd.fake.mk should be able to be corrected to handle them correctly. > G'luck, > Peter > > -- > Peter Pentchev roam@ringlet.net roam@space.bg roam@FreeBSD.org > PGP key: http://people.FreeBSD.org/~roam/roam.key.asc > Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 > This inert sentence is my body, but my soul is alive, dancing in the sparks > of your brain. > Bapt