* Re: [gentoo-dev] custom portage sections?
2002-05-13 17:37 ` Zach Forrest
@ 2002-05-13 13:46 ` Bob Phan
2002-05-13 22:22 ` Zach Forrest
2002-05-14 11:41 ` Paul de Vrieze
0 siblings, 2 replies; 8+ messages in thread
From: Bob Phan @ 2002-05-13 13:46 UTC (permalink / raw
To: gentoo-dev
On Mon, 13 May 2002, Zach Forrest wrote:
> Jean-Michel Smith wrote:
> > On Monday 13 May 2002 12:01 pm, Zach Forrest wrote:
> >
> >>I believe you'll need to add your category to:
> >> /usr/portage/profiles/categories
> >
> >
> > That was indeed the trick I was looking for! Many thanks!
> >
> I'm glad it worked. I just wanted to mention that I don't think the
> categories file is config protected, so you might have to modify it
> whenever portage is updated, or add the /usr/portage/profiles directory
> to CONFIG_PROTECT (which would be a *huge* pain to protect that one
> file). I think a better idea would be to have a CATEGORIES variable in
> /etc/make.globals that would allow the addition of custom categories;
> the categories would then be composed of the official categories with
> the custom categories listed in CATEGORIES appended to the list. You
> might want to file a feature request through bugzilla for this.
Personally, I feel an even more elegant way to solve this, that would
benefit more than just custom categories, is to allow CONFIG_PROTECT
to contain individual files as well directories, which is very simple
to implement.
It would also be nice to be able to un-protect files and
subdirectories of protected directories, but that probably wouldn't be
as simple to implement.
--
/*
* Bob Phan <bob@endlessrecursion.net,rphan@nrgn.com>
* Computational Chemistry Informatics
* Neurogen Corporation
* (203)488-8201 x4645
*
* To understand recursion, you must first understand recursion.
*/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-dev] custom portage sections?
@ 2002-05-13 16:53 Jean-Michel Smith
2002-05-13 17:01 ` Zach Forrest
0 siblings, 1 reply; 8+ messages in thread
From: Jean-Michel Smith @ 2002-05-13 16:53 UTC (permalink / raw
To: gentoo-dev
Hi,
I am trying to create custom portage sections to hold ebuilds for in-house
software, e.g. /usr/portage/kcco-libs, /usr/portage/kcco-apps, etc.).
Unfortunately emerge doesn't seem to be able to find any ebuilds located in
these directories (though if I move them to one of the already existing
directories they work fine).
Is there a trick I'm missing in adding a custom section to the portage tree,
or is this hardcoded into the portage utilities somewhere?
tia,
Jean.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] custom portage sections?
2002-05-13 16:53 [gentoo-dev] custom portage sections? Jean-Michel Smith
@ 2002-05-13 17:01 ` Zach Forrest
2002-05-13 17:25 ` Jean-Michel Smith
0 siblings, 1 reply; 8+ messages in thread
From: Zach Forrest @ 2002-05-13 17:01 UTC (permalink / raw
To: gentoo-dev
I believe you'll need to add your category to:
/usr/portage/profiles/categories
zach
Jean-Michel Smith wrote:
> Hi,
>
> I am trying to create custom portage sections to hold ebuilds for in-house
> software, e.g. /usr/portage/kcco-libs, /usr/portage/kcco-apps, etc.).
> Unfortunately emerge doesn't seem to be able to find any ebuilds located in
> these directories (though if I move them to one of the already existing
> directories they work fine).
>
> Is there a trick I'm missing in adding a custom section to the portage tree,
> or is this hardcoded into the portage utilities somewhere?
>
> tia,
>
> Jean.
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] custom portage sections?
2002-05-13 17:01 ` Zach Forrest
@ 2002-05-13 17:25 ` Jean-Michel Smith
2002-05-13 17:37 ` Zach Forrest
0 siblings, 1 reply; 8+ messages in thread
From: Jean-Michel Smith @ 2002-05-13 17:25 UTC (permalink / raw
To: gentoo-dev, Zach Forrest
On Monday 13 May 2002 12:01 pm, Zach Forrest wrote:
> I believe you'll need to add your category to:
> /usr/portage/profiles/categories
That was indeed the trick I was looking for! Many thanks!
Jean.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] custom portage sections?
2002-05-13 17:25 ` Jean-Michel Smith
@ 2002-05-13 17:37 ` Zach Forrest
2002-05-13 13:46 ` Bob Phan
0 siblings, 1 reply; 8+ messages in thread
From: Zach Forrest @ 2002-05-13 17:37 UTC (permalink / raw
To: gentoo-dev
I'm glad it worked. I just wanted to mention that I don't think the
categories file is config protected, so you might have to modify it
whenever portage is updated, or add the /usr/portage/profiles directory
to CONFIG_PROTECT (which would be a *huge* pain to protect that one
file). I think a better idea would be to have a CATEGORIES variable in
/etc/make.globals that would allow the addition of custom categories;
the categories would then be composed of the official categories with
the custom categories listed in CATEGORIES appended to the list. You
might want to file a feature request through bugzilla for this.
Regards,
Zach
Jean-Michel Smith wrote:
> On Monday 13 May 2002 12:01 pm, Zach Forrest wrote:
>
>>I believe you'll need to add your category to:
>> /usr/portage/profiles/categories
>
>
> That was indeed the trick I was looking for! Many thanks!
>
> Jean.
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] custom portage sections?
2002-05-13 13:46 ` Bob Phan
@ 2002-05-13 22:22 ` Zach Forrest
2002-05-13 22:54 ` Todd Wright
2002-05-14 11:41 ` Paul de Vrieze
1 sibling, 1 reply; 8+ messages in thread
From: Zach Forrest @ 2002-05-13 22:22 UTC (permalink / raw
To: gentoo-dev
Bob Phan wrote:
<snip>
>
>
> Personally, I feel an even more elegant way to solve this, that would
> benefit more than just custom categories, is to allow CONFIG_PROTECT
> to contain individual files as well directories, which is very simple
> to implement.
>
> It would also be nice to be able to un-protect files and
> subdirectories of protected directories, but that probably wouldn't be
> as simple to implement.
>
I do agree that it would be nice to add individual files to
CONFIG_PROTECT, but I also think a 'CATEGORIES' variable has merit. This
allows the separation of stock gentoo categories from custom ones. For
example, in make.conf, you specify the USE variable you want for your
system while make.defaults holds the profile default USE variables. I
prefer to have my configuration in a standard place (e.g.
/etc/make.globals or /etc/make.conf).
Let me know what you think.
Zach
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] custom portage sections?
2002-05-13 22:22 ` Zach Forrest
@ 2002-05-13 22:54 ` Todd Wright
0 siblings, 0 replies; 8+ messages in thread
From: Todd Wright @ 2002-05-13 22:54 UTC (permalink / raw
To: gentoo-dev
> > Personally, I feel an even more elegant way to solve this, that would
> > benefit more than just custom categories, is to allow CONFIG_PROTECT
> > to contain individual files as well directories, which is very simple
> > to implement.
> >
> > It would also be nice to be able to un-protect files and
> > subdirectories of protected directories, but that probably wouldn't be
> > as simple to implement.
> >
>
> I do agree that it would be nice to add individual files to
> CONFIG_PROTECT, but I also think a 'CATEGORIES' variable has merit. This
> allows the separation of stock gentoo categories from custom ones. For
> example, in make.conf,
I'd have to agree with the CATEGORIES variable.
CONFIG_PROTECT is not going to help you. This isnt a config file to be
protected. It is the "EMERGE RSYNC" that is going to overwrite the
categories file and theres not a lot you can do about that, as it simply
mirrors the official portage tree. Adding a CATEGORIES shell variable in
make.conf seems an elegent way to solve this, but then my opinions dont seem
to carry much weight around here.
-- _--_|\ --------- Todd Wright -- wylie@geekasylum.org --------
/ \
\_.--._* <--- http://www.geekasylum.org/~wylie/
v Mobile: +61-403-796-001 Ph: +61-2-9521-8677
----------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] custom portage sections?
2002-05-13 13:46 ` Bob Phan
2002-05-13 22:22 ` Zach Forrest
@ 2002-05-14 11:41 ` Paul de Vrieze
1 sibling, 0 replies; 8+ messages in thread
From: Paul de Vrieze @ 2002-05-14 11:41 UTC (permalink / raw
To: gentoo-dev
On Monday 13 May 2002 15:46, Bob Phan wrote:
>
> Personally, I feel an even more elegant way to solve this, that would
> benefit more than just custom categories, is to allow CONFIG_PROTECT
> to contain individual files as well directories, which is very simple
> to implement.
For this particular problem, I feel a CATEGORIES variable is more appropriate,
since this will allow new categories to be taken into account. Protecting
files is a good solution for other profile related problems.
>
> It would also be nice to be able to un-protect files and
> subdirectories of protected directories, but that probably wouldn't be
> as simple to implement.
That is possible, there is a mask variable (I don't recall the name)
Paul
--
Paul de Vrieze
Junior Researcher
Mail: pauldv@cs.kun.nl
Homepage: http://www.devrieze.net
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-05-14 11:41 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-13 16:53 [gentoo-dev] custom portage sections? Jean-Michel Smith
2002-05-13 17:01 ` Zach Forrest
2002-05-13 17:25 ` Jean-Michel Smith
2002-05-13 17:37 ` Zach Forrest
2002-05-13 13:46 ` Bob Phan
2002-05-13 22:22 ` Zach Forrest
2002-05-13 22:54 ` Todd Wright
2002-05-14 11:41 ` Paul de Vrieze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox