* [gentoo-portage-dev] Can an ebuild override CONFIG_PROTECT?
@ 2009-10-15 9:51 Amit Dor-Shifer
2009-10-15 21:29 ` Zac Medico
0 siblings, 1 reply; 6+ messages in thread
From: Amit Dor-Shifer @ 2009-10-15 9:51 UTC (permalink / raw
To: gentoo-portage-dev
I.E.: can an ebuild instruct that one of its deployables under /etc
shall be "mercilessly auto-update"d?
Using /etc/make.conf/CONFIG_PROTECT_MASK for a single file seems a bit
unnatural to me: a general-purpose file specifying a file o/w unknown
and unrelated to it.
Amit
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-portage-dev] Can an ebuild override CONFIG_PROTECT?
2009-10-15 9:51 [gentoo-portage-dev] Can an ebuild override CONFIG_PROTECT? Amit Dor-Shifer
@ 2009-10-15 21:29 ` Zac Medico
2009-10-18 8:37 ` Amit Dor-Shifer
0 siblings, 1 reply; 6+ messages in thread
From: Zac Medico @ 2009-10-15 21:29 UTC (permalink / raw
To: gentoo-portage-dev
Amit Dor-Shifer wrote:
> I.E.: can an ebuild instruct that one of its deployables under /etc
> shall be "mercilessly auto-update"d?
> Using /etc/make.conf/CONFIG_PROTECT_MASK for a single file seems a bit
> unnatural to me: a general-purpose file specifying a file o/w unknown
> and unrelated to it.
There are lots of ebuilds that install files in /etc/env.d/
containing CONFIG_PROTECT_MASK settings. It think that's what you want.
--
Thanks,
Zac
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-portage-dev] Can an ebuild override CONFIG_PROTECT?
2009-10-15 21:29 ` Zac Medico
@ 2009-10-18 8:37 ` Amit Dor-Shifer
2009-10-18 8:56 ` Zac Medico
0 siblings, 1 reply; 6+ messages in thread
From: Amit Dor-Shifer @ 2009-10-18 8:37 UTC (permalink / raw
To: gentoo-portage-dev
Thanks.
IMHO this usage of env.d should be documented in the ebuild howto, as it
presents a useful-yet-not-trivial mechanism.
I'd document it, if:
a) I get no objection from others. Anyone?
b) I'd be referred to the proper place to document it in. There's a page
dealing w/ |CONFIG_PROTECT_MASK at
http://devmanual.gentoo.org/general-concepts/config-protect/index.html,
but I doubt if that's the proper place.
|Amit
Zac Medico wrote:
> Amit Dor-Shifer wrote:
>
>> I.E.: can an ebuild instruct that one of its deployables under /etc
>> shall be "mercilessly auto-update"d?
>> Using /etc/make.conf/CONFIG_PROTECT_MASK for a single file seems a bit
>> unnatural to me: a general-purpose file specifying a file o/w unknown
>> and unrelated to it.
>>
>
> There are lots of ebuilds that install files in /etc/env.d/
> containing CONFIG_PROTECT_MASK settings. It think that's what you want.
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-portage-dev] Can an ebuild override CONFIG_PROTECT?
2009-10-18 8:37 ` Amit Dor-Shifer
@ 2009-10-18 8:56 ` Zac Medico
2009-10-18 9:26 ` Amit Dor-Shifer
0 siblings, 1 reply; 6+ messages in thread
From: Zac Medico @ 2009-10-18 8:56 UTC (permalink / raw
To: gentoo-portage-dev
Amit Dor-Shifer wrote:
> Thanks.
> IMHO this usage of env.d should be documented in the ebuild howto, as it
> presents a useful-yet-not-trivial mechanism.
>
> I'd document it, if:
> a) I get no objection from others. Anyone?
> b) I'd be referred to the proper place to document it in. There's a page
> dealing w/ |CONFIG_PROTECT_MASK at
> http://devmanual.gentoo.org/general-concepts/config-protect/index.html,
> but I doubt if that's the proper place.
It's touched upon in the User Handbook here:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part2_chap5
It might be nice to mention it somewhere in the Developer Handbook:
http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?full=1
That's maintained by the devrel team, and you can file a bug for
them at bugs.gentoo.org.
--
Thanks,
Zac
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-portage-dev] Can an ebuild override CONFIG_PROTECT?
2009-10-18 8:56 ` Zac Medico
@ 2009-10-18 9:26 ` Amit Dor-Shifer
2009-10-18 9:37 ` Zac Medico
0 siblings, 1 reply; 6+ messages in thread
From: Amit Dor-Shifer @ 2009-10-18 9:26 UTC (permalink / raw
To: gentoo-portage-dev
Does emerge actually call 'env-update'? If so, where (I can't find in in
the code)?
if not, who performs the environment update when an ebuild is emerged
(I'm supposing env-update gets called. I didn't call it explicitly in my
ebuild, yet still /etc/profile.env gets updated with CONFIG_PROTECT_MASK)?
Amit
Zac Medico wrote:
> Amit Dor-Shifer wrote:
>
>> Thanks.
>> IMHO this usage of env.d should be documented in the ebuild howto, as it
>> presents a useful-yet-not-trivial mechanism.
>>
>> I'd document it, if:
>> a) I get no objection from others. Anyone?
>> b) I'd be referred to the proper place to document it in. There's a page
>> dealing w/ |CONFIG_PROTECT_MASK at
>> http://devmanual.gentoo.org/general-concepts/config-protect/index.html,
>> but I doubt if that's the proper place.
>>
>
> It's touched upon in the User Handbook here:
>
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part2_chap5
>
> It might be nice to mention it somewhere in the Developer Handbook:
>
> http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?full=1
>
> That's maintained by the devrel team, and you can file a bug for
> them at bugs.gentoo.org.
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-portage-dev] Can an ebuild override CONFIG_PROTECT?
2009-10-18 9:26 ` Amit Dor-Shifer
@ 2009-10-18 9:37 ` Zac Medico
0 siblings, 0 replies; 6+ messages in thread
From: Zac Medico @ 2009-10-18 9:37 UTC (permalink / raw
To: gentoo-portage-dev
Amit Dor-Shifer wrote:
> Does emerge actually call 'env-update'? If so, where (I can't find in in
> the code)?
> if not, who performs the environment update when an ebuild is emerged
> (I'm supposing env-update gets called. I didn't call it explicitly in my
> ebuild, yet still /etc/profile.env gets updated with CONFIG_PROTECT_MASK)?
> Amit
Yes, emerge calls env-update automatically. But, you should call
source /etc/profile afterwards in you running shell. Also, there's
this bug which prevents new CONFIG_PROTECT* settings from taking
immediate effect:
http://bugs.gentoo.org/show_bug.cgi?id=276345
--
Thanks,
Zac
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-10-18 9:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-15 9:51 [gentoo-portage-dev] Can an ebuild override CONFIG_PROTECT? Amit Dor-Shifer
2009-10-15 21:29 ` Zac Medico
2009-10-18 8:37 ` Amit Dor-Shifer
2009-10-18 8:56 ` Zac Medico
2009-10-18 9:26 ` Amit Dor-Shifer
2009-10-18 9:37 ` Zac Medico
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox