Re: [gentoo-portage-dev] ebuild/emerge lookup category differently?

2009-07-26 Thread Amit Dor-Shifer
Solved.
I was missing the profiles/ dir in the build env. (a temp folder, which
is wiped-clean before the build). Your reply gave me a lead.
Thanks,
Amit

Zac Medico wrote:
 Amit Dor-Shifer wrote:
   
 Hi.
 In my overlay, I can have packages assigned to a private category, and
 have that category specified in profiles/categories, under the overlay
 itself.
 However, in-order to ebuild such a package I have to append the category
 to /etc/portage/categories, else I get an error message:

 !!! 'priv-cat/mypkg' has a category that is not listed in
 /etc/portage/categories

 Is that intended?
 

 No, but if works for me here (in profiles/categories, under the
 overlay itself). So, I wonder what's different about your system.
 Are you sure that you spelled the category correctly?

 You can get a list of valid categories like this:

   python -c 'import portage; print portage.settings.categories'

 Does your category show in that list?

   
 Amit

 


   



Re: [gentoo-portage-dev] ebuild/emerge lookup category differently?

2009-07-23 Thread Drake Wyrm
Amit Dor-Shifer ami...@oversi.com wrote:
 Hi.
 In my overlay, I can have packages assigned to a private category, and
 have that category specified in profiles/categories, under the overlay
 itself.
 However, in-order to ebuild such a package I have to append the category
 to /etc/portage/categories, else I get an error message:
 
 !!! 'priv-cat/mypkg' has a category that is not listed in
 /etc/portage/categories

You can also put the name of the category in
/path/to/overlay/profiles/categories to eliminate the error message.
That seems a bit more appropriate, since it allows you to edit the
overlay without mucking around in /etc. Also, if you publish your
overlay or sync it to several of your own machines, you or your users
don't need to edit anything when the overlay changes.

-- 
Batou: Hey, Major... You ever hear of human rights?
Kusanagi: I understand the concept, but I've never seen it in action.
  --Ghost in the Shell



Re: [gentoo-portage-dev] ebuild/emerge lookup category differently?

2009-07-23 Thread Zac Medico
Amit Dor-Shifer wrote:
 Hi.
 In my overlay, I can have packages assigned to a private category, and
 have that category specified in profiles/categories, under the overlay
 itself.
 However, in-order to ebuild such a package I have to append the category
 to /etc/portage/categories, else I get an error message:
 
 !!! 'priv-cat/mypkg' has a category that is not listed in
 /etc/portage/categories
 
 Is that intended?

No, but if works for me here (in profiles/categories, under the
overlay itself). So, I wonder what's different about your system.
Are you sure that you spelled the category correctly?

You can get a list of valid categories like this:

  python -c 'import portage; print portage.settings.categories'

Does your category show in that list?

 
 Amit
 


-- 
Thanks,
Zac