Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCHv2 16/26] pulseaudio: enable optional building of manpages
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1477667287.git.alexander.kanavin@linux.intel.com>

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-multimedia/pulseaudio/pulseaudio.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-multimedia/pulseaudio/pulseaudio.inc b/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
index 7e54ad4..f5c5ed2 100644
--- a/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
+++ b/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
@@ -13,7 +13,7 @@ DEPENDS = "libatomic-ops libsndfile1 libtool intltool-native"
 DEPENDS += "udev alsa-lib glib-2.0 gconf"
 DEPENDS += "json-c gdbm speexdsp libxml-parser-perl-native libcap"
 
-inherit autotools bash-completion pkgconfig useradd gettext perlnative bluetooth systemd
+inherit autotools bash-completion pkgconfig useradd gettext perlnative bluetooth systemd manpages
 
 # *.desktop rules wont be generated during configure and build will fail
 # if using --disable-nls
@@ -62,6 +62,7 @@ PACKAGECONFIG[autospawn-for-root] = ",,,"
 PACKAGECONFIG[lirc] = "--enable-lirc,--disable-lirc,lirc"
 PACKAGECONFIG[webrtc] = "--enable-webrtc-aec,--disable-webrtc-aec,webrtc-audio-processing"
 PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
+PACKAGECONFIG[manpages] = "--enable-manpages, --disable-manpages, "
 
 EXTRA_OECONF_append_arm = "${@bb.utils.contains("TUNE_FEATURES", "neon", "", " --enable-neon-opt=no", d)}"
 EXTRA_OECONF_append_armeb = "${@bb.utils.contains("TUNE_FEATURES", "neon", "", " --enable-neon-opt=no", d)}"
-- 
2.9.3



^ permalink raw reply related

* [PATCHv2 15/26] alsa-utils: enable optional building of manpages
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1477667287.git.alexander.kanavin@linux.intel.com>

'xmlto' package feature is renamed to 'manpages' for consistency
with other manpage-enabled recipes.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-multimedia/alsa/alsa-utils_1.1.2.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-multimedia/alsa/alsa-utils_1.1.2.bb b/meta/recipes-multimedia/alsa/alsa-utils_1.1.2.bb
index a22d999..e1651ae 100644
--- a/meta/recipes-multimedia/alsa/alsa-utils_1.1.2.bb
+++ b/meta/recipes-multimedia/alsa/alsa-utils_1.1.2.bb
@@ -17,7 +17,7 @@ PACKAGECONFIG ??= "udev"
 PACKAGECONFIG[bat] = "--enable-bat,--disable-bat,fftwf"
 
 PACKAGECONFIG[udev] = "--with-udev-rules-dir=`pkg-config --variable=udevdir udev`/rules.d,,udev"
-PACKAGECONFIG[xmlto] = "--enable-xmlto, --disable-xmlto, xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native"
+PACKAGECONFIG[manpages] = "--enable-xmlto, --disable-xmlto, xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native"
 
 SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \
            file://0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch \
@@ -32,7 +32,7 @@ SRC_URI[sha256sum] = "7af603c0877d1251599d65b4fbc372e63a54371b888f5c26c6a86ac1d0
 #
 EXTRA_OECONF_append_libc-uclibc = " --disable-nls"
 
-inherit autotools gettext pkgconfig
+inherit autotools gettext pkgconfig manpages
 
 # This are all packages that we need to make. Also, the now empty alsa-utils
 # ipk depends on them.
-- 
2.9.3



^ permalink raw reply related

* [PATCHv2 14/26] lttng: enable optional building of manpages
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1477667287.git.alexander.kanavin@linux.intel.com>

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-kernel/lttng/lttng-tools_git.bb | 4 ++--
 meta/recipes-kernel/lttng/lttng-ust_git.bb   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-kernel/lttng/lttng-tools_git.bb b/meta/recipes-kernel/lttng/lttng-tools_git.bb
index bfc657b..016346f 100644
--- a/meta/recipes-kernel/lttng/lttng-tools_git.bb
+++ b/meta/recipes-kernel/lttng/lttng-tools_git.bb
@@ -26,7 +26,7 @@ PACKAGECONFIG ??= "lttng-ust"
 PACKAGECONFIG[python] = "--enable-python-bindings ${PYTHON_OPTION},,python3 swig-native"
 PACKAGECONFIG[lttng-ust] = "--with-lttng-ust, --without-lttng-ust, lttng-ust"
 PACKAGECONFIG[kmod] = "--enable-kmod, --disable-kmod, kmod"
-PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages, asciidoc-native"
+PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages, asciidoc-native xmlto-native libxslt-native"
 PACKAGECONFIG_remove_libc-musl = "lttng-ust"
 
 SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.8 \
@@ -35,7 +35,7 @@ SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.8 \
 
 S = "${WORKDIR}/git"
 
-inherit autotools-brokensep ptest pkgconfig useradd python3-dir
+inherit autotools-brokensep ptest pkgconfig useradd python3-dir manpages
 
 USERADD_PACKAGES = "${PN}"
 GROUPADD_PARAM_${PN} = "tracing"
diff --git a/meta/recipes-kernel/lttng/lttng-ust_git.bb b/meta/recipes-kernel/lttng/lttng-ust_git.bb
index baff71f..07ce2f4 100644
--- a/meta/recipes-kernel/lttng/lttng-ust_git.bb
+++ b/meta/recipes-kernel/lttng/lttng-ust_git.bb
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c963eb366b781252b0bf0fdf1624d9e9 \
                     file://snprintf/snprintf.c;endline=32;md5=d3d544959d8a3782b2e07451be0a903c \
                     file://snprintf/various.h;endline=31;md5=89f2509b6b4682c4fc95255eec4abe44"
 
-inherit autotools lib_package
+inherit autotools lib_package manpages
 
 DEPENDS = "liburcu util-linux"
 RDEPENDS_${PN}-bin = "python3-core"
