Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 450688
Collapse All | Expand All

(-)a/gen_initramfs.sh (-2 / +10 lines)
Lines 33-45 copy_binaries() { Link Here
33
		fi
33
		fi
34
	done
34
	done
35
	# This must be OUTSIDE the for loop, we only want to run lddtree etc ONCE.
35
	# This must be OUTSIDE the for loop, we only want to run lddtree etc ONCE.
36
	lddtree "$@" \
36
	# lddtree does not have the -V (version) nor the -l (list) options prior to version 1.18
37
	if lddtree -V > /dev/null 2>&1 ; then
38
		lddtree -l"$@" \
39
			| sort \
40
			| uniq \
41
			| cpio -p --make-directories --dereference --quiet "${destdir}" \
42
			|| gen_die "Binary ${f} or some of its library dependencies could not be copied"
43
	else
44
		lddtree "$@" \
37
			| tr ')(' '\n' \
45
			| tr ')(' '\n' \
38
			| awk  '/=>/{ if($3 ~ /^\//){print $3}}' \
46
			| awk  '/=>/{ if($3 ~ /^\//){print $3}}' \
39
			| sort \
47
			| sort \
40
			| uniq \
48
			| uniq \
41
			| cpio -p --make-directories --dereference --quiet "${destdir}" \
49
			| cpio -p --make-directories --dereference --quiet "${destdir}" \
42
			|| gen_die "Binary ${f} or some of its library dependencies could not be copied"
50
			|| gen_die "Binary ${f} or some of its library dependencies could not be copied"
51
	fi
43
}
52
}
44
53
45
log_future_cpio_content() {
54
log_future_cpio_content() {
46
- 

Return to bug 450688