Skip to contentSkip to conversation

Update systemd/kmod

PATCH In review Khem Raj 3 participants 13 messages Aug 22, 2013 – Aug 27, 2013

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

cover Update systemd/kmod

This patchset updates systemd to 206 and kmod to 14 kmod 14 is now minimum version needed for systemd >= 206

glib-2.0 fix is needed for minimal-image to build
with uclibc

This has been boot tested on all supported qemus in OE-Core with minimal-image build with both eglibc/uclibc and systemd-image on angstrom

The following changes since commit d98f08a7ad95d0b17846276b028a6614f16b6846:

genext2fs: fix memory corruption on powerpc (2013-08-20 07:11:44 -0700)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib kraj/systemd-206
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/systemd-206

Khem Raj (3):
kmod: Upgrade to version 14
systemd: Upgrade to 206
glib-2.0: Specify libiconv when building on uclibc

 meta/recipes-core/glib-2.0/glib-2.0_2.36.4.bb      |   1 +
 ...1-uClibc-doesn-t-implement-pwritev-preadv.patch |  37 +++
 .../0001-use-CAP_MKNOD-ConditionCapability.patch   |  32 ++
 ...ystemd-update-utmp-shutdown.service-into-.patch | 367 ---------------------
 .../systemd/systemd/install-quotaon-once.patch     |  34 --
 .../systemd/systemd-pam-fix-getty-unit.patch       |  24 +-
 .../systemd/systemd/systemd-pam-fix-mkostemp.patch |  59 ++--
 .../systemd/{systemd_204.bb => systemd_206.bb}     |  19 +-
 meta/recipes-kernel/kmod/kmod-native_git.bb        |   1 -
 meta/recipes-kernel/kmod/kmod.inc                  |   9 +-
 ...-man-page-generation-because-we-don-t-hav.patch |  26 --
 .../kmod/kmod/fix-undefined-O_CLOEXEC.patch        |  16 +-
 meta/recipes-kernel/kmod/kmod_git.bb               |   3 +-
 13 files changed, 134 insertions(+), 494 deletions(-)
 create mode 100644 meta/recipes-core/systemd/systemd/0001-uClibc-doesn-t-implement-pwritev-preadv.patch
 create mode 100644 meta/recipes-core/systemd/systemd/0001-use-CAP_MKNOD-ConditionCapability.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/0001-utmp-turn-systemd-update-utmp-shutdown.service-into-.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/install-quotaon-once.patch
 rename meta/recipes-core/systemd/{systemd_204.bb => systemd_206.bb} (95%)
 delete mode 100644 meta/recipes-kernel/kmod/kmod/0001-man-disable-man-page-generation-because-we-don-t-hav.patch
Signature · 1 line
1.8.3.4
author
#1 lore raw

PATCH 1/3 kmod: Upgrade to version 14

The update is a requirement for systemd-206

---
 meta/recipes-kernel/kmod/kmod-native_git.bb        |  1 -
 meta/recipes-kernel/kmod/kmod.inc                  |  9 ++++----
 ...-man-page-generation-because-we-don-t-hav.patch | 26 ----------------------
 .../kmod/kmod/fix-undefined-O_CLOEXEC.patch        | 16 ++++++-------
 meta/recipes-kernel/kmod/kmod_git.bb               |  3 +--
 5 files changed, 13 insertions(+), 42 deletions(-)
 delete mode 100644 meta/recipes-kernel/kmod/kmod/0001-man-disable-man-page-generation-because-we-don-t-hav.patch
meta/recipes-kernel/kmod/kmod-native_git.bb +0 -1
index 8cbcdf8..afa3ad0 100644
@@ -4,7 +4,6 @@
 require kmod.inc
 inherit native
 