@@ -26,7 +26,7 @@ SRC_URI = "git://git.lttng.org/lttng-ust.git;branch=stable-2.8 \
            file://lttng-ust-doc-examples-disable.patch \
           "
 
-EXTRA_OECONF += "--disable-man-pages"
+PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages, asciidoc-native xmlto-native libxslt-native"
 
 do_install_append() {
         # Patch python tools to use Python 3; they should be source compatible, but
-- 
2.9.3



^ permalink raw reply related

* [PATCHv2 13/26] kmod: enable optional building of manpages
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1477667287.git.alexander.kanavin@linux.intel.com>

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-kernel/kmod/kmod.inc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-kernel/kmod/kmod.inc b/meta/recipes-kernel/kmod/kmod.inc
index 166b3f0..a59c305 100644
--- a/meta/recipes-kernel/kmod/kmod.inc
+++ b/meta/recipes-kernel/kmod/kmod.inc
@@ -12,7 +12,7 @@ SECTION = "base"
 LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
                     file://libkmod/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
                    "
-inherit autotools gtk-doc pkgconfig
+inherit autotools gtk-doc pkgconfig manpages
 
 SRCREV = "65a885df5f6f15222b44fd695c5eaca17e837a14"
 # Lookout for PV bump too when SRCREV is changed
@@ -27,10 +27,11 @@ SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git \
 S = "${WORKDIR}/git"
 
 EXTRA_AUTORECONF += "--install --symlink"
-EXTRA_OECONF +=" --enable-tools --disable-manpages --with-zlib"
+EXTRA_OECONF +=" --enable-tools --with-zlib"
 
 PACKAGECONFIG[debug] = "--enable-debug,--disable-debug"
 PACKAGECONFIG[logging] = " --enable-logging,--disable-logging"
+PACKAGECONFIG[manpages] = "--enable-manpages, --disable-manpages, libxslt-native xmlto-native"
 
 do_configure_prepend () {
         gtkdocize --docdir ${S}/libkmod/docs --srcdir ${S}
-- 
2.9.3



^ permalink raw reply related

* [PATCHv2 12/26] libdrm: enable optional building of manpages
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1477667287.git.alexander.kanavin@linux.intel.com>

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-graphics/drm/libdrm_2.4.70.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-graphics/drm/libdrm_2.4.70.bb b/meta/recipes-graphics/drm/libdrm_2.4.70.bb
index a2b5282..1811927 100644
--- a/meta/recipes-graphics/drm/libdrm_2.4.70.bb
+++ b/meta/recipes-graphics/drm/libdrm_2.4.70.bb
@@ -19,15 +19,15 @@ SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.bz2 \
 SRC_URI[md5sum] = "920957cfe25a80efb02be9bd90bf3c1e"
 SRC_URI[sha256sum] = "b17d4b39ed97ca0e4cffa0db06ff609e617bac94646ec38e8e0579d530540e7b"
 
-inherit autotools pkgconfig
+inherit autotools pkgconfig manpages
 
 EXTRA_OECONF += "--disable-cairo-tests \
                  --without-cunit \
                  --enable-omap-experimental-api \
                  --enable-install-test-programs \
-                 --disable-manpages \
                  --disable-valgrind \
                 "
+PACKAGECONFIG[manpages] = "--enable-manpages, --disable-manpages, libxslt-native xmlto-native"
 
 ALLOW_EMPTY_${PN}-drivers = "1"
 PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \
-- 
2.9.3



^ permalink raw reply related

* [PATCHv2 11/26] libsecret: enable optional building of manpages
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1477667287.git.alexander.kanavin@linux.intel.com>

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-gnome/libsecret/libsecret_0.18.5.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-gnome/libsecret/libsecret_0.18.5.bb b/meta/recipes-gnome/libsecret/libsecret_0.18.5.bb
index bcb3046..77b9fd5 100644
--- a/meta/recipes-gnome/libsecret/libsecret_0.18.5.bb
+++ b/meta/recipes-gnome/libsecret/libsecret_0.18.5.bb
@@ -2,11 +2,11 @@ SUMMARY = "libsecret is a library for storing and retrieving passwords and other
 LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=23c2a5e0106b99d75238986559bb5fc6"
 
-inherit gnomebase gtk-doc vala gobject-introspection
+inherit gnomebase gtk-doc vala gobject-introspection manpages
 
 DEPENDS += "glib-2.0 libgcrypt gettext-native intltool-native"
 
-EXTRA_OECONF += "--disable-manpages"
+PACKAGECONFIG[manpages] = "--enable-manpages, --disable-manpages, libxslt-native xmlto-native"
 
 SRC_URI[archive.md5sum] = "2d688825921313da8731313b0a7f394c"
 SRC_URI[archive.sha256sum] = "9ce7bd8dd5831f2786c935d82638ac428fa085057cc6780aba0e39375887ccb3"
-- 
2.9.3



^ permalink raw reply related

* [PATCHv2 10/26] json-glib: enable optional building of manpages
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1477667287.git.alexander.kanavin@linux.intel.com>

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-gnome/json-glib/json-glib_1.2.2.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-gnome/json-glib/json-glib_1.2.2.bb b/meta/recipes-gnome/json-glib/json-glib_1.2.2.bb
index 8df2a42..4e272be 100644
--- a/meta/recipes-gnome/json-glib/json-glib_1.2.2.bb
+++ b/meta/recipes-gnome/json-glib/json-glib_1.2.2.bb
@@ -13,6 +13,8 @@ DEPENDS = "glib-2.0"
 SRC_URI[archive.md5sum] = "c1daefb8d0fb59612af0c072c8aabb58"
 SRC_URI[archive.sha256sum] = "ea128ab52a824fcd06e5448fbb2bd8d9a13740d51c66d445828edba71321a621"
 
-inherit gnomebase gettext lib_package gobject-introspection gtk-doc
+inherit gnomebase gettext lib_package gobject-introspection gtk-doc manpages
+
+PACKAGECONFIG[manpages] = "--enable-man --with-xml-catalog=${STAGING_ETCDIR_NATIVE}/xml/catalog.xml, --disable-man, libxslt-native xmlto-native"
 
 BBCLASSEXTEND = "native"
-- 
2.9.3



^ permalink raw reply related

* [PATCHv2 09/26] gtk+: enable optional building of manpages
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1477667287.git.alexander.kanavin@linux.intel.com>

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-gnome/gtk+/gtk+.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-gnome/gtk+/gtk+.inc b/meta/recipes-gnome/gtk+/gtk+.inc
index c240baa..751bc49 100644
--- a/meta/recipes-gnome/gtk+/gtk+.inc
+++ b/meta/recipes-gnome/gtk+/gtk+.inc
@@ -28,8 +28,9 @@ PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}
 PACKAGECONFIG[x11] = "--with-x=yes --with-gdktarget=x11,--with-x=no,${X11DEPENDS}"
 # without --with-gdktarget=directfb it will check for cairo-xlib which isn't available without X11 DISTRO_FEATURE
 PACKAGECONFIG[directfb] = "--with-gdktarget=directfb,,directfb"
+PACKAGECONFIG[manpages] = "--enable-man --with-xml-catalog=${STAGING_ETCDIR_NATIVE}/xml/catalog.xml, --disable-man, libxslt-native xmlto-native"
 
-inherit autotools gtk-doc pkgconfig update-alternatives gtk-immodules-cache gobject-introspection
+inherit autotools gtk-doc pkgconfig update-alternatives gtk-immodules-cache gobject-introspection manpages
 
 PACKAGES += "libgail gtk-demo"
 
-- 
2.9.3



^ permalink raw reply related

* [PATCHv2 08/26] pixz: enable optional building of manpages
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1477667287.git.alexander.kanavin@linux.intel.com>

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-extended/pixz/pixz_1.0.6.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-extended/pixz/pixz_1.0.6.bb b/meta/recipes-extended/pixz/pixz_1.0.6.bb
index 0e51472..3032586 100644
--- a/meta/recipes-extended/pixz/pixz_1.0.6.bb
+++ b/meta/recipes-extended/pixz/pixz_1.0.6.bb
@@ -15,10 +15,11 @@ SRC_URI += "file://936d8068ae19d95260d3058f41dd6cf718101cd6.patch \
 "
 UPSTREAM_CHECK_URI = "https://github.com/vasi/pixz/releases"
 
-EXTRA_OECONF += "--without-manpage"
+PACKAGECONFIG[manpages] = "--with-manpage, --without-manpage, asciidoc-native"
+
 CFLAGS_append_libc-musl = " -D_GNU_SOURCE"
 CACHED_CONFIGUREVARS += "ac_cv_file_src_pixz_1=no"
 
-inherit autotools pkgconfig
+inherit autotools pkgconfig manpages
 
 BBCLASSEXTEND = "native"
-- 
2.9.3



^ permalink raw reply related

* [PATCHv2 07/26] systemd: enable building of manpages if api-documentation feature is in distro features
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1477667287.git.alexander.kanavin@linux.intel.com>

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-core/systemd/systemd_230.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/systemd/systemd_230.bb b/meta/recipes-core/systemd/systemd_230.bb
index a949fe8..f675036 100644
--- a/meta/recipes-core/systemd/systemd_230.bb
+++ b/meta/recipes-core/systemd/systemd_230.bb
@@ -8,7 +8,7 @@ DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native acl rea
 
 SECTION = "base/shell"
 
-inherit useradd pkgconfig autotools perlnative update-rc.d update-alternatives qemu systemd ptest gettext bash-completion
+inherit useradd pkgconfig autotools perlnative update-rc.d update-alternatives qemu systemd ptest gettext bash-completion manpages
 
 SRC_URI += " \
            file://touchscreen.rules \
-- 
2.9.3



^ permalink raw reply related

* [PATCHv2 06/26] glib: enable optional building of manpages
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1477667287.git.alexander.kanavin@linux.intel.com>

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-core/glib-2.0/glib.inc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index 906e0d4..07d8734 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -26,15 +26,16 @@ PACKAGES += "${PN}-codegen ${PN}-utils"
 
 LEAD_SONAME = "libglib-2.0.*"
 
-inherit autotools gettext gtk-doc pkgconfig ptest-gnome upstream-version-is-even bash-completion gio-module-cache python3native
+inherit autotools gettext gtk-doc pkgconfig ptest-gnome upstream-version-is-even bash-completion gio-module-cache python3native manpages
 
 S = "${WORKDIR}/glib-${PV}"
 
 PACKAGECONFIG ??= "system-pcre"
 # To use the system pcre it must be configured with --enable-unicode-properties
 PACKAGECONFIG[system-pcre] = "--with-pcre=system,--with-pcre=internal,libpcre"
+PACKAGECONFIG[manpages] = "--enable-man --with-xml-catalog=${STAGING_ETCDIR_NATIVE}/xml/catalog.xml, --disable-man, libxslt-native xmlto-native"
 
-CORECONF = "--disable-dtrace --disable-fam --disable-libelf --disable-systemtap --disable-man"
+CORECONF = "--disable-dtrace --disable-fam --disable-libelf --disable-systemtap"
 
 PRINTF = "--enable-included-printf=no"
 PRINTF_darwin = "--enable-included-printf=yes"
-- 
2.9.3



^ permalink raw reply related

* [PATCHv2 05/26] avahi: enable manpages
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1477667287.git.alexander.kanavin@linux.intel.com>

They come prebuilt and don't require any dependencies, so there is no
penalty in enabling them.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-connectivity/avahi/avahi.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc
index 234646d..cb36802 100644
--- a/meta/recipes-connectivity/avahi/avahi.inc
+++ b/meta/recipes-connectivity/avahi/avahi.inc
@@ -54,7 +54,7 @@ EXTRA_OECONF = "--with-avahi-priv-access-group=adm \
              --disable-qt4 \
              --disable-python \
              --disable-doxygen-doc \
-             --disable-manpages \
+             --enable-manpages \
              ${EXTRA_OECONF_SYSVINIT} \
              ${EXTRA_OECONF_SYSTEMD} \
            "
-- 
2.9.3



^ permalink raw reply related

* [PATCHv2 04/26] systemd-boot: add a comment about manpages being disabled
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1477667287.git.alexander.kanavin@linux.intel.com>

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-bsp/systemd-boot/systemd-boot.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-bsp/systemd-boot/systemd-boot.bb b/meta/recipes-bsp/systemd-boot/systemd-boot.bb
index 5b1164e..7036664 100644
--- a/meta/recipes-bsp/systemd-boot/systemd-boot.bb
+++ b/meta/recipes-bsp/systemd-boot/systemd-boot.bb
@@ -7,6 +7,7 @@ SRC_URI += "file://0001-use-lnr-wrapper-instead-of-looking-for-relative-opti.pat
 inherit autotools pkgconfig gettext
 inherit deploy
 
+# Man pages are packaged through the main systemd recipe
 EXTRA_OECONF = " --enable-gnuefi \
                  --with-efi-includedir=${STAGING_INCDIR} \
                  --with-efi-ldsdir=${STAGING_LIBDIR} \
-- 
2.9.3



^ permalink raw reply related

* [PATCHv2 03/26] pm-utils: enable optional building of manpages
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1477667287.git.alexander.kanavin@linux.intel.com>

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb b/meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb
index 27cb3db..cac0910 100644
--- a/meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb
+++ b/meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb
@@ -13,7 +13,9 @@ SRC_URI = "http://pm-utils.freedesktop.org/releases/pm-utils-${PV}.tar.gz"
 SRC_URI[md5sum] = "1742a556089c36c3a89eb1b957da5a60"
 SRC_URI[sha256sum] = "8ed899032866d88b2933a1d34cc75e8ae42dcde20e1cc21836baaae3d4370c0b"
 
-inherit pkgconfig autotools
+inherit pkgconfig autotools manpages
+
+PACKAGECONFIG[manpages] = "--enable-doc, --disable-doc, libxslt-native xmlto-native"
 
 RDEPENDS_${PN} = "grep bash"
 
-- 
2.9.3



^ permalink raw reply related

* [PATCHv2 02/26] gummiboot: enable optional building of manpages
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1477667287.git.alexander.kanavin@linux.intel.com>

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-bsp/gummiboot/gummiboot_git.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-bsp/gummiboot/gummiboot_git.bb b/meta/recipes-bsp/gummiboot/gummiboot_git.bb
index 376ab54..c684b83 100644
--- a/meta/recipes-bsp/gummiboot/gummiboot_git.bb
+++ b/meta/recipes-bsp/gummiboot/gummiboot_git.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=4fbd65380cdd255951079008b364516c"
 
 DEPENDS = "gnu-efi util-linux"
 
-inherit autotools pkgconfig
+inherit autotools pkgconfig manpages
 inherit deploy
 
 PV = "48+git${SRCPV}"
@@ -16,6 +16,8 @@ SRC_URI = "git://anongit.freedesktop.org/gummiboot \
            file://0001-console-Fix-C-syntax-errors-for-function-declaration.patch \
           "
 
+PACKAGECONFIG[manpages] = "--enable-manpages, --disable-manpages, libxslt-native xmlto-native"
+
 # Note: Add COMPATIBLE_HOST here is only because it depends on gnu-efi
 # which has set the COMPATIBLE_HOST, the gummiboot itself may work on
 # more hosts.
@@ -23,7 +25,7 @@ COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux"
 
 S = "${WORKDIR}/git"
 
-EXTRA_OECONF = "--disable-manpages --with-efi-includedir=${STAGING_INCDIR} \
+EXTRA_OECONF = "--with-efi-includedir=${STAGING_INCDIR} \
                 --with-efi-ldsdir=${STAGING_LIBDIR} \
                 --with-efi-libdir=${STAGING_LIBDIR}"
 
-- 
2.9.3



^ permalink raw reply related

* [PATCHv2 01/26] manpages.bbclass: add a class
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1477667287.git.alexander.kanavin@linux.intel.com>

This class enables 'manpages' feature in packages if 'api-documentation'
is in distro features. This ensures that manpages are always built
and installed when API documentation feature is enabled.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/classes/manpages.bbclass | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 meta/classes/manpages.bbclass

diff --git a/meta/classes/manpages.bbclass b/meta/classes/manpages.bbclass
new file mode 100644
index 0000000..d16237b
--- /dev/null
+++ b/meta/classes/manpages.bbclass
@@ -0,0 +1,5 @@
+# Inherit this class to enable or disable building and installation of manpages
+# depending on whether 'api-documentation' is in DISTRO_FEATURES. Such building
+# tends to pull in the entire XML stack and other tools, so it's not enabled
+# by default.
+PACKAGECONFIG_append_class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'manpages', '', d)}"
-- 
2.9.3



