Сравнение libnsl-1.3.0-r2 с libnsl-2.0.0-r1

/usr/portage/net-libs/libnsl/libnsl-2.0.0-r1.ebuild 2023-10-09 14:52:34.492368476 +0300
3 3

  
4 4
EAPI=7
5 5

  
6
inherit multilib-minimal
6
inherit multilib-minimal preserve-libs
7 7

  
8
DESCRIPTION="Public client interface for NIS(YP) and NIS+ in a IPv6 ready version"
8
DESCRIPTION="Public client interface for NIS(YP) in a IPv6 ready version"
9 9
HOMEPAGE="https://github.com/thkukuk/libnsl"
10 10
SRC_URI="https://github.com/thkukuk/${PN}/releases/download/v${PV}/${P}.tar.xz"
11 11

  
12
SLOT="0/2"
12
# This is a core package which is depended on by e.g. PAM in some cases.
13
# Please use preserve-libs.eclass in pkg_{pre,post}inst to cover users
14
# with FEATURES="-preserved-libs" or another package manager if SONAME
15
# changes.
16
SLOT="0/3"
13 17
LICENSE="LGPL-2.1+ BSD"
14

  
15
# Stabilize together with glibc-2.26!
16
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
17

  
18
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
18 19
IUSE="static-libs"
19 20

  
20
DEPEND="
21
	>=net-libs/libtirpc-1.2.0:=[${MULTILIB_USEDEP}]
22
"
21
DEPEND=">=net-libs/libtirpc-1.2.0:=[${MULTILIB_USEDEP}]"
23 22
RDEPEND="${DEPEND}
24 23
	!<sys-libs/glibc-2.26
25 24
"
26 25

  
27
PATCHES=(
28
	"${FILESDIR}"/${PN}-1.3.0-rpath.patch
29
)
30

  
31 26
multilib_src_configure() {
32 27
	local myconf=(
33 28
		--enable-shared
34 29
		$(use_enable static-libs static)
35 30
	)
31

  
36 32
	ECONF_SOURCE=${S} econf "${myconf[@]}"
37 33
}
38 34

  
......
40 36
	einstalldocs
41 37
	find "${ED}" -type f -name '*.la' -delete || die
42 38
}
39

  
40
pkg_preinst() {
41
	preserve_old_lib /usr/$(get_libdir)/libnsl.so.2
42
}
43

  
44
pkg_postinst() {
45
	preserve_old_lib_notify /usr/$(get_libdir)/libnsl.so.2
46
}
Спасибо!