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: Tue, 28 May 2019 12:38:05
Message-Id: 1559047072.0254c45402d1994b4c954a8a37ff91b8fa42e4f3.polynomial-c@gentoo
1 commit: 0254c45402d1994b4c954a8a37ff91b8fa42e4f3
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 28 11:42:43 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue May 28 12:37:52 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0254c454
7
8 sys-libs/e2fsprogs-libs: Bump to version 1.45.2
9
10 Package-Manager: Portage-2.3.67, Repoman-2.3.13
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-libs/e2fsprogs-libs/Manifest | 1 +
14 .../e2fsprogs-libs/e2fsprogs-libs-1.45.2.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 1e2492d6aca..25bac2ae121 100644
19 --- a/sys-libs/e2fsprogs-libs/Manifest
20 +++ b/sys-libs/e2fsprogs-libs/Manifest
21 @@ -2,3 +2,4 @@ DIST e2fsprogs-1.44.5.tar.xz 5375996 BLAKE2B a6069e7c4889cdd3a30d94994d179c024ed
22 DIST e2fsprogs-1.44.6.tar.xz 5378560 BLAKE2B 1430e87fbfc81cf299c3b577c46309e2ca2ff5a8de7121a9aab7a8ea49693fd1053f3f034c4f9105b2cc0c3395b7887d3284493c9105287c4f03deebc237ace5 SHA512 725ff908148b55d9417aa9e01f514feb434c43441f7104c61d200fcdf6b30b528f62475bdffc9e1c49d3d44e1e3f2cc1e9df60025c8e3d113d6edabfccf356bf
23 DIST e2fsprogs-1.45.0.tar.xz 5520532 BLAKE2B de7c27b90e68e822a8157e99d103933d98afe094765016a58dbdce4d5bebda86493c94dbf3bd009aa25063edf34a0c8229cbc1045f1041a357448619aee55de8 SHA512 208f0508dd355f29f9428758123e84d7f73d1a0bba4fcdc5abb561dc492ed1ab7e36ce369acde5c26e9efff0b980d75047d2d5910d3e49614cc68ec770dc9014
24 DIST e2fsprogs-1.45.1.tar.xz 5507236 BLAKE2B d454f0228df2079edd3b7f8ad406417ee48cacb5b62fc1c869eff21b35dafc9bbc4ffd80e6040629a8da1edac230beb3981bc43eb12b6feecf4225a9b9f335e6 SHA512 2e8974d30e92d7f194ccad7f152b495d2a6e41328b1532351f13af27ceaef5ee01d52963e17801cc7317f7b5208791bd20c9028f15a9859225f0e64d175be779
25 +DIST e2fsprogs-1.45.2.tar.xz 5560504 BLAKE2B c7764eb7fd67c422007cf2d884496babf78663ce6dab674fb023738b69e270c601dded89fc65fe4e7e1853cf8234772bfc2e28a1189b8dfd3f9e6fa34677f664 SHA512 50fdb7769c789fb143b2e4bd56e6b55eac8f84be5b7074008134fa56d980342c2307e62380f9ba6a8ab9bbc6bbf45b349aad540c8f239cf859706fd33e521e5e
26
27 diff --git a/sys-libs/e2fsprogs-libs/e2fsprogs-libs-1.45.2.ebuild b/sys-libs/e2fsprogs-libs/e2fsprogs-libs-1.45.2.ebuild
28 new file mode 100644
29 index 00000000000..79ee32709eb
30 --- /dev/null
31 +++ b/sys-libs/e2fsprogs-libs/e2fsprogs-libs-1.45.2.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
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 +}