File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed
Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,8 @@ printf '%s\n' "${!DIRS[@]}" |xargs -r put-tree .
282282printf ' %s\n' " ${! FILES[@]} " | xargs -r put-file .
283283printf ' %s\n' " ${! LOCALFILES[@]} " | xargs -r put-file -r " $LOCALBUILDDIR " .
284284
285+ gen-ld-so-conf . > etc/ld.so.conf
286+
285287ln_if_missing " $UDEVD " ./sbin/udevd
286288ln_if_missing " $UDEVADM " ./sbin/udevadm
287289
Original file line number Diff line number Diff line change 1+ #! /bin/bash -eu
2+ # SPDX-License-Identifier: GPL-3.0-or-later
3+
4+ root=" $1 " ; shift
5+ [ -d " $root " ] || exit 1
6+ [ -s /etc/ld.so.conf ] || exit 0
7+
8+ parse_glob () {
9+ local g=" $1 " ; shift
10+ local f
11+
12+ for f in $g ; do
13+ if [ -s " $f " ]; then
14+ parse_config " $f "
15+ fi
16+ done
17+ }
18+
19+ parse_config () {
20+ local f=" $1 " ; shift
21+ local dname=" ${f%/* } "
22+ local w rest
23+
24+ while read -r w rest; do {
25+ case " $w " in
26+ ' #' * |' ' ) ;;
27+ include)
28+ if [ -z " ${rest##/* } " ]; then
29+ parse_glob " $rest "
30+ else
31+ parse_glob " $dname /$rest "
32+ fi
33+ ;;
34+ * )
35+ if [ -z " $rest " ] && [ -d " $root$w " ]; then
36+ printf ' %s\n' " $w "
37+ fi
38+ ;;
39+ esac
40+ } < /dev/null; done < " $f "
41+ }
42+
43+ parse_config /etc/ld.so.conf
You can’t perform that action at this time.
0 commit comments