Diff dpkg-1.21.1 with a dpkg-1.21.15-r2

/usr/portage/app-arch/dpkg/dpkg-1.21.15-r2.ebuild 2023-10-09 14:52:28.184368317 +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
EAPI=7
4
EAPI=8
5 5
inherit autotools toolchain-funcs
6 6

  
7 7
DESCRIPTION="Package maintenance system for Debian"
......
11 11
LICENSE="GPL-2+"
12 12
SLOT="0"
13 13
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
14
IUSE="+bzip2 libmd +lzma nls selinux static-libs test unicode +update-alternatives +zlib"
14
IUSE="+bzip2 +lzma nls selinux static-libs test +update-alternatives +zlib"
15 15
RESTRICT="!test? ( test )"
16 16

  
17 17
RDEPEND="
18 18
	>=app-arch/gzip-1.7
19
	>=app-arch/tar-1.34-r1
20
	app-crypt/libmd
19 21
	>=dev-lang/perl-5.14.2:=
22
	sys-libs/ncurses:=[unicode(+)]
20 23
	bzip2? ( app-arch/bzip2 )
21
	libmd? ( app-crypt/libmd )
22 24
	lzma? ( app-arch/xz-utils )
23 25
	nls? ( virtual/libintl )
24 26
	selinux? ( sys-libs/libselinux )
......
41 43
		>=sys-devel/gettext-0.18.2
42 44
	)
43 45
"
44
DOCS=(
45
	ChangeLog
46
	THANKS
47
	TODO
48
)
46
RDEPEND+=" selinux? ( sec-policy/selinux-dpkg )"
47

  
49 48
PATCHES=(
50 49
	"${FILESDIR}"/${PN}-1.18.12-flags.patch
51
	"${FILESDIR}"/${PN}-1.20.5-dpkg_buildpackage-test.patch
50
	"${FILESDIR}"/${P}-buf-overflow.patch
52 51
)
53 52

  
54 53
src_prepare() {
55 54
	default
56 55

  
57
	sed -i -e 's|\<ar\>|${AR}|g' t-func/deb-format.at t-func/testsuite || die
56
	sed -i -e 's|\<ar\>|${AR}|g' src/at/deb-format.at src/at/testsuite || die
58 57

  
59 58
	eautoreconf
60 59
}
......
62 61
src_configure() {
63 62
	tc-export AR CC
64 63

  
65
	econf \
66
		$(use_enable nls) \
67
		$(use_enable unicode) \
68
		$(use_enable update-alternatives) \
69
		$(use_with bzip2 libbz2) \
70
		$(use_with libmd) \
71
		$(use_with lzma liblzma) \
72
		$(use_with selinux libselinux) \
73
		$(use_with zlib libz) \
74
		--disable-compiler-warnings \
75
		--disable-dselect \
76
		--disable-start-stop-daemon \
64
	local myconf=(
65
		--disable-compiler-warnings
66
		--disable-devel-docs
67
		--disable-dselect
68
		--disable-start-stop-daemon
69
		--enable-unicode
77 70
		--localstatedir="${EPREFIX}"/var
71
		$(use_enable nls)
72
		$(use_enable update-alternatives)
73
		$(use_with bzip2 libbz2)
74
		$(use_with lzma liblzma)
75
		$(use_with selinux libselinux)
76
		$(use_with zlib libz)
77

  
78
	)
79

  
80
	econf "${myconf[@]}"
78 81
}
79 82

  
80 83
src_compile() {
......
82 85
}
83 86

  
84 87
src_install() {
88
	local DOCS=( debian/changelog THANKS TODO )
85 89
	default
86 90

  
91
	# https://bugs.gentoo.org/835520
92
	mv -v "${ED}"/usr/share/zsh/{vendor-completions,site-functions} || die
93

  
94
	# https://bugs.gentoo.org/840320
95
	insinto /etc/dpkg/origins
96
	newins - gentoo <<-_EOF_
97
		Vendor: Gentoo
98
		Vendor-URL: https://www.gentoo.org/
99
		Bugs: https://bugs.gentoo.org/
100
	_EOF_
101
	dosym gentoo /etc/dpkg/origins/default
102

  
87 103
	keepdir \
88 104
		/usr/$(get_libdir)/db/methods/{mnt,floppy,disk} \
89 105
		/var/lib/dpkg/{alternatives,info,parts,updates}
Thank you!