mysql5: prevent using bundled zlib at all costs
PATCH 1/6 mysql5: prevent using bundled zlib at all costs
* in some seldom cases mysql's m4 macro decides that system
zlib (from DEPENDS) is not worthy and decides to use own
bundled version which prefers stuff like static libz.a and
stages libz.la again:
mysql-5.1.40/config/ac-macros/zlib.m4
NOTE: recipe mysql5-5.1.40-r11: task do_package_setscene: Started
NOTE: recipe zlib-1.2.7-r0: task do_packagedata_setscene: Succeeded
WARNING: The recipe zlib is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
sysroots/om-gta04/usr/lib/libz.a
Matched in manifest-om-gta04-mysql5
Please verify which package should provide the above files.
NOTE: recipe zlib-1.2.7-r0: task do_populate_sysroot_setscene: Succeeded
* this libz.la + libz.a is breaking many packages which are now trying to link shared libs against libz.a from mysql which was built without fPIC breaking libxml2, glib-2.0, gnutls, libpng, ...
| ld: sysroots/om-gta04/usr/lib/libz.a(crc32.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC | sysroots/om-gta04/usr/lib/libz.a: could not read symbols: Bad value | collect2: ld returned 1 exit status
--- meta-oe/recipes-support/mysql/mysql5_5.1.40.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/mysql/mysql5_5.1.40.inc +1 -1
@@ -32,7 +32,7 @@ export ac_cv_path_PS="/bin/ps" export ac_cv_FIND_PROC="/bin/ps p \$\$PID | grep -v grep | grep mysqld > /dev/null" PARALLEL_MAKE = " " EXTRA_OEMAKE = "'GEN_LEX_HASH=${STAGING_BINDIR_NATIVE}/gen_lex_hash'" -EXTRA_OECONF = " --with-atomic-ops=up --with-embedded-server --prefix=/usr --sysconfdir=/etc/mysql --localstatedir=/var/mysql --disable-dependency-tracking --without-raid --without-debug --with-low-memory --without-query-cache --without-man --without-docs --without-innodb " +EXTRA_OECONF = " --with-atomic-ops=up --with-embedded-server --prefix=/usr --sysconfdir=/etc/mysql --localstatedir=/var/mysql --disable-dependency-tracking --without-raid --without-debug --with-low-memory --without-query-cache --without-man --without-docs --without-innodb --with-zlib-dir=${STAGING_EXECPREFIXDIR}" do_configure_append() { sed -i /comp_err/d ${S}/sql/share/Makefile
Signature · 1 line
1.8.2.1
PATCH 2/6 gypsy: add dependency on libxslt-native
* it's incorrectly used in build (and just "o" is used instead of xslt command):
| o gypsy-discovery.xml ../docs/tools/spec-strip-docs.xsl gypsy-discovery-full.xml | /bin/bash: o: command not found
--- meta-oe/recipes-navigation/gypsy/gypsy.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-navigation/gypsy/gypsy.inc +1 -1
@@ -6,7 +6,7 @@ client applications, passing the data as simple values for the clients \ to use." LICENSE = "GPLv2.0 & LGPLv2.1" SECTION = "x11" -DEPENDS = "glib-2.0 dbus bluez4 dbus-glib" +DEPENDS = "glib-2.0 dbus bluez4 dbus-glib libxslt-native" inherit autotools pkgconfig gtk-doc
Signature · 1 line
1.8.2.1
PATCH 3/6 portaudio: inherit pkgconfig
In reply to Martin Jansa* without pkgconfig it's failing to expand PKG_CHECK_MODULES macro:
| portaudio-v19/v19+svnr1387-r0/trunk/configure:
line 11721: syntax error near unexpected token `JACK,'
| portaudio-v19/v19+svnr1387-r0/trunk/configure:
line 11721: `PKG_CHECK_MODULES(JACK, jack, have_jack=yes, have_jack=no)'
| Configure failed. The contents of all config.log files follows to aid debugging
--- meta-oe/recipes-support/portaudio/portaudio-v19_svn.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta-oe/recipes-support/portaudio/portaudio-v19_svn.bb +1 -2
@@ -4,12 +4,11 @@ LICENSE = "PortAudio" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=26107732c2ab637c5710446fcfaf02df" SRCREV = "1387" PV = "v19+svnr${SRCPV}" -PR = "r0" SRC_URI = "svn://subversion.assembla.com/svn/portaudio/portaudio;module=trunk;protocol=http" S = "${WORKDIR}/trunk" -inherit autotools +inherit autotools pkgconfig TESTS = " pa_devs patest1 patest_hang patest_many patest_prime patest_sine patest_stop patest_write_sine \ pa_fuzz patest_buffer patest_in_overflow patest_maxsines patest_read_record patest_sine8 patest_sync \
Signature · 1 line
1.8.2.1
PATCH 4/6 media-ctl: inherit pkgconfig
In reply to Martin Jansa* without pkgconfig it's failing to expand PKG_CHECK_MODULES macro:
| media-ctl/0.0.1-r3/git/configure:
line 11700: syntax error near unexpected token `libudev,'
| media-ctl/0.0.1-r3/git/configure:
line 11700: ` PKG_CHECK_MODULES(libudev, libudev, have_libudev=yes, have_libudev=no)'
--- meta-oe/recipes-multimedia/v4l2apps/media-ctl_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-multimedia/v4l2apps/media-ctl_git.bb +1 -1
@@ -11,7 +11,7 @@ PV = "0.0.1" PR = "r4" S = "${WORKDIR}/git" -inherit autotools +inherit autotools pkgconfig EXTRA_OECONF = "--with-kernel-headers=${STAGING_EXECPREFIXDIR}"
Signature · 1 line
1.8.2.1
PATCH 5/6 rsyslog: inherit pkgconfig
In reply to Martin Jansa* without pkgconfig it's failing to expand PKG_CHECK_MODULES macro:
| rsyslog-5.8.0/configure: line 16111: syntax error near unexpected token `GNUTLS,'
| rsyslog-5.8.0/configure: line 16111: ` PKG_CHECK_MODULES(GNUTLS, gnutls >= 1.4.0)'
--- meta-oe/recipes-extended/rsyslog/rsyslog.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/rsyslog/rsyslog.inc +1 -1
@@ -10,7 +10,7 @@ INC_PR = "r8" SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \ file://rsyslog.conf" -inherit autotools systemd +inherit autotools pkgconfig systemd EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}"
Signature · 1 line
1.8.2.1
PATCH 6/6 portaudio: explicitly disable oss, add PACKAGECONFIG for alsa and jack
In reply to Martin Jansa* autoenabled dependencies on alsa-lib and jack are breaking espeak when it's built against portaudio in sysroot without them
| ld: warning: libasound.so.2, needed by usr/lib/libportaudio.so, not found (try using -rpath or -rpath-link) | ld: warning: libjack.so.0, needed by usr/lib/libportaudio.so, not found (try using -rpath or -rpath-link) | usr/lib/libportaudio.so: undefined reference to `snd_pcm_sw_params_sizeof@ALSA_0.9' | usr/lib/libportaudio.so: undefined reference to `snd_pcm_hw_params_test_period_size@ALSA_0.9'
--- meta-oe/recipes-support/portaudio/portaudio-v19_svn.bb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
meta-oe/recipes-support/portaudio/portaudio-v19_svn.bb +8 -1
@@ -2,14 +2,21 @@ DESCRIPTION = "A portable audio library" SECTION = "libs/multimedia" LICENSE = "PortAudio" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=26107732c2ab637c5710446fcfaf02df" -SRCREV = "1387" + PV = "v19+svnr${SRCPV}" +SRCREV = "1387" SRC_URI = "svn://subversion.assembla.com/svn/portaudio/portaudio;module=trunk;protocol=http" S = "${WORKDIR}/trunk" inherit autotools pkgconfig +PACKAGECONFIG ??= "alsa jack" +PACKAGECONFIG[alsa] = "--with-alsa, --without-alsa, alsa-lib," +PACKAGECONFIG[jack] = "--with-jack, --without-jack, jack," + +EXTRA_OECONF = "--without-oss" + TESTS = " pa_devs patest1 patest_hang patest_many patest_prime patest_sine patest_stop patest_write_sine \ pa_fuzz patest_buffer patest_in_overflow patest_maxsines patest_read_record patest_sine8 patest_sync \ pa_minlat patest_callbackstop patest_latency patest_multi_sine patest_record patest_sine_formats patest_toomanysines \
Signature · 1 line
1.8.2.1