Lines 689-696
Link Here
|
689 |
#scripts, so set it to $T. |
689 |
#scripts, so set it to $T. |
690 |
export TMP="${T}" |
690 |
export TMP="${T}" |
691 |
export TMPDIR="${T}" |
691 |
export TMPDIR="${T}" |
692 |
src_compile |
692 |
local strace_pid=0 olog=${T}/openedfiles.log olst=${T}/openedfiles.lst |
|
|
693 |
local opkg=${T}/openedpkgs.lst |
694 |
if [ "$FINDDEPS" ]; then |
695 |
export SANDBOX_TRACE_LOG=$olog |
696 |
export SANDBOX_TRACE=true |
697 |
fi |
698 |
src_compile |
693 |
#|| abort_compile "fail" |
699 |
#|| abort_compile "fail" |
|
|
700 |
if [ "$FINDDEPS" ]; then |
701 |
unset SANDBOX_TRACE |
702 |
sort -u "$olog" | sed 's/^.*$/^[os][by][jm] & /' > "$olst" |
703 |
grep -l -f "$olst" /var/db/pkg/*/*/CONTENTS | \ |
704 |
awk -F/ '{print "\t" $(NF-2) "/" $(NF-1)}' > "$opkg" |
705 |
cat "$opkg" |
706 |
ewarn To know which files in a certain package were used, run |
707 |
ewarn "grep -f \"$olst\" /var/db/pkg/<group>/<name>/CONTENTS" |
708 |
fi |
694 |
cd ${BUILDDIR} |
709 |
cd ${BUILDDIR} |
695 |
touch .compiled |
710 |
touch .compiled |
696 |
if [ ! -e "build-info" ] |
711 |
if [ ! -e "build-info" ] |