Magellan Linux

Contents of /branches/R11-unstable/include/rpath.sminc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24893 - (show annotations) (download)
Tue Nov 25 02:21:44 2014 UTC (9 years, 5 months ago) by niro
File size: 461 byte(s)
-release R11-unstable
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 }