Gentoo Archives: gentoo-user-hu

From: George Hron <hrgyster@×××××.com>
To: gentoo-user-hu@l.g.o
Subject: Re: [gentoo-user-hu] revdep-rebuild
Date: Tue, 07 Oct 2008 08:12:11
Message-Id: 9b7341bb0810070111t6401043fs23ac8c44c0bb6a25@mail.gmail.com
In Reply to: Re: [gentoo-user-hu] revdep-rebuild by cjvt
1 Varj-varj, itt nem az a gond, hogy nem a /-el azonos particion van, azt
2 mindenki magasrol tojja le, hanem hogy a /var/mnt a helye a /var helyett.
3 Tehat a valodi megoldas az lenne, amit irtam, hogy ne a /var/mnt ala, hanem
4 a /var ala mountold be a cuccot, ami meg nem oda valo, azt
5 konfiguralassal/egyeb megoldasokkal vonszold el.
6
7 A tmp_target-et nem fogod felulbiralni, mert fuggveny-lokalis valtozo (help
8 local). Tehat a hatokore a fuggvenyen belulre terjed ki.
9
10 Udv:
11 --
12 G.
13
14 2008/10/6 cjvt <cjvt@××××××××.hu>
15
16 > 2008. október 6. dátummal George Hron ezt írta:
17 > > Hat nem tudom, ez igy nem tunik a legjobb otletnek. Valoszinu, hogy
18 > > kiolvassa a symlinket. Szerintem a /var/cache -t szedd le a /var/mnt
19 > alol.
20 > > Masik lehetoseg a /var/mnt helyett a /var-ba mountolni, a szerverek
21 > cuccait
22 > > meg szepen eltenni onnan, mondjuk a /srv konyvtarba (en ezt szoktam eleve
23 > > csinalni).
24 >
25 >
26 > Igen, ez eddig vilagos, csak ez esetben az erdekelne, hogy vajon miert is
27 > dontott igy barmely fejleszto (merthogy az elmult par ev gentoolkitjei
28 > bekeben megfertek ezzel a megoldassal).
29 >
30 > Tovabba, ennyi erovel akar legkozelebb az lehet a problemaja, hogy teszem
31 > azt
32 > a /var vagy /var/cache nem a /-al azonos particion helyezkedik el, tagabb
33 > ertelemben pedig barmi mas is lehet kotozkodni valoja (mondjuk tul nagy a
34 > particio, vagy raid-ban van, vagy akarmi), hiszen miert is ne?
35 >
36 > Olyba tunik nekem a debug kimenetbol, hogy
37 >
38 > local uid=root
39 > + [[ root == \r\o\o\t ]]
40 > + local tmp_target=/var/cache/revdep-rebuild
41 > + verify_tmpdir /var/cache/revdep-rebuild root
42 > + umask 007
43 >
44 > a tmp_target nevu, userhez kotott kornyezeti valtozot olvassa ki valahonnan
45 > (mar ti. feltetelezve, hogy igazam van). Ezt vajon felul tudnam biralni a
46 > bash env-ben, vagy barhol mashol?
47 >
48 >
49 > vagy proba-cseresznye? :)
50 >
51 > vt
52 >
53 >
54 > >
55 > > 2008/10/4 cjvt <cjvt@××××××××.hu>
56 > >
57 > > > Üdv,
58 > > >
59 > > > elöljáróban:
60 > > >
61 > > > az érintett rendszeren a következő symlinkek léteznek (mármint adekvát)
62 > a
63 > > > /var
64 > > > könyvtár alatt:
65 > > >
66 > > > lrwxrwxrwx 1 amavis amavis 15 jún 11 14.26 amavis -> /var/mnt/amavis
67 > > > lrwxrwxrwx 1 root root 14 jún 11 14.26 cache -> /var/mnt/cache
68 > > > lrwxrwxrwx 1 root root 12 jún 11 14.26 tmp -> /var/mnt/tmp
69 > > >
70 > > > A /var/mnt tartalma
71 > > >
72 > > > # ls -la /var/mnt/
73 > > > összesen 20
74 > > > drwxr-xr-x 5 root root 4096 jún 11 14.32 .
75 > > > drwxr-xr-x 14 root root 4096 jún 11 14.26 ..
76 > > > drwxr-xr-x 8 amavis amavis 4096 szept 28 15.34 amavis
77 > > > drwxr-xr-x 9 root root 4096 okt 4 09.56 cache
78 > > > drwxrwxrwt 8 root root 4096 okt 4 10.27 tmp
79 > > >
80 > > > A /var könyvtár a /-el megegyező, a /var/mnt egy másik partíció.
81 > > >
82 > > > Ezzel eleddig semmiféle probléma nem akadt.
83 > > >
84 > > > A mai napom azonban frissítettem
85 > > >
86 > > > app-portage/gentoolkit-0.2.4.2 -re
87 > > >
88 > > > azota a revdep-rebuild a következő hibát dobja:
89 > > >
90 > > > # revdep-rebuild
91 > > > * Configuring search environment for revdep-rebuild
92 > > > * Working directory expected to be /var/cache/revdep-rebuild, but it
93 > > > is /var/mnt/cache/revdep-rebuild
94 > > >
95 > > > Van vkinek ötlete, hogy miért, és hogyan is lehetne lebeszélni a
96 > > > hibaüzenetről?
97 > > >
98 > > >
99 > > > vt
100 > > >
101 > > >
102 > > > a revdep-rebuild -d kimenete (a közvetlenül erintett rész a legvégén):
103 > > >
104 > > > + getopts :CdehikL:loPpqu:vX OPT
105 > > > + unset args
106 > > > + [[ -n '' ]]
107 > > > + setup_color
108 > > > portageq envvar NOCOLOR
109 > > > ++ portageq envvar NOCOLOR
110 > > > + export NOCOLOR=
111 > > > + NOCOLOR=
112 > > > + [[ '' = yes ]]
113 > > > + [[ '' = true ]]
114 > > > + . /etc/init.d/functions.sh
115 > > > # Copyright 1999-2007 Gentoo Foundation
116 > > > # Distributed under the terms of the GNU General Public License v2
117 > > >
118 > > > RC_GOT_FUNCTIONS="yes"
119 > > > ++ RC_GOT_FUNCTIONS=yes
120 > > >
121 > > > # Override defaults with user settings ...
122 > > > [[ -f /etc/conf.d/rc ]] && source /etc/conf.d/rc
123 > > > ++ [[ -f /etc/conf.d/rc ]]
124 > > > ++ source /etc/conf.d/rc
125 > > > # /etc/conf.d/rc: Global config file for the Gentoo RC System
126 > > >
127 > > > # This is the number of tty's used in most of the rc-scripts (like
128 > > > # consolefont, numlock, etc ...)
129 > > >
130 > > > RC_TTY_NUMBER=11
131 > > > +++ RC_TTY_NUMBER=11
132 > > >
133 > > > # Set to "yes" if you want the rc system to try and start services
134 > > > # in parallel for a slight speed improvement. NOTE: When
135 > > > RC_PARALLEL_STARTUP
136 > > > # is enabled, init script output is replaced with simple "service foo
137 > > > # starting/stopping" messages so that output is not mixed up.
138 > > > # You can stop this from happening on the command line by passing
139 > > > --verbose # to the init script or by setting RC_VERBOSE="yes" below.
140 > > >
141 > > > RC_PARALLEL_STARTUP="no"
142 > > > +++ RC_PARALLEL_STARTUP=no
143 > > >
144 > > > # Set RC_INTERACTIVE to "yes" and you'll be able to press the I key
145 > > > during # boot so you can choose to start specific services. Set to "no"
146 > > > to disable # this feature.
147 > > >
148 > > > RC_INTERACTIVE="yes"
149 > > > +++ RC_INTERACTIVE=yes
150 > > >
151 > > > # Do we allow services to be hotplugged? If not, set to RC_HOTPLUG="no"
152 > > > # NOTE: This does not affect anything hotplug/udev related, just the
153 > > > # starting/stopping of the init.d service triggered by hotplug.
154 > > >
155 > > > RC_HOTPLUG="yes"
156 > > > +++ RC_HOTPLUG=yes
157 > > >
158 > > > # Dynamic /dev managers can trigger coldplug events which cause
159 > services
160 > > > to # start before we are ready for them. If this happens, we can defer
161 > > > these # services to start in the boot runlevel. Set RC_COLDPLUG="no" if
162 > > > you don't # want this.
163 > > > # NOTE: This also affects module coldplugging in udev-096 and higher
164 > > > # If you want module coldplugging but not coldplugging of services then
165 > > > you # can set RC_COLDPLUG="yes" and RC_PLUG_SERVICES="!*"
166 > > >
167 > > > RC_COLDPLUG="yes"
168 > > > +++ RC_COLDPLUG=yes
169 > > >
170 > > > # Some people want a finer grain over hotplug/coldplug.
171 > RC_PLUG_SERVICES
172 > > > is a
173 > > > # list of services that are matched in order, either allowing or not.
174 > By
175 > > > # default we allow services through as RC_COLDPLUG/RC_HOTPLUG has to be
176 > > > yes # anyway.
177 > > > # Example - RC_PLUG_SERVICES="net.wlan !net.*"
178 > > > # This allows net.wlan and any service not matching net.* to be
179 > plugged.
180 > > >
181 > > > RC_PLUG_SERVICES=""
182 > > > +++ RC_PLUG_SERVICES=
183 > > >
184 > > > # RC_NET_STRICT_CHECKING allows some flexibility with the 'net'
185 > service.
186 > > > # The following values are allowed:
187 > > > # none - The 'net' service is always considered up.
188 > > > # no - This basically means that at least one net.* service besides
189 > > > net.lo
190 > > > # must be up. This can be used by notebook users that have a
191 > > > wifi and
192 > > > # a static nic, and only wants one up at any given time to
193 > have
194 > > > the
195 > > > # 'net' service seen as up.
196 > > > # lo - This is the same as the 'no' option, but net.lo is also
197 > > > counted. # This should be useful to people that do not care
198 > > > about any specific
199 > > > # interface being up at boot.
200 > > > # yes - For this ALL network interfaces MUST be up for the 'net'
201 > > > service to
202 > > > # be considered up.
203 > > >
204 > > > RC_NET_STRICT_CHECKING="no"
205 > > > +++ RC_NET_STRICT_CHECKING=no
206 > > >
207 > > > # RC_DOWN_INTERFACE allows you to specify if RC will bring the
208 > interface
209 > > > # completely down when it stops. The default is yes, but there are some
210 > > > # instances where you may not want this to happen such as using Wake On
211 > > > LAN.
212 > > >
213 > > > RC_DOWN_INTERFACE="yes"
214 > > > +++ RC_DOWN_INTERFACE=yes
215 > > >
216 > > > # RC_VOLUME_ORDER allows you to specify, or even remove the volume
217 > setup
218 > > > # for various volume managers (MD, EVMS2, LVM, DM, etc). Note that
219 > they
220 > > > are
221 > > > # stopped in reverse order.
222 > > >
223 > > > RC_VOLUME_ORDER="raid evms lvm dm"
224 > > > +++ RC_VOLUME_ORDER='raid evms lvm dm'
225 > > >
226 > > > # RC_VERBOSE will make init scripts more verbose. Only networking
227 > scripts
228 > > > # really use this at this time, and this is useful for trouble shooting
229 > > > # any issues you may have.
230 > > > # This is also used to re-enable init script output for init scripts
231 > > > # started or stopped from the command line.
232 > > >
233 > > > RC_VERBOSE="no"
234 > > > +++ RC_VERBOSE=no
235 > > >
236 > > > # RC_BOOTLOG will generate a log of the boot messages shown on the
237 > > > console. # Useful for headless machines or debugging. You need to
238 > emerge
239 > > > the # app-admin/showconsole package for this to work. Note that this
240 > > > probably # won't work correctly with boot splash.
241 > > >
242 > > > RC_BOOTLOG="no"
243 > > > +++ RC_BOOTLOG=no
244 > > >
245 > > > # Set to "yes" if you want to benchmark system boot with bootchart.
246 > > > # You'll need to emerge the app-benchmarks/bootchart package for this
247 > to
248 > > > work.
249 > > >
250 > > > RC_BOOTCHART="no"
251 > > > +++ RC_BOOTCHART=no
252 > > >
253 > > > # RC_USE_FSTAB allows you to override the default mount options for the
254 > > > # standard /proc, /sys, /dev, and /dev/pts mount points. Note that
255 > this
256 > > > # is the new way for selecting ramfs/tmpfs/etc... for udev mounting.
257 > > >
258 > > > RC_USE_FSTAB="no"
259 > > > +++ RC_USE_FSTAB=no
260 > > >
261 > > > # RC_USE_CONFIG_PROFILE allows you to have different /etc/conf.d files
262 > > > # based on your runlevel - if a conf.d file for your profile does not
263 > > > exist # then we try and use the default one.
264 > > > # To enable runlevel selection at boot, append "softlevel=foobar" to
265 > your
266 > > > # kernel line to change to the foobar runlevel. Here we would search
267 > for
268 > > > # /etc/conf.d/<service>.foobar config files before trying to use the
269 > > > default
270 > > > # /etc/conf.d/<service>.
271 > > > # Note that it is only active if 'softlevel' was specified via the
272 > kernel
273 > > > line,
274 > > > # and it is intended to use for different grub/lilo entries to specify
275 > > > config
276 > > > # changes for say laptops between home and work, where you would have
277 > > > setup # 'work' and 'home' runlevels, with /etc/conf.d/*.<runlevel> as
278 > > > needed.
279 > > >
280 > > > RC_USE_CONFIG_PROFILE="yes"
281 > > > +++ RC_USE_CONFIG_PROFILE=yes
282 > > >
283 > > > # RC_FORCE_AUTO tries its best to prevent user interaction during the
284 > > > boot and
285 > > > # shutdown process. For example, fsck will automatically be run or
286 > > > volumes # remounted to create proper directory trees. This feature can
287 > > > be dangerous
288 > > > # and is meant ONLY for headless machines where getting a physical
289 > > > console # hooked up is a huge pita.
290 > > >
291 > > > RC_FORCE_AUTO="no"
292 > > > +++ RC_FORCE_AUTO=no
293 > > >
294 > > > # Use this variable to control the /dev management behavior.
295 > > > # auto - let the scripts figure out what's best at boot
296 > > > # devfs - use devfs (requires sys-fs/devfsd)
297 > > > # udev - use udev (requires sys-fs/udev)
298 > > > # static - let the user manage /dev (YOU need to create ALL device
299 > > > nodes)
300 > > >
301 > > > RC_DEVICES="auto"
302 > > > +++ RC_DEVICES=auto
303 > > >
304 > > > # UDEV OPTION:
305 > > > # Set to "yes" if you want to save /dev to a tarball on shutdown
306 > > > # and restore it on startup. This is useful if you have a lot of
307 > > > # custom device nodes that udev does not handle/know about.
308 > > >
309 > > > RC_DEVICE_TARBALL="no"
310 > > > +++ RC_DEVICE_TARBALL=no
311 > > >
312 > > > # RC_DMESG_LEVEL sets the level at which logging of messages is done to
313 > > > the # console. See dmesg(8) for more info.
314 > > >
315 > > > RC_DMESG_LEVEL="1"
316 > > > +++ RC_DMESG_LEVEL=1
317 > > >
318 > > >
319 > > >
320 > > >
321 > > >
322 > > > #
323 > > > # Controlling start-stop-daemon behavior
324 > > >
325 > > > # Set to "yes" if start-stop-daemon should always retry killing the
326 > > > # service with sig KILL if it fails the first time.
327 > > >
328 > > > RC_RETRY_KILL="yes"
329 > > > +++ RC_RETRY_KILL=yes
330 > > >
331 > > >
332 > > > # Set the amount of seconds start-stop-daemon should wait between
333 > > > # retries.
334 > > >
335 > > > RC_RETRY_TIMEOUT=1
336 > > > +++ RC_RETRY_TIMEOUT=1
337 > > >
338 > > >
339 > > > # Set the amount of times start-stop-daemon should try to kill
340 > > > # a service before giving up.
341 > > >
342 > > > RC_RETRY_COUNT=5
343 > > > +++ RC_RETRY_COUNT=5
344 > > >
345 > > >
346 > > > # Set to "yes" if start-stop-daemon should fail if the service
347 > > > # is marked as started, but not actually running on stop.
348 > > >
349 > > > RC_FAIL_ON_ZOMBIE="no"
350 > > > +++ RC_FAIL_ON_ZOMBIE=no
351 > > >
352 > > >
353 > > > # Set to "yes" if start-stop-daemon should attempt to kill
354 > > > # any children left in the system.
355 > > > # Be careful with this as it really does what it was on the tin.
356 > > > # fex, if you're in an ssh process and you restart a service on which
357 > ssh
358 > > > # depends then your terminal will be killed also.
359 > > >
360 > > > RC_KILL_CHILDREN="no"
361 > > > +++ RC_KILL_CHILDREN=no
362 > > >
363 > > >
364 > > > # Set the amount of seconds start-stop-daemon waits after starting
365 > > > # the daemon to check it is still running. If it's not then we
366 > > > # try and stop any children if possible.
367 > > > RC_WAIT_ON_START="0.1"
368 > > > +++ RC_WAIT_ON_START=0.1
369 > > >
370 > > >
371 > > >
372 > > >
373 > #########################################################################
374 > > >##### # SERVICE CONFIGURATION VARIABLES
375 > > > # These variables are documented here, but should be configured in
376 > > > # /etc/conf.d/foo for service foo and NOT enabled here unless you
377 > > > # really want them to work on a global basis.
378 > > >
379 > > > # Some daemons are started and stopped via start-stop-daemon.
380 > > > # We can launch them through other daemons here, for example valgrind.
381 > > > # This is only useful for serious debugging of the daemon
382 > > > # WARNING: If the script's "stop" function does not supply a PID file
383 > > > then # all processes using the same daemon will be killed.
384 > > > #RC_DAEMON="/usr/bin/valgrind --tool=memcheck
385 > > > --log-file=/tmp/valgrind.syslog-ng"
386 > > >
387 > > > # strace needs to be prefixed with --background as it does not detach
388 > > > when # it's following
389 > > > #RC_DAEMON="--background /usr/sbin/strace -f -o /tmp/strace.syslog-ng"
390 > > >
391 > > > # Pass ulimit parameters
392 > > > #RC_ULIMIT="-u 30"
393 > > >
394 > > >
395 > > >
396 > #########################################################################
397 > > >#####
398 > > >
399 > > >
400 > > > #
401 > > > # Internal configuration variables
402 > > > #
403 > > > # NB: These are for advanced users, and you should really
404 > > > # know what you are doing before changing them!
405 > > > #
406 > > >
407 > > > # rc-scripts dep-cache directory
408 > > > #
409 > > > # NOTE: Do not remove the next line, as its needed by the baselayout
410 > > > ebuild!
411 > > > #
412 > > > # svcdir="/var/lib/init.d"
413 > > >
414 > > > svcdir="/var/lib/init.d"
415 > > > +++ svcdir=/var/lib/init.d
416 > > >
417 > > > # Should we mount $svcdir in a ram disk for some speed increase
418 > > > # for slower machines, or for the more extreme setups ?
419 > > >
420 > > > svcmount="no"
421 > > > +++ svcmount=no
422 > > >
423 > > > # FS type that should be used for $svcdir. Note that you need
424 > > > # $svcmount above set to "yes" for this to work ... Currently
425 > > > # tmpfs, ramfs, and ramdisk are supported (tmpfs is the default).
426 > > >
427 > > > svcfstype="tmpfs"
428 > > > +++ svcfstype=tmpfs
429 > > >
430 > > > # Size of $svcdir in KB. Note that ramfs doesn't support this
431 > > > # due to kernel limitations.
432 > > >
433 > > > svcsize=2048
434 > > > +++ svcsize=2048
435 > > >
436 > > > # Check /etc/conf.d/rc for a description of these ...
437 > > > declare -r svclib="/lib/rcscripts"
438 > > > ++ declare -r svclib=/lib/rcscripts
439 > > > declare -r svcdir="${svcdir:-/var/lib/init.d}"
440 > > > ++ declare -r svcdir=/var/lib/init.d
441 > > > svcmount="${svcmount:-no}"
442 > > > ++ svcmount=no
443 > > > svcfstype="${svcfstype:-tmpfs}"
444 > > > ++ svcfstype=tmpfs
445 > > > svcsize="${svcsize:-1024}"
446 > > > ++ svcsize=2048
447 > > >
448 > > > # Different types of dependencies
449 > > > deptypes="need use"
450 > > > ++ deptypes='need use'
451 > > > # Different types of order deps
452 > > > ordtypes="before after"
453 > > > ++ ordtypes='before after'
454 > > >
455 > > > #
456 > > > # Internal variables
457 > > > #
458 > > >
459 > > > # Dont output to stdout?
460 > > > RC_QUIET_STDOUT="${RC_QUIET_STDOUT:-no}"
461 > > > ++ RC_QUIET_STDOUT=no
462 > > > RC_VERBOSE="${RC_VERBOSE:-no}"
463 > > > ++ RC_VERBOSE=no
464 > > >
465 > > > # Should we use color?
466 > > > RC_NOCOLOR="${RC_NOCOLOR:-no}"
467 > > > ++ RC_NOCOLOR=no
468 > > > # Can the terminal handle endcols?
469 > > > RC_ENDCOL="yes"
470 > > > ++ RC_ENDCOL=yes
471 > > >
472 > > > #
473 > > > # Default values for rc system
474 > > > #
475 > > > RC_TTY_NUMBER="${RC_TTY_NUMBER:-11}"
476 > > > ++ RC_TTY_NUMBER=11
477 > > > RC_PARALLEL_STARTUP="${RC_PARALLEL_STARTUP:-no}"
478 > > > ++ RC_PARALLEL_STARTUP=no
479 > > > RC_NET_STRICT_CHECKING="${RC_NET_STRICT_CHECKING:-no}"
480 > > > ++ RC_NET_STRICT_CHECKING=no
481 > > > RC_USE_FSTAB="${RC_USE_FSTAB:-no}"
482 > > > ++ RC_USE_FSTAB=no
483 > > > RC_USE_CONFIG_PROFILE="${RC_USE_CONFIG_PROFILE:-yes}"
484 > > > ++ RC_USE_CONFIG_PROFILE=yes
485 > > > RC_FORCE_AUTO="${RC_FORCE_AUTO:-no}"
486 > > > ++ RC_FORCE_AUTO=no
487 > > > RC_DEVICES="${RC_DEVICES:-auto}"
488 > > > ++ RC_DEVICES=auto
489 > > > RC_DOWN_INTERFACE="${RC_DOWN_INTERFACE:-yes}"
490 > > > ++ RC_DOWN_INTERFACE=yes
491 > > > RC_VOLUME_ORDER="${RC_VOLUME_ORDER:-raid evms lvm dm}"
492 > > > ++ RC_VOLUME_ORDER='raid evms lvm dm'
493 > > >
494 > > > #
495 > > > # Default values for e-message indentation and dots
496 > > > #
497 > > > RC_INDENTATION=''
498 > > > ++ RC_INDENTATION=
499 > > > RC_DEFAULT_INDENT=2
500 > > > ++ RC_DEFAULT_INDENT=2
501 > > > #RC_DOT_PATTERN=' .'
502 > > > RC_DOT_PATTERN=''
503 > > > ++ RC_DOT_PATTERN=
504 > > >
505 > > > # bool has_addon(addon)
506 > > > #
507 > > > # See if addon exists.
508 > > > #
509 > > > has_addon() {
510 > > > [[ -e ${svclib}/addons/$1 ]]
511 > > > }
512 > > >
513 > > > # void import_addon(char *addon)
514 > > > #
515 > > > # Import code from the specified addon if it exists
516 > > > #
517 > > > import_addon() {
518 > > > local addon="${svclib}/addons/$1"
519 > > > if has_addon $1 ; then
520 > > > source "${addon}"
521 > > > return 0
522 > > > fi
523 > > > return 1
524 > > > }
525 > > >
526 > > > # void splash(...)
527 > > > #
528 > > > # Notify bootsplash/splashutils/gensplash/whatever about
529 > > > # important events.
530 > > > #
531 > > > splash() {
532 > > > return 0
533 > > > }
534 > > > # This will override the splash() function...
535 > > > if ! import_addon splash-functions.sh ; then
536 > > > [[ -f /sbin/splash-functions.sh ]] && source
537 > > > /sbin/splash-functions.sh
538 > > > fi
539 > > > ++ import_addon splash-functions.sh
540 > > > ++ local addon=/lib/rcscripts/addons/splash-functions.sh
541 > > > ++ has_addon splash-functions.sh
542 > > > ++ [[ -e /lib/rcscripts/addons/splash-functions.sh ]]
543 > > > ++ return 1
544 > > > ++ [[ -f /sbin/splash-functions.sh ]]
545 > > >
546 > > > # void profiling(...)
547 > > > #
548 > > > # Notify bootsplash/whatever about important events.
549 > > > #
550 > > > profiling() {
551 > > > return 0
552 > > > }
553 > > > import_addon profiling-functions.sh
554 > > > ++ import_addon profiling-functions.sh
555 > > > ++ local addon=/lib/rcscripts/addons/profiling-functions.sh
556 > > > ++ has_addon profiling-functions.sh
557 > > > ++ [[ -e /lib/rcscripts/addons/profiling-functions.sh ]]
558 > > > ++ return 1
559 > > >
560 > > > # void bootlog(...)
561 > > > #
562 > > > # Notify bootlogger about important events.
563 > > > bootlog() {
564 > > > return 0
565 > > > }
566 > > > [[ ${RC_BOOTLOG} == "yes" ]] && import_addon bootlogger.sh
567 > > > ++ [[ no == \y\e\s ]]
568 > > >
569 > > > # void get_bootconfig()
570 > > > #
571 > > > # Get the BOOTLEVEL and SOFTLEVEL by setting
572 > > > # 'bootlevel' and 'softlevel' via kernel
573 > > > # parameters.
574 > > > #
575 > > > get_bootconfig() {
576 > > > local copt=
577 > > > local newbootlevel=
578 > > > local newsoftlevel=
579 > > >
580 > > > if [[ -r /proc/cmdline ]] ; then
581 > > > for copt in $(</proc/cmdline) ; do
582 > > > case "${copt%=*}" in
583 > > > bootlevel)
584 > > > newbootlevel="${copt##*=}"
585 > > > ;;
586 > > > softlevel)
587 > > > newsoftlevel="${copt##*=}"
588 > > > ;;
589 > > > esac
590 > > > done
591 > > > fi
592 > > >
593 > > > if [[ -n ${newbootlevel} ]] ; then
594 > > > export BOOTLEVEL="${newbootlevel}"
595 > > > else
596 > > > export BOOTLEVEL="boot"
597 > > > fi
598 > > >
599 > > > if [[ -n ${newsoftlevel} ]] ; then
600 > > > export DEFAULTLEVEL="${newsoftlevel}"
601 > > > else
602 > > > export DEFAULTLEVEL="default"
603 > > > fi
604 > > >
605 > > > return 0
606 > > > }
607 > > >
608 > > > setup_defaultlevels() {
609 > > > get_bootconfig
610 > > >
611 > > > if get_bootparam "noconfigprofile" ; then
612 > > > export RC_USE_CONFIG_PROFILE="no"
613 > > >
614 > > > elif get_bootparam "configprofile" ; then
615 > > > export RC_USE_CONFIG_PROFILE="yes"
616 > > > fi
617 > > >
618 > > > if [[ ${RC_USE_CONFIG_PROFILE} == "yes" && -n ${DEFAULTLEVEL} ]]
619 > > > && \
620 > > > [[ -d "/etc/runlevels/${BOOTLEVEL}.${DEFAULTLEVEL}" || \
621 > > > -L "/etc/runlevels/${BOOTLEVEL}.${DEFAULTLEVEL}" ]] ; then
622 > > > export BOOTLEVEL="${BOOTLEVEL}.${DEFAULTLEVEL}"
623 > > > fi
624 > > >
625 > > > if [[ -z ${SOFTLEVEL} ]] ; then
626 > > > if [[ -f "${svcdir}/softlevel" ]] ; then
627 > > > export SOFTLEVEL=$(< "${svcdir}/softlevel")
628 > > > else
629 > > > export SOFTLEVEL="${BOOTLEVEL}"
630 > > > fi
631 > > > fi
632 > > >
633 > > > return 0
634 > > > }
635 > > >
636 > > > # void get_libdir(void)
637 > > > #
638 > > > # prints the current libdir {lib,lib32,lib64}
639 > > > #
640 > > > get_libdir() {
641 > > > if [[ -n ${CONF_LIBDIR_OVERRIDE} ]] ; then
642 > > > CONF_LIBDIR="${CONF_LIBDIR_OVERRIDE}"
643 > > > elif [[ -x /usr/bin/portageq ]] ; then
644 > > > CONF_LIBDIR="$(/usr/bin/portageq envvar CONF_LIBDIR)"
645 > > > fi
646 > > > echo "${CONF_LIBDIR:=lib}"
647 > > > }
648 > > >
649 > > > # void esyslog(char* priority, char* tag, char* message)
650 > > > #
651 > > > # use the system logger to log a message
652 > > > #
653 > > > esyslog() {
654 > > > local pri=
655 > > > local tag=
656 > > >
657 > > > if [[ -x /usr/bin/logger ]] ; then
658 > > > pri="$1"
659 > > > tag="$2"
660 > > >
661 > > > shift 2
662 > > > [[ -z "$*" ]] && return 0
663 > > >
664 > > > /usr/bin/logger -p "${pri}" -t "${tag}" -- "$*"
665 > > > fi
666 > > >
667 > > > return 0
668 > > > }
669 > > >
670 > > > # void eindent(int num)
671 > > > #
672 > > > # increase the indent used for e-commands.
673 > > > #
674 > > > eindent() {
675 > > > local i="$1"
676 > > > (( i > 0 )) || (( i = RC_DEFAULT_INDENT ))
677 > > > esetdent $(( ${#RC_INDENTATION} + i ))
678 > > > }
679 > > >
680 > > > # void eoutdent(int num)
681 > > > #
682 > > > # decrease the indent used for e-commands.
683 > > > #
684 > > > eoutdent() {
685 > > > local i="$1"
686 > > > (( i > 0 )) || (( i = RC_DEFAULT_INDENT ))
687 > > > esetdent $(( ${#RC_INDENTATION} - i ))
688 > > > }
689 > > >
690 > > > # void esetdent(int num)
691 > > > #
692 > > > # hard set the indent used for e-commands.
693 > > > # num defaults to 0
694 > > > #
695 > > > esetdent() {
696 > > > local i="$1"
697 > > > (( i < 0 )) && (( i = 0 ))
698 > > > RC_INDENTATION=$(printf "%${i}s" '')
699 > > > }
700 > > >
701 > > > # void einfo(char* message)
702 > > > #
703 > > > # show an informative message (with a newline)
704 > > > #
705 > > > einfo() {
706 > > > einfon "$*\n"
707 > > > LAST_E_CMD="einfo"
708 > > > return 0
709 > > > }
710 > > >
711 > > > # void einfon(char* message)
712 > > > #
713 > > > # show an informative message (without a newline)
714 > > > #
715 > > > einfon() {
716 > > > [[ ${RC_QUIET_STDOUT} == "yes" ]] && return 0
717 > > > [[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
718 > > > echo -ne " ${GOOD}*${NORMAL} ${RC_INDENTATION}$*"
719 > > > LAST_E_CMD="einfon"
720 > > > return 0
721 > > > }
722 > > >
723 > > > # void ewarn(char* message)
724 > > > #
725 > > > # show a warning message + log it
726 > > > #
727 > > > ewarn() {
728 > > > if [[ ${RC_QUIET_STDOUT} == "yes" ]] ; then
729 > > > echo " $*"
730 > > > else
731 > > > [[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]]
732 > > > && echo
733 > > > echo -e " ${WARN}*${NORMAL} ${RC_INDENTATION}$*"
734 > > > fi
735 > > >
736 > > > local name="rc-scripts"
737 > > > [[ $0 != "/sbin/runscript.sh" ]] && name="${0##*/}"
738 > > > # Log warnings to system log
739 > > > esyslog "daemon.warning" "${name}" "$*"
740 > > >
741 > > > LAST_E_CMD="ewarn"
742 > > > return 0
743 > > > }
744 > > >
745 > > > # void eerror(char* message)
746 > > > #
747 > > > # show an error message + log it
748 > > > #
749 > > > eerror() {
750 > > > if [[ ${RC_QUIET_STDOUT} == "yes" ]] ; then
751 > > > echo " $*" >/dev/stderr
752 > > > else
753 > > > [[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]]
754 > > > && echo
755 > > > echo -e " ${BAD}*${NORMAL} ${RC_INDENTATION}$*"
756 > > > fi
757 > > >
758 > > > local name="rc-scripts"
759 > > > [[ $0 != "/sbin/runscript.sh" ]] && name="${0##*/}"
760 > > > # Log errors to system log
761 > > > esyslog "daemon.err" "rc-scripts" "$*"
762 > > >
763 > > > LAST_E_CMD="eerror"
764 > > > return 0
765 > > > }
766 > > >
767 > > > # void ebegin(char* message)
768 > > > #
769 > > > # show a message indicating the start of a process
770 > > > #
771 > > > ebegin() {
772 > > > local msg="$*" dots spaces="${RC_DOT_PATTERN//?/ }"
773 > > > [[ ${RC_QUIET_STDOUT} == "yes" ]] && return 0
774 > > >
775 > > > if [[ -n ${RC_DOT_PATTERN} ]] ; then
776 > > > dots="$(printf "%$((COLS - 3 - ${#RC_INDENTATION} -
777 > > > ${#msg} -
778 > > > 7))s" '')"
779 > > > dots="${dots//${spaces}/${RC_DOT_PATTERN}}"
780 > > > msg="${msg}${dots}"
781 > > > else
782 > > > msg="${msg} ..."
783 > > > fi
784 > > > einfon "${msg}"
785 > > > [[ ${RC_ENDCOL} == "yes" ]] && echo
786 > > >
787 > > > LAST_E_LEN="$(( 3 + ${#RC_INDENTATION} + ${#msg} ))"
788 > > > LAST_E_CMD="ebegin"
789 > > > return 0
790 > > > }
791 > > >
792 > > > # void _eend(int error, char *efunc, char* errstr)
793 > > > #
794 > > > # indicate the completion of process, called from eend/ewend
795 > > > # if error, show errstr via efunc
796 > > > #
797 > > > # This function is private to functions.sh. Do not call it from a
798 > > > # script.
799 > > > #
800 > > > _eend() {
801 > > > local retval="${1:-0}" efunc="${2:-eerror}" msg
802 > > > shift 2
803 > > >
804 > > > if [[ ${retval} == "0" ]] ; then
805 > > > [[ ${RC_QUIET_STDOUT} == "yes" ]] && return 0
806 > > > msg="${BRACKET}[ ${GOOD}ok${BRACKET} ]${NORMAL}"
807 > > > else
808 > > > if [[ -c /dev/null ]] ; then
809 > > > rc_splash "stop" &>/dev/null &
810 > > > else
811 > > > rc_splash "stop" &
812 > > > fi
813 > > > if [[ -n $* ]] ; then
814 > > > ${efunc} "$*"
815 > > > fi
816 > > > msg="${BRACKET}[ ${BAD}!!${BRACKET} ]${NORMAL}"
817 > > > fi
818 > > >
819 > > > if [[ ${RC_ENDCOL} == "yes" ]] ; then
820 > > > echo -e "${ENDCOL} ${msg}"
821 > > > else
822 > > > [[ ${LAST_E_CMD} == ebegin ]] || LAST_E_LEN=0
823 > > > printf "%$(( COLS - LAST_E_LEN - 6 ))s%b\n" '' "${msg}"
824 > > > fi
825 > > >
826 > > > return ${retval}
827 > > > }
828 > > >
829 > > > # void eend(int error, char* errstr)
830 > > > #
831 > > > # indicate the completion of process
832 > > > # if error, show errstr via eerror
833 > > > #
834 > > > eend() {
835 > > > local retval="${1:-0}"
836 > > > shift
837 > > >
838 > > > _eend "${retval}" eerror "$*"
839 > > >
840 > > > LAST_E_CMD="eend"
841 > > > return ${retval}
842 > > > }
843 > > >
844 > > > # void ewend(int error, char* errstr)
845 > > > #
846 > > > # indicate the completion of process
847 > > > # if error, show errstr via ewarn
848 > > > #
849 > > > ewend() {
850 > > > local retval="${1:-0}"
851 > > > shift
852 > > >
853 > > > _eend "${retval}" ewarn "$*"
854 > > >
855 > > > LAST_E_CMD="ewend"
856 > > > return ${retval}
857 > > > }
858 > > >
859 > > > # v-e-commands honor RC_VERBOSE which defaults to no.
860 > > > # The condition is negated so the return value will be zero.
861 > > > veinfo() { [[ ${RC_VERBOSE} != "yes" ]] || einfo "$@"; }
862 > > > veinfon() { [[ ${RC_VERBOSE} != "yes" ]] || einfon "$@"; }
863 > > > vewarn() { [[ ${RC_VERBOSE} != "yes" ]] || ewarn "$@"; }
864 > > > veerror() { [[ ${RC_VERBOSE} != "yes" ]] || eerror "$@"; }
865 > > > vebegin() { [[ ${RC_VERBOSE} != "yes" ]] || ebegin "$@"; }
866 > > > veend() {
867 > > > [[ ${RC_VERBOSE} == "yes" ]] && { eend "$@"; return $?; }
868 > > > return ${1:-0}
869 > > > }
870 > > > vewend() {
871 > > > [[ ${RC_VERBOSE} == "yes" ]] && { ewend "$@"; return $?; }
872 > > > return ${1:-0}
873 > > > }
874 > > >
875 > > > # char *KV_major(string)
876 > > > #
877 > > > # Return the Major (X of X.Y.Z) kernel version
878 > > > #
879 > > > KV_major() {
880 > > > [[ -z $1 ]] && return 1
881 > > >
882 > > > local KV="$@"
883 > > > echo "${KV%%.*}"
884 > > > }
885 > > >
886 > > > # char *KV_minor(string)
887 > > > #
888 > > > # Return the Minor (Y of X.Y.Z) kernel version
889 > > > #
890 > > > KV_minor() {
891 > > > [[ -z $1 ]] && return 1
892 > > >
893 > > > local KV="$@"
894 > > > KV="${KV#*.}"
895 > > > echo "${KV%%.*}"
896 > > > }
897 > > >
898 > > > # char *KV_micro(string)
899 > > > #
900 > > > # Return the Micro (Z of X.Y.Z) kernel version.
901 > > > #
902 > > > KV_micro() {
903 > > > [[ -z $1 ]] && return 1
904 > > >
905 > > > local KV="$@"
906 > > > KV="${KV#*.*.}"
907 > > > echo "${KV%%[^[:digit:]]*}"
908 > > > }
909 > > >
910 > > > # int KV_to_int(string)
911 > > > #
912 > > > # Convert a string type kernel version (2.4.0) to an int (132096)
913 > > > # for easy compairing or versions ...
914 > > > #
915 > > > KV_to_int() {
916 > > > [[ -z $1 ]] && return 1
917 > > >
918 > > > local KV_MAJOR="$(KV_major "$1")"
919 > > > local KV_MINOR="$(KV_minor "$1")"
920 > > > local KV_MICRO="$(KV_micro "$1")"
921 > > > local KV_int="$(( KV_MAJOR * 65536 + KV_MINOR * 256 + KV_MICRO
922 > ))"
923 > > >
924 > > > # We make version 2.2.0 the minimum version we will handle as
925 > > > # a sanity check ... if its less, we fail ...
926 > > > if [[ ${KV_int} -ge 131584 ]] ; then
927 > > > echo "${KV_int}"
928 > > > return 0
929 > > > fi
930 > > >
931 > > > return 1
932 > > > }
933 > > >
934 > > > # int get_KV()
935 > > > #
936 > > > # Return the kernel version (major, minor and micro concated) as an
937 > > > integer.
938 > > > # Assumes X and Y of X.Y.Z are numbers. Also assumes that some
939 > > > leading # portion of Z is a number.
940 > > > # e.g. 2.4.25, 2.6.10, 2.6.4-rc3, 2.2.40-poop, 2.0.15+foo
941 > > > #
942 > > > _RC_GET_KV_CACHE=""
943 > > > ++ _RC_GET_KV_CACHE=
944 > > > get_KV() {
945 > > > [[ -z ${_RC_GET_KV_CACHE} ]] \
946 > > > && _RC_GET_KV_CACHE="$(uname -r)"
947 > > >
948 > > > echo "$(KV_to_int "${_RC_GET_KV_CACHE}")"
949 > > >
950 > > > return $?
951 > > > }
952 > > >
953 > > > # bool get_bootparam(param)
954 > > > #
955 > > > # return 0 if gentoo=param was passed to the kernel
956 > > > #
957 > > > # EXAMPLE: if get_bootparam "nodevfs" ; then ....
958 > > > #
959 > > > get_bootparam() {
960 > > > local x copt params retval=1
961 > > >
962 > > > [[ ! -r /proc/cmdline ]] && return 1
963 > > >
964 > > > for copt in $(< /proc/cmdline) ; do
965 > > > if [[ ${copt%=*} == "gentoo" ]] ; then
966 > > > params=$(gawk -v PARAMS="${copt##*=}" '
967 > > > BEGIN {
968 > > > split(PARAMS, nodes, ",")
969 > > > for (x in nodes)
970 > > > print nodes[x]
971 > > > }')
972 > > >
973 > > > # Parse gentoo option
974 > > > for x in ${params} ; do
975 > > > if [[ ${x} == "$1" ]] ; then
976 > > > # echo "YES"
977 > > > retval=0
978 > > > fi
979 > > > done
980 > > > fi
981 > > > done
982 > > >
983 > > > return ${retval}
984 > > > }
985 > > >
986 > > > # Safer way to list the contents of a directory,
987 > > > # as it do not have the "empty dir bug".
988 > > > #
989 > > > # char *dolisting(param)
990 > > > #
991 > > > # print a list of the directory contents
992 > > > #
993 > > > # NOTE: quote the params if they contain globs.
994 > > > # also, error checking is not that extensive ...
995 > > > #
996 > > > dolisting() {
997 > > > local x=
998 > > > local y=
999 > > > local tmpstr=
1000 > > > local mylist=
1001 > > > local mypath="$*"
1002 > > >
1003 > > > if [[ ${mypath%/\*} != "${mypath}" ]] ; then
1004 > > > mypath=${mypath%/\*}
1005 > > > fi
1006 > > >
1007 > > > for x in ${mypath} ; do
1008 > > > [[ ! -e ${x} ]] && continue
1009 > > >
1010 > > > if [[ ! -d ${x} ]] && [[ -L ${x} || -f ${x} ]] ; then
1011 > > > mylist="${mylist} $(ls "${x}" 2> /dev/null)"
1012 > > > else
1013 > > > [[ ${x%/} != "${x}" ]] && x=${x%/}
1014 > > >
1015 > > > cd "${x}"; tmpstr=$(ls)
1016 > > >
1017 > > > for y in ${tmpstr} ; do
1018 > > > mylist="${mylist} ${x}/${y}"
1019 > > > done
1020 > > > fi
1021 > > > done
1022 > > >
1023 > > > echo "${mylist}"
1024 > > > }
1025 > > >
1026 > > >
1027 > > > # char *add_suffix(char * configfile)
1028 > > > #
1029 > > > # Returns a config file name with the softlevel suffix
1030 > > > # appended to it. For use with multi-config services.
1031 > > > add_suffix() {
1032 > > > if [[ ${RC_USE_CONFIG_PROFILE} != "yes" ]] ; then
1033 > > > echo "$1"
1034 > > > return 0
1035 > > > fi
1036 > > >
1037 > > > local suffix="${SOFTLEVEL}"
1038 > > > [[ ${SOFTLEVEL} == "${BOOTLEVEL}" \
1039 > > >
1040 > > > || ${SOFTLEVEL} == "reboot" \
1041 > > > || ${SOFTLEVEL} == "shutdown" \
1042 > > > || ${SOFTLEVEL} == "single" ]] \
1043 > > >
1044 > > > && suffix="${DEFAULTLEVEL}"
1045 > > > if [[ -e "$1.${suffix}" ]] ; then
1046 > > > echo "$1.${suffix}"
1047 > > > else
1048 > > > echo "$1"
1049 > > > fi
1050 > > >
1051 > > > return 0
1052 > > > }
1053 > > >
1054 > > > # char *get_base_ver()
1055 > > > #
1056 > > > # get the version of baselayout that this system is running
1057 > > > #
1058 > > > get_base_ver() {
1059 > > > [[ ! -r /etc/gentoo-release ]] && return 0
1060 > > > local ver="$(</etc/gentoo-release)"
1061 > > > echo "${ver##* }"
1062 > > > }
1063 > > >
1064 > > > # Network filesystems list for common use in rc-scripts.
1065 > > > # This variable is used in is_net_fs and other places such as
1066 > > > # localmount.
1067 > > > NET_FS_LIST="afs cifs coda davfs fuse gfs ncpfs nfs nfs4 ocfs2 shfs
1068 > > > smbfs" ++ NET_FS_LIST='afs cifs coda davfs fuse gfs ncpfs nfs nfs4
1069 > ocfs2
1070 > > > shfs smbfs'
1071 > > >
1072 > > > # bool is_net_fs(path)
1073 > > > #
1074 > > > # return 0 if path is the mountpoint of a networked filesystem
1075 > > > #
1076 > > > # EXAMPLE: if is_net_fs / ; then ...
1077 > > > #
1078 > > > is_net_fs() {
1079 > > > local fstype
1080 > > > # /proc/mounts is always accurate but may not always be
1081 > available
1082 > > > if [[ -e /proc/mounts ]] ; then
1083 > > > fstype="$( sed -n -e '/^rootfs/!s:.* '"$1"' \([^ ]*\).*:
1084 > > > \1:p' /proc/mounts )"
1085 > > > else
1086 > > > fstype="$( mount | sed -n -e 's:.* on '"$1"' type \([^
1087 > > > ]*\).*:
1088 > > > \1:p' )"
1089 > > > fi
1090 > > > [[ " ${NET_FS_LIST} " == *" ${fstype} "* ]]
1091 > > > return $?
1092 > > > }
1093 > > >
1094 > > > # bool is_net_fs(path)
1095 > > > #
1096 > > > # return 0 if path is under unionfs control
1097 > > > #
1098 > > > # EXAMPLE: if is_union_fs / ; then ...
1099 > > > #
1100 > > > is_union_fs() {
1101 > > > [[ ! -x /sbin/unionctl ]] && return 1
1102 > > > unionctl "$1" --list &>/dev/null
1103 > > > }
1104 > > >
1105 > > > # bool is_uml_sys()
1106 > > > #
1107 > > > # return 0 if the currently running system is User Mode Linux
1108 > > > #
1109 > > > # EXAMPLE: if is_uml_sys ; then ...
1110 > > > #
1111 > > > is_uml_sys() {
1112 > > > grep -qs 'UML' /proc/cpuinfo
1113 > > > }
1114 > > >
1115 > > > # bool is_vserver_sys()
1116 > > > #
1117 > > > # return 0 if the currently running system is a Linux VServer
1118 > > > #
1119 > > > # EXAMPLE: if is_vserver_sys ; then ...
1120 > > > #
1121 > > > is_vserver_sys() {
1122 > > > grep -qs '^s_context:[[:space:]]*[1-9]' /proc/self/status
1123 > > > }
1124 > > >
1125 > > > # bool is_vz_sys()
1126 > > > #
1127 > > > # return 0 if the currently running system is OpenVZ container
1128 > > > #
1129 > > > # EXAMPLE: if is_vz_sys ; then ...
1130 > > > #
1131 > > > is_vz_sys() {
1132 > > > grep -qs '^envID:[[:space:]]*[1-9]' /proc/self/status
1133 > > > }
1134 > > >
1135 > > > # bool is_xenU_sys()
1136 > > > #
1137 > > > # return 0 if the currently running system is an unprivileged Xen
1138 > > > domain #
1139 > > > # EXAMPLE: if is_xenU_sys ; then ...
1140 > > > #
1141 > > > is_xenU_sys() {
1142 > > > [[ ! -d /proc/xen ]] && return 1
1143 > > > [[ ! -r /proc/xen/capabilities ]] && return 1
1144 > > > grep -q "control_d" /proc/xen/capabilities && return 1
1145 > > > return 0
1146 > > > }
1147 > > >
1148 > > > # bool get_mount_fstab(path)
1149 > > > #
1150 > > > # return the parameters to pass to the mount command generated from
1151 > > > fstab #
1152 > > > # EXAMPLE: cmd=$( get_mount_fstab /proc )
1153 > > > # cmd=${cmd:--t proc none /proc}
1154 > > > # mount -n ${cmd}
1155 > > > #
1156 > > > get_mount_fstab() {
1157 > > > gawk '$1 ~ "^#" { next }
1158 > > > $2 == "'$*'" { stab="-t "$3" -o "$4" "$1" "$2; }
1159 > > > END { print stab; }
1160 > > > ' /etc/fstab
1161 > > > }
1162 > > >
1163 > > > # char *reverse_list(list)
1164 > > > #
1165 > > > # Returns the reversed order of list
1166 > > > #
1167 > > > reverse_list() {
1168 > > > for (( i = $# ; i > 0 ; --i )) ; do
1169 > > > echo -n "${!i} "
1170 > > > done
1171 > > > }
1172 > > >
1173 > > > # void start_addon(addon)
1174 > > > #
1175 > > > # Starts addon.
1176 > > > #
1177 > > > start_addon() {
1178 > > > local addon="$1"
1179 > > > (import_addon "${addon}-start.sh")
1180 > > > return 0
1181 > > > }
1182 > > >
1183 > > > # void stop_addon(addon)
1184 > > > #
1185 > > > # Stops addon.
1186 > > > #
1187 > > > stop_addon() {
1188 > > > local addon=$1
1189 > > > (import_addon "${addon}-stop.sh")
1190 > > > return 0
1191 > > > }
1192 > > >
1193 > > > # bool is_older_than(reference, files/dirs to check)
1194 > > > #
1195 > > > # return 0 if any of the files/dirs are newer than
1196 > > > # the reference file
1197 > > > #
1198 > > > # EXAMPLE: if is_older_than a.out *.o ; then ...
1199 > > > is_older_than() {
1200 > > > local x=
1201 > > > local ref="$1"
1202 > > > shift
1203 > > >
1204 > > > for x in "$@" ; do
1205 > > > [[ ${x} -nt ${ref} ]] && return 0
1206 > > > [[ -d ${x} ]] && is_older_than "${ref}" "${x}"/* &&
1207 > return
1208 > > > 0 done
1209 > > >
1210 > > > return 1
1211 > > > }
1212 > > >
1213 > > > # char* bash_variable(char *variable)
1214 > > > #
1215 > > > # Turns the given variable into something that bash can use
1216 > > > # Basically replaces anything not a-z,A-Z into a _
1217 > > > #
1218 > > > bash_variable() {
1219 > > > local args="$@"
1220 > > > LC_ALL=C echo "${args//[![:word:]]/_}"
1221 > > > }
1222 > > >
1223 > > > # void requote()
1224 > > > #
1225 > > > # Requotes params so they're suitable to be eval'd, just like this
1226 > > > would: # set -- 1 2 "3 4"
1227 > > > # /usr/bin/getopt -- '' "$@" | sed 's/^ -- //'
1228 > > > #
1229 > > > requote() {
1230 > > > local q=\'
1231 > > > set -- "${@//\'/$q\'$q}" # quote inner instances of '
1232 > > > set -- "${@/#/$q}" # add ' to start of each
1233 > > > param
1234 > > > set -- "${@/%/$q}" # add ' to end of each
1235 > > > param echo "$*"
1236 > > > }
1237 > > >
1238 > > > # char* uniqify(char *arg, ...)
1239 > > > #
1240 > > > # Ensure that params are unique
1241 > > > #
1242 > > > uniqify() {
1243 > > > local result= x=
1244 > > > while [[ -n "$1" ]] ; do
1245 > > > [[ " ${result} " != *" $1 "* ]] && result="${result} $1"
1246 > > > shift
1247 > > > done
1248 > > > echo "${result# *}"
1249 > > > }
1250 > > >
1251 > > >
1252 > > >
1253 > #########################################################################
1254 > > >##### #
1255 > > > #
1256 > > > # This should be the last code in here, please add all functions
1257 > above!!
1258 > > > #
1259 > > > #
1260 > > > #
1261 > > > # *** START LAST CODE ***
1262 > > > #
1263 > > > #
1264 > > > #
1265 > > >
1266 > > >
1267 > #########################################################################
1268 > > >#####
1269 > > >
1270 > > > if [[ -z ${EBUILD} ]] ; then
1271 > > > # Setup a basic $PATH. Just add system default to existing.
1272 > > > # This should solve both /sbin and /usr/sbin not present when
1273 > > > # doing 'su -c foo', or for something like: PATH= rcscript
1274 > start
1275 > > > PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:${PATH}"
1276 > > >
1277 > > > # Cache the CONSOLETYPE - this is important as backgrounded
1278 > shells
1279 > > > don't
1280 > > > # have a TTY. rc unsets it at the end of running so it shouldn't
1281 > > > hang
1282 > > > # around
1283 > > > if [[ -z ${CONSOLETYPE} ]] ; then
1284 > > > export CONSOLETYPE="$( /sbin/consoletype 2>/dev/null )"
1285 > > > fi
1286 > > > if [[ ${CONSOLETYPE} == "serial" ]] ; then
1287 > > > RC_NOCOLOR="yes"
1288 > > > RC_ENDCOL="no"
1289 > > > fi
1290 > > >
1291 > > > for arg in "$@" ; do
1292 > > > case "${arg}" in
1293 > > > # Lastly check if the user disabled it with
1294 > > > --nocolor
1295 > > > argument
1296 > > > --nocolor|-nc)
1297 > > > RC_NOCOLOR="yes"
1298 > > > ;;
1299 > > > esac
1300 > > > done
1301 > > >
1302 > > > setup_defaultlevels
1303 > > >
1304 > > > # If we are not /sbin/rc then ensure that we cannot change level
1305 > > > variables
1306 > > > if [[ -n ${BASH_SOURCE} \
1307 > > > && ${BASH_SOURCE[${#BASH_SOURCE[@]}-1]} != "/sbin/rc" ]]
1308 > ;
1309 > > > then
1310 > > > declare -r BOOTLEVEL DEFAULTLEVEL SOFTLEVEL
1311 > > > fi
1312 > > > else
1313 > > > # Should we use colors ?
1314 > > > if [[ $* != *depend* ]] ; then
1315 > > > # Check user pref in portage
1316 > > > RC_NOCOLOR="$(portageq envvar NOCOLOR 2>/dev/null)"
1317 > > > [[ ${RC_NOCOLOR} == "true" ]] && RC_NOCOLOR="yes"
1318 > > > else
1319 > > > # We do not want colors during emerge depend
1320 > > > RC_NOCOLOR="yes"
1321 > > > # No output is seen during emerge depend, so this is not
1322 > > > needed.
1323 > > > RC_ENDCOL="no"
1324 > > > fi
1325 > > > fi
1326 > > > ++ [[ -z '' ]]
1327 > > > ++
1328 > > >
1329 > > >
1330 > PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/
1331 > > >usr/bin ++ [[ -z '' ]]
1332 > > > /sbin/consoletype 2>/dev/null
1333 > > > +++ /sbin/consoletype
1334 > > > ++ export CONSOLETYPE=pty
1335 > > > ++ CONSOLETYPE=pty
1336 > > > ++ [[ pty == \s\e\r\i\a\l ]]
1337 > > > ++ setup_defaultlevels
1338 > > > ++ get_bootconfig
1339 > > > ++ local copt=
1340 > > > ++ local newbootlevel=
1341 > > > ++ local newsoftlevel=
1342 > > > ++ [[ -r /proc/cmdline ]]
1343 > > > </proc/cmdline
1344 > > > ++ for copt in '$(</proc/cmdline)'
1345 > > > ++ case "${copt%=*}" in
1346 > > > ++ for copt in '$(</proc/cmdline)'
1347 > > > ++ case "${copt%=*}" in
1348 > > > ++ for copt in '$(</proc/cmdline)'
1349 > > > ++ case "${copt%=*}" in
1350 > > > ++ for copt in '$(</proc/cmdline)'
1351 > > > ++ case "${copt%=*}" in
1352 > > > ++ for copt in '$(</proc/cmdline)'
1353 > > > ++ case "${copt%=*}" in
1354 > > > ++ [[ -n '' ]]
1355 > > > ++ export BOOTLEVEL=boot
1356 > > > ++ BOOTLEVEL=boot
1357 > > > ++ [[ -n '' ]]
1358 > > > ++ export DEFAULTLEVEL=default
1359 > > > ++ DEFAULTLEVEL=default
1360 > > > ++ return 0
1361 > > > ++ get_bootparam noconfigprofile
1362 > > > ++ local x copt params retval=1
1363 > > > ++ [[ ! -r /proc/cmdline ]]
1364 > > > < /proc/cmdline
1365 > > > ++ for copt in '$(< /proc/cmdline)'
1366 > > > ++ [[ root == \g\e\n\t\o\o ]]
1367 > > > ++ for copt in '$(< /proc/cmdline)'
1368 > > > ++ [[ init == \g\e\n\t\o\o ]]
1369 > > > ++ for copt in '$(< /proc/cmdline)'
1370 > > > ++ [[ ramdisk == \g\e\n\t\o\o ]]
1371 > > > ++ for copt in '$(< /proc/cmdline)'
1372 > > > ++ [[ real_root == \g\e\n\t\o\o ]]
1373 > > > ++ for copt in '$(< /proc/cmdline)'
1374 > > > ++ [[ udev == \g\e\n\t\o\o ]]
1375 > > > ++ return 1
1376 > > > ++ get_bootparam configprofile
1377 > > > ++ local x copt params retval=1
1378 > > > ++ [[ ! -r /proc/cmdline ]]
1379 > > > < /proc/cmdline
1380 > > > ++ for copt in '$(< /proc/cmdline)'
1381 > > > ++ [[ root == \g\e\n\t\o\o ]]
1382 > > > ++ for copt in '$(< /proc/cmdline)'
1383 > > > ++ [[ init == \g\e\n\t\o\o ]]
1384 > > > ++ for copt in '$(< /proc/cmdline)'
1385 > > > ++ [[ ramdisk == \g\e\n\t\o\o ]]
1386 > > > ++ for copt in '$(< /proc/cmdline)'
1387 > > > ++ [[ real_root == \g\e\n\t\o\o ]]
1388 > > > ++ for copt in '$(< /proc/cmdline)'
1389 > > > ++ [[ udev == \g\e\n\t\o\o ]]
1390 > > > ++ return 1
1391 > > > ++ [[ yes == \y\e\s ]]
1392 > > > ++ [[ -n default ]]
1393 > > > ++ [[ -d /etc/runlevels/boot.default ]]
1394 > > > ++ [[ -L /etc/runlevels/boot.default ]]
1395 > > > ++ [[ -z '' ]]
1396 > > > ++ [[ -f /var/lib/init.d/softlevel ]]
1397 > > > < "${svcdir}/softlevel"
1398 > > > ++ export SOFTLEVEL=default
1399 > > > ++ SOFTLEVEL=default
1400 > > > ++ return 0
1401 > > > ++ [[ -n /etc/init.d/functions.sh ]]
1402 > > > ++ [[ /usr/bin/revdep-rebuild != \/\s\b\i\n\/\r\c ]]
1403 > > > ++ declare -r BOOTLEVEL DEFAULTLEVEL SOFTLEVEL
1404 > > >
1405 > > > if [[ -n ${EBUILD} && $* == *depend* ]] ; then
1406 > > > # We do not want stty to run during emerge depend
1407 > > > COLS=80
1408 > > > else
1409 > > > # Setup COLS and ENDCOL so eend can line up the [ ok ]
1410 > > > COLS="${COLUMNS:-0}" # bash's internal COLUMNS
1411 > variable
1412 > > > (( COLS == 0 )) && COLS="$(set -- `stty size 2>/dev/null` ;
1413 > > > echo "$2")"
1414 > > > (( COLS > 0 )) || (( COLS = 80 )) # width of [ ok ] == 7
1415 > > > fi
1416 > > > ++ [[ -n '' ]]
1417 > > > ++ COLS=0
1418 > > > ++ (( COLS == 0 ))
1419 > > > set -- `stty size 2>/dev/null` ; echo "$2"
1420 > > > stty size 2>/dev/null
1421 > > > ++++ stty size
1422 > > > +++ set -- 56 172
1423 > > > +++ echo 172
1424 > > > ++ COLS=172
1425 > > > ++ (( COLS > 0 ))
1426 > > >
1427 > > > if [[ ${RC_ENDCOL} == "yes" ]] ; then
1428 > > > ENDCOL=$'\e[A\e['$(( COLS - 8 ))'C'
1429 > > > else
1430 > > > ENDCOL=''
1431 > > > fi
1432 > > > ++ [[ yes ==
1433 > > > \y\e\s ]]
1434 > > >
1435 > > > '
1436 > > > ++ ENDCOL='
1437 > > > # Setup the colors so our messages all look pretty
1438 > > > if [[ ${RC_NOCOLOR} == "yes" ]] ; then
1439 > > > unset GOOD WARN BAD NORMAL HILITE BRACKET
1440 > > > else
1441 > > > GOOD=$'\e[32;01m'
1442 > > > WARN=$'\e[33;01m'
1443 > > > BAD=$'\e[31;01m'
1444 > > > HILITE=$'\e[36;01m'
1445 > > > BRACKET=$'\e[34;01m'
1446 > > > NORMAL=$'\e[0m'
1447 > > > fi
1448 > > > ++ [[ no == \y\e\s ]]
1449 > > > ++ GOOD=''
1450 > > > ++ WARN=''
1451 > > > ++ BAD=''
1452 > > > ++ HILITE=''
1453 > > > ++ BRACKET=''
1454 > > > ++ NORMAL=''
1455 > > >
1456 > > >
1457 > > >
1458 > #########################################################################
1459 > > >##### #
1460 > > > #
1461 > > > # *** END LAST CODE ***
1462 > > > #
1463 > > > #
1464 > > > #
1465 > > > # This should be the last code in here, please add all functions
1466 > above!!
1467 > > > #
1468 > > > #
1469 > > > #
1470 > > >
1471 > > >
1472 > #########################################################################
1473 > > >#####
1474 > > >
1475 > > >
1476 > > > # vim:ts=4
1477 > > > + normalize_emerge_opts
1478 > > > + EMERGE_OPTIONS=(${EMERGE_OPTIONS[@]/%-p/--pretend})
1479 > > > + EMERGE_OPTIONS=(${EMERGE_OPTIONS[@]/%-f/--fetchonly})
1480 > > > + EMERGE_OPTIONS=(${EMERGE_OPTIONS[@]/%-f/--verbose})
1481 > > > + [[ '' != *--pretend* ]]
1482 > > > + [[ 0 -ne 0 ]]
1483 > > > + setup_portage
1484 > > > portageq envvar PORTAGE_NICENESS
1485 > > > ++ portageq envvar PORTAGE_NICENESS
1486 > > > + local PORTAGE_NICENESS=
1487 > > > portageq envvar ROOT
1488 > > > ++ portageq envvar ROOT
1489 > > > + PORTAGE_ROOT=/
1490 > > > + [[ -n '' ]]
1491 > > > + PORTAGE_ROOT=/
1492 > > > + setup_search_paths_and_masks
1493 > > > + local configfile sdir mdir skip_me filter_SEARCH_DIRS
1494 > > > + einfo 'Configuring search environment for revdep-rebuild'
1495 > > > + einfon 'Configuring search environment for revdep-rebuild\n'
1496 > > > + [[ no == \y\e\s ]]
1497 > > > + [[ yes != \y\e\s ]]
1498 > > > + echo -ne ' * Configuring search environment for revdep-rebuild\n'
1499 > > > + LAST_E_CMD=einfon
1500 > > > + return 0
1501 > > > + LAST_E_CMD=einfo
1502 > > > + return 0
1503 > > > unset SEARCH_DIRS; portageq envvar SEARCH_DIRS
1504 > > > ++ unset SEARCH_DIRS
1505 > > > ++ portageq envvar SEARCH_DIRS
1506 > > > + SEARCH_DIRS+=' '
1507 > > > unset SEARCH_DIRS_MASK; portageq envvar SEARCH_DIRS_MASK
1508 > > > ++ unset SEARCH_DIRS_MASK
1509 > > > ++ portageq envvar SEARCH_DIRS_MASK
1510 > > > + SEARCH_DIRS_MASK+=' '
1511 > > > unset LD_LIBRARY_MASK; portageq envvar LD_LIBRARY_MASK
1512 > > > ++ unset LD_LIBRARY_MASK
1513 > > > ++ portageq envvar LD_LIBRARY_MASK
1514 > > > + LD_LIBRARY_MASK+=' '
1515 > > > + [[ -d /etc/revdep-rebuild ]]
1516 > > > + for configfile in '/etc/revdep-rebuild/*'
1517 > > > . $configfile; echo $SEARCH_DIRS
1518 > > > ++ . /etc/revdep-rebuild/60-java
1519 > > > # The VM dynamically loads these at runtime so they will end up as
1520 > > > missing # but actually work just fine. See for example
1521 > > > # https://bugs.gentoo.org/show_bug.cgi?id=152039
1522 > > > #
1523 > > > # This file should only have files the are used by things like swt. If
1524 > > > there
1525 > > > # are "broken" links inside the jre itself, the jre should install it's
1526 > > > own # control file.
1527 > > >
1528 > > > LD_LIBRARY_MASK="libjvm.so libjawt.so"
1529 > > > +++ LD_LIBRARY_MASK='libjvm.so libjawt.so'
1530 > > > ++ echo
1531 > > > + SEARCH_DIRS+=' '
1532 > > > . $configfile; echo $SEARCH_DIRS_MASK
1533 > > > ++ . /etc/revdep-rebuild/60-java
1534 > > > # The VM dynamically loads these at runtime so they will end up as
1535 > > > missing # but actually work just fine. See for example
1536 > > > # https://bugs.gentoo.org/show_bug.cgi?id=152039
1537 > > > #
1538 > > > # This file should only have files the are used by things like swt. If
1539 > > > there
1540 > > > # are "broken" links inside the jre itself, the jre should install it's
1541 > > > own # control file.
1542 > > >
1543 > > > LD_LIBRARY_MASK="libjvm.so libjawt.so"
1544 > > > +++ LD_LIBRARY_MASK='libjvm.so libjawt.so'
1545 > > > ++ echo
1546 > > > + SEARCH_DIRS_MASK+=' '
1547 > > > . $configfile; echo $LD_LIBRARY_MASK
1548 > > > ++ . /etc/revdep-rebuild/60-java
1549 > > > # The VM dynamically loads these at runtime so they will end up as
1550 > > > missing # but actually work just fine. See for example
1551 > > > # https://bugs.gentoo.org/show_bug.cgi?id=152039
1552 > > > #
1553 > > > # This file should only have files the are used by things like swt. If
1554 > > > there
1555 > > > # are "broken" links inside the jre itself, the jre should install it's
1556 > > > own # control file.
1557 > > >
1558 > > > LD_LIBRARY_MASK="libjvm.so libjawt.so"
1559 > > > +++ LD_LIBRARY_MASK='libjvm.so libjawt.so'
1560 > > > ++ echo libjvm.so libjawt.so
1561 > > > + LD_LIBRARY_MASK+=' libjvm.so libjawt.so'
1562 > > > + for configfile in '/etc/revdep-rebuild/*'
1563 > > > . $configfile; echo $SEARCH_DIRS
1564 > > > ++ . /etc/revdep-rebuild/61-sun-jdk-1.6
1565 > > > SEARCH_DIRS_MASK="/opt/sun-jdk-1.6.0.07"
1566 > > > +++ SEARCH_DIRS_MASK=/opt/sun-jdk-1.6.0.07
1567 > > > ++ echo
1568 > > > + SEARCH_DIRS+=' '
1569 > > > . $configfile; echo $SEARCH_DIRS_MASK
1570 > > > ++ . /etc/revdep-rebuild/61-sun-jdk-1.6
1571 > > > SEARCH_DIRS_MASK="/opt/sun-jdk-1.6.0.07"
1572 > > > +++ SEARCH_DIRS_MASK=/opt/sun-jdk-1.6.0.07
1573 > > > ++ echo /opt/sun-jdk-1.6.0.07
1574 > > > + SEARCH_DIRS_MASK+=' /opt/sun-jdk-1.6.0.07'
1575 > > > . $configfile; echo $LD_LIBRARY_MASK
1576 > > > ++ . /etc/revdep-rebuild/61-sun-jdk-1.6
1577 > > > SEARCH_DIRS_MASK="/opt/sun-jdk-1.6.0.07"
1578 > > > +++ SEARCH_DIRS_MASK=/opt/sun-jdk-1.6.0.07
1579 > > > ++ echo libjvm.so libjawt.so
1580 > > > + LD_LIBRARY_MASK+=' libjvm.so libjawt.so'
1581 > > > + for configfile in '/etc/revdep-rebuild/*'
1582 > > > . $configfile; echo $SEARCH_DIRS
1583 > > > ++ . /etc/revdep-rebuild/99revdep-rebuild
1584 > > > # Default revdep-rebuild configuration file
1585 > > > #
1586 > > > # revdep-rebuild no longer uses hardcoded paths. To change the default
1587 > > > # behavior the following variables can be changed:
1588 > > > #
1589 > > > # LD_LIBRARY_MASK - Mask of specially evaluated libraries
1590 > > > #
1591 > > > # SEARCH_DIRS - List of directories to search for executables and
1592 > > > libraries # Use this for directories that are not included in
1593 > PATH
1594 > > > or ld.so.conf.
1595 > > > # An application should normally not have to set this variable
1596 > > > #
1597 > > > # SEARCH_DIRS_MASK - List of directories to not search
1598 > > > # Use this for directories that should not be searched by
1599 > > > revdep-rebuild
1600 > > > # This is normally used by binary packages such as openoffice-bin
1601 > > > #
1602 > > > # Note: This file is sourced using bash by the revdep-rebuild script
1603 > > >
1604 > > > LD_LIBRARY_MASK="libodbcinst.so libodbc.so libjava.so libjvm.so"
1605 > > > +++ LD_LIBRARY_MASK='libodbcinst.so libodbc.so libjava.so libjvm.so'
1606 > > > SEARCH_DIRS="/bin /sbin /usr/bin /usr/sbin /lib* /usr/lib*"
1607 > > > +++ SEARCH_DIRS='/bin /sbin /usr/bin /usr/sbin /lib* /usr/lib*'
1608 > > > SEARCH_DIRS_MASK="/lib*/modules"
1609 > > > +++ SEARCH_DIRS_MASK='/lib*/modules'
1610 > > >
1611 > > > ++
1612 > > > echo /bin /sbin /usr/bin /usr/sbin /lib /lib32 /lib64 /usr/lib
1613 > /usr/lib32
1614 > > > /usr/lib64 /usr/libexec
1615 > > > +
1616 > > > SEARCH_DIRS+=' /bin /sbin /usr/bin /usr/sbin /lib /lib32 /lib64
1617 > /usr/lib
1618 > > > /usr/lib32 /usr/lib64 /usr/libexec'
1619 > > > . $configfile; echo $SEARCH_DIRS_MASK
1620 > > > ++ . /etc/revdep-rebuild/99revdep-rebuild
1621 > > > # Default revdep-rebuild configuration file
1622 > > > #
1623 > > > # revdep-rebuild no longer uses hardcoded paths. To change the default
1624 > > > # behavior the following variables can be changed:
1625 > > > #
1626 > > > # LD_LIBRARY_MASK - Mask of specially evaluated libraries
1627 > > > #
1628 > > > # SEARCH_DIRS - List of directories to search for executables and
1629 > > > libraries # Use this for directories that are not included in
1630 > PATH
1631 > > > or ld.so.conf.
1632 > > > # An application should normally not have to set this variable
1633 > > > #
1634 > > > # SEARCH_DIRS_MASK - List of directories to not search
1635 > > > # Use this for directories that should not be searched by
1636 > > > revdep-rebuild
1637 > > > # This is normally used by binary packages such as openoffice-bin
1638 > > > #
1639 > > > # Note: This file is sourced using bash by the revdep-rebuild script
1640 > > >
1641 > > > LD_LIBRARY_MASK="libodbcinst.so libodbc.so libjava.so libjvm.so"
1642 > > > +++ LD_LIBRARY_MASK='libodbcinst.so libodbc.so libjava.so libjvm.so'
1643 > > > SEARCH_DIRS="/bin /sbin /usr/bin /usr/sbin /lib* /usr/lib*"
1644 > > > +++ SEARCH_DIRS='/bin /sbin /usr/bin /usr/sbin /lib* /usr/lib*'
1645 > > > SEARCH_DIRS_MASK="/lib*/modules"
1646 > > > +++ SEARCH_DIRS_MASK='/lib*/modules'
1647 > > >
1648 > > > ++ echo /lib64/modules /lib/modules
1649 > > > + SEARCH_DIRS_MASK+=' /lib64/modules /lib/modules'
1650 > > > . $configfile; echo $LD_LIBRARY_MASK
1651 > > > ++ . /etc/revdep-rebuild/99revdep-rebuild
1652 > > > # Default revdep-rebuild configuration file
1653 > > > #
1654 > > > # revdep-rebuild no longer uses hardcoded paths. To change the default
1655 > > > # behavior the following variables can be changed:
1656 > > > #
1657 > > > # LD_LIBRARY_MASK - Mask of specially evaluated libraries
1658 > > > #
1659 > > > # SEARCH_DIRS - List of directories to search for executables and
1660 > > > libraries # Use this for directories that are not included in
1661 > PATH
1662 > > > or ld.so.conf.
1663 > > > # An application should normally not have to set this variable
1664 > > > #
1665 > > > # SEARCH_DIRS_MASK - List of directories to not search
1666 > > > # Use this for directories that should not be searched by
1667 > > > revdep-rebuild
1668 > > > # This is normally used by binary packages such as openoffice-bin
1669 > > > #
1670 > > > # Note: This file is sourced using bash by the revdep-rebuild script
1671 > > >
1672 > > > LD_LIBRARY_MASK="libodbcinst.so libodbc.so libjava.so libjvm.so"
1673 > > > +++ LD_LIBRARY_MASK='libodbcinst.so libodbc.so libjava.so libjvm.so'
1674 > > > SEARCH_DIRS="/bin /sbin /usr/bin /usr/sbin /lib* /usr/lib*"
1675 > > > +++ SEARCH_DIRS='/bin /sbin /usr/bin /usr/sbin /lib* /usr/lib*'
1676 > > > SEARCH_DIRS_MASK="/lib*/modules"
1677 > > > +++ SEARCH_DIRS_MASK='/lib*/modules'
1678 > > >
1679 > > > ++ echo libodbcinst.so libodbc.so libjava.so libjvm.so
1680 > > > + LD_LIBRARY_MASK+=' libodbcinst.so libodbc.so libjava.so libjvm.so'
1681 > > > + [[ -r /etc/profile.env ]]
1682 > > > + [[ -s /etc/profile.env ]]
1683 > > > . /etc/profile.env; /usr/bin/tr ':' ' ' <<< "$ROOTPATH $PATH"
1684 > > > ++ . /etc/profile.env
1685 > > > # THIS FILE IS AUTOMATICALLY GENERATED BY env-update.
1686 > > > # DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES
1687 > > > # GO INTO /etc/profile NOT /etc/profile.env
1688 > > >
1689 > > > export CLASSPATH='.'
1690 > > > +++ export CLASSPATH=.
1691 > > > +++ CLASSPATH=.
1692 > > > export CONFIG_PROTECT='/var/bind'
1693 > > > +++ export CONFIG_PROTECT=/var/bind
1694 > > > +++ CONFIG_PROTECT=/var/bind
1695 > > > export
1696 > > > CONFIG_PROTECT_MASK='/etc/env.d/java/ /etc/php/cli-php5/ext-active/
1697 > > > /etc/php/cgi-php5/ext-active/ /etc/php/apache2-php5/ext-active/
1698 > > > /etc/udev/rules.d /etc/terminfo /etc/ca-certificates.conf
1699 > > > /etc/revdep-rebuild'
1700 > > > +++
1701 > > > export 'CONFIG_PROTECT_MASK=/etc/env.d/java/
1702 > > > /etc/php/cli-php5/ext-active/ /etc/php/cgi-php5/ext-active/
1703 > > > /etc/php/apache2-php5/ext-active/
1704 > > > /etc/udev/rules.d /etc/terminfo /etc/ca-certificates.conf
1705 > > > /etc/revdep-rebuild'
1706 > > > +++
1707 > > > CONFIG_PROTECT_MASK='/etc/env.d/java/ /etc/php/cli-php5/ext-active/
1708 > > > /etc/php/cgi-php5/ext-active/ /etc/php/apache2-php5/ext-active/
1709 > > > /etc/udev/rules.d /etc/terminfo /etc/ca-certificates.conf
1710 > > > /etc/revdep-rebuild'
1711 > > > export CVS_RSH='ssh'
1712 > > > +++ export CVS_RSH=ssh
1713 > > > +++ CVS_RSH=ssh
1714 > > > export GCC_SPECS=''
1715 > > > +++ export GCC_SPECS=
1716 > > > +++ GCC_SPECS=
1717 > > > export
1718 > > >
1719 > > >
1720 > INFOPATH='/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.
1721 > > >18/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info' +++ export
1722 > > >
1723 > > >
1724 > INFOPATH=/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.1
1725 > > >8/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info +++
1726 > > >
1727 > > >
1728 > INFOPATH=/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.1
1729 > > >8/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info export
1730 > > > LANG='hu_HU.UTF-8'
1731 > > > +++ export LANG=hu_HU.UTF-8
1732 > > > +++ LANG=hu_HU.UTF-8
1733 > > > export LANGUAGE='hu_HU.UTF-8:hu'
1734 > > > +++ export LANGUAGE=hu_HU.UTF-8:hu
1735 > > > +++ LANGUAGE=hu_HU.UTF-8:hu
1736 > > > export LC_ADDRESS='hu_HU.UTF-8'
1737 > > > +++ export LC_ADDRESS=hu_HU.UTF-8
1738 > > > +++ LC_ADDRESS=hu_HU.UTF-8
1739 > > > export LC_ALL='hu_HU.UTF-8'
1740 > > > +++ export LC_ALL=hu_HU.UTF-8
1741 > > > +++ LC_ALL=hu_HU.UTF-8
1742 > > > export LC_COLLATE='hu_HU.UTF-8'
1743 > > > +++ export LC_COLLATE=hu_HU.UTF-8
1744 > > > +++ LC_COLLATE=hu_HU.UTF-8
1745 > > > export LC_CTYPE='hu_HU.UTF-8'
1746 > > > +++ export LC_CTYPE=hu_HU.UTF-8
1747 > > > +++ LC_CTYPE=hu_HU.UTF-8
1748 > > > export LC_IDENTIFICATION='hu_HU.UTF-8'
1749 > > > +++ export LC_IDENTIFICATION=hu_HU.UTF-8
1750 > > > +++ LC_IDENTIFICATION=hu_HU.UTF-8
1751 > > > export LC_MEASUREMENT='hu_HU.UTF-8'
1752 > > > +++ export LC_MEASUREMENT=hu_HU.UTF-8
1753 > > > +++ LC_MEASUREMENT=hu_HU.UTF-8
1754 > > > export LC_MESSAGES='hu_HU.UTF-8'
1755 > > > +++ export LC_MESSAGES=hu_HU.UTF-8
1756 > > > +++ LC_MESSAGES=hu_HU.UTF-8
1757 > > > export LC_MONETARY='hu_HU.UTF-8'
1758 > > > +++ export LC_MONETARY=hu_HU.UTF-8
1759 > > > +++ LC_MONETARY=hu_HU.UTF-8
1760 > > > export LC_NAME='hu_HU.UTF-8'
1761 > > > +++ export LC_NAME=hu_HU.UTF-8
1762 > > > +++ LC_NAME=hu_HU.UTF-8
1763 > > > export LC_NUMERIC='hu_HU.UTF-8'
1764 > > > +++ export LC_NUMERIC=hu_HU.UTF-8
1765 > > > +++ LC_NUMERIC=hu_HU.UTF-8
1766 > > > export LC_PAPER='hu_HU.UTF-8'
1767 > > > +++ export LC_PAPER=hu_HU.UTF-8
1768 > > > +++ LC_PAPER=hu_HU.UTF-8
1769 > > > export LC_TELEPHONE='hu_HU.UTF-8'
1770 > > > +++ export LC_TELEPHONE=hu_HU.UTF-8
1771 > > > +++ LC_TELEPHONE=hu_HU.UTF-8
1772 > > > export LC_TIME='hu_HU.UTF-8'
1773 > > > +++ export LC_TIME=hu_HU.UTF-8
1774 > > > +++ LC_TIME=hu_HU.UTF-8
1775 > > > export LESS='-R -M --shift 5'
1776 > > > +++ export 'LESS=-R -M --shift 5'
1777 > > > +++ LESS='-R -M --shift 5'
1778 > > > export LESSOPEN='|lesspipe.sh %s'
1779 > > > +++ export 'LESSOPEN=|lesspipe.sh %s'
1780 > > > +++ LESSOPEN='|lesspipe.sh %s'
1781 > > > export
1782 > > >
1783 > > >
1784 > MANPATH='/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86
1785 > >
1786 > >_64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/ma
1787 > > >n:/etc/java-config/system-vm/man/:/usr/lib64/php5/man/' +++ export
1788 > > >
1789 > > >
1790 > MANPATH=/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_
1791 > >
1792 > >64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man
1793 > > >:/etc/java-config/system-vm/man/:/usr/lib64/php5/man/ +++
1794 > > >
1795 > > >
1796 > MANPATH=/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_
1797 > >
1798 > >64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man
1799 > > >:/etc/java-config/system-vm/man/:/usr/lib64/php5/man/ export
1800 > > > PAGER='/usr/bin/less'
1801 > > > +++ export PAGER=/usr/bin/less
1802 > > > +++ PAGER=/usr/bin/less
1803 > > > export
1804 > > > PATH='/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:/usr/games/bin'
1805 > > > +++ export
1806 > > > PATH=/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:/usr/games/bin
1807 > > > +++ PATH=/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:/usr/games/bin
1808 > > > export PYTHONPATH='/usr/lib64/portage/pym'
1809 > > > +++ export PYTHONPATH=/usr/lib64/portage/pym
1810 > > > +++ PYTHONPATH=/usr/lib64/portage/pym
1811 > > > export ROOTPATH='/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2'
1812 > > > +++ export ROOTPATH=/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2
1813 > > > +++ ROOTPATH=/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2
1814 > > > ++ /usr/bin/tr : ' '
1815 > > > +
1816 > > > SEARCH_DIRS+=' /opt/bin /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 /opt/bin
1817 > > > /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 /usr/games/bin'
1818 > > > + [[ -r /etc/ld.so.conf ]]
1819 > > > + [[ -s /etc/ld.so.conf ]]
1820 > > > sed '/^#/d;s/#.*$//' /etc/ld.so.conf
1821 > > > ++ sed '/^#/d;s/#.*$//' /etc/ld.so.conf
1822 > > > + SEARCH_DIRS+=' /usr/local/lib
1823 > > > /lib
1824 > > > /usr/lib
1825 > > > /lib64
1826 > > > /usr/lib64
1827 > > > /usr/local/lib64
1828 > > > /lib32
1829 > > > /usr/lib32
1830 > > > /usr/local/lib32
1831 > > > /usr/x86_64-pc-linux-gnu/lib
1832 > > > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2
1833 > > > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32
1834 > > > /usr/games/lib
1835 > > > /usr/games/lib32
1836 > > > /usr/lib64/libstdc++-v3/'
1837 > > > clean_var <<< "$SEARCH_DIRS"
1838 > > > ++ clean_var
1839 > > > ++ awk 'BEGIN {RS="[[:space:]]"}
1840 > > > /-\*/ {exit}
1841 > > > /[^[:space:]]/ {gsub(/\/\/+/, "/"); print}'
1842 > > > ++ sort -u
1843 > > > + SEARCH_DIRS='/bin
1844 > > > /lib
1845 > > > /lib32
1846 > > > /lib64
1847 > > > /opt/bin
1848 > > > /sbin
1849 > > > /usr/bin
1850 > > > /usr/games/bin
1851 > > > /usr/games/lib
1852 > > > /usr/games/lib32
1853 > > > /usr/lib
1854 > > > /usr/lib32
1855 > > > /usr/lib64
1856 > > > /usr/lib64/libstdc++-v3/
1857 > > > /usr/libexec
1858 > > > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2
1859 > > > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32
1860 > > > /usr/local/lib
1861 > > > /usr/local/lib32
1862 > > > /usr/local/lib64
1863 > > > /usr/sbin
1864 > > > /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2
1865 > > > /usr/x86_64-pc-linux-gnu/lib'
1866 > > > clean_var <<< "$SEARCH_DIRS_MASK"
1867 > > > ++ clean_var
1868 > > > ++ awk 'BEGIN {RS="[[:space:]]"}
1869 > > > /-\*/ {exit}
1870 > > > /[^[:space:]]/ {gsub(/\/\/+/, "/"); print}'
1871 > > > ++ sort -u
1872 > > > + SEARCH_DIRS_MASK='/lib64/modules
1873 > > > /lib/modules
1874 > > > /opt/sun-jdk-1.6.0.07'
1875 > > > clean_var <<< "$LD_LIBRARY_MASK"
1876 > > > ++ clean_var
1877 > > > ++ awk 'BEGIN {RS="[[:space:]]"}
1878 > > > /-\*/ {exit}
1879 > > > /[^[:space:]]/ {gsub(/\/\/+/, "/"); print}'
1880 > > > ++ sort -u
1881 > > > + LD_LIBRARY_MASK='libjava.so
1882 > > > libjawt.so
1883 > > > libjvm.so
1884 > > > libodbcinst.so
1885 > > > libodbc.so'
1886 > > > + for sdir in '${SEARCH_DIRS}'
1887 > > > + skip_me=
1888 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1889 > > > + [[ /bin == /lib64/modules/* ]]
1890 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1891 > > > + [[ /bin == /lib/modules/* ]]
1892 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1893 > > > + [[ /bin == /opt/sun-jdk-1.6.0.07/* ]]
1894 > > > + [[ -n '' ]]
1895 > > > + filter_SEARCH_DIRS+=' /bin'
1896 > > > + for sdir in '${SEARCH_DIRS}'
1897 > > > + skip_me=
1898 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1899 > > > + [[ /lib == /lib64/modules/* ]]
1900 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1901 > > > + [[ /lib == /lib/modules/* ]]
1902 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1903 > > > + [[ /lib == /opt/sun-jdk-1.6.0.07/* ]]
1904 > > > + [[ -n '' ]]
1905 > > > + filter_SEARCH_DIRS+=' /lib'
1906 > > > + for sdir in '${SEARCH_DIRS}'
1907 > > > + skip_me=
1908 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1909 > > > + [[ /lib32 == /lib64/modules/* ]]
1910 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1911 > > > + [[ /lib32 == /lib/modules/* ]]
1912 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1913 > > > + [[ /lib32 == /opt/sun-jdk-1.6.0.07/* ]]
1914 > > > + [[ -n '' ]]
1915 > > > + filter_SEARCH_DIRS+=' /lib32'
1916 > > > + for sdir in '${SEARCH_DIRS}'
1917 > > > + skip_me=
1918 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1919 > > > + [[ /lib64 == /lib64/modules/* ]]
1920 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1921 > > > + [[ /lib64 == /lib/modules/* ]]
1922 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1923 > > > + [[ /lib64 == /opt/sun-jdk-1.6.0.07/* ]]
1924 > > > + [[ -n '' ]]
1925 > > > + filter_SEARCH_DIRS+=' /lib64'
1926 > > > + for sdir in '${SEARCH_DIRS}'
1927 > > > + skip_me=
1928 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1929 > > > + [[ /opt/bin == /lib64/modules/* ]]
1930 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1931 > > > + [[ /opt/bin == /lib/modules/* ]]
1932 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1933 > > > + [[ /opt/bin == /opt/sun-jdk-1.6.0.07/* ]]
1934 > > > + [[ -n '' ]]
1935 > > > + filter_SEARCH_DIRS+=' /opt/bin'
1936 > > > + for sdir in '${SEARCH_DIRS}'
1937 > > > + skip_me=
1938 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1939 > > > + [[ /sbin == /lib64/modules/* ]]
1940 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1941 > > > + [[ /sbin == /lib/modules/* ]]
1942 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1943 > > > + [[ /sbin == /opt/sun-jdk-1.6.0.07/* ]]
1944 > > > + [[ -n '' ]]
1945 > > > + filter_SEARCH_DIRS+=' /sbin'
1946 > > > + for sdir in '${SEARCH_DIRS}'
1947 > > > + skip_me=
1948 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1949 > > > + [[ /usr/bin == /lib64/modules/* ]]
1950 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1951 > > > + [[ /usr/bin == /lib/modules/* ]]
1952 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1953 > > > + [[ /usr/bin == /opt/sun-jdk-1.6.0.07/* ]]
1954 > > > + [[ -n '' ]]
1955 > > > + filter_SEARCH_DIRS+=' /usr/bin'
1956 > > > + for sdir in '${SEARCH_DIRS}'
1957 > > > + skip_me=
1958 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1959 > > > + [[ /usr/games/bin == /lib64/modules/* ]]
1960 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1961 > > > + [[ /usr/games/bin == /lib/modules/* ]]
1962 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1963 > > > + [[ /usr/games/bin == /opt/sun-jdk-1.6.0.07/* ]]
1964 > > > + [[ -n '' ]]
1965 > > > + filter_SEARCH_DIRS+=' /usr/games/bin'
1966 > > > + for sdir in '${SEARCH_DIRS}'
1967 > > > + skip_me=
1968 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1969 > > > + [[ /usr/games/lib == /lib64/modules/* ]]
1970 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1971 > > > + [[ /usr/games/lib == /lib/modules/* ]]
1972 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1973 > > > + [[ /usr/games/lib == /opt/sun-jdk-1.6.0.07/* ]]
1974 > > > + [[ -n '' ]]
1975 > > > + filter_SEARCH_DIRS+=' /usr/games/lib'
1976 > > > + for sdir in '${SEARCH_DIRS}'
1977 > > > + skip_me=
1978 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1979 > > > + [[ /usr/games/lib32 == /lib64/modules/* ]]
1980 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1981 > > > + [[ /usr/games/lib32 == /lib/modules/* ]]
1982 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1983 > > > + [[ /usr/games/lib32 == /opt/sun-jdk-1.6.0.07/* ]]
1984 > > > + [[ -n '' ]]
1985 > > > + filter_SEARCH_DIRS+=' /usr/games/lib32'
1986 > > > + for sdir in '${SEARCH_DIRS}'
1987 > > > + skip_me=
1988 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1989 > > > + [[ /usr/lib == /lib64/modules/* ]]
1990 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1991 > > > + [[ /usr/lib == /lib/modules/* ]]
1992 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1993 > > > + [[ /usr/lib == /opt/sun-jdk-1.6.0.07/* ]]
1994 > > > + [[ -n '' ]]
1995 > > > + filter_SEARCH_DIRS+=' /usr/lib'
1996 > > > + for sdir in '${SEARCH_DIRS}'
1997 > > > + skip_me=
1998 > > > + for mdir in '${SEARCH_DIRS_MASK}'
1999 > > > + [[ /usr/lib32 == /lib64/modules/* ]]
2000 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2001 > > > + [[ /usr/lib32 == /lib/modules/* ]]
2002 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2003 > > > + [[ /usr/lib32 == /opt/sun-jdk-1.6.0.07/* ]]
2004 > > > + [[ -n '' ]]
2005 > > > + filter_SEARCH_DIRS+=' /usr/lib32'
2006 > > > + for sdir in '${SEARCH_DIRS}'
2007 > > > + skip_me=
2008 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2009 > > > + [[ /usr/lib64 == /lib64/modules/* ]]
2010 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2011 > > > + [[ /usr/lib64 == /lib/modules/* ]]
2012 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2013 > > > + [[ /usr/lib64 == /opt/sun-jdk-1.6.0.07/* ]]
2014 > > > + [[ -n '' ]]
2015 > > > + filter_SEARCH_DIRS+=' /usr/lib64'
2016 > > > + for sdir in '${SEARCH_DIRS}'
2017 > > > + skip_me=
2018 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2019 > > > + [[ /usr/lib64/libstdc++-v3/ == /lib64/modules/* ]]
2020 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2021 > > > + [[ /usr/lib64/libstdc++-v3/ == /lib/modules/* ]]
2022 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2023 > > > + [[ /usr/lib64/libstdc++-v3/ == /opt/sun-jdk-1.6.0.07/* ]]
2024 > > > + [[ -n '' ]]
2025 > > > + filter_SEARCH_DIRS+=' /usr/lib64/libstdc++-v3/'
2026 > > > + for sdir in '${SEARCH_DIRS}'
2027 > > > + skip_me=
2028 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2029 > > > + [[ /usr/libexec == /lib64/modules/* ]]
2030 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2031 > > > + [[ /usr/libexec == /lib/modules/* ]]
2032 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2033 > > > + [[ /usr/libexec == /opt/sun-jdk-1.6.0.07/* ]]
2034 > > > + [[ -n '' ]]
2035 > > > + filter_SEARCH_DIRS+=' /usr/libexec'
2036 > > > + for sdir in '${SEARCH_DIRS}'
2037 > > > + skip_me=
2038 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2039 > > > + [[ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 == /lib64/modules/* ]]
2040 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2041 > > > + [[ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 == /lib/modules/* ]]
2042 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2043 > > > + [[ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 == /opt/sun-jdk-1.6.0.07/*
2044 > ]]
2045 > > > + [[ -n '' ]]
2046 > > > + filter_SEARCH_DIRS+=' /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2'
2047 > > > + for sdir in '${SEARCH_DIRS}'
2048 > > > + skip_me=
2049 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2050 > > > + [[ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32 == /lib64/modules/* ]]
2051 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2052 > > > + [[ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32 == /lib/modules/* ]]
2053 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2054 > > > + [[ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32 ==
2055 > /opt/sun-jdk-1.6.0.07/*
2056 > > > ]]
2057 > > > + [[ -n '' ]]
2058 > > > + filter_SEARCH_DIRS+=' /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32'
2059 > > > + for sdir in '${SEARCH_DIRS}'
2060 > > > + skip_me=
2061 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2062 > > > + [[ /usr/local/lib == /lib64/modules/* ]]
2063 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2064 > > > + [[ /usr/local/lib == /lib/modules/* ]]
2065 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2066 > > > + [[ /usr/local/lib == /opt/sun-jdk-1.6.0.07/* ]]
2067 > > > + [[ -n '' ]]
2068 > > > + filter_SEARCH_DIRS+=' /usr/local/lib'
2069 > > > + for sdir in '${SEARCH_DIRS}'
2070 > > > + skip_me=
2071 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2072 > > > + [[ /usr/local/lib32 == /lib64/modules/* ]]
2073 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2074 > > > + [[ /usr/local/lib32 == /lib/modules/* ]]
2075 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2076 > > > + [[ /usr/local/lib32 == /opt/sun-jdk-1.6.0.07/* ]]
2077 > > > + [[ -n '' ]]
2078 > > > + filter_SEARCH_DIRS+=' /usr/local/lib32'
2079 > > > + for sdir in '${SEARCH_DIRS}'
2080 > > > + skip_me=
2081 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2082 > > > + [[ /usr/local/lib64 == /lib64/modules/* ]]
2083 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2084 > > > + [[ /usr/local/lib64 == /lib/modules/* ]]
2085 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2086 > > > + [[ /usr/local/lib64 == /opt/sun-jdk-1.6.0.07/* ]]
2087 > > > + [[ -n '' ]]
2088 > > > + filter_SEARCH_DIRS+=' /usr/local/lib64'
2089 > > > + for sdir in '${SEARCH_DIRS}'
2090 > > > + skip_me=
2091 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2092 > > > + [[ /usr/sbin == /lib64/modules/* ]]
2093 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2094 > > > + [[ /usr/sbin == /lib/modules/* ]]
2095 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2096 > > > + [[ /usr/sbin == /opt/sun-jdk-1.6.0.07/* ]]
2097 > > > + [[ -n '' ]]
2098 > > > + filter_SEARCH_DIRS+=' /usr/sbin'
2099 > > > + for sdir in '${SEARCH_DIRS}'
2100 > > > + skip_me=
2101 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2102 > > > + [[ /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 == /lib64/modules/* ]]
2103 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2104 > > > + [[ /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 == /lib/modules/* ]]
2105 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2106 > > > + [[ /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 == /opt/sun-jdk-1.6.0.07/*
2107 > ]]
2108 > > > + [[ -n '' ]]
2109 > > > + filter_SEARCH_DIRS+=' /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2'
2110 > > > + for sdir in '${SEARCH_DIRS}'
2111 > > > + skip_me=
2112 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2113 > > > + [[ /usr/x86_64-pc-linux-gnu/lib == /lib64/modules/* ]]
2114 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2115 > > > + [[ /usr/x86_64-pc-linux-gnu/lib == /lib/modules/* ]]
2116 > > > + for mdir in '${SEARCH_DIRS_MASK}'
2117 > > > + [[ /usr/x86_64-pc-linux-gnu/lib == /opt/sun-jdk-1.6.0.07/* ]]
2118 > > > + [[ -n '' ]]
2119 > > > + filter_SEARCH_DIRS+=' /usr/x86_64-pc-linux-gnu/lib'
2120 > > > clean_var <<< "${filter_SEARCH_DIRS}"
2121 > > > ++ clean_var
2122 > > > ++ awk 'BEGIN {RS="[[:space:]]"}
2123 > > > /-\*/ {exit}
2124 > > > /[^[:space:]]/ {gsub(/\/\/+/, "/"); print}'
2125 > > > ++ sort -u
2126 > > > + SEARCH_DIRS='/bin
2127 > > > /lib
2128 > > > /lib32
2129 > > > /lib64
2130 > > > /opt/bin
2131 > > > /sbin
2132 > > > /usr/bin
2133 > > > /usr/games/bin
2134 > > > /usr/games/lib
2135 > > > /usr/games/lib32
2136 > > > /usr/lib
2137 > > > /usr/lib32
2138 > > > /usr/lib64
2139 > > > /usr/lib64/libstdc++-v3/
2140 > > > /usr/libexec
2141 > > > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2
2142 > > > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32
2143 > > > /usr/local/lib
2144 > > > /usr/local/lib32
2145 > > > /usr/local/lib64
2146 > > > /usr/sbin
2147 > > > /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2
2148 > > > /usr/x86_64-pc-linux-gnu/lib'
2149 > > > + [[ -n /bin
2150 > > > /lib
2151 > > > /lib32
2152 > > > /lib64
2153 > > > /opt/bin
2154 > > > /sbin
2155 > > > /usr/bin
2156 > > > /usr/games/bin
2157 > > > /usr/games/lib
2158 > > > /usr/games/lib32
2159 > > > /usr/lib
2160 > > > /usr/lib32
2161 > > > /usr/lib64
2162 > > > /usr/lib64/libstdc++-v3/
2163 > > > /usr/libexec
2164 > > > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2
2165 > > > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32
2166 > > > /usr/local/lib
2167 > > > /usr/local/lib32
2168 > > > /usr/local/lib64
2169 > > > /usr/sbin
2170 > > > /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2
2171 > > > /usr/x86_64-pc-linux-gnu/lib ]]
2172 > > > + get_search_env
2173 > > > + local new_env
2174 > > > + local old_env
2175 > > > python -c 'import os; import pwd; print pwd.getpwuid(os.getuid())[0]'
2176 > > > ++ python -c 'import os; import pwd; print
2177 > pwd.getpwuid(os.getuid())[0]'
2178 > > > + local uid=root
2179 > > > + [[ root == \r\o\o\t ]]
2180 > > > + local tmp_target=/var/cache/revdep-rebuild
2181 > > > + verify_tmpdir /var/cache/revdep-rebuild root
2182 > > > + umask 007
2183 > > > + [[ ! -n /var/cache/revdep-rebuild ]]
2184 > > > + [[ -d /var/cache/revdep-rebuild ]]
2185 > > > find "$1" -type d ! \( -user $2 -perm -0700 \)
2186 > > > ++ find /var/cache/revdep-rebuild -type d '!' '(' -user root -perm
2187 > -0700
2188 > > > ')'
2189 > > > ++ hash find
2190 > > > type -P find
2191 > > > +++ type -P find
2192 > > > ++ local testsubject=/usr/bin/find
2193 > > > command find "$testsubject" -executable 2> /dev/null
2194 > > > +++ command find /usr/bin/find -executable
2195 > > > ++ [[ -n /usr/bin/find ]]
2196 > > > ++ unset -f find
2197 > > > ++ find /var/cache/revdep-rebuild -type d '!' '(' -user root -perm
2198 > -0700
2199 > > > ')'
2200 > > > + [[ -n '' ]]
2201 > > > + cd /var/cache/revdep-rebuild
2202 > > > + builtin cd -P /var/cache/revdep-rebuild
2203 > > > + [[ /var/cache/revdep-rebuild != /var/mnt/cache/revdep-rebuild ]]
2204 > > > + die 1 'Working directory expected to be /var/cache/revdep-rebuild,
2205 > but
2206 > > > it is /var/mnt/cache/revdep-rebuild'
2207 > > > + local status=1
2208 > > > + shift
2209 > > > + eerror 'Working directory expected to be /var/cache/revdep-rebuild,
2210 > but
2211 > > > it
2212 > > > is /var/mnt/cache/revdep-rebuild'
2213 > > > + [[ no == \y\e\s ]]
2214 > > > + [[ yes != \y\e\s ]]
2215 > > > + echo -e ' * Working directory expected to be
2216 > /var/cache/revdep-rebuild,
2217 > > > but
2218 > > > it is /var/mnt/cache/revdep-rebuild'
2219 > > > + local name=rc-scripts
2220 > > > + [[ /usr/bin/revdep-rebuild != \/\s\b\i\n\/\r\u\n\s\c\r\i\p\t\.\s\h ]]
2221 > > > + name=revdep-rebuild
2222 > > > + esyslog daemon.err rc-scripts 'Working directory expected to
2223 > > > be /var/cache/revdep-rebuild, but it is /var/mnt/cache/revdep-rebuild'
2224 > > > + local pri=
2225 > > > + local tag=
2226 > > > + [[ -x /usr/bin/logger ]]
2227 > > > + pri=daemon.err
2228 > > > + tag=rc-scripts
2229 > > > + shift 2
2230 > > > + [[ -z Working directory expected to be /var/cache/revdep-rebuild, but
2231 > > > it is /var/mnt/cache/revdep-rebuild ]]
2232 > > > + /usr/bin/logger -p daemon.err -t rc-scripts -- 'Working directory
2233 > > > expected
2234 > > > to be /var/cache/revdep-rebuild, but it is
2235 > /var/mnt/cache/revdep-rebuild'
2236 > > > + return 0
2237 > > > + LAST_E_CMD=eerror
2238 > > > + return 0
2239 > > > + exit 1
2240 >
2241 >
2242 >
2243 >

Replies

Subject Author
Re: [gentoo-user-hu] revdep-rebuild cjvt <cjvt@××××××××.hu>