summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-08 16:10:50 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-09 10:52:03 +0000
commit23d9886aae0296de363545ad7a229722ed83e708 (patch)
tree180c2a7641cec7e7ba237db246d999898f0e3949 /meta
parenteac8f9b986b565ff8ce6ffeb93bcadffc9c34330 (diff)
downloadpoky-23d9886aae0296de363545ad7a229722ed83e708.tar.gz
openssl/fontconfig/bzip2: Use relative symlinks instead of absolute ones (using a new class)
Absolute path symlinks are a bit of a pain for sstate and the native versions of these recipes currently contain broken symlinks as a result. There are only a small number of problematic recipes, at least in OE-Core, namely the three here. Rather than trying to make sstate handle this magically, which turns out to be a harder problem than you'd first realise, simply make the symlinks relative early in the process and avoid all the problems. The alternative is adding new complexity to sstate which we could really do without as without the complexity, you can't always tell where the absolute symlink is relative to (due to prefixes used for native sstate). (From OE-Core rev: e478550c8cd889f12e336e268e9e3b30827bf840) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/relative_symlinks.bbclass5
-rw-r--r--meta/recipes-connectivity/openssl/openssl.inc2
-rw-r--r--meta/recipes-extended/bzip2/bzip2_1.0.6.bb2
-rw-r--r--meta/recipes-graphics/fontconfig/fontconfig_2.12.1.bb2
4 files changed, 8 insertions, 3 deletions
diff --git a/meta/classes/relative_symlinks.bbclass b/meta/classes/relative_symlinks.bbclass
new file mode 100644
index 0000000000..3157737347
--- /dev/null
+++ b/meta/classes/relative_symlinks.bbclass
@@ -0,0 +1,5 @@
1do_install[postfuncs] += "install_relative_symlinks"
2
3python install_relative_symlinks () {
4 oe.path.replace_absolute_symlinks(d.getVar('D'), d)
5}
diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
index 5cca019e1d..fc55925615 100644
--- a/meta/recipes-connectivity/openssl/openssl.inc
+++ b/meta/recipes-connectivity/openssl/openssl.inc
@@ -30,7 +30,7 @@ export EX_LIBS = "-lgcc -ldl"
30export AS = "${CC} -c" 30export AS = "${CC} -c"
31EXTRA_OEMAKE = "-e MAKEFLAGS=" 31EXTRA_OEMAKE = "-e MAKEFLAGS="
32 32
33inherit pkgconfig siteinfo multilib_header ptest 33inherit pkgconfig siteinfo multilib_header ptest relative_symlinks
34 34
35PACKAGES =+ "libcrypto libssl ${PN}-misc openssl-conf" 35PACKAGES =+ "libcrypto libssl ${PN}-misc openssl-conf"
36FILES_libcrypto = "${libdir}/libcrypto${SOLIBS}" 36FILES_libcrypto = "${libdir}/libcrypto${SOLIBS}"
diff --git a/meta/recipes-extended/bzip2/bzip2_1.0.6.bb b/meta/recipes-extended/bzip2/bzip2_1.0.6.bb
index ef7bc89765..0512a75990 100644
--- a/meta/recipes-extended/bzip2/bzip2_1.0.6.bb
+++ b/meta/recipes-extended/bzip2/bzip2_1.0.6.bb
@@ -25,7 +25,7 @@ PACKAGES =+ "libbz2"
25 25
26CFLAGS_append = " -fPIC -fpic -Winline -fno-strength-reduce -D_FILE_OFFSET_BITS=64" 26CFLAGS_append = " -fPIC -fpic -Winline -fno-strength-reduce -D_FILE_OFFSET_BITS=64"
27 27
28inherit autotools update-alternatives ptest 28inherit autotools update-alternatives ptest relative_symlinks
29 29
30ALTERNATIVE_PRIORITY = "100" 30ALTERNATIVE_PRIORITY = "100"
31ALTERNATIVE_${PN} = "bunzip2 bzcat" 31ALTERNATIVE_${PN} = "bunzip2 bzcat"
diff --git a/meta/recipes-graphics/fontconfig/fontconfig_2.12.1.bb b/meta/recipes-graphics/fontconfig/fontconfig_2.12.1.bb
index 8616154c61..95b066ce46 100644
--- a/meta/recipes-graphics/fontconfig/fontconfig_2.12.1.bb
+++ b/meta/recipes-graphics/fontconfig/fontconfig_2.12.1.bb
@@ -37,7 +37,7 @@ RREPLACES_fontconfig-utils = "libfontconfig-utils"
37RCONFLICTS_fontconfig-utils = "libfontconfig-utils" 37RCONFLICTS_fontconfig-utils = "libfontconfig-utils"
38DEBIAN_NOAUTONAME_fontconfig-utils = "1" 38DEBIAN_NOAUTONAME_fontconfig-utils = "1"
39 39
40inherit autotools pkgconfig 40inherit autotools pkgconfig relative_symlinks
41 41
42FONTCONFIG_CACHE_DIR ?= "${localstatedir}/cache/fontconfig" 42FONTCONFIG_CACHE_DIR ?= "${localstatedir}/cache/fontconfig"
43 43