Gentoo Archives: gentoo-user

From: maxim wexler <blissfix@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] perl adepts here?--was--usb device mp3 playlist maker
Date: Wed, 27 Jun 2007 22:41:53
Message-Id: 447372.5767.qm@web31706.mail.mud.yahoo.com
1 --- "D. Bolliger" <info@×××××××××.ch> wrote:
2
3 > maxim wexler am Mittwoch, 27. Juni 2007 18:55:
4 > > > The module is "Carp::Assert". It is mapped to
5 > the
6 > > > file Carp/Assert.pm, which
7 > > > you dont have installed, so
8 > > >
9 > > > emerge -av Carp-Assert
10 > > >
11 > > > hope this helps
12 > > >
13 > > > Dani
14 >
15 > Hello maxim
16 >
17 > (sorry, I'm not native english speaking)
18 >
19 > > Well, that went smoothly enough, but:
20 > >
21 > > heathen@localhost ~ $ ls /usr/lib/perl5/*8/Carp
22 > > Heavy.pm
23 >
24 > I don't understand what you want to say with the ls
25 > above.
26 >
27
28 I meant that after emerging Carp-Assert there is only
29 Heavy.pm under the Carp dir. You seem to imply that I
30 should also find Assert.pm.
31
32 > $ equery belongs /usr/lib/perl5/5.8.8/Carp/Heavy.pm
33 > [ Searching for file(s)
34 > /usr/lib/perl5/5.8.8/Carp/Heavy.pm in *... ]
35 > dev-lang/perl-5.8.8-r2
36 > (/usr/lib/perl5/5.8.8/Carp/Heavy.pm)
37 >
38 > So, Carp::Heavy is a core module, installed with
39 > perl.
40 >
41 > > and now it
42 >
43 > With "it", you mean ./cpShuffleSature_stable, and
44 > that's your program?
45
46 Yes.
47
48 >
49 > (I don't have it :-), but:)
50 >
51 > > wants something else:
52 > >
53 > > heathen@localhost ~ $ ./cpShuffleSature_stable -t
54 > /usb
55 > > -f '\.mp(3|e?g)$' -s 'music/mp3' -m 256M
56 > > Can't locate Filesys/DiskFree.pm in @INC (@INC
57 > > contains: /etc/perl
58 > [snip]
59 > > BEGIN failed--compilation aborted at
60 > > ./cpShuffleSature_stable line 81.
61 > >
62 > > I did emerge -pv DiskFree, Filesys-DiskFree, and
63 > it
64 > > came back "no ebuilds to satisfy..."
65 >
66 > Another way to find a certain module is
67 >
68 > $ equery -s diskfree
69 > Searching...
70 > [ Results for search key : Diskfree ]
71 > [ Applications found : 1 ]
72 >
73 > * app-admin/gtkdiskfree
74 > Latest version available: 1.9.3-r1
75 > Latest version installed: [ Not Installed ]
76 > Size of files: 249 kB
77 > Homepage:
78 > http://gtkdiskfree.tuxfamily.org/
79 > Description: Graphical tool to show free
80 > disk space
81 > License: GPL-2
82 >
83
84 Not here:
85
86 heathen@localhost ~ $ equery -s diskfree
87 !!! No command or unknown command given
88 Usage: equery <global-opts> command <local-opts>
89 where <global-opts> is one of
90 -q, --quiet - minimal output
91 -C, --nocolor - turn off colours
92 -h, --help - this help screen
93 -V, --version - display version info
94 where command(short) is one of
95 belongs(b) <local-opts> files... - list all packages
96 owning files...
97 changes(c) - not implemented yet
98 check(k) pkgspec - check MD5sums and timestamps of
99 pkgspec's files
100 depends(d) <local-opts> pkgspec - list all direct
101 dependencies matching pkgspec
102 depgraph(g) <local-opts> pkgspec - display a
103 dependency tree for pkgspec
104 files(f) <local-opts> pkgspec - list files owned by
105 pkgspec
106 glsa(a) - not implemented yet
107 hasuse(h) <local-opts> pkgspec - list all packages
108 with useflag
109 list(l) <local-opts> pkgspec - list all packages
110 matching pkgspec
111 size(s) <local-opts> pkgspec - print size of files
112 contained in package pkgspec
113 stats(t) - not implemented yet
114 uses(u) <local-opts> pkgspec - display USE flags for
115 pkgspec
116 which(w) pkgspec - print full path to ebuild for
117 package pkgspec
118
119
120 http://search.cpan.org/search?query=Filesys%3A%3ADiskfree&mode=module
121 > => first result.
122 >
123 > It seems rather old, and I don't have it installed.
124 >
125 > It should be posible, although I didn't test it,
126 > with g-cpan:
127 >
128 > $ g-cpan -i Filesys::DiskFree
129 >
130
131 Interesting, I tried the above two times. First time
132 it took a long while then:
133
134 <snip>
135 Filesys-DiskFree-0.06/eg/silly
136 Filesys-DiskFree-0.06/Changes
137 Filesys-DiskFree-0.06/test.pl
138 Filesys-DiskFree-0.06/README
139 * g-cpan: Generating ebuild for Filesys::DiskFree
140 * g-cpan: Ebuild generated for Filesys-DiskFree
141 * g-cpan: Nothing to install!!
142
143
144 localhost heathen # g-cpan -i Filesys::DiskFree
145 CPAN: Storable loaded ok
146 Going to read /var/tmp/g-cpan/.cpan/Metadata
147 Database was generated on Wed, 27 Jun 2007 20:10:07
148 GMT
149 * g-cpan: Ebuild already exists for Filesys-DiskFree
150 Calculating dependencies... done!
151
152 Second time:
153
154
155 >>> Emerging (1 of 1) perl-gcpan/Filesys-DiskFree-0.06
156 to /
157 * Filesys-DiskFree-0.06.tar.gz MD5 ;-) ...
158 [ ok
159 ]
160 * Filesys-DiskFree-0.06.tar.gz RMD160 ;-) ...
161 [ ok
162 ]
163 * Filesys-DiskFree-0.06.tar.gz SHA1 ;-) ...
164 [ ok
165 ]
166 * Filesys-DiskFree-0.06.tar.gz SHA256 ;-) ...
167 [ ok
168 ]
169 * Filesys-DiskFree-0.06.tar.gz size ;-) ...
170 [ ok
171 ]
172 * checking ebuild checksums ;-) ...
173 [ ok
174 ]
175 * checking auxfile checksums ;-) ...
176 [ ok
177 ]
178 * checking miscfile checksums ;-) ...
179 [ ok
180 ]
181 * checking Filesys-DiskFree-0.06.tar.gz ;-) ...
182 [ ok
183 ]
184 >>> Unpacking source...
185 >>> Unpacking Filesys-DiskFree-0.06.tar.gz to
186 /var/tmp/portage/perl-gcpan/Filesys-DiskFree-0.06/work
187 >>> Source unpacked.
188 >>> Compiling source in
189 /var/tmp/portage/perl-gcpan/Filesys-DiskFree-0.06/work/Filesys-DiskFree-0.06
190 ...
191 /var/tmp/portage/perl-gcpan/Filesys-DiskFree-0.06/work/Filesys-DiskFree-0.06
192 * Using ExtUtils::MakeMaker
193 Checking if your kit is complete...
194 Looks good
195 Writing Makefile for Filesys::DiskFree
196 cp DiskFree.pm blib/lib/Filesys/DiskFree.pm
197 >>> Source compiled.
198 >>> Test phase [not enabled]:
199 perl-gcpan/Filesys-DiskFree-0.06
200
201 >>> Install Filesys-DiskFree-0.06 into
202 /var/tmp/portage/perl-gcpan/Filesys-DiskFree-0.06/image/
203 category perl-gcpan
204 Installing
205 /var/tmp/portage/perl-gcpan/Filesys-DiskFree-0.06/image/usr/lib/perl5/vendor_perl/5.8.8/Filesys/DiskFree.pm
206 Writing
207 /var/tmp/portage/perl-gcpan/Filesys-DiskFree-0.06/image//usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Filesys/DiskFree/.packlist
208 Appending installation info to
209 /var/tmp/portage/perl-gcpan/Filesys-DiskFree-0.06/image//usr/lib/perl5/5.8.8/i686-linux/perllocal.pod
210 * Cleaning out stray man files
211 >>> Completed installing Filesys-DiskFree-0.06 into
212 /var/tmp/portage/perl-gcpan/Filesys-DiskFree-0.06/image/
213
214 >>> Merging perl-gcpan/Filesys-DiskFree-0.06 to /
215 --- /usr/
216 --- /usr/lib/
217 --- /usr/lib/perl5/
218 --- /usr/lib/perl5/5.8.8/
219 --- /usr/lib/perl5/5.8.8/i686-linux/
220 --- /usr/lib/perl5/vendor_perl/
221 --- /usr/lib/perl5/vendor_perl/5.8.8/
222 --- /usr/lib/perl5/vendor_perl/5.8.8/Filesys/
223 >>>
224 /usr/lib/perl5/vendor_perl/5.8.8/Filesys/DiskFree.pm
225 --- /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/
226 --- /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/
227 ---
228 /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Filesys/
229 >>>
230 /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Filesys/DiskFree/
231 >>>
232 /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Filesys/DiskFree/.packlist
233 --- /usr/share/
234 --- /usr/share/doc/
235 >>> /usr/share/doc/Filesys-DiskFree-0.06/
236 >>> /usr/share/doc/Filesys-DiskFree-0.06/README.bz2
237 >>> /usr/share/doc/Filesys-DiskFree-0.06/Changes.bz2
238 >>> /usr/share/doc/Filesys-DiskFree-0.06/MANIFEST.bz2
239 * Man pages are not installed for most modules now.
240 * Please use perldoc instead.
241 >>> perl-gcpan/Filesys-DiskFree-0.06 merged.
242
243 >>> No packages selected for removal by clean
244 >>> Auto-cleaning packages...
245
246 >>> No outdated packages were found on your system.
247 * GNU info directory index is up-to-date.
248
249
250 So the first time it only made the ebuild and the
251 second time, installed it?
252
253
254 OK, I'm running the program NOW. The cursor dropped to
255 the next line and stopped there. It appears to be
256 copying tunes, but it's verrrrrrry slllloowwwwww.
257 Takes about a minute per tune. Looks like it stopped
258 at eleven out of ~70. No, it's up to 17 now -- after
259 20mins -- not good.
260
261 > I don't understand the following :-)
262 >
263 > > There was however a Filesys-DiskSpace which I had
264 > to
265 > > unmask before emerging. Didn't help though, same
266 > > result.
267
268 When I first tried emerging Filesys-DiskSpace the
269 error was "masked by ~x86 keyword". So I
270
271 #echo "dev-perl/Filesys-DiskSpace ~x86" >>
272 /etc/portage/package.keywords
273
274
275 and the file was emerged.
276
277
278
279
280
281 ____________________________________________________________________________________Ready for the edge of your seat?
282 Check out tonight's top picks on Yahoo! TV.
283 http://tv.yahoo.com/
284 --
285 gentoo-user@g.o mailing list