Diff screen-4.9.0-r3 with a screen-9999

/usr/portage/app-misc/screen/screen-9999.ebuild 2024-12-25 14:59:47.115270040 +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 ~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 ~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 \
......
67 65
}
68 66

  
69 67
src_configure() {
68
	append-lfs-flags
70 69
	append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
71 70

  
72 71
	if [[ ${CHOST} == *-solaris* ]]; then
......
79 78
	use debug && append-cppflags "-DDEBUG"
80 79

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

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

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

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

  
Thank you!