Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/e2fsprogs-libs/
Date: Thu, 30 Dec 2021 20:38:40
Message-Id: 1640896709.2c59cf7212e96de4d610dc4a2d502bbd0cb07d23.polynomial-c@gentoo
1 commit: 2c59cf7212e96de4d610dc4a2d502bbd0cb07d23
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 30 20:38:05 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 30 20:38:29 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c59cf72
7
8 sys-libs/e2fsprogs-libs: Bump to version 1.46.5
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 sys-libs/e2fsprogs-libs/Manifest | 1 +
13 .../e2fsprogs-libs/e2fsprogs-libs-1.46.5.ebuild | 93 ++++++++++++++++++++++
14 2 files changed, 94 insertions(+)
15
16 diff --git a/sys-libs/e2fsprogs-libs/Manifest b/sys-libs/e2fsprogs-libs/Manifest
17 index 580fc5c7611f..4a224a4c3d7e 100644
18 --- a/sys-libs/e2fsprogs-libs/Manifest
19 +++ b/sys-libs/e2fsprogs-libs/Manifest
20 @@ -1 +1,2 @@
21 DIST e2fsprogs-1.46.4.tar.xz 7035200 BLAKE2B 473f7fd3f521b94cdaa68e37784a518fc1919387dd114f31b5338f1b4c472f86b150229ec3dcae8b73eac95330c0dea729befc8cea08bcf1e455c0b6652d6d2b SHA512 7d9cfdf00ed58e66049585e8382fe4977088956421a0fb8155900c69afd8857309ad2b9301b3f74c9c0afa7287a0ddba2fd1538fcf57858b37a9ab712390016d
22 +DIST e2fsprogs-1.46.5.tar.xz 7040672 BLAKE2B 8d8c02e891c464782a7cff518c41d793fc73366b57e17d80ffc5afd96e6144e354290e667e9710509a9dde4e5dab7e7185c5bf084c5bfd26219f05e5e92e0830 SHA512 53282e1c524f62a95012b1aceef296d494f5238c82c9b08b29fbe6a803dbf7ccfdcd9124eb2f11fe2ff9de26387c78751a92c3217ca414f6db6242098a72d3fa
23
24 diff --git a/sys-libs/e2fsprogs-libs/e2fsprogs-libs-1.46.5.ebuild b/sys-libs/e2fsprogs-libs/e2fsprogs-libs-1.46.5.ebuild
25 new file mode 100644
26 index 000000000000..41da9ca3221d
27 --- /dev/null
28 +++ b/sys-libs/e2fsprogs-libs/e2fsprogs-libs-1.46.5.ebuild
29 @@ -0,0 +1,93 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit toolchain-funcs multilib-minimal usr-ldscript
36 +
37 +MY_PN=${PN%-libs}
38 +MY_P="${MY_PN}-${PV}"
39 +
40 +DESCRIPTION="e2fsprogs libraries (common error and subsystem)"
41 +HOMEPAGE="http://e2fsprogs.sourceforge.net/"
42 +SRC_URI="https://www.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v${PV}/${MY_P}.tar.xz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
47 +IUSE="static-libs"
48 +
49 +RDEPEND="!sys-libs/com_err
50 + !sys-libs/ss
51 + !<sys-fs/e2fsprogs-1.41.8"
52 +BDEPEND="virtual/pkgconfig"
53 +
54 +S="${WORKDIR}/${MY_P}"
55 +
56 +PATCHES=(
57 + "${FILESDIR}"/${PN}-1.42.13-fix-build-cflags.patch #516854
58 +)
59 +
60 +src_prepare() {
61 + default
62 +
63 + cp doc/RelNotes/v${PV}.txt ChangeLog || die "Failed to copy Release Notes"
64 +}
65 +
66 +multilib_src_configure() {
67 + local myconf=(
68 + --enable-elf-shlibs
69 + $(tc-has-tls || echo --disable-tls)
70 + --disable-e2initrd-helper
71 + --disable-fsck
72 + )
73 +
74 + # we use blkid/uuid from util-linux now
75 + if use kernel_linux ; then
76 + export ac_cv_lib_{uuid_uuid_generate,blkid_blkid_get_cache}=yes
77 + myconf+=( --disable-lib{blkid,uuid} )
78 + fi
79 +
80 + ac_cv_path_LDCONFIG=: \
81 + ECONF_SOURCE="${S}" \
82 + CC="$(tc-getCC)" \
83 + BUILD_CC="$(tc-getBUILD_CC)" \
84 + BUILD_LD="$(tc-getBUILD_LD)" \
85 + econf "${myconf[@]}"
86 +}
87 +
88 +multilib_src_compile() {
89 + emake -C lib/et V=1
90 +
91 + emake -C lib/ss V=1
92 +}
93 +
94 +multilib_src_test() {
95 + if multilib_is_native_abi; then
96 + emake -C lib/et V=1 check
97 +
98 + emake -C lib/ss V=1 check
99 + fi
100 +}
101 +
102 +multilib_src_install() {
103 + emake -C lib/et V=1 DESTDIR="${D}" install
104 +
105 + emake -C lib/ss V=1 DESTDIR="${D}" install
106 +
107 + # We call "gen_usr_ldscript -a" to ensure libs are present in /lib to support
108 + # split /usr (e.g. "e2fsck" from sys-fs/e2fsprogs is installed in /sbin and
109 + # links to libcom_err.so).
110 + gen_usr_ldscript -a com_err ss $(usex kernel_linux '' 'uuid blkid')
111 +
112 + if ! use static-libs ; then
113 + find "${ED}" -name '*.a' -delete || die
114 + fi
115 +}
116 +
117 +multilib_src_install_all() {
118 + # Package installs same header twice -- use symlink instead
119 + dosym et/com_err.h /usr/include/com_err.h
120 +
121 + einstalldocs
122 +}