From owner-freebsd-ports@FreeBSD.ORG Wed Sep 3 08:25:44 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 2BD119E1 for ; Wed, 3 Sep 2014 08:25:44 +0000 (UTC) Received: from mail-we0-x22d.google.com (mail-we0-x22d.google.com [IPv6:2a00:1450:400c:c03::22d]) (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 B6B031079 for ; Wed, 3 Sep 2014 08:25:43 +0000 (UTC) Received: by mail-we0-f173.google.com with SMTP id t60so8246071wes.18 for ; Wed, 03 Sep 2014 01:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=4jie32p5CJ/S9pOZQ81kcL5zcbwGblM5QUZvfE3s5WA=; b=Fz6saXFW7Oo488MhauFxXxKwbBMlWISxnIzs5OdsCGGyywUB/YhlswfSmRBP+KcGYs lBhWP3y5AGnoNjLXXfVgp7YGz0aWw8ojRrs0qepGNxHwWftOdNTK1461LZcep3TtjGzs Il23yjewzsteui+zO+TxPZbuz2KGEuXOaeFuaH1UqCWDHyUo+3BbJQYQJhlnKErTM2wj 21qzQE9HEFnUN011IIU7eDfTielQuxQULmeQyTf2PoeQli4/4ukUDLjWKwzhVzoN+0fF 9yr9GHKvVRgceT+NRBSOlpWWlCJufnapK9gaRQlVcbP53PjePn5FE347Clesb/x99ZdS OjYg== X-Received: by 10.180.210.201 with SMTP id mw9mr7651085wic.35.1409732742022; Wed, 03 Sep 2014 01:25:42 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id cy10sm14462781wjb.21.2014.09.03.01.25.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Sep 2014 01:25:41 -0700 (PDT) Sender: Baptiste Daroussin Date: Wed, 3 Sep 2014 10:25:39 +0200 From: Baptiste Daroussin To: ports@freebsd.org Subject: [BRAINSTORMING] simplifying maintainer's life Message-ID: <20140903082538.GE63085@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2hMgfIw2X+zgXrFs" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) 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 08:25:44 -0000 --2hMgfIw2X+zgXrFs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi all, On of the most borring thing IMHO in the plist maintainance is all the directories. I have been working on some evolutions I want to share and discuss before making them official. First you have to know that since pkg 1.3 @dirrm and @dirrmtry are equivalent. Evolutions: 1/ stop prepending directories in plist with @dir*: let pkg discover the path correspond to a directory and handle it as such (easy) 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. 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 != LOCALBASE) 2 bonus of this approach: - it will speed up pkg operation by avoiding to have to extract the mtree for each package installation - it will simplify a lot check-plist Any opinion here? regards, Bapt --2hMgfIw2X+zgXrFs Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlQG0IIACgkQ8kTtMUmk6EzmLACfbWIvRQC/qqCbzsafzBupyv9M JXYAniTA+xdmeEkm5dSHjNiBm/GET3gf =7FZq -----END PGP SIGNATURE----- --2hMgfIw2X+zgXrFs--