From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-dev+bounces-57970-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 3E3A71386AF
	for <garchives@archives.gentoo.org>; Sat, 26 Jan 2013 13:21:11 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id E3B95E06CC;
	Sat, 26 Jan 2013 13:21:01 +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 F032DE06C2
	for <gentoo-dev@lists.gentoo.org>; Sat, 26 Jan 2013 13:21:00 +0000 (UTC)
Received: from pomiocik.lan (unknown [213.195.184.129])
	(using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: mgorny)
	by smtp.gentoo.org (Postfix) with ESMTPSA id A46C833DA28;
	Sat, 26 Jan 2013 13:20:58 +0000 (UTC)
Date: Sat, 26 Jan 2013 14:21:37 +0100
From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: vapier@gentoo.org, constanze@gentoo.org
Subject: Re: [gentoo-dev] fcaps.eclass: bringing filesystem capabilities to
 the tree
Message-ID: <20130126142137.1f2a728c@pomiocik.lan>
In-Reply-To: <201301251851.45021.vapier@gentoo.org>
References: <201301251851.45021.vapier@gentoo.org>
Organization: Gentoo
X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.14; x86_64-pc-linux-gnu)
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@lists.gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA256;
 boundary="Sig_/JIGBBZP9jSQJahzj0dqO7S_"; protocol="application/pgp-signature"
X-Archives-Salt: 466b30ad-37b7-42f2-ab36-ae5ebef80b18
X-Archives-Hash: c4275476c37e112457b66cac42e96fb5

--Sig_/JIGBBZP9jSQJahzj0dqO7S_
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Fri, 25 Jan 2013 18:51:44 -0500
Mike Frysinger <vapier@gentoo.org> wrote:

> # Or set it via the global ebuild var FILECAPS:
> # @CODE
> # FILECAPS=3D(
> # 	cap_net_raw bin/ping bin/ping6
> # )
> # @CODE

Please don't. We have enough eclasses randomly exporting
pkg_postinst().

The FILECAPS array consumes the same amount of space as pkg_postinst()
phase declaration. There's no real benefit to this automagic.

Yet, the phase function exported is *forced* to every single eclass
consumer. Therefore, you are implicitly adding lines for people who
will have to make sure that every single other pkg_postinst() you
clobbered is called.

Of course, assuming people would actually notice some of the other
useless pkg_postinst() phases being clobbered...

--=20
Best regards,
Micha=C5=82 G=C3=B3rny

--Sig_/JIGBBZP9jSQJahzj0dqO7S_
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iJwEAQEIAAYFAlED2GEACgkQfXuS5UK5QB3x7gQArTxKNBPlvZXu3+Nxslrqtuud
GZI25DupQPjKsau6ff3cGS5x4+x3k/81GLLNiSuU14XCkSfVf9y5vR1jSl/rvgWJ
MIyRpG0fjX+OmK1MKV9T8WUyiPyD7EtKt3nltoa7S+loy74OTkWsreqAghKwokTv
S0h14OTAVdGGRhYYd0w=
=ptRT
-----END PGP SIGNATURE-----

--Sig_/JIGBBZP9jSQJahzj0dqO7S_--