Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]/etc/portage/package.use directory and dispatch-conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pgu
l33t
l33t


Joined: 30 Jul 2009
Posts: 721
Location: Oslo, Norway

PostPosted: Sun Feb 03, 2013 10:58 am    Post subject: [SOLVED]/etc/portage/package.use directory and dispatch-conf Reply with quote

Some of the crossdev tools I emerged required that package.use was a diretory rather than a file. Hence I switched to the /etc/portage/ directory structure even though I find it somewhat confusing. I can't seem to find this documented anywhere either (e.g. not in emerge(1) or portage(5)). My problem is that it appears that dispatch-conf gets confused by this structure as I get the following error when I run it and try to use it:

Code:

dispatch-conf
...
+#required by www-client/chromium-24.0.1312.56, required by @selected, required by @world (argument)
+>=sys-libs/zlib-1.2.7 minizip

>> (1 of 1) -- /etc/portage/package.use/net-libs/courier-authlib
>> q quit, h help, n next, e edit-new, z zap-new, u use-new
   m merge, t toggle-merge, l look-merge: 
Traceback (most recent call last):
  File "/usr/sbin/dispatch-conf", line 492, in <module>
    portage.settings.get('CONFIG_PROTECT', '')))
  File "/usr/sbin/dispatch-conf", line 338, in grind
    self.post_process(conf['current'])
  File "/usr/sbin/dispatch-conf", line 371, in post_process
    portage.dispatch_conf.file_archive_post_process(archive)
  File "/usr/lib64/portage/pym/portage/dispatch_conf.py", line 198, in file_archive_post_process
    os.rename(archive + '.dist.new', archive + '.dist')
OSError: [Errno 20] Not a directory


It also seems like something got messed up when I run:

Code:
emerge --update --deep --with-bdeps=y --newuse world --autounmask-write


I expected (but as I said I'm confused about what the correct directory structure is) use flags for courier-authlib to go to:

Code:
/etc/portage/package.use/net-libs/courier-authlib


But this file gets filled with other use flags as well:

Code:
cat /etc/portage/package.use/net-libs/courier-authlib
net-libs/courier-authlib   -sqlite
#required by media-libs/sk1libs-0.9.1, required by media-gfx/uniconvertor-1.1.5, required by media-gfx/inkscape-0.48.4, required by @selected, required by @world (argument)
>=media-libs/lcms-1.19:0 python
#required by media-gfx/graphviz-2.26.3-r4, required by media-gfx/imagemagick-6.7.8.7[graphviz], required by sci-mathematics/octave-3.4.3-r1[imagemagick], required by @selected, required by @world (argument)
>=media-libs/gd-2.0.35-r3 fontconfig
#required by www-client/chromium-24.0.1312.56, required by @selected, required by @world (argument)
=dev-libs/libxml2-2.8.0-r3 icu
#required by www-client/chromium-24.0.1312.56, required by @selected, required by @world (argument)
>=sys-libs/zlib-1.2.7 minizip



So where can I find documentation on the portage directory structure and clean up this mess?


Last edited by pgu on Sun Feb 03, 2013 11:15 am; edited 1 time in total
Back to top
View user's profile Send private message
pgu
l33t
l33t


Joined: 30 Jul 2009
Posts: 721
Location: Oslo, Norway

PostPosted: Sun Feb 03, 2013 11:14 am    Post subject: Reply with quote

It seems like I have misunderstood the structure. One should only use hierarchy whenever required, and use /etc/portage/package.use/package.use for the rest. I thought one always had to use full package hierarchy under /etc/portage/package.use.

The only place where I have to use hierarchy is for the crossdev toolchain:

Code:
/etc/portage/package.use/cross-armv6j-hardfloat-linux-gnueabi


So this is solved, but I still be happy with some pointer to some documentation about this.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9523
Location: beyond the rim

PostPosted: Mon Feb 04, 2013 7:37 am    Post subject: Reply with quote

portage(5) wrote:
/etc/portage/
Any file in this directory that begins with "package." can be more than just a flat file. If it is a directory, then all the files in that directory will be sorted in ascending alphabetical order by file name and summed together as if it were a single file.
Back to top
View user's profile Send private message
pgu
l33t
l33t


Joined: 30 Jul 2009
Posts: 721
Location: Oslo, Norway

PostPosted: Mon Feb 04, 2013 6:18 pm    Post subject: Reply with quote

Thanks Genone, I missed that part.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum