* [meta-oe 1/3] systemd: enable xz compression for journald
@ 2012-03-05 17:37 Koen Kooi
2012-03-05 17:37 ` [meta-oe 2/3] systemd: update to latest git Koen Kooi
2012-03-05 17:37 ` [meta-oe 3/3] systemd: enable logging to disk instead of tmpfs Koen Kooi
0 siblings, 2 replies; 9+ messages in thread
From: Koen Kooi @ 2012-03-05 17:37 UTC (permalink / raw)
To: openembedded-devel; +Cc: Koen Kooi
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
meta-oe/recipes-core/systemd/systemd_git.bb | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/meta-oe/recipes-core/systemd/systemd_git.bb b/meta-oe/recipes-core/systemd/systemd_git.bb
index 62a326e..2b549a0 100644
--- a/meta-oe/recipes-core/systemd/systemd_git.bb
+++ b/meta-oe/recipes-core/systemd/systemd_git.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.freedesktop.org/wiki/Software/systemd"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
-DEPENDS = "docbook-sgml-dtd-4.1-native intltool-native gperf-native acl readline udev dbus libcap libcgroup tcp-wrappers"
+DEPENDS = "xz docbook-sgml-dtd-4.1-native intltool-native gperf-native acl readline udev dbus libcap libcgroup tcp-wrappers"
DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
SERIAL_CONSOLE ?= "115200 /dev/ttyS0"
@@ -14,7 +14,7 @@ inherit gitpkgv
PKGV = "v${GITPKGVTAG}"
PV = "git"
-PR = "r17"
+PR = "r18"
inherit useradd pkgconfig autotools vala perlnative
@@ -44,6 +44,7 @@ EXTRA_OECONF = " --with-distro=${SYSTEMDDISTRO} \
--with-rootlibdir=${base_libdir} \
${@base_contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)} \
--disable-gtk \
+ --enable-xz \
"
# There's no docbook-xsl-native, so for the xsltproc check to false
--
1.7.2.5
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [meta-oe 2/3] systemd: update to latest git
2012-03-05 17:37 [meta-oe 1/3] systemd: enable xz compression for journald Koen Kooi
@ 2012-03-05 17:37 ` Koen Kooi
2012-03-06 7:44 ` Andreas Müller
2012-03-05 17:37 ` [meta-oe 3/3] systemd: enable logging to disk instead of tmpfs Koen Kooi
1 sibling, 1 reply; 9+ messages in thread
From: Koen Kooi @ 2012-03-05 17:37 UTC (permalink / raw)
To: openembedded-devel; +Cc: Koen Kooi
This is in preparation for the v44 release.
* drop 2 patches that aren't needed anymore
* fix more endianness problems
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
.../0001-docs-fix-build-without-xsltproc.patch | 41 --------------------
.../0001-systemd-journald-fix-endianess-bug.patch | 29 --------------
meta-oe/recipes-core/systemd/systemd_git.bb | 13 +++---
3 files changed, 6 insertions(+), 77 deletions(-)
delete mode 100644 meta-oe/recipes-core/systemd/systemd/0001-docs-fix-build-without-xsltproc.patch
delete mode 100644 meta-oe/recipes-core/systemd/systemd/0001-systemd-journald-fix-endianess-bug.patch
diff --git a/meta-oe/recipes-core/systemd/systemd/0001-docs-fix-build-without-xsltproc.patch b/meta-oe/recipes-core/systemd/systemd/0001-docs-fix-build-without-xsltproc.patch
deleted file mode 100644
index 390d65c..0000000
--- a/meta-oe/recipes-core/systemd/systemd/0001-docs-fix-build-without-xsltproc.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 7395173a5af08e9e58aed33e831d0bfc6515891d Mon Sep 17 00:00:00 2001
-From: Koen Kooi <koen@dominion.thruhere.net>
-Date: Sun, 2 Oct 2011 19:54:29 +0200
-Subject: [PATCH 1/2] docs: fix build without xsltproc
-
-Make would choke on missing rules for man/systemd.1
-
-Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
-
-Upstream-status: rejected [fix your docbook install]
-
----
- Makefile.am | 5 +++++
- 1 files changed, 5 insertions(+), 0 deletions(-)
-
-diff --git a/Makefile.am b/Makefile.am
-index f1f975f..53f99a1 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -649,6 +649,7 @@ EXTRA_DIST += \
- src/acl-util.h \
- src/logs-show.h
-
-+if HAVE_XSLTPROC
- MANPAGES = \
- man/systemd.1 \
- man/systemctl.1 \
-@@ -721,6 +722,10 @@ EXTRA_DIST += \
- $(XML_IN_FILES) \
- ${nodist_man_MANS:=.in} \
- ${XML_IN_FILES:.xml.in=.html.in}
-+else
-+MANPAGES =
-+MANPAGES_ALIAS =
-+endif
-
- systemd_SOURCES = \
- src/main.c
---
-1.7.2.5
-
diff --git a/meta-oe/recipes-core/systemd/systemd/0001-systemd-journald-fix-endianess-bug.patch b/meta-oe/recipes-core/systemd/systemd/0001-systemd-journald-fix-endianess-bug.patch
deleted file mode 100644
index b41d5eb..0000000
--- a/meta-oe/recipes-core/systemd/systemd/0001-systemd-journald-fix-endianess-bug.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From d228134ff5af3bd0ef1087e9bee66583c1546553 Mon Sep 17 00:00:00 2001
-From: Dirk Eibach <eibach@gdsys.de>
-Date: Wed, 29 Feb 2012 12:45:46 +0100
-Subject: [PATCH] systemd-journald: fix endianess bug
-
-Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
----
-
-Upstream-status: Submitted
-
- src/journal/journal-file.c | 2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
-index 20ca3f6..275caea 100644
---- a/src/journal/journal-file.c
-+++ b/src/journal/journal-file.c
-@@ -238,7 +238,7 @@ static int journal_file_allocate(JournalFile *f, uint64_t offset, uint64_t size)
- if (fstat(f->fd, &f->last_stat) < 0)
- return -errno;
-
-- f->header->arena_size = new_size - htole64(f->header->arena_offset);
-+ f->header->arena_size = htole64(new_size - le64toh(f->header->arena_offset));
-
- return 0;
- }
---
-1.7.7.4
-
diff --git a/meta-oe/recipes-core/systemd/systemd_git.bb b/meta-oe/recipes-core/systemd/systemd_git.bb
index 2b549a0..7a8f6e4 100644
--- a/meta-oe/recipes-core/systemd/systemd_git.bb
+++ b/meta-oe/recipes-core/systemd/systemd_git.bb
@@ -14,16 +14,14 @@ inherit gitpkgv
PKGV = "v${GITPKGVTAG}"
PV = "git"
-PR = "r18"
+PR = "r19"
inherit useradd pkgconfig autotools vala perlnative
-SRCREV = "d26e4270409506cd398875216413b651d6ee7de6"
+SRCREV = "82bdec0d65e38333286ae025e5d1aae29b8463f5"
SRC_URI = "git://anongit.freedesktop.org/systemd/systemd;protocol=git \
- file://0001-docs-fix-build-without-xsltproc.patch \
file://0002-systemd-logind-don-t-kill-user-processes-on-exit.patch \
- file://0001-systemd-journald-fix-endianess-bug.patch \
${UCLIBCPATCHES} \
"
UCLIBCPATCHES = ""
@@ -45,6 +43,7 @@ EXTRA_OECONF = " --with-distro=${SYSTEMDDISTRO} \
${@base_contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)} \
--disable-gtk \
--enable-xz \
+ --disable-manpages \
"
# There's no docbook-xsl-native, so for the xsltproc check to false
@@ -58,7 +57,7 @@ do_install() {
rm ${D}${base_libdir}/systemd/system/serial-getty* -f
# provide support for initramfs
- ln -s ${base_bindir}/systemd ${D}/init
+ ln -s ${base_libdir}/systemd/systemd ${D}/init
}
python populate_packages_prepend (){
@@ -131,7 +130,7 @@ RRECOMMENDS_${PN} += "systemd-serialgetty \
# u-a for runlevel and telinit
pkg_postinst_systemd () {
-update-alternatives --install ${base_sbindir}/init init ${base_bindir}/systemd 300
+update-alternatives --install ${base_sbindir}/init init ${base_libdir}/systemd/systemd 300
update-alternatives --install ${base_sbindir}/halt halt ${base_bindir}/systemctl 300
update-alternatives --install ${base_sbindir}/reboot reboot ${base_bindir}/systemctl 300
update-alternatives --install ${base_sbindir}/shutdown shutdown ${base_bindir}/systemctl 300
@@ -139,7 +138,7 @@ update-alternatives --install ${base_sbindir}/poweroff poweroff ${base_bindir}/s
}
pkg_prerm_systemd () {
-update-alternatives --remove init ${base_bindir}/systemd
+update-alternatives --remove init ${base_libdir}/systemd/systemd
update-alternatives --remove halt ${base_bindir}/systemctl
update-alternatives --remove reboot ${base_bindir}/systemctl
update-alternatives --remove shutdown ${base_bindir}/systemctl
--
1.7.2.5
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [meta-oe 3/3] systemd: enable logging to disk instead of tmpfs
2012-03-05 17:37 [meta-oe 1/3] systemd: enable xz compression for journald Koen Kooi
2012-03-05 17:37 ` [meta-oe 2/3] systemd: update to latest git Koen Kooi
@ 2012-03-05 17:37 ` Koen Kooi
2012-03-05 18:12 ` Otavio Salvador
1 sibling, 1 reply; 9+ messages in thread
From: Koen Kooi @ 2012-03-05 17:37 UTC (permalink / raw)
To: openembedded-devel; +Cc: Koen Kooi
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
meta-oe/recipes-core/systemd/systemd_git.bb | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/meta-oe/recipes-core/systemd/systemd_git.bb b/meta-oe/recipes-core/systemd/systemd_git.bb
index 7a8f6e4..2a3b118 100644
--- a/meta-oe/recipes-core/systemd/systemd_git.bb
+++ b/meta-oe/recipes-core/systemd/systemd_git.bb
@@ -14,7 +14,7 @@ inherit gitpkgv
PKGV = "v${GITPKGVTAG}"
PV = "git"
-PR = "r19"
+PR = "r20"
inherit useradd pkgconfig autotools vala perlnative
@@ -58,6 +58,9 @@ do_install() {
# provide support for initramfs
ln -s ${base_libdir}/systemd/systemd ${D}/init
+
+ # create dir for journal
+ install -d ${D}${localstatedir}/log/journal
}
python populate_packages_prepend (){
--
1.7.2.5
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [meta-oe 3/3] systemd: enable logging to disk instead of tmpfs
2012-03-05 17:37 ` [meta-oe 3/3] systemd: enable logging to disk instead of tmpfs Koen Kooi
@ 2012-03-05 18:12 ` Otavio Salvador
2012-03-05 20:29 ` Koen Kooi
0 siblings, 1 reply; 9+ messages in thread
From: Otavio Salvador @ 2012-03-05 18:12 UTC (permalink / raw)
To: openembedded-devel
On Mon, Mar 5, 2012 at 14:37, Koen Kooi <koen@dominion.thruhere.net> wrote:
> + # create dir for journal
> + install -d ${D}${localstatedir}/log/journal
I'd prefer if journal could default to use a buffer or something
similar instead of writting to disk as we ought to be careful about
space in embedded devices, in general.
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [meta-oe 3/3] systemd: enable logging to disk instead of tmpfs
2012-03-05 18:12 ` Otavio Salvador
@ 2012-03-05 20:29 ` Koen Kooi
2012-03-05 20:55 ` Otavio Salvador
0 siblings, 1 reply; 9+ messages in thread
From: Koen Kooi @ 2012-03-05 20:29 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Op 05-03-12 19:12, Otavio Salvador schreef:
> On Mon, Mar 5, 2012 at 14:37, Koen Kooi <koen@dominion.thruhere.net>
> wrote:
>> + # create dir for journal + install -d
>> ${D}${localstatedir}/log/journal
>
> I'd prefer if journal could default to use a buffer or something similar
> instead of writting to disk as we ought to be careful about space in
> embedded devices, in general.
And that's why patch 1/3 enables xz compression :)
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: GPGTools - http://gpgtools.org
iEYEARECAAYFAk9VIg0ACgkQMkyGM64RGpH14QCbBuH7m537WtbnT6RdxR1O15CF
FTMAmQHZzg42rc/O0OLPmllHAYeDAe5y
=3Zig
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [meta-oe 3/3] systemd: enable logging to disk instead of tmpfs
2012-03-05 20:29 ` Koen Kooi
@ 2012-03-05 20:55 ` Otavio Salvador
2012-03-05 21:32 ` Koen Kooi
0 siblings, 1 reply; 9+ messages in thread
From: Otavio Salvador @ 2012-03-05 20:55 UTC (permalink / raw)
To: openembedded-devel
On Mon, Mar 5, 2012 at 17:29, Koen Kooi <koen@dominion.thruhere.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Op 05-03-12 19:12, Otavio Salvador schreef:
>> On Mon, Mar 5, 2012 at 14:37, Koen Kooi <koen@dominion.thruhere.net>
>> wrote:
>>> + # create dir for journal + install -d
>>> ${D}${localstatedir}/log/journal
>>
>> I'd prefer if journal could default to use a buffer or something similar
>> instead of writting to disk as we ought to be careful about space in
>> embedded devices, in general.
>
> And that's why patch 1/3 enables xz compression :)
I understand however I think that write the log to the disk by default
is wrong. We can do it by machine basis or other type of override by
by default we ought to avoid writting to disk.
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [meta-oe 3/3] systemd: enable logging to disk instead of tmpfs
2012-03-05 20:55 ` Otavio Salvador
@ 2012-03-05 21:32 ` Koen Kooi
2012-03-05 21:52 ` Otavio Salvador
0 siblings, 1 reply; 9+ messages in thread
From: Koen Kooi @ 2012-03-05 21:32 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Op 05-03-12 21:55, Otavio Salvador schreef:
> On Mon, Mar 5, 2012 at 17:29, Koen Kooi <koen@dominion.thruhere.net>
> wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>
>> Op 05-03-12 19:12, Otavio Salvador schreef:
>>> On Mon, Mar 5, 2012 at 14:37, Koen Kooi <koen@dominion.thruhere.net>
>>> wrote:
>>>> + # create dir for journal + install -d
>>>> ${D}${localstatedir}/log/journal
>>>
>>> I'd prefer if journal could default to use a buffer or something
>>> similar instead of writting to disk as we ought to be careful about
>>> space in embedded devices, in general.
>>
>> And that's why patch 1/3 enables xz compression :)
>
> I understand however I think that write the log to the disk by default is
> wrong. We can do it by machine basis or other type of override by by
> default we ought to avoid writting to disk.
Right now it's logging to tmpfs, which takes up ram, which more scarce than
disk. You can easily remove /var/log/journal in ROOTFS_POSTPROCESS_CMD to
make it log to tmpfs again.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: GPGTools - http://gpgtools.org
iEYEARECAAYFAk9VMQgACgkQMkyGM64RGpErSwCfZpPPFTm/pOM6926bD7IYh3JV
TjEAoI6cWZX5RdaT/ArpIf14+/yqXif3
=CY6W
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [meta-oe 3/3] systemd: enable logging to disk instead of tmpfs
2012-03-05 21:32 ` Koen Kooi
@ 2012-03-05 21:52 ` Otavio Salvador
0 siblings, 0 replies; 9+ messages in thread
From: Otavio Salvador @ 2012-03-05 21:52 UTC (permalink / raw)
To: openembedded-devel
On Mon, Mar 5, 2012 at 18:32, Koen Kooi <koen@dominion.thruhere.net> wrote:
> Right now it's logging to tmpfs, which takes up ram, which more scarce than
> disk. You can easily remove /var/log/journal in ROOTFS_POSTPROCESS_CMD to
> make it log to tmpfs again.
In both cases it is doing the wrong thing IMO; a circular buffer would
be the right thing for a default.
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [meta-oe 2/3] systemd: update to latest git
2012-03-05 17:37 ` [meta-oe 2/3] systemd: update to latest git Koen Kooi
@ 2012-03-06 7:44 ` Andreas Müller
0 siblings, 0 replies; 9+ messages in thread
From: Andreas Müller @ 2012-03-06 7:44 UTC (permalink / raw)
To: openembedded-devel
On Mon, Mar 5, 2012 at 6:37 PM, Koen Kooi <koen@dominion.thruhere.net> wrote:
> This is in preparation for the v44 release.
>
> * drop 2 patches that aren't needed anymore
> * fix more endianness problems
>
> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
> ---
> .../0001-docs-fix-build-without-xsltproc.patch | 41 --------------------
> .../0001-systemd-journald-fix-endianess-bug.patch | 29 --------------
> meta-oe/recipes-core/systemd/systemd_git.bb | 13 +++---
> 3 files changed, 6 insertions(+), 77 deletions(-)
> delete mode 100644 meta-oe/recipes-core/systemd/systemd/0001-docs-fix-build-without-xsltproc.patch
> delete mode 100644 meta-oe/recipes-core/systemd/systemd/0001-systemd-journald-fix-endianess-bug.patch
>
I wanted to give this a try. From scratch I get
| configure: error: Package requirements ( libkmod >= 5 ) were not met:
|
| No package 'libkmod' found
|
| Consider adjusting the PKG_CONFIG_PATH environment variable if you
| installed software in a non-standard prefix.
|
| Alternatively, you may set the environment variables KMOD_CFLAGS
| and KMOD_LIBS to avoid the need to call pkg-config.
| See the pkg-config man page for more details.
| ERROR: oe_runconf failed
NOTE: package systemd-git-r20: task do_configure: Failed
Cheers
Andreas
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-03-06 7:53 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-05 17:37 [meta-oe 1/3] systemd: enable xz compression for journald Koen Kooi
2012-03-05 17:37 ` [meta-oe 2/3] systemd: update to latest git Koen Kooi
2012-03-06 7:44 ` Andreas Müller
2012-03-05 17:37 ` [meta-oe 3/3] systemd: enable logging to disk instead of tmpfs Koen Kooi
2012-03-05 18:12 ` Otavio Salvador
2012-03-05 20:29 ` Koen Kooi
2012-03-05 20:55 ` Otavio Salvador
2012-03-05 21:32 ` Koen Kooi
2012-03-05 21:52 ` Otavio Salvador
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.