1 |
On Mon, Aug 31, 2015 at 11:00 PM, Todd Goodman <tsg@×××××××××.net> wrote: |
2 |
> * Alexander Kapshuk <alexander.kapshuk@×××××.com> [150831 15:35]: |
3 |
>> Having read the email exchange on the possibility of using |
4 |
>> 'package.use' as a directory, I thought I would give that a try. |
5 |
>> |
6 |
>> Here is what I have attempted so far. |
7 |
>> |
8 |
>> cd /etc/portage |
9 |
>> mv package.use package.use.COPY |
10 |
>> mkdir package.use |
11 |
>> cd package.use |
12 |
>> awk -F'[/\t ]+' '{printf("echo \047%s\047 >> ", $0); sub("-[0-9]+.*", |
13 |
>> "", $2); print $2}' ../package.use.COPY |
14 |
>> |
15 |
>> NOTE; the awk output just generates the command lines for the shell to |
16 |
>> run. If the output is acceptable, it should be piped through to the |
17 |
>> shell. |
18 |
>> |
19 |
>> Here is the contents of the original 'package.use' file: |
20 |
>> |
21 |
>> cat package.use |
22 |
>> =dev-lang/python-2.7.9-r1 sqlite |
23 |
>> >=dev-ruby/json-1.8.2-r1 ruby_targets_ruby21 |
24 |
>> >=dev-ruby/racc-1.4.11 ruby_targets_ruby21 |
25 |
>> >=dev-ruby/rake-0.9.6-r1 ruby_targets_ruby21 |
26 |
>> >=dev-ruby/rdoc-4.0.1-r2 ruby_targets_ruby21 |
27 |
>> >=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21 |
28 |
>> >=media-libs/harfbuzz-0.9.38 icu |
29 |
>> >=media-video/ffmpeg-2.6.3 theora |
30 |
>> >=sys-libs/zlib-1.2.8-r1 minizip |
31 |
>> >=virtual/rubygems-10 ruby_targets_ruby21 |
32 |
>> gnome-base/gvfs -http gphoto2 mtp |
33 |
>> media-video/vlc a52 aac bidi cdda cdio dts dvd flac freetype gnutls |
34 |
>> httpd libass live lua mad matroska mpeg ogg oggvorbis qt4 stream svga |
35 |
>> theora vcd vlm wxwindows xv |
36 |
>> net-print/hplip scanner qt4 |
37 |
>> sys-apps/busybox -pam |
38 |
>> sys-devel/gcc objc |
39 |
>> sys-process/cronie anacron |
40 |
>> x11-base/xorg-server udev |
41 |
>> xfce-extra/xfce4-power-manager -udisks |
42 |
>> xfce-extra/xfce4-sensors-plugin hddtemp lm_sensors |
43 |
>> |
44 |
>> NOTE: There are two entries for 'rubygems' there. |
45 |
>> |
46 |
>> Here is the awk script output: |
47 |
>> |
48 |
>> echo '=dev-lang/python-2.7.9-r1 sqlite' >> python |
49 |
>> echo '>=dev-ruby/json-1.8.2-r1 ruby_targets_ruby21' >> json |
50 |
>> echo '>=dev-ruby/racc-1.4.11 ruby_targets_ruby21' >> racc |
51 |
>> echo '>=dev-ruby/rake-0.9.6-r1 ruby_targets_ruby21' >> rake |
52 |
>> echo '>=dev-ruby/rdoc-4.0.1-r2 ruby_targets_ruby21' >> rdoc |
53 |
>> echo '>=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21' >> rubygems |
54 |
>> echo '>=media-libs/harfbuzz-0.9.38 icu' >> harfbuzz |
55 |
>> echo '>=media-video/ffmpeg-2.6.3 theora' >> ffmpeg |
56 |
>> echo '>=sys-libs/zlib-1.2.8-r1 minizip' >> zlib |
57 |
>> echo '>=virtual/rubygems-10 ruby_targets_ruby21' >> rubygems |
58 |
>> echo 'gnome-base/gvfs -http gphoto2 mtp' >> gvfs |
59 |
>> echo 'media-video/vlc a52 aac bidi cdda cdio dts dvd flac freetype |
60 |
>> gnutls httpd libass live lua mad matroska mpeg ogg oggvorbis qt4 |
61 |
>> stream svga theora vcd vlm wxwindows xv' >> vlc |
62 |
>> echo 'net-print/hplip scanner qt4' >> hplip |
63 |
>> echo 'sys-apps/busybox -pam' >> busybox |
64 |
>> echo 'sys-devel/gcc objc' >> gcc |
65 |
>> echo 'sys-process/cronie anacron' >> cronie |
66 |
>> echo 'x11-base/xorg-server udev' >> xorg-server |
67 |
>> echo 'xfce-extra/xfce4-power-manager -udisks' >> xfce4-power-manager |
68 |
>> echo 'xfce-extra/xfce4-sensors-plugin hddtemp lm_sensors' >> |
69 |
>> xfce4-sensors-plugin |
70 |
>> |
71 |
>> The two 'rubygems' entries I had in the original 'package.use' file |
72 |
>> went into a single 'rubygems' file: |
73 |
>> |
74 |
>> cat rubygems |
75 |
>> >=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21 |
76 |
>> >=virtual/rubygems-10 ruby_targets_ruby21 |
77 |
>> |
78 |
>> Is this format acceptable? Or should I have used two separate files, |
79 |
>> one for 'dev-lang/rubygems', and another for 'virtual/rubygems'? |
80 |
>> |
81 |
>> I have run 'emerge -auUND @world' since the transition, which voiced |
82 |
>> no complaints so far. |
83 |
>> |
84 |
>> The list's input would be appreciated. |
85 |
> |
86 |
> Those should all be fine. I tend to make a file per package but I think |
87 |
> you could have just moved your original package.use into the |
88 |
> /etc/portage/package.use directory and everything would be fine (aside |
89 |
> from you not gaining any benefit from separate files.) |
90 |
> |
91 |
> Todd |
92 |
> |
93 |
|
94 |
Understood. Thanks. |