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

Replies

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