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