Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 11510 Details for
Bug 3141
AutoRdependencies in ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to get full dependencies on compiling
ebuild.sh.patch (text/plain), 1.31 KB, created by
Wout Mertens (RETIRED)
on 2003-05-05 03:09:52 UTC
(
hide
)
Description:
Patch to get full dependencies on compiling
Filename:
MIME Type:
Creator:
Wout Mertens (RETIRED)
Created:
2003-05-05 03:09:52 UTC
Size:
1.31 KB
patch
obsolete
>--- ebuild.sh.orig 2003-05-04 23:59:47.000000000 +0200 >+++ ebuild.sh 2003-05-05 08:58:53.000000000 +0200 >@@ -650,8 +650,43 @@ > #scripts, so set it to $T. > export TMP="${T}" > export TMPDIR="${T}" >- src_compile >+ local strace_pid=0 olog=${T}/openedfiles.log olst=${T}/openedfiles.lst >+ if [ "$FINDDEPS" ]; then >+ if [ -x /usr/bin/strace ]; then >+ strace -qf -e signal=\!all -e open,execve -o "$olog" -p $$ & >+ strace_pid=$! >+ # Wait for strace to start >+ local count=10 >+ while [ ! -f "$olog" ] && [ $count -gt 0 ]; do >+ sleep 0.1 >+ set count-- >+ done >+ if [ $count -eq 0 ]; then >+ ewarn Couldn\'t start strace \!\!\! >+ strace_pid=0 >+ fi >+ else >+ ewarn You need to emerge dev-util/strace for this\!\!\! >+ fi >+ fi >+ src_compile > #|| abort_compile "fail" >+ if [ $strace_pid -gt 0 ]; then >+ kill $strace_pid >+ ewarn Packages needed for compilation: >+ awk -F\" '$2~/^\// && !/ENOENT/ && $2!~/\/tmp\// && !/^'$$'/{ >+ files[$2]++ >+ } >+ END{ >+ for(f in files){ >+ print "^obj " f " " >+ } >+ }' "$olog" > "$olst" >+ grep -l -f "$olst" /var/db/pkg/*/*/CONTENTS | \ >+ awk -F/ '{print "\t" $(NF-2) "/" $(NF-1)}' >+ ewarn If you wonder about one of these, run >+ ewarn grep -f "${T}/openedfiles.lst" /var/db/pkg/_package_/CONTENTS >+ fi > cd ${BUILDDIR} > touch .compiled > if [ ! -e "build-info" ]
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3141
:
11510
|
11561
|
11872
|
11873