Contents of /trunk/include/rpath.sminc
Parent Directory | Revision Log
Revision 22528 -
(show annotations)
(download)
Wed Oct 22 13:45:21 2014 UTC (10 years ago) by niro
File size: 461 byte(s)
Wed Oct 22 13:45:21 2014 UTC (10 years ago) by niro
File size: 461 byte(s)
-fixed typos
1 | # $Id$ |
2 | |
3 | SDEPEND="${SDEPEND} |
4 | >= sys-apps/scanelf-0.8 |
5 | >= app-admin/chrpath-0.16 |
6 | >= virtual/sed |
7 | >= virtual/grep" |
8 | |
9 | msearchrpath() |
10 | { |
11 | # prints only file names with insecure rpath |
12 | scanelf -qyRF '%r -> %p' "${BINDIR}" | grep -E "(${BUILDDIR}|: |::|^ )" | sed 's:.*->\ \(.*\):\1:g' |
13 | } |
14 | |
15 | mdeleterpath() |
16 | { |
17 | local file |
18 | # remove rpath from files |
19 | for file in $(msearchrpath) |
20 | do |
21 | chrpath -d "${BINDIR}/${file}" || die "rpath removal failed: ${BINDIR}/${file}" |
22 | done |
23 | } |