* [PATCH] systemd: Fix build on ppc
@ 2013-01-23 2:45 Khem Raj
2013-01-23 11:42 ` Burton, Ross
0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2013-01-23 2:45 UTC (permalink / raw)
To: openembedded-core
ppc discovers an interesting issue in linking systemd where a library is
missing in link cmdline and linker barfs
./.libs/libsystemd-core.a(libsystemd_core_la-manager.o): In function
`manager_check_finished':
/builddir/build/BUILD/systemd-196/src/core/manager.c:2092: undefined
reference to `sd_notifyf'
collect2: error: ld returned 1 exit status
For more info see
https://bugzilla.redhat.com/show_bug.cgi?id=888255
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
...it-file-Add-libsystemd-daemon.la-to-LDADD.patch | 32 ++++++++++++++++++++
meta/recipes-core/systemd/systemd_196.bb | 3 ++
2 files changed, 35 insertions(+)
create mode 100644 meta/recipes-core/systemd/systemd/0001-test-unit-file-Add-libsystemd-daemon.la-to-LDADD.patch
diff --git a/meta/recipes-core/systemd/systemd/0001-test-unit-file-Add-libsystemd-daemon.la-to-LDADD.patch b/meta/recipes-core/systemd/systemd/0001-test-unit-file-Add-libsystemd-daemon.la-to-LDADD.patch
new file mode 100644
index 0000000..4cd2ee6
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/0001-test-unit-file-Add-libsystemd-daemon.la-to-LDADD.patch
@@ -0,0 +1,32 @@
+Upstream-Status: Submitted
+
+From f3e0a95b6b3fe516e43ec72045c2fad239184392 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Tue, 22 Jan 2013 18:25:46 -0800
+Subject: [PATCH] test-unit-file: Add libsystemd-daemon.la to LDADD
+
+test-unit-file links with libsystemd-core which needs
+sd_* symbols from libsystemd-daemon
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ Makefile.am | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 7d5bd5a..884227a 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1270,7 +1270,8 @@ test_unit_file_CFLAGS = \
+ $(DBUS_CFLAGS)
+
+ test_unit_file_LDADD = \
+- libsystemd-core.la
++ libsystemd-core.la \
++ libsystemd-daemon.la
+
+ test_log_SOURCES = \
+ src/test/test-log.c
+--
+1.7.9.5
+
diff --git a/meta/recipes-core/systemd/systemd_196.bb b/meta/recipes-core/systemd/systemd_196.bb
index a78a8a6..9801fc5 100644
--- a/meta/recipes-core/systemd/systemd_196.bb
+++ b/meta/recipes-core/systemd/systemd_196.bb
@@ -8,6 +8,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
PROVIDES = "udev"
+PR = "r1"
+
DEPENDS = "xz kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native acl readline dbus libcap libcgroup tcp-wrappers usbutils glib-2.0 libgcrypt"
DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
@@ -23,6 +25,7 @@ SRC_URI = "http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz \
file://var-run.conf \
${UCLIBCPATCHES} \
file://00-create-volatile.conf \
+ file://0001-test-unit-file-Add-libsystemd-daemon.la-to-LDADD.patch \
"
SRC_URI[md5sum] = "05ebd7f108e420e2b4e4810ea4b3c810"
SRC_URI[sha256sum] = "6bd4a658a5dd8198235b17ad1b1f0cc56d9e6f00d646ddcffdfc6f058b55e4bf"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] systemd: Fix build on ppc
2013-01-23 2:45 [PATCH] systemd: Fix build on ppc Khem Raj
@ 2013-01-23 11:42 ` Burton, Ross
2013-01-23 15:05 ` Khem Raj
0 siblings, 1 reply; 3+ messages in thread
From: Burton, Ross @ 2013-01-23 11:42 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-core
On 23 January 2013 02:45, Khem Raj <raj.khem@gmail.com> wrote:
> ppc discovers an interesting issue in linking systemd where a library is
> missing in link cmdline and linker barfs
>
> ./.libs/libsystemd-core.a(libsystemd_core_la-manager.o): In function
> `manager_check_finished':
> /builddir/build/BUILD/systemd-196/src/core/manager.c:2092: undefined
> reference to `sd_notifyf'
> collect2: error: ld returned 1 exit status
>
> For more info see
>
> https://bugzilla.redhat.com/show_bug.cgi?id=888255
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(note that in oe-core you don't need explicit PR bumps anymore)
Ross
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] systemd: Fix build on ppc
2013-01-23 11:42 ` Burton, Ross
@ 2013-01-23 15:05 ` Khem Raj
0 siblings, 0 replies; 3+ messages in thread
From: Khem Raj @ 2013-01-23 15:05 UTC (permalink / raw)
To: Burton, Ross; +Cc: openembedded-core@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 862 bytes --]
On Wednesday, January 23, 2013, Burton, Ross wrote:
> On 23 January 2013 02:45, Khem Raj <raj.khem@gmail.com <javascript:;>>
> wrote:
> > ppc discovers an interesting issue in linking systemd where a library is
> > missing in link cmdline and linker barfs
> >
> > ./.libs/libsystemd-core.a(libsystemd_core_la-manager.o): In function
> > `manager_check_finished':
> > /builddir/build/BUILD/systemd-196/src/core/manager.c:2092: undefined
> > reference to `sd_notifyf'
> > collect2: error: ld returned 1 exit status
> >
> > For more info see
> >
> > https://bugzilla.redhat.com/show_bug.cgi?id=888255
> >
> > Signed-off-by: Khem Raj <raj.khem@gmail.com <javascript:;>>
>
> Signed-off-by: Ross Burton <ross.burton@intel.com <javascript:;>>
>
> (note that in oe-core you don't need explicit PR bumps anymore)
Yes I know :)
>
> Ross
>
[-- Attachment #2: Type: text/html, Size: 1567 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-23 15:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-23 2:45 [PATCH] systemd: Fix build on ppc Khem Raj
2013-01-23 11:42 ` Burton, Ross
2013-01-23 15:05 ` Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox