Gentoo Archives: gentoo-commits

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