Diff delay-1.6-r5 with a delay-1.6-r6

/usr/portage/app-misc/delay/delay-1.6-r6.ebuild 2023-10-09 14:52:28.792368332 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
inherit autotools
6
inherit autotools edo
7 7

  
8 8
DESCRIPTION="Sleeplike program that counts down the number of seconds specified"
9 9
HOMEPAGE="https://onegeek.org/~tom/software/delay/"
......
15 15

  
16 16
RDEPEND="sys-libs/ncurses:="
17 17
DEPEND="${RDEPEND}"
18
BDEPEND="virtual/pkgconfig"
18
BDEPEND="
19
	dev-util/byacc
20
	virtual/pkgconfig
21
"
19 22

  
20 23
PATCHES=(
21 24
	"${FILESDIR}"/${P}-headers.patch
22 25
	"${FILESDIR}"/${P}-tinfo.patch
26
	"${FILESDIR}"/${P}-clang16.patch
23 27
)
24 28

  
25 29
src_prepare() {
26 30
	default
27 31
	eautoreconf
28 32
}
33

  
34
src_configure() {
35
	# Our clang16 patch forces regeneration of the yacc files and going from
36
	# an ancient bison to a modern one makes 'delay until now + 5 minutes'
37
	# segfault. It happens even if the patch is empty, as the regeneration
38
	# is the breaking part. So, just force byacc, as it seems to work, and
39
	# this is a package with no active upstream.
40
	export YACC=byacc
41

  
42
	econf
43
}
44

  
45
src_test() {
46
	# No provided test suite, so let's add a smoketest which would've
47
	# caught the segfault part of bug #881319.
48
	edo ./delay 5
49
	edo ./delay until now + 1 minutes
50
}
Thank you!