Magellan Linux

Annotation of /smage/branches/alx07x-stable/include/rpath.sminc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15580 - (hide annotations) (download)
Fri Sep 11 05:44:07 2020 UTC (3 years, 8 months ago) by niro
File size: 461 byte(s)
-released stable
1 niro 15448 # $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     }