Skip to content

Commit

Permalink
app-misc/fdutils: Fix build with gcc-10
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/706822
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Andreas K. Huettel <[email protected]>
  • Loading branch information
akhuettel committed Jan 1, 2021
1 parent b6dbb3f commit e47ebc6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app-misc/fdutils/fdutils-5.5.20060227-r1.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5
Expand Down Expand Up @@ -26,6 +26,8 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/${PN}-5.5-20060227

src_prepare() {
epatch "${FILESDIR}/${P}-gcc10.patch"

local d="${WORKDIR}"/debian/patches
EPATCH_SOURCE="${d}" epatch $(<"${d}"/series)
sed -i -e 's:{LDFLAFS}:(LDFLAGS):' src/Makefile.in || die #337721
Expand Down
4 changes: 3 additions & 1 deletion app-misc/fdutils/fdutils-5.5.20060227.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5
Expand All @@ -25,6 +25,8 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/${PN}-5.5-20060227

src_prepare() {
epatch "${FILESDIR}/${P}-gcc10.patch"

local d="${WORKDIR}"/debian/patches
EPATCH_SOURCE="${d}" epatch $(<"${d}"/series)
sed -i -e 's:{LDFLAFS}:(LDFLAGS):' src/Makefile.in || die #337721
Expand Down
20 changes: 20 additions & 0 deletions app-misc/fdutils/files/fdutils-5.5.20060227-gcc10.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Description: Fix ftbfs with GCC-10

Author: Sudip Mukherjee <[email protected]>
Bug-Debian: https://bugs.debian.org/957200
Forwarded: no

---

--- fdutils-5.5-20060227.orig/src/superformat.h
+++ fdutils-5.5-20060227/src/superformat.h
@@ -97,7 +97,7 @@ int compute_all_sequences(struct params
void compute_track0_sequence(struct params *fd);
int calc_skews(struct params *fd0, struct params *fd, int n);
extern int verbosity;
-int header_size;
-int index_size;
+extern int header_size;
+extern int index_size;

#endif

0 comments on commit e47ebc6

Please sign in to comment.