diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2012-04-24 17:47:24 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2012-04-30 08:25:05 +0200 |
commit | 3c2d95022b62adf82216f05ef5749d4aaf22bddf (patch) | |
tree | 2614cf6cf02a0677e71a19890882d7637037a173 /meta-oe/recipes-navigation | |
parent | c11555a5906577ce02d5569023d2025548334839 (diff) | |
download | meta-openembedded-3c2d95022b62adf82216f05ef5749d4aaf22bddf.tar.gz |
gpsd: remove RPATH from binaries instead of replacing it with redundant /usr/lib
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-navigation')
-rw-r--r-- | meta-oe/recipes-navigation/gpsd/gpsd/0004-SConstruct-remove-rpath.patch | 41 | ||||
-rw-r--r-- | meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd/0004-SConstruct-remove-rpath.patch b/meta-oe/recipes-navigation/gpsd/gpsd/0004-SConstruct-remove-rpath.patch new file mode 100644 index 000000000..add624b82 --- /dev/null +++ b/meta-oe/recipes-navigation/gpsd/gpsd/0004-SConstruct-remove-rpath.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From b59f8c5bf8519a5ca114696e79b8690ebb68e0d3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Tue, 24 Apr 2012 16:24:35 +0200 | ||
4 | Subject: [PATCH 4/4] SConstruct: remove rpath | ||
5 | |||
6 | * even with correct prefix (without DESTDIR) included it's redundant | ||
7 | WARNING: QA Issue: libgps: | ||
8 | /work/armv4t-oe-linux-gnueabi/gpsd/gpsd-3.5-r0/packages-split/libgps/usr/lib/libgps.so.20.0 | ||
9 | contains probably-redundant RPATH /usr/lib | ||
10 | * and with prefix from scons.bbclass it's invalid | ||
11 | WARNING: QA Issue: package libgps contains bad RPATH | ||
12 | /OE/shr-core/tmp-eglibc/work/armv4t-oe-linux-gnueabi/gpsd/gpsd-3.5-r0/image/usr/lib | ||
13 | in file | ||
14 | /OE/shr-core/tmp-eglibc/work/armv4t-oe-linux-gnueabi/gpsd/gpsd-3.5-r0/packages-split/libgps/usr/lib/libgps.so.20.0 | ||
15 | |||
16 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
17 | --- | ||
18 | SConstruct | 7 +++++-- | ||
19 | 1 files changed, 5 insertions(+), 2 deletions(-) | ||
20 | |||
21 | diff --git a/SConstruct b/SConstruct | ||
22 | index 0cf5799..3c919fc 100644 | ||
23 | --- a/SConstruct | ||
24 | +++ b/SConstruct | ||
25 | @@ -1152,8 +1152,11 @@ if qt_env: | ||
26 | |||
27 | # We don't use installdir here in order to avoid having DESTDIR affect the rpath | ||
28 | if env["shared"]: | ||
29 | - env.AddPostAction(binaryinstall, '$CHRPATH -r "%s" "$TARGET"' \ | ||
30 | - % (installdir('libdir', False), )) | ||
31 | + if env['sysroot']: | ||
32 | + env.AddPostAction(binaryinstall, '$CHRPATH -d "$TARGET"') | ||
33 | + else: | ||
34 | + env.AddPostAction(binaryinstall, '$CHRPATH -r "%s" "$TARGET"' \ | ||
35 | + % (installdir('libdir', False), )) | ||
36 | |||
37 | if not env['debug'] and not env['profiling'] and env['strip']: | ||
38 | env.AddPostAction(binaryinstall, '$STRIP $TARGET') | ||
39 | -- | ||
40 | 1.7.8.5 | ||
41 | |||
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb index fae349240..0796c34c0 100644 --- a/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb +++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb | |||
@@ -9,6 +9,7 @@ SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \ | |||
9 | file://0001-SConstruct-fix-DSO-build-for-ntpshm-garmin_monitor.patch \ | 9 | file://0001-SConstruct-fix-DSO-build-for-ntpshm-garmin_monitor.patch \ |
10 | file://0001-SConstruct-respect-sysroot-setting-when-prepending-L.patch \ | 10 | file://0001-SConstruct-respect-sysroot-setting-when-prepending-L.patch \ |
11 | file://0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch \ | 11 | file://0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch \ |
12 | file://0004-SConstruct-remove-rpath.patch \ | ||
12 | file://gpsd-default \ | 13 | file://gpsd-default \ |
13 | file://gpsd \ | 14 | file://gpsd \ |
14 | file://60-gpsd.rules \ | 15 | file://60-gpsd.rules \ |