From owner-freebsd-ports@FreeBSD.ORG Wed Sep 3 11:15:14 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 B0842755 for ; Wed, 3 Sep 2014 11:15:14 +0000 (UTC) Received: from nm46.bullet.mail.ne1.yahoo.com (nm46.bullet.mail.ne1.yahoo.com [98.138.120.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7026E179E for ; Wed, 3 Sep 2014 11:15:13 +0000 (UTC) Received: from [127.0.0.1] by nm46.bullet.mail.ne1.yahoo.com with NNFMP; 03 Sep 2014 11:15:13 -0000 Received: from [98.138.101.131] by nm46.bullet.mail.ne1.yahoo.com with NNFMP; 03 Sep 2014 11:12:26 -0000 Received: from [98.139.212.152] by tm19.bullet.mail.ne1.yahoo.com with NNFMP; 03 Sep 2014 11:12:26 -0000 Received: from [98.139.212.199] by tm9.bullet.mail.bf1.yahoo.com with NNFMP; 03 Sep 2014 11:12:26 -0000 Received: from [127.0.0.1] by omp1008.mail.bf1.yahoo.com with NNFMP; 03 Sep 2014 11:12:26 -0000 X-Yahoo-Newman-Property: ymail-4 X-Yahoo-Newman-Id: 314918.92592.bm@omp1008.mail.bf1.yahoo.com Received: (qmail 29663 invoked by uid 60001); 3 Sep 2014 11:12:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.nz; s=s1024; t=1409742746; bh=j0+cSDBx1FvCQJmjtFhOL4E5zFNIMJ8mqoU2OmK8jjw=; h=References:Message-ID:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=wnvKoDNyxB7wFo4nGkeCZb7FM6OQhafu3hdPtW4ds0UCKk6vrF1+iR8Cuc6iEjxQyx3f0ACTOM8Au7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rYWdlcy9saWJ4bWwyX3B5dGhvbi0yLjkuMS1weTIuNy5lZ2ctaW5mbwpydW5uaW5nIGluc3RhbGxfc2NyaXB0cwp3cml0aW5nIGxpc3Qgb2YgaW5zdGFsbGVkIGZpbGVzIHRvICcvcG9ydHMvdGV4dHByb2MvcHktbGlieG1sMi93b3JrLy4BMAEBAQE- X-Mailer: YahooMailWebService/0.8.203.696 References: Message-ID: <1409742746.7914.YahooMailNeo@web141004.mail.bf1.yahoo.com> Date: Wed, 3 Sep 2014 04:12:26 -0700 From: Ewout Reply-To: Ewout Subject: FreeBSD Port: py27-libxml2-2.9.1 To: "gnome@FreeBSD.org" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "ports@FreeBSD.org" , "bland@freebsd.org" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2014 11:15:14 -0000 Hi,=0A=0AI tried building your port, but it failed :=0A=0ACopying libxml2_p= ython.egg-info to /ports/textproc/py-libxml2/work/stage/usr/local/lib/pytho= n2.7/site-packages/libxml2_python-2.9.1-py2.7.egg-info=0Arunning install_sc= ripts=0Awriting list of installed files to '/ports/textproc/py-libxml2/work= /.PLIST.pymodtmp'=0A/usr/bin/strip: '/ports/textproc/py-libxml2/work/stage/= usr/local/lib/2.7/site-packages/libxml2mod.so': No such file=0A*** Error co= de 1=0A=0AStop.=0Amake[1]: stopped in /ports/textproc/py-libxml2=0A*** Erro= r code 1=0A=0A=0AI think the script for building it is wrong, there=0A is a= directory /ports/textproc/py-libxml2/work/stage/usr/local/lib/python2.7 bu= t not 2.7 .=0A=0APerhaps you could look at it ?=0A=0AThanks,=0A=0AEwout Bok= s From owner-freebsd-ports@FreeBSD.ORG Wed Sep 3 12:30:30 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 D0CEFEE; Wed, 3 Sep 2014 12:30:30 +0000 (UTC) Received: from mailrelay006.isp.belgacom.be (mailrelay006.isp.belgacom.be [195.238.6.172]) by mx1.freebsd.org (Postfix) with ESMTP id 458001F4F; Wed, 3 Sep 2014 12:30:30 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlsGAL8IB1RR8Z/O/2dsb2JhbABZgw2BIArQGAGBDxd3hAMBAQQBViMFCwsOCgklDyoeBhMZiCEMAb04AReOdlcHhEwFkzeEYoRClR+DYzsvgQeBSAEBAQ Received: from 206.159-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.159.206]) by relay.skynet.be with ESMTP; 03 Sep 2014 14:30:26 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.9/8.14.9) with ESMTP id s83CUPtV007083; Wed, 3 Sep 2014 14:30:25 +0200 (CEST) (envelope-from tijl@FreeBSD.org) Date: Wed, 3 Sep 2014 14:30:17 +0200 From: Tijl Coosemans To: Baptiste Daroussin Subject: Re: [BRAINSTORMING] simplifying maintainer's life Message-ID: <20140903143017.372e42a4@kalimero.tijl.coosemans.org> In-Reply-To: <20140903100751.GG63085@ivaldir.etoilebsd.net> References: <20140903082538.GE63085@ivaldir.etoilebsd.net> <20140903120144.5bfc3fde@kalimero.tijl.coosemans.org> <20140903100751.GG63085@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/_nqFAbhvujdFgdhLSHEs2Tu"; protocol="application/pgp-signature" Cc: ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2014 12:30:31 -0000 --Sig_/_nqFAbhvujdFgdhLSHEs2Tu Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 3 Sep 2014 12:07:51 +0200 Baptiste Daroussin wro= te: > On Wed, Sep 03, 2014 at 12:01:44PM +0200, Tijl Coosemans wrote: >> On Wed, 3 Sep 2014 10:25:39 +0200 Baptiste Daroussin = wrote: >>> 2/ make pkg automatically remove directories under PREFIX without the >>> need of adding them in plist, such as only empty directories and >>> directories not under PREFIX will have to be listed. Of course pkg will >>> not try to remove directories owned by another package. >>>=20 >>> To achieve the point 2 that will mean we will stop using the mtree >>> inside packages and create a "hier" package that will have the default >>> hierarchy and every package but pkg will depend on this hier package >>> (except if PREFIX !=3D LOCALBASE) >>=20 >> I think you can avoid the hier package and thus the PREFIX !=3D LOCALBASE >> problem. >>=20 >> Assume there are no packages with empty directories, then pkg can >> always remove empty directories when deinstalling a package, because >> no files in the directory means no package requires it. You don't need >> a hier package in this case. >>=20 >> You can add support for packages with empty directories in two ways: >> - Put a dummy file in the directory, e.g. .PKGNAME.keepme >> (simple to implement, but maybe some packages really need the >> directory to be empty or maybe they only expect a specific type of >> files) >> - Record something like .PKGNAME.keepme in the pkg db but don't >> actually create that file. >=20 > We do already support empty directories natively we do not need the .keep > whatever and this works pretty well :) > if a line in the plist is a directory (or @dirrm* ) then the directory is > considered as owned by the package and always created Does this work: packages A and B both create the same empty directory and package C installs files in that directory. Can you install and deinstall A, B and C in any order and will that directory only be deleted when you deinstall the last package? Is pkg already keeping a reference count or something for every directory? > My only problem is to still provide the default grobal hier in provided > by BSD.local.dist (like etc/rc.conf.d etc/libmap.d etc) that said we > have actually only 4 empty directories all documented in the respective > manpages from base where they are used, so yes probably I can just > ignore the mtree at all > Which makes the feature easy to implement then. I don't think those directories actually need to exist. On a fresh installation /usr/local is empty. > In anycase I will limit auto removal to PREFIX (the one supplied when > creating the package) because base has its own mtree and I do not want > to delete any empty directory from base at least until base is package > itself. Yes, it's probably a good idea to list everything outside PREFIX explicitly. Maybe you can limit it to the current @cwd instead of PREFIX but then some existing pkg-plists may need to be fixed. --Sig_/_nqFAbhvujdFgdhLSHEs2Tu Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREKAAYFAlQHCeEACgkQfoCS2CCgtitCsgD+KO65Hg5MO3mOtx59kSO5OvMy aCuS5fCuaIwJFb6SVJwA/0GqKqnM5/yo5FCfsOG7i4aPUsr7urmlCKvWW0u2rjW/ =sYev -----END PGP SIGNATURE----- --Sig_/_nqFAbhvujdFgdhLSHEs2Tu--