From e6be2e76e5b2c005f436011971dc5515c9be6e4d Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Mar 26 2012 16:59:30 +0000 Subject: apply patch from upstream so we can build systemd on arm and ppc - and likely the rest of the secondary arches --- diff --git a/systemd-PAGE_SIZE.patch b/systemd-PAGE_SIZE.patch new file mode 100644 index 0000000..623bea1 --- /dev/null +++ b/systemd-PAGE_SIZE.patch @@ -0,0 +1,44 @@ +From 7264278fbbdc1dc6c30fedc902d1337594aa6ff6 Mon Sep 17 00:00:00 2001 +From: Lennart Poettering +Date: Wed, 21 Mar 2012 22:47:44 +0000 +Subject: journal: PAGE_SIZE is not known on ppc and other archs + +Let's use NAME_MAX, as suggested by Dan Walsh +--- +diff --git a/src/journal/journald.c b/src/journal/journald.c +index d27cb60..87390bd 100644 +--- a/src/journal/journald.c ++++ b/src/journal/journald.c +@@ -29,7 +29,6 @@ + #include + #include + #include +-#include + + #include + #include +@@ -2149,10 +2148,20 @@ static int process_event(Server *s, struct epoll_event *ev) { + size_t label_len = 0; + union { + struct cmsghdr cmsghdr; ++ ++ /* We use NAME_MAX space for the ++ * SELinux label here. The kernel ++ * currently enforces no limit, but ++ * according to suggestions from the ++ * SELinux people this will change and ++ * it will probably be identical to ++ * NAME_MAX. For now we use that, but ++ * this should be updated one day when ++ * the final limit is known.*/ + uint8_t buf[CMSG_SPACE(sizeof(struct ucred)) + + CMSG_SPACE(sizeof(struct timeval)) + +- CMSG_SPACE(sizeof(int)) + +- CMSG_SPACE(PAGE_SIZE)]; /* selinux label */ ++ CMSG_SPACE(sizeof(int)) + /* fd */ ++ CMSG_SPACE(NAME_MAX)]; /* selinux label */ + } control; + ssize_t n; + int v; +-- +cgit v0.9.0.2-2-gbebe diff --git a/systemd.spec b/systemd.spec index 26f6cfd..27ef716 100644 --- a/systemd.spec +++ b/systemd.spec @@ -3,7 +3,7 @@ Name: systemd Url: http://www.freedesktop.org/wiki/Software/systemd Version: 44 -Release: 2%{?gitcommit:.git%{gitcommit}}%{?dist} +Release: 3%{?gitcommit:.git%{gitcommit}}%{?dist} License: GPLv2+ Group: System Environment/Base Summary: A System and Service Manager @@ -53,6 +53,7 @@ Source2: systemd-sysv-convert Source3: udlfb.conf # Stop-gap, just to ensure things work fine with rsyslog without having to change the package right-away Source4: listen.conf +Patch0: systemd-PAGE_SIZE.patch # For sysvinit tools Obsoletes: SysVinit < 2.86-24, sysvinit < 2.86-24 @@ -115,6 +116,7 @@ at boot. %prep %setup -q %{?gitcommit:-n %{name}-git%{gitcommit}} +%patch0 -p1 %build %{?gitcommit: ./autogen.sh } @@ -382,6 +384,10 @@ fi %{_bindir}/systemd-analyze %changelog +* Mon Mar 26 2012 Dennis Gilmore - 44-3 +- apply patch from upstream so we can build systemd on arm and ppc +- and likely the rest of the secondary arches + * Tue Mar 20 2012 Michal Schmidt - 44-2 - Don't build the gtk parts anymore. They're moving into systemd-ui. - Remove a dead patch file.