1 |
commit: 4f6eacce878ca6eaed9a72f57826de872704f294 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 7 17:08:31 2018 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 7 17:08:31 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f6eacce |
7 |
|
8 |
sys-fs/e2fsprogs: fix build on big endian |
9 |
|
10 |
Closes: https://bugs.gentoo.org/643570 |
11 |
Package-Manager: Portage-2.3.19_p3, Repoman-2.3.6_p37 |
12 |
|
13 |
sys-fs/e2fsprogs/e2fsprogs-1.43.8.ebuild | 1 + |
14 |
.../files/e2fsprogs-1.43.8-big-endian.patch | 37 ++++++++++++++++++++++ |
15 |
2 files changed, 38 insertions(+) |
16 |
|
17 |
diff --git a/sys-fs/e2fsprogs/e2fsprogs-1.43.8.ebuild b/sys-fs/e2fsprogs/e2fsprogs-1.43.8.ebuild |
18 |
index ba0347721fd..3637e695028 100644 |
19 |
--- a/sys-fs/e2fsprogs/e2fsprogs-1.43.8.ebuild |
20 |
+++ b/sys-fs/e2fsprogs/e2fsprogs-1.43.8.ebuild |
21 |
@@ -38,6 +38,7 @@ PATCHES=( |
22 |
"${FILESDIR}"/${PN}-1.42.13-fix-build-cflags.patch #516854 |
23 |
|
24 |
# Upstream patches (can usually removed with next version bump) |
25 |
+ "${FILESDIR}"/${PN}-1.43.8-big-endian.patch |
26 |
) |
27 |
|
28 |
src_prepare() { |
29 |
|
30 |
diff --git a/sys-fs/e2fsprogs/files/e2fsprogs-1.43.8-big-endian.patch b/sys-fs/e2fsprogs/files/e2fsprogs-1.43.8-big-endian.patch |
31 |
new file mode 100644 |
32 |
index 00000000000..8b3482f6d5f |
33 |
--- /dev/null |
34 |
+++ b/sys-fs/e2fsprogs/files/e2fsprogs-1.43.8-big-endian.patch |
35 |
@@ -0,0 +1,37 @@ |
36 |
+From 876d9b0c8eac2fd80dd62bfa1b09adea62aa08f3 Mon Sep 17 00:00:00 2001 |
37 |
+From: Theodore Ts'o <tytso@×××.edu> |
38 |
+Date: Wed, 3 Jan 2018 01:32:02 -0500 |
39 |
+Subject: libext2fs: fix build failure in swapfs.c on big-endian systems |
40 |
+ |
41 |
+Addresses-Debian-Bug: #886119 |
42 |
+ |
43 |
+Reported-by: James Clarke <jrtc27@××××××.org> |
44 |
+Signed-off-by: Theodore Ts'o <tytso@×××.edu> |
45 |
+--- |
46 |
+ lib/ext2fs/swapfs.c | 3 ++- |
47 |
+ 1 file changed, 2 insertions(+), 1 deletion(-) |
48 |
+ |
49 |
+diff --git a/lib/ext2fs/swapfs.c b/lib/ext2fs/swapfs.c |
50 |
+index 6e5cff9..b13dc42 100644 |
51 |
+--- a/lib/ext2fs/swapfs.c |
52 |
++++ b/lib/ext2fs/swapfs.c |
53 |
+@@ -19,6 +19,7 @@ |
54 |
+ |
55 |
+ #include "ext2_fs.h" |
56 |
+ #include "ext2fs.h" |
57 |
++#include "ext2fsP.h" |
58 |
+ #include <ext2fs/ext2_ext_attr.h> |
59 |
+ |
60 |
+ #ifdef WORDS_BIGENDIAN |
61 |
+@@ -358,7 +359,7 @@ void ext2fs_swap_inode_full(ext2_filsys fs, struct ext2_inode_large *t, |
62 |
+ if (inode_includes(inode_size, i_projid)) |
63 |
+ t->i_projid = ext2fs_swab16(f->i_projid); |
64 |
+ /* catch new static fields added after i_projid */ |
65 |
+- EXT2FS_BUILD_BUG_ON(sizeof(ext2_inode_large) != 160); |
66 |
++ EXT2FS_BUILD_BUG_ON(sizeof(struct ext2_inode_large) != 160); |
67 |
+ |
68 |
+ i = sizeof(struct ext2_inode) + extra_isize + sizeof(__u32); |
69 |
+ if (bufsize < (int) i) |
70 |
+-- |
71 |
+cgit v1.1 |
72 |
+ |