[systemd] fix build on big-endians

Dan Horák sharkcz at fedoraproject.org
Sat Jan 21 11:36:03 UTC 2012


commit 125ea38040b5ba7bd7aa2abfab1726efc9a93142
Author: Dan Horák <dan at danny.cz>
Date:   Sat Jan 21 12:35:58 2012 +0100

    fix build on big-endians

 systemd-38-big-endian.patch |   13 +++++++++++++
 systemd.spec                |    8 +++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/systemd-38-big-endian.patch b/systemd-38-big-endian.patch
new file mode 100644
index 0000000..ba124f3
--- /dev/null
+++ b/systemd-38-big-endian.patch
@@ -0,0 +1,13 @@
+diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
+index 5e1fd47..baf51db 100644
+--- a/src/journal/sd-journal.c
++++ b/src/journal/sd-journal.c
+@@ -66,7 +66,7 @@ static void init_location(Location *l, JournalFile *f, Object *o) {
+         l->seqnum_id = f->header->seqnum_id;
+         l->realtime = le64toh(o->entry.realtime);
+         l->monotonic = le64toh(o->entry.monotonic);
+-        l->boot_id = le64toh(o->entry.boot_id);
++        l->boot_id = o->entry.boot_id;
+         l->xor_hash = le64toh(o->entry.xor_hash);
+ 
+         l->seqnum_set = l->realtime_set = l->monotonic_set = l->xor_hash_set = true;
diff --git a/systemd.spec b/systemd.spec
index 8a8ca66..3e294db 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -2,7 +2,7 @@ Name:           systemd
 Url:            http://www.freedesktop.org/wiki/Software/systemd
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Version:        38
-Release:        3%{?dist}
+Release:        4%{?dist}
 License:        GPLv2+
 Group:          System Environment/Base
 Summary:        A System and Service Manager
@@ -49,6 +49,8 @@ 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
+# fix build on big-endians (commit ce3fd7e7)
+Patch0:         %{name}-38-big-endian.patch
 
 # For sysvinit tools
 Obsoletes:      SysVinit < 2.86-24, sysvinit < 2.86-24
@@ -111,6 +113,7 @@ SysV compatibility tools for systemd
 
 %prep
 %setup -q
+%patch0 -p1 -b .big-endian
 
 %build
 %configure --with-rootprefix= --with-distro=fedora --with-rootlibdir=/%{_lib}
@@ -381,6 +384,9 @@ fi
 %{_bindir}/systemd-sysv-convert
 
 %changelog
+* Sat Jan 21 2012 Dan Horák <dan[at]danny.cz> - 38-4
+- fix build on big-endians
+
 * Wed Jan 11 2012 Lennart Poettering <lpoetter at redhat.com> - 38-3
 - Disable building of gtk tools for now
 


More information about the scm-commits mailing list