Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/jfsutils/files/, sys-fs/jfsutils/
Date: Thu, 20 Aug 2020 17:50:47
Message-Id: 1597945818.e48d079f0386c6630d107897e689ea6c4511479f.whissi@gentoo
1 commit: e48d079f0386c6630d107897e689ea6c4511479f
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 20 17:34:45 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 20 17:50:18 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e48d079f
7
8 sys-fs/jfsutils: fix building against gcc-10
9
10 Closes: https://bugs.gentoo.org/707314
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-fs/jfsutils/files/jfsutils-1.1.15-gcc10.patch | 71 +++++++++++++++++++++++
14 sys-fs/jfsutils/jfsutils-1.1.15-r1.ebuild | 1 +
15 2 files changed, 72 insertions(+)
16
17 diff --git a/sys-fs/jfsutils/files/jfsutils-1.1.15-gcc10.patch b/sys-fs/jfsutils/files/jfsutils-1.1.15-gcc10.patch
18 new file mode 100644
19 index 00000000000..72160e8b4fa
20 --- /dev/null
21 +++ b/sys-fs/jfsutils/files/jfsutils-1.1.15-gcc10.patch
22 @@ -0,0 +1,71 @@
23 +Fix building with GCC 10
24 +
25 +Origin: https://sources.debian.org/patches/jfsutils/1.1.15-5/gcc10_fix-1.patch/
26 +
27 +--- jfsutils-1.1.15.old/fscklog/display.c
28 ++++ jfsutils-1.1.15.new/fscklog/display.c
29 +@@ -54,7 +54,7 @@
30 + * output: fsck extracted service log I/O buffer
31 + *
32 + */
33 +-char xchklog_buffer[XCHKLOG_BUFSIZE];
34 ++static char xchklog_buffer[XCHKLOG_BUFSIZE];
35 +
36 + /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
37 + *
38 +--- jfsutils-1.1.15.old/libfs/logredo.c
39 ++++ jfsutils-1.1.15.new/libfs/logredo.c
40 +@@ -87,9 +87,9 @@
41 + * S T U F F F O R T H E L O G
42 + *
43 + */
44 +-struct logsuper logsup; /* log super block */
45 +-int32_t numdoblk; /* number of do blocks used */
46 +-int32_t numnodofile; /* number of nodo file blocks used */
47 ++static struct logsuper logsup; /* log super block */
48 ++static int32_t numdoblk; /* number of do blocks used */
49 ++static int32_t numnodofile; /* number of nodo file blocks used */
50 + int32_t numExtDtPg = 0; /* number of extended dtpage blocks used */
51 +
52 + /*
53 +@@ -129,7 +129,7 @@
54 + */
55 +
56 + /* buffer header table */
57 +-struct bufhdr {
58 ++static struct bufhdr {
59 + int16_t next; /* 2: next on free/lru list */
60 + int16_t prev; /* 2: previous on free/lru list */
61 + int16_t hnext; /* 2: next on hash chain */
62 +@@ -142,7 +142,7 @@
63 + } bufhdr[NBUFPOOL]; /* (24) */
64 +
65 + /* buffer table */
66 +-struct bufpool {
67 ++static struct bufpool {
68 + char bytes[PSIZE];
69 + } buffer[NBUFPOOL - 1];
70 +
71 +@@ -151,15 +151,16 @@
72 + *
73 + * log has its own 4 page buffer pool.
74 + */
75 +-uint8_t afterdata[LOGPSIZE * 2]; /* buffer to read in redopage data */
76 ++static uint8_t afterdata[LOGPSIZE * 2]; /* buffer to read in redopage data */
77 +
78 + /*
79 + * Miscellaneous
80 + */
81 +-caddr_t prog; /* Program name */
82 +-int32_t mntcnt, bufsize;
83 +-char *mntinfo;
84 +-int32_t retcode; /* return code from logredo */
85 ++static caddr_t prog; /* Program name */
86 ++extern int32_t mntcnt;
87 ++static int32_t bufsize;
88 ++static char *mntinfo;
89 ++static int32_t retcode; /* return code from logredo */
90 + int end_of_transaction = 0;
91 +
92 + /*
93 +
94
95 diff --git a/sys-fs/jfsutils/jfsutils-1.1.15-r1.ebuild b/sys-fs/jfsutils/jfsutils-1.1.15-r1.ebuild
96 index d1f28184fb4..d828395c2a9 100644
97 --- a/sys-fs/jfsutils/jfsutils-1.1.15-r1.ebuild
98 +++ b/sys-fs/jfsutils/jfsutils-1.1.15-r1.ebuild
99 @@ -20,6 +20,7 @@ PATCHES=(
100 "${FILESDIR}"/${P}-linux-headers.patch #448844
101 "${FILESDIR}"/${P}-sysmacros.patch #580056
102 "${FILESDIR}"/${P}-check-for-ar.patch #726032
103 + "${FILESDIR}"/${P}-gcc10.patch #707314
104 )
105
106 src_prepare() {