-PR = "${INC_PR}.1"
 SRC_URI += "file://fix-undefined-O_CLOEXEC.patch"
 
 do_install_append (){
meta/recipes-kernel/kmod/kmod.inc +4 -5
index a780b6c..1728a4e 100644
@@ -7,8 +7,6 @@ HOMEPAGE = "http://packages.profusion.mobi/kmod/"
 LICENSE = "GPL-2.0+ & LGPL-2.1+"
 LICENSE_libkmod = "LGPL-2.1+"
 SECTION = "base"
-PV = "9"
-INC_PR = "r0"
 
 DEPENDS += "pkgconfig-native"
 
@@ -19,17 +17,18 @@ inherit autotools gtk-doc ptest
 
 SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git \
            file://depmod-search.conf \
-           file://0001-man-disable-man-page-generation-because-we-don-t-hav.patch \
            file://run-ptest \
            file://ptest.patch \
           "
 
-SRCREV = "62081c0f68905b22f375156d4532fd37fa5c8d33"
+SRCREV = "3b38c7fcb58be4ddc34f90454c5f5dc3693d2d85"
+# Lookout for PV bump too when SRCREV is changed
+PV = "14"
 
 S = "${WORKDIR}/git"
 
 EXTRA_AUTORECONF += "--install --symlink"
-EXTRA_OECONF +="--enable-debug --enable-logging --enable-tools"
+EXTRA_OECONF +="--enable-debug --enable-logging --enable-tools --disable-manpages"
 
 do_configure_prepend () {
         gtkdocize --docdir ${S}/libkmod/docs || touch ${S}/libkmod/docs/gtk-doc.make
meta/recipes-kernel/kmod/kmod/0001-man-disable-man-page-generation-because-we-don-t-hav.patch deleted +0 -26
deleted file mode 100644
index 5361b84..0000000
@@ -1,26 +0,0 @@
-From ce6f0cabb65e67dd4d31e1e555db8bc6eaf435d3 Mon Sep 17 00:00:00 2001
-From: Martin Jansa <[email protected]>
-Date: Fri, 24 Feb 2012 07:35:38 +0100
-Subject: [PATCH] man: disable man page generation because we don't have
- working xsltproc
-
-Upstream-Status: Inappropriate [build system specific change]
-
-Signed-off-by: Martin Jansa <[email protected]>
----
- Makefile.am |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/Makefile.am b/Makefile.am
-index 141c102..a8bdfd1 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -1,4 +1,4 @@
--SUBDIRS = . libkmod/docs man
-+SUBDIRS = . libkmod/docs
- 
- DISTCLEAN_LOCAL_HOOKS =
- EXTRA_DIST =
--- 
-1.7.8.4
-
meta/recipes-kernel/kmod/kmod/fix-undefined-O_CLOEXEC.patch +8 -8
index 3177e9a..0268216 100644
@@ -2,16 +2,16 @@ Upstream-Status: Not applicable
 
 Index: git/libkmod/libkmod-private.h
 ===================================================================
---- git.orig/libkmod/libkmod-private.h
-+++ git/libkmod/libkmod-private.h
-@@ -1,6 +1,10 @@
- #ifndef _LIBKMOD_PRIVATE_H_
- #define _LIBKMOD_PRIVATE_H_
+--- git.orig/libkmod/libkmod-private.h	2013-08-21 10:07:51.000000000 -0700
++++ git/libkmod/libkmod-private.h	2013-08-21 14:34:04.558278849 -0700
+@@ -9,6 +9,10 @@
+ #include "macro.h"
+ #include "libkmod.h"
  
 +#ifndef O_CLOEXEC
 +# define O_CLOEXEC 0
 +#endif
 +
- #include <stdbool.h>
- #include <stdio.h>
- #include <syslog.h>
+ static _always_inline_ _printf_format_(2, 3) void
+ 	kmod_log_null(struct kmod_ctx *ctx, const char *format, ...) {}
+ 
meta/recipes-kernel/kmod/kmod_git.bb +1 -2
index f92ff72..b07c06e 100644
@@ -3,8 +3,7 @@
 
 require kmod.inc
 
-PR = "${INC_PR}.0"
-PV = "9+git${SRCPV}"
+PV_append = "+git${SRCPV}"
 
 PROVIDES += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools"
 RPROVIDES_${PN} += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools"
Signature · 1 line
1.8.3.4
author
#2 lore raw

PATCH 2/3 systemd: Upgrade to 206

Add new PACKAGE systemd-rpm-macros, this will hold the macros which are interesting when rpm is used as package management backend

Forward port uclibc only patches. Add a new patch
to stub out use of preadv/pwritev in testcases

Delete patches that have been merged upstream in systemd

Remove force export of GPERF variable in environment this was causing AC_CHECK_TOOL to not populate GPERF variable as expected

systemd needs kmod to be present on rootfs so add it to RDEPENDS

some services substitute discovered kmod when the service file is generated during boot, however the discovered kmod is from native sysroot and it gets into the service file with absolute path. So specify the target path of kmod using KMOD variable so the unit files have correct pointer to kmod on target

Add a patch to make sure that mknod capability is checked before the service which excercise mknod, this patch is also submitted to upstream systemd

---
 ...1-uClibc-doesn-t-implement-pwritev-preadv.patch |  37 +++
 .../0001-use-CAP_MKNOD-ConditionCapability.patch   |  32 ++
 ...ystemd-update-utmp-shutdown.service-into-.patch | 367 ---------------------
 .../systemd/systemd/install-quotaon-once.patch     |  34 --
 .../systemd/systemd-pam-fix-getty-unit.patch       |  24 +-
 .../systemd/systemd/systemd-pam-fix-mkostemp.patch |  59 ++--
 .../systemd/{systemd_204.bb => systemd_206.bb}     |  19 +-
 7 files changed, 120 insertions(+), 452 deletions(-)
 create mode 100644 meta/recipes-core/systemd/systemd/0001-uClibc-doesn-t-implement-pwritev-preadv.patch
 create mode 100644 meta/recipes-core/systemd/systemd/0001-use-CAP_MKNOD-ConditionCapability.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/0001-utmp-turn-systemd-update-utmp-shutdown.service-into-.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/install-quotaon-once.patch
 rename meta/recipes-core/systemd/{systemd_204.bb => systemd_206.bb} (95%)
meta/recipes-core/systemd/systemd/0001-uClibc-doesn-t-implement-pwritev-preadv.patch new file +37 -0
new file mode 100644
index 0000000..e204a50
@@ -0,0 +1,37 @@
+Upstream-Status: Inappropriate [uclibc specific]
+
+From 7be9273548bcb1f57d011fc252965e45dd2a058c Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Wed, 21 Aug 2013 19:09:27 -0700
+Subject: [PATCH] uClibc doesn't implement pwritev/preadv
+
+Lets stub out the testcase for building.
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/libsystemd-bus/test-bus-memfd.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/libsystemd-bus/test-bus-memfd.c b/src/libsystemd-bus/test-bus-memfd.c
+index 05ef555..45e5e44 100644
+--- a/src/libsystemd-bus/test-bus-memfd.c
++++ b/src/libsystemd-bus/test-bus-memfd.c
+@@ -145,6 +145,7 @@ int main(int argc, char *argv[]) {
+         /* check content */
+         assert_se(memcmp(buf, "ll", 2) == 0);
+ 
++#ifndef __UCLIBC__
+         /* writev it out*/
+         iov[0].iov_base = (char *)"ABC";
+         iov[0].iov_len = 3;
+@@ -167,6 +168,7 @@ int main(int argc, char *argv[]) {
+         assert_se(memcmp(bufv[0], "ABC", 3) == 0);
+         assert_se(memcmp(bufv[1], "DEF", 3) == 0);
+         assert_se(memcmp(bufv[2], "GHI", 3) == 0);
++#endif /* __UCLIBC__ */
+ 
+         sd_memfd_free(m);
+ 
+-- 
+1.8.3.4
+
meta/recipes-core/systemd/systemd/0001-use-CAP_MKNOD-ConditionCapability.patch new file +32 -0
new file mode 100644
index 0000000..4a35c23
@@ -0,0 +1,32 @@
+Upstream-Status: Submitted
+
+From cfdd1eb76dced87c73bac8ec22d3a10244c9bbf6 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Wed, 21 Aug 2013 20:25:19 -0700
+Subject: [PATCH] use CAP_MKNOD ConditionCapability
+
+Fixes errors seen when booting VMs on QEMU like
+
+systemd[1]: kmod-static-nodes.service: main process exited, code=exited, status=203/EXEC
+systemd[1]: Failed to start Create list of required static device nodes for the current kernel.
+systemd[1]: Unit kmod-static-nodes.service entered failed state.
+
+Make sure that mknod capability is available
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ units/kmod-static-nodes.service.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: systemd-206/units/kmod-static-nodes.service.in
+===================================================================
+--- systemd-206.orig/units/kmod-static-nodes.service.in	2013-08-21 19:13:02.000000000 -0700
++++ systemd-206/units/kmod-static-nodes.service.in	2013-08-21 20:39:13.310689871 -0700
+@@ -9,6 +9,7 @@
+ Description=Create list of required static device nodes for the current kernel
+ DefaultDependencies=no
+ Before=sysinit.target systemd-tmpfiles-setup-dev.service
++ConditionCapability=CAP_MKNOD
+ 
+ [Service]
+ Type=oneshot
meta/recipes-core/systemd/systemd/0001-utmp-turn-systemd-update-utmp-shutdown.service-into-.patch deleted +0 -367

367 lines not on this page · raw message

meta/recipes-core/systemd/systemd/install-quotaon-once.patch deleted +0 -34
deleted file mode 100644
index 6b7cf2f..0000000
@@ -1,34 +0,0 @@
-Upstream-Status: Backport
-Signed-off-by: Ross Burton <[email protected]>
-
-From 622004565eca385c685086cd478aa79afe73b785 Mon Sep 17 00:00:00 2001
-From: Ross Burton <[email protected]>
-Date: Tue, 11 Jun 2013 17:16:37 +0100
-Subject: [PATCH] build-sys: don't install quotaon.service twice
-
-quotaon.service is already installed through dist_systemunit_DATA, so it doesn't
-need to be added to nodist_systemunit_DATA.  Installing the same file twice
-results in a race condition where the install process can fail.
-
-https://bugs.freedesktop.org/show_bug.cgi?id=65659
-
-[zj: actually remove quotaon.service from the other list.]
----
- Makefile.am |    1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/Makefile.am b/Makefile.am
-index 3a196a6..d444eac 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -401,7 +401,6 @@ dist_systemunit_DATA = \
- 	units/bluetooth.target \
- 	units/smartcard.target \
- 	units/systemd-tmpfiles-clean.timer \
--	units/quotaon.service \
- 	units/systemd-ask-password-wall.path \
- 	units/systemd-ask-password-console.path \
- 	units/systemd-udevd-control.socket \
--- 
-1.7.10.4
-
meta/recipes-core/systemd/systemd/systemd-pam-fix-getty-unit.patch +12 -12
index 72d1411..ceb8483 100644
@@ -7,29 +7,29 @@ Signed-off-by: Maxime Ripard <[email protected]>
  units/[email protected] |    2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
 
-Index: systemd-196/units/[email protected]
+Index: systemd-206/units/[email protected]
 ===================================================================
---- systemd-196.orig/units/[email protected]	2012-11-20 12:39:16.000000000 -0800
-+++ systemd-196/units/[email protected]	2013-01-21 16:08:03.707533381 -0800
-@@ -45,7 +45,7 @@
+--- systemd-206.orig/units/[email protected]	2013-07-21 15:43:28.000000000 -0700
++++ systemd-206/units/[email protected]	2013-08-21 08:45:48.569886828 -0700
+@@ -27,7 +27,7 @@
  
  [Service]
  # the VT is cleared by TTYVTDisallocate
--ExecStart=-/sbin/agetty --noclear %I 38400 linux
-+ExecStart=-/sbin/getty -L %I 115200 linux
+-ExecStart=-/sbin/agetty --noclear %I
++ExecStart=-/sbin/getty -L %I
  Type=idle
  Restart=always
  RestartSec=0
-Index: systemd-196/units/[email protected]
+Index: systemd-206/units/[email protected]
 ===================================================================
---- systemd-196.orig/units/[email protected]	2012-11-20 12:39:16.000000000 -0800
-+++ systemd-196/units/[email protected]	2013-01-21 16:09:01.763535039 -0800
-@@ -40,7 +40,7 @@
+--- systemd-206.orig/units/[email protected]	2013-07-21 15:43:28.000000000 -0700
++++ systemd-206/units/[email protected]	2013-08-21 08:48:52.337890275 -0700
+@@ -22,7 +22,7 @@
  IgnoreOnIsolate=yes
  
  [Service]
--ExecStart=-/sbin/agetty -s %I 115200,38400,9600 vt102
-+ExecStart=-/sbin/getty -L %I 115200 vt102
+-ExecStart=-/sbin/agetty --keep-baud %I 115200,38400,9600
++ExecStart=-/sbin/getty -L %I 115200
  Type=idle
  Restart=always
  RestartSec=0
meta/recipes-core/systemd/systemd/systemd-pam-fix-mkostemp.patch +29 -30

129 lines not on this page · raw message

meta/recipes-core/systemd/systemd_206.bb renamed from meta/recipes-core/systemd/systemd_204.bb +10 -9
similarity index 95%
rename from meta/recipes-core/systemd/systemd_204.bb
rename to meta/recipes-core/systemd/systemd_206.bb
index 6261367..f05aa1b 100644
@@ -18,15 +18,14 @@ SECTION = "base/shell"
 inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d update-alternatives qemu
 
 SRC_URI = "http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz \
+           file://0001-use-CAP_MKNOD-ConditionCapability.patch \
            file://touchscreen.rules \
            ${UCLIBCPATCHES} \
-           file://0001-utmp-turn-systemd-update-utmp-shutdown.service-into-.patch \
-           file://install-quotaon-once.patch \
            file://00-create-volatile.conf \
            file://init \
           "
-SRC_URI[md5sum] = "a07619bb19f48164fbf0761d12fd39a8"
-SRC_URI[sha256sum] = "072c393503c7c1e55ca7acf3db659cbd28c7fe5fa94fab3db95360bafd96731b"
+SRC_URI[md5sum] = "89e36f2d3ba963020b72738549954cbc"
+SRC_URI[sha256sum] = "4c993de071118ea1df7ffc4be26ef0b0d78354ef15b2743a2783d20edfcde9de"
 
 UCLIBCPATCHES = ""
 UCLIBCPATCHES_libc-uclibc = "file://systemd-pam-configure-check-uclibc.patch \
@@ -36,6 +35,7 @@ UCLIBCPATCHES_libc-uclibc = "file://systemd-pam-configure-check-uclibc.patch \
                              file://systemd-pam-fix-mkostemp.patch \
                              file://systemd-pam-fix-msformat.patch \
                              file://optional_secure_getenv.patch \
+                             file://0001-uClibc-doesn-t-implement-pwritev-preadv.patch \
                             "
 LDFLAGS_libc-uclibc_append = " -lrt"
 
@@ -80,9 +80,7 @@ EXTRA_OECONF_append_libc-uclibc = " --disable-myhostname "
 
 do_configure_prepend() {
 	export CPP="${HOST_PREFIX}cpp ${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}"
-
-	export GPERF="${HOST_PREFIX}gperf"
-
+	export KMOD="${base_bindir}/kmod"
 	sed -i -e 's:=/root:=${ROOT_HOME}:g' ${S}/units/*.service*
 }
 
@@ -120,7 +118,7 @@ python populate_packages_prepend (){
 }
 PACKAGES_DYNAMIC += "^lib(udev|gudev|systemd).*"
 
-PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze ${PN}-kernel-install"
+PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze ${PN}-kernel-install ${PN}-rpm-macros"
 
 USERADD_PACKAGES = "${PN}"
 GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal"
@@ -140,6 +138,9 @@ FILES_${PN}-kernel-install = "${bindir}/kernel-install \
                               ${sysconfdir}/kernel/ \
                               ${exec_prefix}/lib/kernel \
                              "
+FILES_${PN}-rpm-macros = "${libdir}/rpm \
+                         "
+
 RRECOMMENDS_${PN}-vconsole-setup = "kbd kbd-consolefonts"
 
 CONFFILES_${PN} = "${sysconfdir}/systemd/journald.conf \
@@ -189,7 +190,7 @@ FILES_${PN} = " ${base_bindir}/* \
 FILES_${PN}-dbg += "${rootlibdir}/.debug ${systemd_unitdir}/.debug ${systemd_unitdir}/*/.debug ${base_libdir}/security/.debug/"
 FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd"
 
-RDEPENDS_${PN} += "dbus util-linux-mount"
+RDEPENDS_${PN} += "kmod dbus util-linux-mount"
 
 RRECOMMENDS_${PN} += "systemd-serialgetty systemd-compat-units \
                       util-linux-agetty \
Signature · 1 line
1.8.3.4
author
#5 lore raw

PATCH 3/3 glib-2.0: Specify libiconv when building on uclibc

In reply to Khem Raj

We use GNU libiconv seprate package on uclibc specifying this makes the configure clear of not trying to detect glibc/iconv and then also finding libiconv in sysroot and confusing itself with errors like

| gconvert.c:66:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv
|  #error GNU libiconv not in use but included iconv.h is from libiconv
|   ^
---
 meta/recipes-core/glib-2.0/glib-2.0_2.36.4.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/glib-2.0/glib-2.0_2.36.4.bb +1 -0
index 3ba49b6..0918bf5 100644
@@ -44,6 +44,7 @@ RDEPENDS_${PN}-ptest_append_libc-glibc = "\
             eglibc-charmap-invariant \
             eglibc-localedata-translit-cjk-variants \
            "
+EXTRA_OECONF_append_class-target_libc-uclibc = " --with-libiconv=gnu"
 
 do_configure_prepend() {
 	sed -i -e '1s,#!.*,#!${USRBINPATH}/env python,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in
Signature · 1 line
1.8.3.4
#6 lore raw

Re: [PATCH 1/3] kmod: Upgrade to version 14

In reply to Khem Raj
Quoted 12 lines · Khem Raj

The update is a requirement for systemd-206

---
  meta/recipes-kernel/kmod/kmod-native_git.bb        |  1 -
  meta/recipes-kernel/kmod/kmod.inc                  |  9 ++++----
  ...-man-page-generation-because-we-don-t-hav.patch | 26 ----------------------
  .../kmod/kmod/fix-undefined-O_CLOEXEC.patch        | 16 ++++++-------
  meta/recipes-kernel/kmod/kmod_git.bb               |  3 +--
  5 files changed, 13 insertions(+), 42 deletions(-)

delete mode 100644 meta/recipes-kernel/kmod/kmod/0001-man-disable-man-page-generation-because-we-don-t-hav.patch

Did you build the native version? I am seeing failures in MUT on the autobuilder. It did pass my "sniff" test on my 2 local world builds.

Quoted 1 line

| x86_64-linux-libtool: link: gcc -std=gnu99 -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -isystem/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -Wl,--as-needed -Wl,--gc-sections -Wl,-rpath-link -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux

/usr/lib -Wl,-rpath-link -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib -Wl,-O1 -o tools/test/kmod tools/kmod.o tools/lsmod.o tools/rmmod.o tools/insmod.o tools/modinfo.o tools/modprobe.o tools/depmod.o tools/log.o tools/static-nodes.o -L/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/lib -L/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib libkmod/.libs/libkmod-util.a libkmod/.libs/libkmod-private.a

                       Nice ester egg                ^^^^^^^^^^^^^^^^
Quoted 4 lines
| tools/kmod.o: In function `kmod_help':
| kmod.c:(.text.kmod_help+0x27): undefined reference to `_Static_assert'
| kmod.c:(.text.kmod_help+0x5c): undefined reference to `_Static_assert'
| kmod.c:(.text.kmod_help+0x7f): undefined reference to `_Static_assert'
Quoted 8 lines
| kmod.c:(.text.kmod_help+0xb9): undefined reference to `_Static_assert'
| tools/kmod.o: In function `main':
| kmod.c:(.text.main+0x5b): undefined reference to `_Static_assert'
| tools/kmod.o:kmod.c:(.text.main+0x8c): more undefined references to `_Static_assert' follow
| collect2: ld returned 1 exit status
| make[2]: *** [tools/test/kmod] Error 1
| make[2]: *** Waiting for unfinished jobs....
| x86_64-linux-libtool: link: gcc -std=gnu99 -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -isystem/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -Wl,--as-needed -Wl,--gc-sections -Wl,-rpath-link -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux

/usr/lib -Wl,-rpath-link -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib -Wl,-O1 -o tools/.libs/kmod tools/kmod.o tools/lsmod.o tools/rmmod.o tools/insmod.o tools/modinfo.o tools/modprobe.o tools/depmod.o tools/log.o tools/static-nodes.o -L/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/lib -L/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib libkmod/.libs/libkmod-util.a libkmod/.libs/libkmod.so -Wl,-rpath -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/lib

Quoted 10 lines
| tools/kmod.o: In function `kmod_help':
| kmod.c:(.text.kmod_help+0x27): undefined reference to `_Static_assert'
| kmod.c:(.text.kmod_help+0x5c): undefined reference to `_Static_assert'
| kmod.c:(.text.kmod_help+0x7f): undefined reference to `_Static_assert'
| kmod.c:(.text.kmod_help+0xb9): undefined reference to `_Static_assert'
| tools/kmod.o: In function `main':
| kmod.c:(.text.main+0x5b): undefined reference to `_Static_assert'
| tools/kmod.o:kmod.c:(.text.main+0x8c): more undefined references to `_Static_assert' follow
| collect2: ld returned 1 exit status
| make[2]: *** [tools/kmod] Error 1

Sau!

Quoted 123 lines
meta/recipes-kernel/kmod/kmod-native_git.bb +0 -1
index 8cbcdf8..afa3ad0 100644
@@ -4,7 +4,6 @@
  require kmod.inc
  inherit native
 
-PR = "${INC_PR}.1"
  SRC_URI += "file://fix-undefined-O_CLOEXEC.patch"
 
  do_install_append (){
meta/recipes-kernel/kmod/kmod.inc +4 -5
index a780b6c..1728a4e 100644
@@ -7,8 +7,6 @@ HOMEPAGE = "http://packages.profusion.mobi/kmod/"
  LICENSE = "GPL-2.0+ & LGPL-2.1+"
  LICENSE_libkmod = "LGPL-2.1+"
  SECTION = "base"
-PV = "9"
-INC_PR = "r0"
 
  DEPENDS += "pkgconfig-native"
 
@@ -19,17 +17,18 @@ inherit autotools gtk-doc ptest
 
  SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git \
             file://depmod-search.conf \
-           file://0001-man-disable-man-page-generation-because-we-don-t-hav.patch \
             file://run-ptest \
             file://ptest.patch \
            "
 
-SRCREV = "62081c0f68905b22f375156d4532fd37fa5c8d33"
+SRCREV = "3b38c7fcb58be4ddc34f90454c5f5dc3693d2d85"
+# Lookout for PV bump too when SRCREV is changed
+PV = "14"
 
  S = "${WORKDIR}/git"
 
  EXTRA_AUTORECONF += "--install --symlink"
-EXTRA_OECONF +="--enable-debug --enable-logging --enable-tools"
+EXTRA_OECONF +="--enable-debug --enable-logging --enable-tools --disable-manpages"
 
  do_configure_prepend () {
          gtkdocize --docdir ${S}/libkmod/docs || touch ${S}/libkmod/docs/gtk-doc.make
meta/recipes-kernel/kmod/kmod/0001-man-disable-man-page-generation-because-we-don-t-hav.patch deleted +0 -26
deleted file mode 100644
index 5361b84..0000000
@@ -1,26 +0,0 @@
-From ce6f0cabb65e67dd4d31e1e555db8bc6eaf435d3 Mon Sep 17 00:00:00 2001
-From: Martin Jansa <[email protected]>
-Date: Fri, 24 Feb 2012 07:35:38 +0100
-Subject: [PATCH] man: disable man page generation because we don't have
- working xsltproc
-
-Upstream-Status: Inappropriate [build system specific change]
-
-Signed-off-by: Martin Jansa <[email protected]>
----
- Makefile.am |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/Makefile.am b/Makefile.am
-index 141c102..a8bdfd1 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -1,4 +1,4 @@
--SUBDIRS = . libkmod/docs man
-+SUBDIRS = . libkmod/docs
-
- DISTCLEAN_LOCAL_HOOKS =
- EXTRA_DIST =
---
-1.7.8.4
-
meta/recipes-kernel/kmod/kmod/fix-undefined-O_CLOEXEC.patch +8 -8
index 3177e9a..0268216 100644
@@ -2,16 +2,16 @@ Upstream-Status: Not applicable
 
  Index: git/libkmod/libkmod-private.h
  ===================================================================
---- git.orig/libkmod/libkmod-private.h
-+++ git/libkmod/libkmod-private.h
-@@ -1,6 +1,10 @@
- #ifndef _LIBKMOD_PRIVATE_H_
- #define _LIBKMOD_PRIVATE_H_
+--- git.orig/libkmod/libkmod-private.h	2013-08-21 10:07:51.000000000 -0700
++++ git/libkmod/libkmod-private.h	2013-08-21 14:34:04.558278849 -0700
+@@ -9,6 +9,10 @@
+ #include "macro.h"
+ #include "libkmod.h"
 
  +#ifndef O_CLOEXEC
  +# define O_CLOEXEC 0
  +#endif
  +
- #include <stdbool.h>
- #include <stdio.h>
- #include <syslog.h>
+ static _always_inline_ _printf_format_(2, 3) void
+ 	kmod_log_null(struct kmod_ctx *ctx, const char *format, ...) {}
+
meta/recipes-kernel/kmod/kmod_git.bb +1 -2
index f92ff72..b07c06e 100644
@@ -3,8 +3,7 @@
 
  require kmod.inc
 
-PR = "${INC_PR}.0"
-PV = "9+git${SRCPV}"
+PV_append = "+git${SRCPV}"
 
  PROVIDES += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools"
  RPROVIDES_${PN} += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools"
author
#7 lore raw

Re: [PATCH 1/3] kmod: Upgrade to version 14

Quoted 14 lines · Saul Wold
Quoted 12 lines · Khem Raj

The update is a requirement for systemd-206

---
 meta/recipes-kernel/kmod/kmod-native_git.bb        |  1 -
 meta/recipes-kernel/kmod/kmod.inc                  |  9 ++++----
 ...-man-page-generation-because-we-don-t-hav.patch | 26 ----------------------
 .../kmod/kmod/fix-undefined-O_CLOEXEC.patch        | 16 ++++++-------
 meta/recipes-kernel/kmod/kmod_git.bb               |  3 +--
 5 files changed, 13 insertions(+), 42 deletions(-)
 delete mode 100644 meta/recipes-kernel/kmod/kmod/0001-man-disable-man-page-generation-because-we-don-t-hav.patch
Quoted 1 line

Did you build the native version? I am seeing failures in MUT on the autobuilder. It did pass my "sniff" test on my 2 local world builds.

yes and multiple times. what distro do you run on your build boxes ? I wonder if its some sort of race condition I use -j20 and -j16

% bitbake kmod-native
Loading cache: 100% |###########################################| ETA: 00:00:00 Loaded 1197 entries from dependency cache.

Build Configuration:

BB_VERSION        = "1.19.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-12.04"
TARGET_SYS        = "x86_64-oe-linux"
MACHINE           = "qemux86-64"
DISTRO_VERSION    = "oe-core.0"
TUNE_FEATURES     = "m64"
TARGET_FPU        = ""
meta              = "master:2176bfd1099287056432780d0ee6b202e94bd1ee"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 72 tasks of which 60 didn't need to be rerun and all succeeded.

Quoted 155 lines
Quoted 2 lines

| x86_64-linux-libtool: link: gcc -std=gnu99 -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -isystem/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -Wl,--as-needed -Wl,--gc-sections -Wl,-rpath-link -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux

/usr/lib -Wl,-rpath-link -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib -Wl,-O1 -o tools/test/kmod tools/kmod.o tools/lsmod.o tools/rmmod.o tools/insmod.o tools/modinfo.o tools/modprobe.o tools/depmod.o tools/log.o tools/static-nodes.o -L/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/lib -L/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib libkmod/.libs/libkmod-util.a libkmod/.libs/libkmod-private.a

                      Nice ester egg                ^^^^^^^^^^^^^^^^
Quoted 4 lines
| tools/kmod.o: In function `kmod_help':
| kmod.c:(.text.kmod_help+0x27): undefined reference to `_Static_assert'
| kmod.c:(.text.kmod_help+0x5c): undefined reference to `_Static_assert'
| kmod.c:(.text.kmod_help+0x7f): undefined reference to `_Static_assert'
Quoted 8 lines
| kmod.c:(.text.kmod_help+0xb9): undefined reference to `_Static_assert'
| tools/kmod.o: In function `main':
| kmod.c:(.text.main+0x5b): undefined reference to `_Static_assert'
| tools/kmod.o:kmod.c:(.text.main+0x8c): more undefined references to `_Static_assert' follow
| collect2: ld returned 1 exit status
| make[2]: *** [tools/test/kmod] Error 1
| make[2]: *** Waiting for unfinished jobs....
| x86_64-linux-libtool: link: gcc -std=gnu99 -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -isystem/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -Wl,--as-needed -Wl,--gc-sections -Wl,-rpath-link -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux

/usr/lib -Wl,-rpath-link -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib -Wl,-O1 -o tools/.libs/kmod tools/kmod.o tools/lsmod.o tools/rmmod.o tools/insmod.o tools/modinfo.o tools/modprobe.o tools/depmod.o tools/log.o tools/static-nodes.o -L/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/lib -L/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib libkmod/.libs/libkmod-util.a libkmod/.libs/libkmod.so -Wl,-rpath -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/lib

Quoted 10 lines
| tools/kmod.o: In function `kmod_help':
| kmod.c:(.text.kmod_help+0x27): undefined reference to `_Static_assert'
| kmod.c:(.text.kmod_help+0x5c): undefined reference to `_Static_assert'
| kmod.c:(.text.kmod_help+0x7f): undefined reference to `_Static_assert'
| kmod.c:(.text.kmod_help+0xb9): undefined reference to `_Static_assert'
| tools/kmod.o: In function `main':
| kmod.c:(.text.main+0x5b): undefined reference to `_Static_assert'
| tools/kmod.o:kmod.c:(.text.main+0x8c): more undefined references to `_Static_assert' follow
| collect2: ld returned 1 exit status
| make[2]: *** [tools/kmod] Error 1

Sau!

Quoted 123 lines
meta/recipes-kernel/kmod/kmod-native_git.bb +0 -1
index 8cbcdf8..afa3ad0 100644
@@ -4,7 +4,6 @@
 require kmod.inc
 inherit native
 
-PR = "${INC_PR}.1"
 SRC_URI += "file://fix-undefined-O_CLOEXEC.patch"
 
 do_install_append (){
meta/recipes-kernel/kmod/kmod.inc +4 -5
index a780b6c..1728a4e 100644
@@ -7,8 +7,6 @@ HOMEPAGE = "http://packages.profusion.mobi/kmod/"
 LICENSE = "GPL-2.0+ & LGPL-2.1+"
 LICENSE_libkmod = "LGPL-2.1+"
 SECTION = "base"
-PV = "9"
-INC_PR = "r0"
 
 DEPENDS += "pkgconfig-native"
 
@@ -19,17 +17,18 @@ inherit autotools gtk-doc ptest
 
 SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git \
            file://depmod-search.conf \
-           file://0001-man-disable-man-page-generation-because-we-don-t-hav.patch \
            file://run-ptest \
            file://ptest.patch \
           "
 
-SRCREV = "62081c0f68905b22f375156d4532fd37fa5c8d33"
+SRCREV = "3b38c7fcb58be4ddc34f90454c5f5dc3693d2d85"
+# Lookout for PV bump too when SRCREV is changed
+PV = "14"
 
 S = "${WORKDIR}/git"
 
 EXTRA_AUTORECONF += "--install --symlink"
-EXTRA_OECONF +="--enable-debug --enable-logging --enable-tools"
+EXTRA_OECONF +="--enable-debug --enable-logging --enable-tools --disable-manpages"
 
 do_configure_prepend () {
         gtkdocize --docdir ${S}/libkmod/docs || touch ${S}/libkmod/docs/gtk-doc.make
meta/recipes-kernel/kmod/kmod/0001-man-disable-man-page-generation-because-we-don-t-hav.patch deleted +0 -26
deleted file mode 100644
index 5361b84..0000000
@@ -1,26 +0,0 @@
-From ce6f0cabb65e67dd4d31e1e555db8bc6eaf435d3 Mon Sep 17 00:00:00 2001
-From: Martin Jansa <[email protected]>
-Date: Fri, 24 Feb 2012 07:35:38 +0100
-Subject: [PATCH] man: disable man page generation because we don't have
- working xsltproc
-
-Upstream-Status: Inappropriate [build system specific change]
-
-Signed-off-by: Martin Jansa <[email protected]>
----
- Makefile.am |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/Makefile.am b/Makefile.am
-index 141c102..a8bdfd1 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -1,4 +1,4 @@
--SUBDIRS = . libkmod/docs man
-+SUBDIRS = . libkmod/docs
-
- DISTCLEAN_LOCAL_HOOKS =
- EXTRA_DIST =
---
-1.7.8.4
-
meta/recipes-kernel/kmod/kmod/fix-undefined-O_CLOEXEC.patch +8 -8
index 3177e9a..0268216 100644
@@ -2,16 +2,16 @@ Upstream-Status: Not applicable
 
 Index: git/libkmod/libkmod-private.h
 ===================================================================
---- git.orig/libkmod/libkmod-private.h
-+++ git/libkmod/libkmod-private.h
-@@ -1,6 +1,10 @@
- #ifndef _LIBKMOD_PRIVATE_H_
- #define _LIBKMOD_PRIVATE_H_
+--- git.orig/libkmod/libkmod-private.h	2013-08-21 10:07:51.000000000 -0700
++++ git/libkmod/libkmod-private.h	2013-08-21 14:34:04.558278849 -0700
+@@ -9,6 +9,10 @@
+ #include "macro.h"
+ #include "libkmod.h"
 
 +#ifndef O_CLOEXEC
 +# define O_CLOEXEC 0
 +#endif
 +
- #include <stdbool.h>
- #include <stdio.h>
- #include <syslog.h>
+ static _always_inline_ _printf_format_(2, 3) void
+ 	kmod_log_null(struct kmod_ctx *ctx, const char *format, ...) {}
+
meta/recipes-kernel/kmod/kmod_git.bb +1 -2
index f92ff72..b07c06e 100644
@@ -3,8 +3,7 @@
 
 require kmod.inc
 
-PR = "${INC_PR}.0"
-PV = "9+git${SRCPV}"
+PV_append = "+git${SRCPV}"
 
 PROVIDES += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools"
 RPROVIDES_${PN} += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools"
#8 lore raw

Re: [PATCH 1/3] kmod: Upgrade to version 14

Quoted 17 lines · Khem Raj
Quoted 14 lines · Saul Wold
Quoted 12 lines · Khem Raj

The update is a requirement for systemd-206

---
  meta/recipes-kernel/kmod/kmod-native_git.bb        |  1 -
  meta/recipes-kernel/kmod/kmod.inc                  |  9 ++++----
  ...-man-page-generation-because-we-don-t-hav.patch | 26 ----------------------
  .../kmod/kmod/fix-undefined-O_CLOEXEC.patch        | 16 ++++++-------
  meta/recipes-kernel/kmod/kmod_git.bb               |  3 +--
  5 files changed, 13 insertions(+), 42 deletions(-)

delete mode 100644 meta/recipes-kernel/kmod/kmod/0001-man-disable-man-page-generation-because-we-don-t-hav.patch

Quoted 6 lines
Quoted 1 line

Did you build the native version? I am seeing failures in MUT on the autobuilder. It did pass my "sniff" test on my 2 local world builds.

yes and multiple times. what distro do you run on your build boxes ? I wonder if its some sort of race condition I use -j20 and -j16

It's not a race condition, I built it stand alone with no parallel make.
I am not sure if a host contamination issue or something else, because
like you I was able to built it on two machine locally, but not on the AB.

Machine are CentOS 6.4, Debian 6.0.7, but it worked on my F19 and Ubuntu 12.04 machines!

Sau!

Quoted 16 lines

% bitbake kmod-native
Loading cache: 100% |###########################################| ETA: 00:00:00 Loaded 1197 entries from dependency cache.

Build Configuration:

BB_VERSION        = "1.19.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-12.04"
TARGET_SYS        = "x86_64-oe-linux"
MACHINE           = "qemux86-64"
DISTRO_VERSION    = "oe-core.0"
TUNE_FEATURES     = "m64"
TARGET_FPU        = ""
meta              = "master:2176bfd1099287056432780d0ee6b202e94bd1ee"
Quoted 10 lines

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 72 tasks of which 60 didn't need to be rerun and all succeeded.

Quoted 2 lines
Quoted 2 lines

| x86_64-linux-libtool: link: gcc -std=gnu99 -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -isystem/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -Wl,--as-needed -Wl,--gc-sections -Wl,-rpath-link -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-lin

ux

Quoted 14 lines
Quoted 14 lines

/usr/lib -Wl,-rpath-link -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib -Wl,-O1 -o tools/test/kmod tools/kmod.o tools/lsmod.o tools/rmmod.o tools/insmod.o tools/modinfo.o tools/modprobe.o tools/depmod.o tools/log.o tools/static-nodes.o -L/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/lib -L/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib libkmod/.libs/libkmod-util.a libkmod/.libs/libkmod-private.a

                       Nice ester egg                ^^^^^^^^^^^^^^^^
Quoted 12 lines
| tools/kmod.o: In function `kmod_help':
| kmod.c:(.text.kmod_help+0x27): undefined reference to `_Static_assert'
| kmod.c:(.text.kmod_help+0x5c): undefined reference to `_Static_assert'
| kmod.c:(.text.kmod_help+0x7f): undefined reference to `_Static_assert'
| kmod.c:(.text.kmod_help+0xb9): undefined reference to `_Static_assert'
| tools/kmod.o: In function `main':
| kmod.c:(.text.main+0x5b): undefined reference to `_Static_assert'
| tools/kmod.o:kmod.c:(.text.main+0x8c): more undefined references to `_Static_assert' follow
| collect2: ld returned 1 exit status
| make[2]: *** [tools/test/kmod] Error 1
| make[2]: *** Waiting for unfinished jobs....
| x86_64-linux-libtool: link: gcc -std=gnu99 -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -isystem/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -Wl,--as-needed -Wl,--gc-sections -Wl,-rpath-link -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-lin

ux

Quoted 142 lines
Quoted 139 lines

/usr/lib -Wl,-rpath-link -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib -Wl,-O1 -o tools/.libs/kmod tools/kmod.o tools/lsmod.o tools/rmmod.o tools/insmod.o tools/modinfo.o tools/modprobe.o tools/depmod.o tools/log.o tools/static-nodes.o -L/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/lib -L/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/lib libkmod/.libs/libkmod-util.a libkmod/.libs/libkmod.so -Wl,-rpath -Wl,/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/lib

Quoted 10 lines
| tools/kmod.o: In function `kmod_help':
| kmod.c:(.text.kmod_help+0x27): undefined reference to `_Static_assert'
| kmod.c:(.text.kmod_help+0x5c): undefined reference to `_Static_assert'
| kmod.c:(.text.kmod_help+0x7f): undefined reference to `_Static_assert'
| kmod.c:(.text.kmod_help+0xb9): undefined reference to `_Static_assert'
| tools/kmod.o: In function `main':
| kmod.c:(.text.main+0x5b): undefined reference to `_Static_assert'
| tools/kmod.o:kmod.c:(.text.main+0x8c): more undefined references to `_Static_assert' follow
| collect2: ld returned 1 exit status
| make[2]: *** [tools/kmod] Error 1

Sau!

Quoted 123 lines
meta/recipes-kernel/kmod/kmod-native_git.bb +0 -1
index 8cbcdf8..afa3ad0 100644
@@ -4,7 +4,6 @@
  require kmod.inc
  inherit native
 
-PR = "${INC_PR}.1"
  SRC_URI += "file://fix-undefined-O_CLOEXEC.patch"
 
  do_install_append (){
meta/recipes-kernel/kmod/kmod.inc +4 -5
index a780b6c..1728a4e 100644
@@ -7,8 +7,6 @@ HOMEPAGE = "http://packages.profusion.mobi/kmod/"
  LICENSE = "GPL-2.0+ & LGPL-2.1+"
  LICENSE_libkmod = "LGPL-2.1+"
  SECTION = "base"
-PV = "9"
-INC_PR = "r0"
 
  DEPENDS += "pkgconfig-native"
 
@@ -19,17 +17,18 @@ inherit autotools gtk-doc ptest
 
  SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git \
             file://depmod-search.conf \
-           file://0001-man-disable-man-page-generation-because-we-don-t-hav.patch \
             file://run-ptest \
             file://ptest.patch \
            "
 
-SRCREV = "62081c0f68905b22f375156d4532fd37fa5c8d33"
+SRCREV = "3b38c7fcb58be4ddc34f90454c5f5dc3693d2d85"
+# Lookout for PV bump too when SRCREV is changed
+PV = "14"
 
  S = "${WORKDIR}/git"
 
  EXTRA_AUTORECONF += "--install --symlink"
-EXTRA_OECONF +="--enable-debug --enable-logging --enable-tools"
+EXTRA_OECONF +="--enable-debug --enable-logging --enable-tools --disable-manpages"
 
  do_configure_prepend () {
          gtkdocize --docdir ${S}/libkmod/docs || touch ${S}/libkmod/docs/gtk-doc.make
meta/recipes-kernel/kmod/kmod/0001-man-disable-man-page-generation-because-we-don-t-hav.patch deleted +0 -26
deleted file mode 100644
index 5361b84..0000000
@@ -1,26 +0,0 @@
-From ce6f0cabb65e67dd4d31e1e555db8bc6eaf435d3 Mon Sep 17 00:00:00 2001
-From: Martin Jansa <[email protected]>
-Date: Fri, 24 Feb 2012 07:35:38 +0100
-Subject: [PATCH] man: disable man page generation because we don't have
- working xsltproc
-
-Upstream-Status: Inappropriate [build system specific change]
-
-Signed-off-by: Martin Jansa <[email protected]>
----
- Makefile.am |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/Makefile.am b/Makefile.am
-index 141c102..a8bdfd1 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -1,4 +1,4 @@
--SUBDIRS = . libkmod/docs man
-+SUBDIRS = . libkmod/docs
-
- DISTCLEAN_LOCAL_HOOKS =
- EXTRA_DIST =
---
-1.7.8.4
-
meta/recipes-kernel/kmod/kmod/fix-undefined-O_CLOEXEC.patch +8 -8
index 3177e9a..0268216 100644
@@ -2,16 +2,16 @@ Upstream-Status: Not applicable
 
  Index: git/libkmod/libkmod-private.h
  ===================================================================
---- git.orig/libkmod/libkmod-private.h
-+++ git/libkmod/libkmod-private.h
-@@ -1,6 +1,10 @@
- #ifndef _LIBKMOD_PRIVATE_H_
- #define _LIBKMOD_PRIVATE_H_
+--- git.orig/libkmod/libkmod-private.h	2013-08-21 10:07:51.000000000 -0700
++++ git/libkmod/libkmod-private.h	2013-08-21 14:34:04.558278849 -0700
+@@ -9,6 +9,10 @@
+ #include "macro.h"
+ #include "libkmod.h"
 
  +#ifndef O_CLOEXEC
  +# define O_CLOEXEC 0
  +#endif
  +
- #include <stdbool.h>
- #include <stdio.h>
- #include <syslog.h>
+ static _always_inline_ _printf_format_(2, 3) void
+ 	kmod_log_null(struct kmod_ctx *ctx, const char *format, ...) {}
+
meta/recipes-kernel/kmod/kmod_git.bb +1 -2
index f92ff72..b07c06e 100644
@@ -3,8 +3,7 @@
 
  require kmod.inc
 
-PR = "${INC_PR}.0"
-PV = "9+git${SRCPV}"
+PV_append = "+git${SRCPV}"
 
  PROVIDES += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools"
  RPROVIDES_${PN} += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools"
author
#9 lore raw

Re: [PATCH 1/3] kmod: Upgrade to version 14

Quoted 21 lines · Saul Wold
Quoted 20 lines · Khem Raj
Quoted 15 lines · Saul Wold
Quoted 12 lines · Khem Raj

The update is a requirement for systemd-206

---
 meta/recipes-kernel/kmod/kmod-native_git.bb        |  1 -
 meta/recipes-kernel/kmod/kmod.inc                  |  9 ++++----
 ...-man-page-generation-because-we-don-t-hav.patch | 26 ----------------------
 .../kmod/kmod/fix-undefined-O_CLOEXEC.patch        | 16 ++++++-------
 meta/recipes-kernel/kmod/kmod_git.bb               |  3 +--
 5 files changed, 13 insertions(+), 42 deletions(-)
 delete mode 100644 meta/recipes-kernel/kmod/kmod/0001-man-disable-man-page-generation-because-we-don-t-hav.patch

Did you build the native version? I am seeing failures in MUT on the autobuilder. It did pass my "sniff" test on my 2 local world builds.

Quoted 6 lines
Quoted 3 lines

yes and multiple times. what distro do you run on your build boxes ? I wonder if its some sort of race condition I use -j20 and -j16

It's not a race condition, I built it stand alone with no parallel make. I am not sure if a host contamination issue or something else, because like you I was able to built it on two machine locally, but not on the AB.

Machine are CentOS 6.4, Debian 6.0.7, but it worked on my F19 and Ubuntu 12.04 machines!

I do not have access to Centos or debian to be able to reproduce this. If anyone has it please help in debugging it further. will try to offline try to poke around and see if I can get at something.

author
#10 lore raw

Re: [PATCH 1/3] kmod: Upgrade to version 14

Quoted 5 lines · Khem Raj
Quoted 1 line

Machine are CentOS 6.4, Debian 6.0.7, but it worked on my F19 and Ubuntu 12.04 machines!

I do not have access to Centos or debian to be able to reproduce this. If anyone has it please help in debugging it further. will try to offline try to poke around and see if I can get at something.

The reason I think is that _Static_assert is too new a feature for gcc shipped with these distros, it was introduced in c11 standards. So I have created a patch to define an equivalent for kmod-native and update the pull tree. However I have no way to test it out quickly. I have made sure that it does not break the build on Ubuntu 12.04+ give it a shot and let me know how it goes.

Tested-by
#11 lore raw

Re: [PATCH 1/3] kmod: Upgrade to version 14

Quoted 6 lines · Khem Raj
Quoted 3 lines · Khem Raj
Quoted 1 line

Machine are CentOS 6.4, Debian 6.0.7, but it worked on my F19 and Ubuntu 12.04 machines!

Quoted 8 lines
Quoted 2 lines

I do not have access to Centos or debian to be able to reproduce this. If anyone has it please help in debugging it further. will try to offline try to poke around and see if I can get at something.

The reason I think is that _Static_assert is too new a feature for gcc shipped with these distros, it was introduced in c11 standards. So I have created a patch to define an equivalent for kmod-native and update the pull tree. However I have no way to test it out quickly. I have made sure that it does not break the build on Ubuntu 12.04+ give it a shot and let me know how it goes.

Yup, I have that capability and was actually working on a similar patch, you just beat me to it.

Probably need a little bit more of a commit message about removing the older patch due it's being a config option and adding the Static_assert work around.

Please update and resend the series.

Thanks
Sau!

#3 lore raw

Re: [PATCH 2/3] systemd: Upgrade to 206

In reply to Khem Raj
Quoted 23 lines · Khem Raj

Add new PACKAGE systemd-rpm-macros, this will hold the macros which are interesting when rpm is used as package management backend

Forward port uclibc only patches. Add a new patch to stub out use of preadv/pwritev in testcases

Delete patches that have been merged upstream in systemd

Remove force export of GPERF variable in environment this was causing AC_CHECK_TOOL to not populate GPERF variable as expected

systemd needs kmod to be present on rootfs so add it to RDEPENDS

some services substitute discovered kmod when the service file is generated during boot, however the discovered kmod is from native sysroot and it gets into the service file with absolute path. So specify the target path of kmod using KMOD variable so the unit files have correct pointer to kmod on target

Quoted 5 lines

Add a patch to make sure that mknod capability is checked before the service which excercise mknod, this patch is also submitted to upstream systemd

Arch Linux had some issues with systemd 206 with regard to device nodes in /dev getting wrong permissions:
https://bugs.archlinux.org/task/36259

I wonder if we need to add patches for that as well:
http://cgit.freedesktop.org/systemd/systemd/patch/?id=15a722007dc1d8a9a11934b2ab528cf4d25b6c62
http://cgit.freedesktop.org/systemd/systemd/patch/?id=a2aced4add1964f82cfd250f1fee8de9d974b507
http://cgit.freedesktop.org/systemd/systemd/patch/?id=5c7951141fa9f33e1b97de97586cc16bce2776e0
http://cgit.freedesktop.org/systemd/systemd/patch/?id=ec99834cb0e76a9e7096bd42249053712db9c32d

Regards,
Jonathan

author
#12 lore raw

Re: [PATCH 1/3] kmod: Upgrade to version 14

In reply to Saul Wold
Quoted 16 lines · Saul Wold
Quoted 6 lines · Khem Raj
Quoted 3 lines · Khem Raj
Quoted 1 line

Machine are CentOS 6.4, Debian 6.0.7, but it worked on my F19 and Ubuntu 12.04 machines!

Quoted 8 lines
Quoted 2 lines

I do not have access to Centos or debian to be able to reproduce this. If anyone has it please help in debugging it further. will try to offline try to poke around and see if I can get at something.

The reason I think is that _Static_assert is too new a feature for gcc shipped with these distros, it was introduced in c11 standards. So I have created a patch to define an equivalent for kmod-native and update the pull tree. However I have no way to test it out quickly. I have made sure that it does not break the build on Ubuntu 12.04+ give it a shot and let me know how it goes.

Quoted 4 lines

Yup, I have that capability and was actually working on a similar patch, you just beat me to it.

Probably need a little bit more of a commit message about removing the older patch due it's being a config option and adding the Static_assert work around.

I did not remove anything. Infact I added a patch and patch header explains what it does. Since It was not merged I took the liberty to squash it into the original commit.

Quoted 4 lines

Please update and resend the series.

Feel free to ammend the commits.

Quoted 4 lines

Thanks
Sau!

author
#4 lore raw

Re: [PATCH 2/3] systemd: Upgrade to 206

In reply to Jonathan Liu
Quoted 34 lines · Jonathan Liu
Quoted 23 lines · Khem Raj

Add new PACKAGE systemd-rpm-macros, this will hold the macros which are interesting when rpm is used as package management backend

Forward port uclibc only patches. Add a new patch to stub out use of preadv/pwritev in testcases

Delete patches that have been merged upstream in systemd

Remove force export of GPERF variable in environment this was causing AC_CHECK_TOOL to not populate GPERF variable as expected

systemd needs kmod to be present on rootfs so add it to RDEPENDS

some services substitute discovered kmod when the service file is generated during boot, however the discovered kmod is from native sysroot and it gets into the service file with absolute path. So specify the target path of kmod using KMOD variable so the unit files have correct pointer to kmod on target

Quoted 5 lines

Add a patch to make sure that mknod capability is checked before the service which excercise mknod, this patch is also submitted to upstream systemd

Arch Linux had some issues with systemd 206 with regard to device nodes in /dev getting wrong permissions:
https://bugs.archlinux.org/task/36259

Quoted 5 lines

I wonder if we need to add patches for that as well:
http://cgit.freedesktop.org/systemd/systemd/patch/?id=15a722007dc1d8a9a11934b2ab528cf4d25b6c62
http://cgit.freedesktop.org/systemd/systemd/patch/?id=a2aced4add1964f82cfd250f1fee8de9d974b507
http://cgit.freedesktop.org/systemd/systemd/patch/?id=5c7951141fa9f33e1b97de97586cc16bce2776e0
http://cgit.freedesktop.org/systemd/systemd/patch/?id=ec99834cb0e76a9e7096bd42249053712db9c32d

With the testing on 3.8 kernel at that time, I did not have see issues. However if we are able to have reproducers we can cherry pick needed fixes at later stage. Lets see the breakage for our case first.

Quoted 3 lines

Regards,
Jonathan