Diff screen-4.9.0-r3 with a screen-9999

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

  
4
EAPI=8
4
EAPI=7
5 5

  
6 6
inherit autotools flag-o-matic pam tmpfiles
7 7

  
......
10 10

  
11 11
if [[ ${PV} != 9999 ]] ; then
12 12
	SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
13
	KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
13
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
14 14
else
15 15
	inherit git-r3
16 16
	EGIT_REPO_URI="https://git.savannah.gnu.org/git/screen.git"
......
32 32

  
33 33
PATCHES=(
34 34
	# Don't use utempter even if it is found on the system.
35
	"${FILESDIR}"/${PN}-4.3.0-no-utempter.patch
36
	"${FILESDIR}"/${PN}-4.6.2-utmp-exit.patch
37
	"${FILESDIR}"/${PN}-4.9.0-configure-implicit-function-decls.patch
38
	"${FILESDIR}"/${P}-CVE-2023-24626.patch
39
	"${FILESDIR}"/${PN}-4.9.0-clang16-chmod.patch
35
	"${FILESDIR}"/${P}-no-utempter.patch
40 36
)
41 37

  
42 38
src_prepare() {
......
44 40

  
45 41
	# sched.h is a system header and causes problems with some C libraries
46 42
	mv sched.h _sched.h || die
47
	sed -i '/include/ s:sched.h:_sched.h:' screen.h || die
43
	sed -i '/include/ s:sched\.h:_sched.h:' \
44
		screen.h winmsg.c window.h sched.c canvas.h || die
45
	sed -i 's@[[:space:]]sched\.h@ _sched.h@' Makefile.in || die
48 46

  
49 47
	# Fix manpage
50 48
	sed -i \
......
79 77
	use debug && append-cppflags "-DDEBUG"
80 78

  
81 79
	local myeconfargs=(
82
		--with-socket-dir="${EPREFIX}/tmp/${PN}"
83
		--with-sys-screenrc="${EPREFIX}/etc/screenrc"
80
		--enable-socket-dir="${EPREFIX}/tmp/${PN}"
81
		--with-system_screenrc="${EPREFIX}/etc/screenrc"
84 82
		--with-pty-mode=0620
85 83
		--with-pty-group=5
86
		--enable-rxvt_osc
87 84
		--enable-telnet
88
		--enable-colors256
85
		--enable-utmp
89 86
		$(use_enable pam)
90 87
	)
91 88
	econf "${myeconfargs[@]}"
......
93 90

  
94 91
src_compile() {
95 92
	LC_ALL=POSIX emake comm.h term.h
96
	emake osdef.h
97 93

  
98 94
	emake -C doc screen.info
99 95
	default
......
101 97

  
102 98
src_install() {
103 99
	local DOCS=(
104
		README ChangeLog INSTALL TODO NEWS* patchlevel.h
100
		README ChangeLog INSTALL TODO NEWS*
105 101
		doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps}
106 102
	)
107 103

  
Thank you!