From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3D0C8138247 for ; Sat, 11 Jan 2014 10:20:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F3E5AE0CAF; Sat, 11 Jan 2014 10:20:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F0268E0C81 for ; Sat, 11 Jan 2014 10:20:28 +0000 (UTC) Received: from localhost (77-254-165-29.adsl.inetia.pl [77.254.165.29]) (using SSLv3 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 5EF4533EC99; Sat, 11 Jan 2014 10:20:27 +0000 (UTC) Date: Sat, 11 Jan 2014 11:20:19 +0100 From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= To: Subject: [gentoo-dev] RFC: storing predefined INSTALL_MASK directory lists in repos Message-ID: <20140111112019.45f81ec6@gentoo.org> Organization: Gentoo X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/uaQ+URzyj0bePjRE_HhYKEy"; protocol="application/pgp-signature" X-Archives-Salt: 7a504f97-bb1b-42c3-9550-da33004cc8b1 X-Archives-Hash: 3b180e72b279219faa9703e698811a6b --Sig_/uaQ+URzyj0bePjRE_HhYKEy Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, all. Some time ago I wrote a small tool called install-mask. As the name suggests, it was intended to help with manipulating INSTALL_MASK. I think that its most important feature was ability to use pre-defined mask lists to easily mask unwanted directories without getting into the details. For example, you could do: install-mask -a systemd and it masked all directories related to systemd that were safe to be masked. The original solution had a few weak points, however, and since it was an external tool it didn't help most of the Gentoo users. For this reason, I wanted to implement the necessary bits in portage itself. Now kensington reminded me of it and offered to work on it, so I'd like to revive the topic. What we need is an agreement where to put the 'mask lists'. That is, we need a mapping of pre-defined keys to descriptions & lists of paths. I have two ideas. IDEA ONE I'm thinking of doing something similar to USE_EXPAND. That is, a structure like: - a top-level install-mask.desc that keeps mapping of keys to descriptions, - install-mask directory where each file name matches the install-mask key and file contents list all the paths. For example: install-mask.desc: bash-completion: app-shells/bash completions systemd: sys-apps/systemd unit files and auxiliary files install-mask/bash-completion: /usr/share/bash-completion install-mask/systemd: /usr/lib/systemd/system /usr/lib/systemd/user IDEA TWO A single file with ini-like syntax (alike layout.conf) that holds all the info. Such file can be found already in $PORTDIR/app-portage/install-mask/files/location-db.conf: Example contents: [systemd] path=3D/usr/lib/systemd/system path=3D/usr/lib/systemd/user description=3Dsystemd unit and auxiliary files. [bash-completion] path=3D/usr/share/bash-completion In both cases, the keys could be put into INSTALL_MASK in make.conf: INSTALL_MASK=3D"systemd bash-completion" What are your thoughts? --=20 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/uaQ+URzyj0bePjRE_HhYKEy Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQJ8BAEBCgBmBQJS0RrjXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZOsLgP/3ZsXto4+AzR7vi46nqmAiqS aQLjUNndIU6EDREs3fZNYnfpG6/G79NXzCeJpXOlWdMyWMiat/PL024fJqKEJvG9 8V65fyOGrtne3SoC7Glb50FcwGU4SQTd68CF4hBwJMk1upwg+Mqgk06cEobIAODu cE54l/SJ8al90UH1OAW7huKRIw0byy3dCv+prkb/k8sZnOeR6mH0bdy0TfXMNoCp QKSlxnoAIQdR/R9aeprTWEmff4DC+u0G/dQ/4hGZfc1w7FZ3T+DxIMM76DHcaG4s DheixqI4JEXbxDtheKjANQwqrmm9EUteEk5EJxSE4NTROUdl+jcBwjaiq5UHFAe5 lpRSaCpdyo/rxGmXt/rSV/t/foxNlzasSsL3egDjddC3ER42XRJLqP0bc7eP8O6O MEbOlLkfIZ111U7jopp1typ/ao/8UX264UAd90eY3e52GbYhxsOhN5exhIXtvSeC DG1ioUucXvEmw5QStKpJf4SIHIQn0LA0FJjCiK/16d3j1boKlWJf6Z1vXuZfF71u 2JGI1OQYwUdHs11pFWTaaIj4uTSoS7a1kCKjwTa0jwk0HOCzB6HSiJbwTe/TK5JL 9j735OhrPra8bo+UNOYXBYdWQ7LGV+vUSv0JSRR9QK6CnvoVilujvx4cKUqAt8FC ZHsqp7kPsJTJU/5ChLR+ =YyIy -----END PGP SIGNATURE----- --Sig_/uaQ+URzyj0bePjRE_HhYKEy--