Diff util-linux-2.38.1-r2 with a util-linux-2.39.1-r1

/usr/portage/sys-apps/util-linux/util-linux-2.39.1-r1.ebuild 2023-10-09 14:52:35.416368500 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_{9..11} )
6
PYTHON_COMPAT=( python3_{10..11} )
7 7

  
8
inherit toolchain-funcs autotools flag-o-matic bash-completion-r1 usr-ldscript \
8
inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 usr-ldscript \
9 9
	pam python-r1 multilib-minimal multiprocessing systemd
10 10

  
11 11
MY_PV="${PV/_/-}"
......
19 19
	inherit verify-sig
20 20

  
21 21
	if [[ ${PV} != *_rc* ]] ; then
22
		KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos"
22
		KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos"
23 23
	fi
24 24

  
25 25
	SRC_URI="https://www.kernel.org/pub/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz"
......
59 59
	udev? ( virtual/libudev:= )"
60 60
BDEPEND="
61 61
	virtual/pkgconfig
62
	nls? ( sys-devel/gettext )
62
	nls? (
63
		app-text/po4a
64
		sys-devel/gettext
65
	)
63 66
	test? ( sys-devel/bc )
64 67
"
65 68
DEPEND="
......
85 88
	# Required for man-page generation
86 89
	BDEPEND+=" dev-ruby/asciidoctor"
87 90
else
88
	BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-karelzak )"
91
	BDEPEND+=" verify-sig? ( >=sec-keys/openpgp-keys-karelzak-20230517 )"
89 92
fi
90 93

  
91 94
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) su? ( pam )"
92 95
RESTRICT="!test? ( test )"
93 96

  
94 97
PATCHES=(
95
	"${FILESDIR}"/${P}-more-posix-exit-on-eof.patch
96
	"${FILESDIR}"/util-linux-2.38.1-check-for-sys-pidfd.h.patch
98
	"${FILESDIR}"/${PN}-2.39.1-mount-no-statx.patch
99
	"${FILESDIR}"/${PN}-2.39.1-wall-no-tty.patch
97 100
)
98 101

  
99 102
pkg_pretend() {
......
142 145
			# Subtest 'options-maximum-size-8192' fails
143 146
			hardlink/options
144 147

  
148
			# Fails in sandbox
149
			lsns/ioctl_ns
150

  
145 151
			lsfd/mkfds-symlink
146 152
			lsfd/mkfds-rw-character-device
147 153
		)
......
154 160

  
155 161
	fi
156 162

  
157
	eautoreconf
163
	if [[ ${PV} == 9999 ]] ; then
164
		po/update-potfiles
165
		eautoreconf
166
	else
167
		elibtoolize
168
	fi
158 169
}
159 170

  
160 171
python_configure() {
......
196 207

  
197 208
	# configure args shared by python and non-python builds
198 209
	local commonargs=(
210
		--localstatedir="${EPREFIX}/var"
211
		--runstatedir="${EPREFIX}/run"
199 212
		--enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin"
213

  
214
		# Temporary workaround until ~2.39.2. 2.39.x introduced a big rewrite.
215
		# https://github.com/util-linux/util-linux/issues/2287#issuecomment-1576640373
216
		--disable-libmount-mountfd-support
200 217
	)
201 218

  
202 219
	local myeconfargs=(
......
215 232
		$(multilib_native_use_with audit)
216 233
		$(tc-has-tls || echo --disable-tls)
217 234
		$(use_enable nls)
235
		$(use_enable nls poman)
218 236
		$(use_enable unicode widechar)
219 237
		$(use_enable static-libs static)
220 238
		$(use_with ncurses tinfo)
......
263 281
			--disable-asciidoc
264 282
			--disable-bash-completion
265 283
			--without-systemdsystemunitdir
284
			--disable-poman
266 285

  
267 286
			# build libraries
268 287
			--enable-libuuid
Thank you!