^ permalink raw reply related

* [PATCHv2 00/26] Enable manpages wherever possible; drop SGML stack
From: Alexander Kanavin @ 2016-10-28 15:12 UTC (permalink / raw)
  To: openembedded-core

This patchset eanbles (conditional) building of manpages in various recipes;
there's plenty more recipes where manpages are supplied pre-built, for them
nothing needs to be done. These changes enable better support for API
documentation in Yocto SDKs (https://bugzilla.yoctoproject.org/show_bug.cgi?id=8584).

Bonus feature: the entire SGML stack is removed from OE-Core. It has become
basically obsolete, and not needed by anything in either OE-Core or broader
meta-oe collection of layers. If you need it in your 3rd party layer,
please create meta-sgml.

V2 of the patch adds fixes for lttng-tools dependency issue (unrelated to
manpages, but uncovered by enabling them). Also documentation packages are
now added to SDK images.

The following changes since commit e5815d0b607ff262663864d51fe51fbb37172329:

  build-appliance-image: Update to master head revision (2016-10-26 09:33:57 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib akanavin/enable-documentation
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=akanavin/enable-documentation

Alexander Kanavin (26):
  manpages.bbclass: add a class
  gummiboot: enable optional building of manpages
  pm-utils: enable optional building of manpages
  systemd-boot: add a comment about manpages being disabled
  avahi: enable manpages
  glib: enable optional building of manpages
  systemd: enable building of manpages if api-documentation feature is
    in distro features
  pixz: enable optional building of manpages
  gtk+: enable optional building of manpages
  json-glib: enable optional building of manpages
  libsecret: enable optional building of manpages
  libdrm: enable optional building of manpages
  kmod: enable optional building of manpages
  lttng: enable optional building of manpages
  alsa-utils: enable optional building of manpages
  pulseaudio: enable optional building of manpages
  btrfs-tools: enable optional building of manpages
  libuser: do not depend on SGML stack
  systemd: do not depend on SGML stack
  gtk+: remove dependency on SGML stack
  gtk+3: remove SGML stack dependency
  iputils: do not build or install manpages
  Remove the SGML stack
  lttng-tools: do not install manpages in ptest package
  lttng-tools: do not install shared libraries in ptest package
  core-image-{lsb/rt/sato}: add documentation packages to the SDK images

 meta/classes/manpages.bbclass                      |   5 +
 meta/recipes-bsp/gummiboot/gummiboot_git.bb        |   6 +-
 meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb        |   4 +-
 meta/recipes-bsp/systemd-boot/systemd-boot.bb      |   1 +
 meta/recipes-connectivity/avahi/avahi.inc          |   2 +-
 meta/recipes-core/glib-2.0/glib.inc                |   5 +-
 meta/recipes-core/systemd/systemd_230.bb           |   4 +-
 .../btrfs-tools/btrfs-tools_4.7.1.bb               |   4 +-
 .../docbook-dsssl-stylesheets-native_1.79.bb       |  71 ------------
 .../docbook-sgml-dtd-3.1-native_3.1.bb             |  26 -----
 .../docbook-sgml-dtd-4.1-native_4.1.bb             |  26 -----
 .../docbook-sgml-dtd-4.5-native.bb                 |  18 ---
 .../docbook-sgml-dtd/docbook-sgml-dtd-native.inc   |  70 ------------
 .../docbook-sgml-dtd/files/LICENSE-OASIS           |  16 ---
 .../docbook-utils/docbook-utils-0.6.14/re.patch    |  29 -----
 .../docbook-utils/docbook-utils-native_0.6.14.bb   |  63 -----------
 .../linuxdoc-tools/linuxdoc-tools-native_0.9.69.bb |  26 -----
 .../linuxdoc-tools/disable_dvips_doc.patch         |  33 ------
 .../linuxdoc-tools/disable_sgml2rtf.patch          |  64 -----------
 .../linuxdoc-tools/disable_tex_doc.patch           |  29 -----
 .../linuxdoc-tools/disable_txt_doc.patch           |  36 ------
 .../openjade/openjade-1.3.2/fix-regex.patch        |  32 ------
 .../openjade/openjade-1.3.2/makefile.patch         |  39 -------
 .../openjade/openjade-1.3.2/msggen.pl.patch        |  44 --------
 .../openjade/openjade-1.3.2/no-libtool.patch       |  20 ----
 .../openjade/openjade-1.3.2/reautoconf.patch       |  83 --------------
 .../user-declared-default-constructor.patch        |  92 ----------------
 .../openjade/openjade-native_1.3.2.bb              | 121 ---------------------
 .../opensp-1.5.2/obsolete_automake_macros.patch    |  15 ---
 meta/recipes-devtools/opensp/opensp_1.5.2.bb       |  59 ----------
 .../sgml-common/sgml-common-0.6.3/autohell.patch   |  61 -----------
 .../sgml-common/sgml-common-0.6.3/license.patch    |  29 -----
 .../sgml-common/sgml-common-native_0.6.3.bb        |  70 ------------
 .../sgml-common/sgml-common_0.6.3.bb               |  68 ------------
 .../recipes-devtools/sgmlspl/sgmlspl-native_git.bb |  21 ----
 meta/recipes-extended/images/core-image-lsb-sdk.bb |   2 +-
 meta/recipes-extended/iputils/iputils_s20151218.bb |  11 +-
 meta/recipes-extended/libuser/libuser_0.62.bb      |   2 +-
 meta/recipes-extended/pixz/pixz_1.0.6.bb           |   5 +-
 meta/recipes-gnome/gtk+/gtk+.inc                   |   5 +-
 meta/recipes-gnome/gtk+/gtk+3.inc                  |   2 +-
 meta/recipes-gnome/json-glib/json-glib_1.2.2.bb    |   4 +-
 meta/recipes-gnome/libsecret/libsecret_0.18.5.bb   |   4 +-
 meta/recipes-graphics/drm/libdrm_2.4.70.bb         |   4 +-
 meta/recipes-kernel/kmod/kmod.inc                  |   5 +-
 meta/recipes-kernel/lttng/lttng-tools_git.bb       |  10 +-
 meta/recipes-kernel/lttng/lttng-ust_git.bb         |   4 +-
 meta/recipes-multimedia/alsa/alsa-utils_1.1.2.bb   |   4 +-
 meta/recipes-multimedia/pulseaudio/pulseaudio.inc  |   3 +-
 meta/recipes-rt/images/core-image-rt-sdk.bb        |   2 +-
 meta/recipes-sato/images/core-image-sato-sdk.bb    |   2 +-
 51 files changed, 59 insertions(+), 1302 deletions(-)
 create mode 100644 meta/classes/manpages.bbclass
 delete mode 100644 meta/recipes-devtools/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-native_1.79.bb
 delete mode 100644 meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-3.1-native_3.1.bb
 delete mode 100644 meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-4.1-native_4.1.bb
 delete mode 100644 meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-4.5-native.bb
 delete mode 100644 meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc
 delete mode 100644 meta/recipes-devtools/docbook-sgml-dtd/files/LICENSE-OASIS
 delete mode 100644 meta/recipes-devtools/docbook-utils/docbook-utils-0.6.14/re.patch
 delete mode 100644 meta/recipes-devtools/docbook-utils/docbook-utils-native_0.6.14.bb
 delete mode 100644 meta/recipes-devtools/linuxdoc-tools/linuxdoc-tools-native_0.9.69.bb
 delete mode 100644 meta/recipes-devtools/linuxdoc-tools/linuxdoc-tools/disable_dvips_doc.patch
 delete mode 100644 meta/recipes-devtools/linuxdoc-tools/linuxdoc-tools/disable_sgml2rtf.patch
 delete mode 100644 meta/recipes-devtools/linuxdoc-tools/linuxdoc-tools/disable_tex_doc.patch
 delete mode 100644 meta/recipes-devtools/linuxdoc-tools/linuxdoc-tools/disable_txt_doc.patch
 delete mode 100644 meta/recipes-devtools/openjade/openjade-1.3.2/fix-regex.patch
 delete mode 100644 meta/recipes-devtools/openjade/openjade-1.3.2/makefile.patch
 delete mode 100644 meta/recipes-devtools/openjade/openjade-1.3.2/msggen.pl.patch
 delete mode 100644 meta/recipes-devtools/openjade/openjade-1.3.2/no-libtool.patch
 delete mode 100644 meta/recipes-devtools/openjade/openjade-1.3.2/reautoconf.patch
 delete mode 100644 meta/recipes-devtools/openjade/openjade-1.3.2/user-declared-default-constructor.patch
 delete mode 100644 meta/recipes-devtools/openjade/openjade-native_1.3.2.bb
 delete mode 100644 meta/recipes-devtools/opensp/opensp-1.5.2/obsolete_automake_macros.patch
 delete mode 100644 meta/recipes-devtools/opensp/opensp_1.5.2.bb
 delete mode 100644 meta/recipes-devtools/sgml-common/sgml-common-0.6.3/autohell.patch
 delete mode 100644 meta/recipes-devtools/sgml-common/sgml-common-0.6.3/license.patch
 delete mode 100644 meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb
 delete mode 100644 meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb
 delete mode 100644 meta/recipes-devtools/sgmlspl/sgmlspl-native_git.bb

-- 
2.9.3



^ permalink raw reply

* [PATCH] systemd: Reload configuration on package install
From: Linus Wallgren @ 2016-10-28 14:36 UTC (permalink / raw)
  To: openembedded-core

When a systemd service file has changed it is required to reload
systemd's configuration. Otherwise changes to a service file will not be
picked up during package upgrade.
---
 meta/classes/systemd.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
index d56c760..7e51ed6 100644
--- a/meta/classes/systemd.bbclass
+++ b/meta/classes/systemd.bbclass
@@ -29,6 +29,10 @@ if [ -n "$D" ]; then
 fi
 
 if type systemctl >/dev/null 2>/dev/null; then
+	if [ -z "$D" ]; then
+		systemctl daemon-reload
+	fi
+
 	systemctl $OPTS ${SYSTEMD_AUTO_ENABLE} ${SYSTEMD_SERVICE}
 
 	if [ -z "$D" -a "${SYSTEMD_AUTO_ENABLE}" = "enable" ]; then
-- 
2.9.3



^ permalink raw reply related

* Re: can i arbitrarily mix "meta-debian" recipes into my build?
From: Robert P. J. Day @ 2016-10-28 14:15 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE Core mailing list
In-Reply-To: <CAJTo0LZxbiHqL4HeS28aLfmp-rgf_go0XNX-YQGSFmoNjooqHw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]

On Fri, 28 Oct 2016, Burton, Ross wrote:

>
> On 28 October 2016 at 09:00, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
>         more silly questions ... just noticed that some of the recipes i'm
>       looking for exist under meta-debian; is there any issue with "mixing"
>       those recipes into my normal, poky-based, bleeding-edge image builds?
>
>
> meta-debian does a *lot* of stuff, some of which is very invasive,
> so I wouldn't recommend it.  If there's a recipe you want that is in
> meta-debian I'd use their recipe as a starting point and write a
> standalone recipe.

  understood.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

^ permalink raw reply

* Re: can i arbitrarily mix "meta-debian" recipes into my build?
From: Burton, Ross @ 2016-10-28 14:09 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: OE Core mailing list
In-Reply-To: <alpine.LFD.2.20.1610280356230.30798@localhost.localdomain>

[-- Attachment #1: Type: text/plain, Size: 534 bytes --]

On 28 October 2016 at 09:00, Robert P. J. Day <rpjday@crashcourse.ca> wrote:

>   more silly questions ... just noticed that some of the recipes i'm
> looking for exist under meta-debian; is there any issue with "mixing"
> those recipes into my normal, poky-based, bleeding-edge image builds?
>

meta-debian does a *lot* of stuff, some of which is very invasive, so I
wouldn't recommend it.  If there's a recipe you want that is in meta-debian
I'd use their recipe as a starting point and write a standalone recipe.

Ross

[-- Attachment #2: Type: text/html, Size: 972 bytes --]

^ permalink raw reply

* Re: [PATCH][krogoth] pseudo: backport 'Work around issues with glibc 2.24'
From: Seebs @ 2016-10-28 13:54 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <20161028060902.1133-1-ejo@pengutronix.de>

On 28 Oct 2016, at 1:09, Enrico Jorns wrote:

> + #else
> +-		if (e != NULL) {
> ++		/*if (e != NULL) {
> + 			pseudo_diag("No real function for %s: %s\n", func->name, e);
> +-		}
> ++		}*/
> + #endif

Looking at upstream, I do have a fix for this apparently, which is to 
add
mknod/mknodat wrappers to ports/linux/mknodat.c, but there may be other 
things that
relies on (my memory's not online yet today), and this is a reasonable 
workaround
for now.

Historical note:
mknod and mknodat have wrappers because I still periodically maintain 
the OS X
port that was fervently demanded on a regular basis until about a week 
after I added
it, and OS X doesn't have the xmknod/xstat/etc thing.

-s


^ permalink raw reply

* [PATCH] python: fix python-tests rdepends
From: Markus Lehtonen @ 2016-10-28 12:18 UTC (permalink / raw)
  To: openembedded-core

test.regrtest depends on most of python modules so require all of them.

[YOCTO #10522]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
---
 meta/recipes-devtools/python/python-2.7-manifest.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python-2.7-manifest.inc b/meta/recipes-devtools/python/python-2.7-manifest.inc
index 189689d..621024f 100644
--- a/meta/recipes-devtools/python/python-2.7-manifest.inc
+++ b/meta/recipes-devtools/python/python-2.7-manifest.inc
@@ -246,7 +246,7 @@ RDEPENDS_${PN}-terminal="${PN}-core ${PN}-io"
 FILES_${PN}-terminal="${libdir}/python2.7/pty.* ${libdir}/python2.7/tty.* "
 
 SUMMARY_${PN}-tests="Python tests"
-RDEPENDS_${PN}-tests="${PN}-core"
+RDEPENDS_${PN}-tests="${PN}-core ${PN}-modules"
 FILES_${PN}-tests="${libdir}/python2.7/test "
 
 SUMMARY_${PN}-textutils="Python option parsing, text wrapping and CSV support"
-- 
2.6.6



^ permalink raw reply related

* can i arbitrarily mix "meta-debian" recipes into my build?
From: Robert P. J. Day @ 2016-10-28  8:00 UTC (permalink / raw)
  To: OE Core mailing list


  more silly questions ... just noticed that some of the recipes i'm
looking for exist under meta-debian; is there any issue with "mixing"
those recipes into my normal, poky-based, bleeding-edge image builds?

  i note that the README for meta-debian specifically states that:

"Currently, the following software versions are supported in
 meta-debian.

    Source code: Debian GNU/Linux 8 (jessie)
    Build system: Yocto Project 2.0 (jethro)"

does that mean i should stick to precisely the "jethro" version of YP
for my builds if i choose to use any meta-debian recipes? or, as long
as it seems to work, i can just grab what i want and add it to my
current checkout of poky?

  thanks.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



^ permalink raw reply

* [PATCH] openssl: rehash actual mozilla certificates inside rootfs
From: Dmitry Rozhkov @ 2016-10-28  7:22 UTC (permalink / raw)
  To: openembedded-core

The c_rehash utility is supposed to be run in the folder /etc/ssl/certs
of a rootfs where the package ca-certificates puts symlinks to
various CA certificates stored in /usr/share/ca-certificates/mozilla/.
These symlinks are absolute. This means that when c_rehash is run
at rootfs creation time it can't hash the actual files since they
actually reside in the build host's directory
$SYSROOT/usr/share/ca-certificates/mozilla/.

This problem doesn't reproduce when building on Debian or Ubuntu
hosts though, because these OSs have the certificates installed
in the same /usr/share/ca-certificates/mozilla/ folder.
Images built in other distros, e.g. Fedora, have problems with
connecting to https servers when using e.g. python's http lib.

The patch fixes c_rehash to check if it runs on a build host
by testing $SYSROOT and to translate the paths to certificates
accordingly.

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
---
 .../openssl/openssl/openssl-c_rehash.sh              | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-connectivity/openssl/openssl/openssl-c_rehash.sh b/meta/recipes-connectivity/openssl/openssl/openssl-c_rehash.sh
index f67f415..25ea729 100644
--- a/meta/recipes-connectivity/openssl/openssl/openssl-c_rehash.sh
+++ b/meta/recipes-connectivity/openssl/openssl/openssl-c_rehash.sh
@@ -114,11 +114,11 @@ link_hash()
 	LINKFILE=${HASH}.${TAG}${SUFFIX}
     done
 
-    echo "${1} => ${LINKFILE}"
+    echo "${3} => ${LINKFILE}"
 
     # assume any system with a POSIX shell will either support symlinks or
     # do something to handle this gracefully
-    ln -s ${1} ${LINKFILE}
+    ln -s ${3} ${LINKFILE}
 
     return 0
 }
@@ -142,7 +142,19 @@ hash_dir()
 
     ls -1 *.pem *.cer *.crt *.crl 2>/dev/null | while read FILE
     do
-	check_file ${FILE}
+	REAL_FILE=${FILE}
+	# if we run on build host then get to the real files in rootfs
+	if [ -n "${SYSROOT}" -a -h ${FILE} ]
+	then
+	    FILE=$( readlink ${FILE} )
+	    # check the symlink is absolute (or dangling in other word)
+	    if [ "x/" == "x$( echo ${FILE} | cut -c1 -)" ]
+	    then
+		REAL_FILE=${SYSROOT}/${FILE}
+	    fi
+	fi
+
+	check_file ${REAL_FILE}
         local FILE_TYPE=${?}
 	local TYPE_STR=''
 
@@ -157,7 +169,7 @@ hash_dir()
 	    continue
         fi
 
-	link_hash ${FILE} ${TYPE_STR}
+	link_hash ${REAL_FILE} ${TYPE_STR} ${FILE}
     done
 }
 
-- 
2.5.5



^ permalink raw reply related

* [PATCH v2][krogoth] pseudo: backport 'Work around issues with glibc 2.24'
From: Enrico Jorns @ 2016-10-28  6:36 UTC (permalink / raw)
  To: openembedded-core; +Cc: Enrico Jorns
In-Reply-To: <20161028060902.1133-1-ejo@pengutronix.de>

This patch is required for krogoth, too in order to make it properly
work with glibc 2.24.

Signed-off-by: Enrico Jorns <ejo@pengutronix.de>

Below the message of the original commit:

There are issues with a change made to RTLD_NEXT behaviour in glibc 2.24
and that change was also backported to older glibc versions in some distros
like Fedora 23. This adds a workaround whilst the pseudo maintainer fixes
various issues properly.

(From OE-Core rev: 21c38a091c4a1917f62a942c4751b0fd11dce340)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Cleaned-up version of the former patch.

 .../pseudo/pseudo-glibc-rtld-next-workaround.patch | 85 ++++++++++++++++++++++
 meta/recipes-devtools/pseudo/pseudo_1.7.5.bb       |  1 +
 2 files changed, 86 insertions(+)
 create mode 100644 meta/recipes-devtools/pseudo/pseudo/pseudo-glibc-rtld-next-workaround.patch

diff --git a/meta/recipes-devtools/pseudo/pseudo/pseudo-glibc-rtld-next-workaround.patch b/meta/recipes-devtools/pseudo/pseudo/pseudo-glibc-rtld-next-workaround.patch
new file mode 100644
index 0000000..6710734
--- /dev/null
+++ b/meta/recipes-devtools/pseudo/pseudo/pseudo-glibc-rtld-next-workaround.patch
@@ -0,0 +1,85 @@
+We started seeing:
+
+No real function for mknod: /home/paul/poky_sdk/tmp/sysroots/x86_64-
+linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknod
+No real function for mknodat: /home/paul/poky_sdk/tmp/sysroots/x86_64-
+linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknodat
+
+In glibc 2.24 they've merged:
+
+https://sourceware.org/git/?p=glibc.git;a=commit;h=7d45c163d00c88d5875a112343c4ea3e61349e6b
+related to bugzilla entry:
+https://sourceware.org/bugzilla/show_bug.cgi?id=19509
+
+which means that the behaviour of RTLD_NEXT is slightly different.
+As far as I can tell, mknod has not been present in glibc for a while. 
+To quote stat.h:
+
+/* To allow the `struct stat' structure and the file type `mode_t'
+   bits to vary without changing shared library major version number,
+   the `stat' family of functions and `mknod' are in fact inline
+   wrappers around calls to `xstat', `fxstat', `lxstat', and `xmknod',
+   which all take a leading version-number argument designating the
+   data structure and bits used.  <bits/stat.h> defines _STAT_VER with
+   the version number corresponding to `struct stat' as defined in
+   that file; and _MKNOD_VER with the version number corresponding to
+   the S_IF* macros defined therein.  It is arranged that when not
+   inlined these function are always statically linked; that way a
+   dynamically-linked executable always encodes the version number
+   corresponding to the data structures it uses, so the `x' functions
+   in the shared library can adapt without needing to recompile all
+   callers.  */
+
+so I suspect mknod has not existed for a while, if ever and what we
+were finding, who knows. Everying in the system links against _xmknod
+which we have a separate wrapper for.
+
+Anyhow, ignoring that problem which hasn't caused a issue in the past, 
+the RTLD_NEXT change causes messages to be printed to stdout which causes 
+carnage if for example the packaging code is expecting a list of packages:
+
+WARNING: core-image-minimal-1.0-r0 do_rootfs: No not found in the base feeds (qemux86_64 core2-64 x86_64 noarch any all).
+WARNING: core-image-minimal-1.0-r0 do_rootfs: real not found in the base feeds (qemux86_64 core2-64 x86_64 noarch any all).
+WARNING: core-image-minimal-1.0-r0 do_rootfs: function not found in the base feeds (qemux86_64 core2-64 x86_64 noarch any all).
+WARNING: core-image-minimal-1.0-r0 do_rootfs: for not found in the base feeds (qemux86_64 core2-64 x86_64 noarch any all).
+WARNING: core-image-minimal-1.0-r0 do_rootfs: mknod: not found in the base feeds (qemux86_64 core2-64 x86_64 noarch any all).
+[etc]
+
+This bug will affect:
+* any distro using glibc 2.24
+* any system using a uninative tarball for glibc 2.24
+* any system which took a backport for the fix which was merged into
+  the 2.23 branch for a while before it was reverted (Fedora 23 had this)
+
+The easiest thing to do is to ignore the problem and disable the diag
+message which masks the problem with no ill effects.
+
+As Peter notes, there are a few issues here:
+
+* the fact there is no mknod symbol
+* the fact an error here isn't fatal
+* the #ifdef/#else looks suspect
+* handle RTLD_NEXT chaining properly (need more libs?)
+
+which he'll work on upstream and hopefully have fixed in a new version.
+
+Upstream-Status: Submitted [Peter is aware of the issue]
+
+RP 2016/5/18
+
+Index: pseudo-1.7.5/pseudo_wrappers.c
+===================================================================
+--- pseudo-1.7.5.orig/pseudo_wrappers.c
++++ pseudo-1.7.5/pseudo_wrappers.c
+@@ -146,9 +146,9 @@ pseudo_init_one_wrapper(pseudo_function
+ 			return;
+ 		}
+ #else
+-		if (e != NULL) {
++		/*if (e != NULL) {
+ 			pseudo_diag("No real function for %s: %s\n", func->name, e);
+-		}
++		}*/
+ #endif
+ 	}
+ }
diff --git a/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb b/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb
index d90e644..38e6f4d 100644
--- a/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb
+++ b/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb
@@ -7,6 +7,7 @@ SRC_URI = " \
     file://fallback-group \
     file://moreretries.patch \
     file://handle-remove-xattr.patch \
+    file://pseudo-glibc-rtld-next-workaround.patch \
 "
 
 SRC_URI[md5sum] = "c10209938f03128d0c193f041ff3596d"
-- 
2.9.3



^ permalink raw reply related


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox