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/xfsdump/, sys-fs/xfsdump/files/
Date: Fri, 14 Feb 2020 13:55:23
Message-Id: 1581688509.4995538f727b3fbea1b4628b72159c34e78598a1.whissi@gentoo
1 commit: 4995538f727b3fbea1b4628b72159c34e78598a1
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 14 13:47:44 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 14 13:55:09 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4995538f
7
8 sys-fs/xfsdump: bump to v3.1.9
9
10 Closes: https://bugs.gentoo.org/693296
11 Package-Manager: Portage-2.3.88, Repoman-2.3.20
12 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
13
14 sys-fs/xfsdump/Manifest | 1 +
15 sys-fs/xfsdump/files/xfsdump-3.1.9-fix-docs.patch | 22 +++++++
16 .../xfsdump/files/xfsdump-3.1.9-no-symlink.patch | 26 ++++++++
17 .../files/xfsdump-3.1.9-prompt-overflow.patch | 14 +++++
18 ...ump-3.1.9-skip-inventory-debian-subfolder.patch | 18 ++++++
19 sys-fs/xfsdump/xfsdump-3.1.9.ebuild | 69 ++++++++++++++++++++++
20 6 files changed, 150 insertions(+)
21
22 diff --git a/sys-fs/xfsdump/Manifest b/sys-fs/xfsdump/Manifest
23 index f073dac6119..06432dc74d6 100644
24 --- a/sys-fs/xfsdump/Manifest
25 +++ b/sys-fs/xfsdump/Manifest
26 @@ -1,2 +1,3 @@
27 DIST xfsdump-3.1.6.tar.gz 848698 BLAKE2B c87738640f2d5f424d8e8e9df50a75b2424c1f2741a47cd94f1e63d18b460946f1cb0ff362d2a00345db8fcc8e3518faa720e6495b138aaa51fe4e8d2d1bd24a SHA512 6d8eff10c65e0a0893525590953ccb7ec0095ba528725ffe3f18260e6cb8f66dd3945c60477500e84421a9ed57fae9e8f0f25c3c0900be3671f30ca6951ed5e7
28 DIST xfsdump-3.1.8.tar.xz 603304 BLAKE2B 8f923ca267f648e88e4e964bcafcfd3bfde0fdb4e6753a9c21bbb8a1ae0f63e868cdad3da4eed5e95ffda861278eaaad49758701384681f3b0a19b93e07a232d SHA512 84720c83627647c75b42c59d180bb31cbb6e064568bef18b73641cf821fa7d39e6f7e0df4a6c7ffd36fba63296ab88cb83f0effdb1f6aa98f4b593ca0e658e0b
29 +DIST xfsdump-3.1.9.tar.xz 600348 BLAKE2B 9e833acaacd3ad581b4f23731d7d613fcffa3d518f43638cddbc7da7015e582cb9415e00616e5e8586836831b6d5877fa83e8a5fd931fd454731bf2af7072095 SHA512 e8f9811d16fc06ab49fe2c109de0546c989575eca6e68b579c6d219a745f935952020069f58b357c5c87b944c5097ca2894466d328d09f06beb8a55880142351
30
31 diff --git a/sys-fs/xfsdump/files/xfsdump-3.1.9-fix-docs.patch b/sys-fs/xfsdump/files/xfsdump-3.1.9-fix-docs.patch
32 new file mode 100644
33 index 00000000000..e8584a0e340
34 --- /dev/null
35 +++ b/sys-fs/xfsdump/files/xfsdump-3.1.9-fix-docs.patch
36 @@ -0,0 +1,22 @@
37 +Do not compress changelog during build.
38 +
39 +--- a/doc/Makefile
40 ++++ b/doc/Makefile
41 +@@ -12,7 +12,7 @@ LSRCFILES = INSTALL CHANGES COPYING $(README) \
42 +
43 + LDIRT = *.gz
44 +
45 +-default: CHANGES.gz
46 ++default:
47 +
48 + include $(BUILDRULES)
49 +
50 +@@ -22,7 +22,7 @@ CHANGES.gz:
51 +
52 + install: default
53 + $(INSTALL) -m 755 -d $(PKG_DOC_DIR)
54 +- $(INSTALL) -m 644 CHANGES.gz $(README) $(PKG_DOC_DIR)
55 ++ $(INSTALL) -m 644 CHANGES $(README) $(PKG_DOC_DIR)
56 + ifeq ($(PKG_DISTRIBUTION), debian)
57 + $(INSTALL) -S CHANGES.gz $(PKG_DOC_DIR)/changelog.gz
58 + else
59
60 diff --git a/sys-fs/xfsdump/files/xfsdump-3.1.9-no-symlink.patch b/sys-fs/xfsdump/files/xfsdump-3.1.9-no-symlink.patch
61 new file mode 100644
62 index 00000000000..295533a6a9d
63 --- /dev/null
64 +++ b/sys-fs/xfsdump/files/xfsdump-3.1.9-no-symlink.patch
65 @@ -0,0 +1,26 @@
66 +http://bugs.gentoo.org/311881
67 +
68 +--- a/dump/Makefile
69 ++++ b/dump/Makefile
70 +@@ -100,9 +100,6 @@ install: default
71 + $(INSTALL) -m 755 -d $(PKG_ROOT_SBIN_DIR)
72 + $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_ROOT_SBIN_DIR)
73 + $(INSTALL) -m 755 -d $(PKG_SBIN_DIR)
74 +- # skip symlink when /sbin is alread symlinked to /usr/sbin, like on Fedora
75 +- test $(PKG_ROOT_SBIN_DIR) -ef $(PKG_SBIN_DIR) || \
76 +- $(INSTALL) -S $(PKG_ROOT_SBIN_DIR)/$(LTCOMMAND) $(PKG_SBIN_DIR)/$(LTCOMMAND)
77 + install-dev:
78 +
79 + .dep: $(COMMINCL) $(COMMON) $(INVINCL) $(INVCOMMON)
80 +--- a/restore/Makefile
81 ++++ b/restore/Makefile
82 +@@ -114,9 +114,6 @@ install: default
83 + $(INSTALL) -m 755 -d $(PKG_ROOT_SBIN_DIR)
84 + $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_ROOT_SBIN_DIR)
85 + $(INSTALL) -m 755 -d $(PKG_SBIN_DIR)
86 +- # skip symlink when /sbin is alread symlinked to /usr/sbin, like on Fedora
87 +- test $(PKG_ROOT_SBIN_DIR) -ef $(PKG_SBIN_DIR) || \
88 +- $(INSTALL) -S $(PKG_ROOT_SBIN_DIR)/$(LTCOMMAND) $(PKG_SBIN_DIR)/$(LTCOMMAND)
89 + install-dev:
90 +
91 + .dep: $(COMMINCL) $(COMMON) $(INVINCL) $(INVCOMMON)
92
93 diff --git a/sys-fs/xfsdump/files/xfsdump-3.1.9-prompt-overflow.patch b/sys-fs/xfsdump/files/xfsdump-3.1.9-prompt-overflow.patch
94 new file mode 100644
95 index 00000000000..60a01f8639b
96 --- /dev/null
97 +++ b/sys-fs/xfsdump/files/xfsdump-3.1.9-prompt-overflow.patch
98 @@ -0,0 +1,14 @@
99 +http://oss.sgi.com/bugzilla/show_bug.cgi?id=876
100 +https://bugs.gentoo.org/335115
101 +
102 +--- a/dump/content.c
103 ++++ b/dump/content.c
104 +@@ -6460,7 +6460,7 @@
105 + Media_prompt_erase( drive_t *drivep )
106 + {
107 + fold_t fold;
108 +- char question[100];
109 ++ char question[200];
110 + char *preamblestr[PREAMBLEMAX];
111 + size_t preamblecnt;
112 + char *querystr[QUERYMAX];
113
114 diff --git a/sys-fs/xfsdump/files/xfsdump-3.1.9-skip-inventory-debian-subfolder.patch b/sys-fs/xfsdump/files/xfsdump-3.1.9-skip-inventory-debian-subfolder.patch
115 new file mode 100644
116 index 00000000000..643495faa71
117 --- /dev/null
118 +++ b/sys-fs/xfsdump/files/xfsdump-3.1.9-skip-inventory-debian-subfolder.patch
119 @@ -0,0 +1,18 @@
120 +Do not build inventory/ subdirectory.
121 +Bug: https://bugs.gentoo.org/692972
122 +Upstream report: https://www.spinics.net/lists/linux-xfs/msg36884.html
123 +
124 +
125 +Do not build debian/ subdirectory.
126 +
127 +--- a/Makefile
128 ++++ b/Makefile
129 +@@ -42,7 +42,7 @@ LDIRT += $(SRCTAR)
130 + endif
131 +
132 + LIB_SUBDIRS = librmt
133 +-TOOL_SUBDIRS = common inventory invutil dump restore m4 man doc po debian
134 ++TOOL_SUBDIRS = common invutil dump restore m4 man doc po
135 +
136 + SUBDIRS = include $(LIB_SUBDIRS) $(TOOL_SUBDIRS)
137 +
138
139 diff --git a/sys-fs/xfsdump/xfsdump-3.1.9.ebuild b/sys-fs/xfsdump/xfsdump-3.1.9.ebuild
140 new file mode 100644
141 index 00000000000..f1954b101a5
142 --- /dev/null
143 +++ b/sys-fs/xfsdump/xfsdump-3.1.9.ebuild
144 @@ -0,0 +1,69 @@
145 +# Copyright 1999-2020 Gentoo Authors
146 +# Distributed under the terms of the GNU General Public License v2
147 +
148 +EAPI=7
149 +
150 +inherit multilib flag-o-matic toolchain-funcs
151 +
152 +DESCRIPTION="xfs dump/restore utilities"
153 +HOMEPAGE="https://xfs.wiki.kernel.org/"
154 +SRC_URI="https://www.kernel.org/pub/linux/utils/fs/xfs/${PN}/${P}.tar.xz"
155 +
156 +LICENSE="LGPL-2.1"
157 +SLOT="0"
158 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86"
159 +IUSE="ncurses nls"
160 +
161 +RDEPEND="
162 + >=sys-apps/attr-2.4.19
163 + sys-apps/dmapi
164 + sys-apps/util-linux
165 + sys-fs/e2fsprogs
166 + >=sys-fs/xfsprogs-3.2.0
167 + ncurses? ( sys-libs/ncurses:0= )
168 +"
169 +DEPEND="${RDEPEND}
170 + nls? (
171 + sys-devel/gettext
172 + elibc_uclibc? ( dev-libs/libintl )
173 + )"
174 +
175 +PATCHES=(
176 + "${FILESDIR}"/${PN}-3.1.9-prompt-overflow.patch #335115
177 + "${FILESDIR}"/${PN}-3.1.9-no-symlink.patch #311881
178 + "${FILESDIR}"/${PN}-3.1.6-linguas.patch #561664
179 + "${FILESDIR}"/${PN}-3.1.9-fix-docs.patch
180 + "${FILESDIR}"/${PN}-3.1.9-skip-inventory-debian-subfolder.patch
181 +)
182 +
183 +src_prepare() {
184 + sed -i \
185 + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
186 + include/builddefs.in \
187 + || die
188 + sed -i \
189 + -e "s:enable_curses=[a-z]*:enable_curses=$(usex ncurses):" \
190 + -e "s:libcurses=\"[^\"]*\":libcurses='$(use ncurses && $(tc-getPKG_CONFIG) --libs ncurses)':" \
191 + configure || die #605852
192 +
193 + default
194 +}
195 +
196 +src_configure() {
197 + unset PLATFORM #184564
198 + export OPTIMIZER=${CFLAGS}
199 + export DEBUG=-DNDEBUG
200 +
201 + local myeconfargs=(
202 + $(use_enable nls gettext)
203 + --libdir="${EPREFIX}/$(get_libdir)"
204 + --libexecdir="${EPREFIX}/usr/$(get_libdir)"
205 + --sbindir="${EPREFIX}/sbin"
206 + )
207 + econf "${myeconfargs[@]}"
208 +}
209 +
210 +src_compile() {
211 + # enable verbose build
212 + emake V=1
213 +}