Skip to contentSkip to conversation

meta_oe_security_flags.inc: Disable PIE for luajit

PATCH New Khem Raj 1 participant 2 messages Dec 1, 2016

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 meta_oe_security_flags.inc: Disable PIE for luajit

---
 meta-oe/conf/distro/include/meta_oe_security_flags.inc | 7 +++++++
 1 file changed, 7 insertions(+)
meta-oe/conf/distro/include/meta_oe_security_flags.inc +7 -0
index e57cc5b..9c451b9 100644
@@ -17,3 +17,10 @@ SECURITY_CFLAGS_pn-libcdio = "${SECURITY_NO_PIE_CFLAGS}"
 #| /usr/src/debug/glibc/2.24-r0/git/csu/elf-init.c:86: undefined reference to `__init_array_start'
 
 SECURITY_CFLAGS_pn-libvdpau = "${SECURITY_NO_PIE_CFLAGS}"
+
+#| /mnt/a/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/6.2.0/ld: lj_err_dyn.o: relocation R_X86_64_TPOFF32 against `static_uex' can not be used when making a shared object; recompile with -fPIC
+#| /mnt/a/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/6.2.0/ld: final link failed: Nonrepresentable section on output
+#| collect2: error: ld returned 1 exit status
+#| make[1]: *** [Makefile:675: libluajit.so] Error 1
+SECURITY_CFLAGS_pn-luajit = "${SECURITY_NO_PIE_CFLAGS}"
+
Signature · 1 line
2.10.2
author
#1 lore raw

PATCH 2/2 mpv: Add PACKAGECONFIG for vaapi

Now that we have libva its important to enable/disable vaapi explicitly

Fixes

WARNING: mpv-0.15.0-r0 do_package_qa: QA Issue: mpv rdepends on libva-x11, but it isn't a build dependency, missing libva in DEPENDS or PACKAGECONFIG? [build-deps]
WARNING: mpv-0.15.0-r0 do_package_qa: QA Issue: mpv rdepends on libva, but it isn't a build dependency, missing libva in DEPENDS or PACKAGECONFIG? [build-deps]

---
 meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb +1 -0
index c49811c..f51df77 100644
@@ -27,6 +27,7 @@ PACKAGECONFIG[lua] = "--enable-lua,--disable-lua,lua luajit"
 PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass"
 PACKAGECONFIG[libarchive] = "--enable-libarchive,--disable-libarchive,libarchive"
 PACKAGECONFIG[jack] = "--enable-jack, --disable-jack, jack"
+PACKAGECONFIG[vaapi] = "--enable-vaapi, --disable-vaapi,libva"
 
 SIMPLE_TARGET_SYS = "${@'${TARGET_SYS}'.replace('${TARGET_VENDOR}', '')}"
 EXTRA_OECONF = " \
Signature · 1 line
2.10.2