Gentoo Archives: gentoo-user-hu

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

Replies

Subject Author
Re: [gentoo-user-hu] revdep-rebuild George Hron <hrgyster@×××××.com>