Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/rpm/
Date: Mon, 03 Dec 2018 15:22:20
Message-Id: 1543850521.00428d63e09c8eb5378deec5a09679547020bc83.candrews@gentoo
1 commit: 00428d63e09c8eb5378deec5a09679547020bc83
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 26 21:28:17 2018 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 3 15:22:01 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00428d63
7
8 app-arch/rpm: 4.14.2.1 version bump
9
10 Closes: https://bugs.gentoo.org/672018
11 Closes: https://bugs.gentoo.org/661610
12 Closes: https://bugs.gentoo.org/594574
13 Package-Manager: Portage-2.3.52, Repoman-2.3.12
14 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
15
16 app-arch/rpm/Manifest | 1 +
17 app-arch/rpm/rpm-4.14.2.1.ebuild | 139 +++++++++++++++++++++++++++++++++++++++
18 2 files changed, 140 insertions(+)
19
20 diff --git a/app-arch/rpm/Manifest b/app-arch/rpm/Manifest
21 index cf290957c92..4757fa13f69 100644
22 --- a/app-arch/rpm/Manifest
23 +++ b/app-arch/rpm/Manifest
24 @@ -1 +1,2 @@
25 DIST rpm-4.14.1.tar.bz2 4103880 BLAKE2B 3fa7579a251b02ec89943b5505ad9ca7303a444eb64b1018fc74bc6dfb1c19d4f30d96189172c4450925f3357174cde70b298116b53b9155223b52a593a67aea SHA512 29e95eaaf40a6ddf7f23446ea6cb8a1dcd12a45d4965595a705cb9130890d772a40ecfa475b189865da51248b3d2414e4f4b1a40cbfd7ca538c482d87c50a218
26 +DIST rpm-4.14.2.1.tar.bz2 4156574 BLAKE2B 2eb0cf621eecef7d8977d28d52be922156ceb64b14d2aefda0f5a927b90cf3d3e9c055d773e05ed52422254397153b79557dc94bdb43ca28a2ea126153a43c1f SHA512 0aad457f91918904c15649a1764ce7cbfaf38e083678031286e866f7997be0435a6b7b73596706d97e9263cff7b4df4a3150b142d81e6e3fddbfcf67bd83f990
27
28 diff --git a/app-arch/rpm/rpm-4.14.2.1.ebuild b/app-arch/rpm/rpm-4.14.2.1.ebuild
29 new file mode 100644
30 index 00000000000..7d1e6c3e056
31 --- /dev/null
32 +++ b/app-arch/rpm/rpm-4.14.2.1.ebuild
33 @@ -0,0 +1,139 @@
34 +# Copyright 1999-2018 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
40 +
41 +inherit autotools flag-o-matic perl-module python-single-r1 eapi7-ver
42 +
43 +DESCRIPTION="Red Hat Package Management Utils"
44 +HOMEPAGE="http://www.rpm.org
45 + https://github.com/rpm-software-management/rpm"
46 +SRC_URI="http://ftp.rpm.org/releases/rpm-$(ver_cut 1-2).x/${P}.tar.bz2"
47 +
48 +LICENSE="GPL-2 LGPL-2"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
51 +
52 +# Tests are broken. See bug 657500
53 +RESTRICT="test"
54 +
55 +IUSE="acl caps doc dbus lua nls python selinux test zstd"
56 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
57 +
58 +CDEPEND="!app-arch/rpm5
59 + app-arch/libarchive
60 + >=sys-libs/db-4.5:*
61 + >=sys-libs/zlib-1.2.3-r1
62 + >=app-arch/bzip2-1.0.1
63 + >=dev-libs/popt-1.7
64 + >=app-crypt/gnupg-1.2
65 + dbus? ( sys-apps/dbus )
66 + dev-libs/elfutils
67 + virtual/libintl
68 + >=dev-lang/perl-5.8.8
69 + dev-libs/nss
70 + python? ( ${PYTHON_DEPS} )
71 + nls? ( virtual/libintl )
72 + lua? ( >=dev-lang/lua-5.1.0:*[deprecated] )
73 + acl? ( virtual/acl )
74 + caps? ( >=sys-libs/libcap-2.0 )
75 + zstd? ( app-arch/zstd )
76 +"
77 +DEPEND="${CDEPEND}
78 + nls? ( sys-devel/gettext )
79 + doc? ( app-doc/doxygen )
80 + virtual/pkgconfig
81 + test? ( sys-apps/fakechroot )
82 +"
83 +RDEPEND="${CDEPEND}
84 + selinux? ( sec-policy/selinux-rpm )
85 +"
86 +
87 +pkg_setup() {
88 + use python && python-single-r1_pkg_setup
89 +}
90 +
91 +src_prepare() {
92 + eapply "${FILESDIR}"/${PN}-4.11.0-autotools.patch
93 + eapply "${FILESDIR}"/${PN}-4.8.1-db-path.patch
94 + eapply "${FILESDIR}"/${PN}-4.9.1.2-libdir.patch
95 +
96 + # fix #356769
97 + sed -i 's:%{_var}/tmp:/var/tmp:' macros.in || die "Fixing tmppath failed"
98 + # fix #492642
99 + sed -i "s:@__PYTHON@:${PYTHON}:" macros.in || die "Fixing %__python failed"
100 +
101 + eapply_user
102 +
103 + eautoreconf
104 +
105 + # Prevent automake maintainer mode from kicking in (#450448).
106 + touch -r Makefile.am preinstall.am
107 +}
108 +
109 +src_configure() {
110 + append-cppflags -I"${EPREFIX}/usr/include/nss" -I"${EPREFIX}/usr/include/nspr"
111 + econf \
112 + --without-selinux \
113 + --with-external-db \
114 + --with-crypto=nss \
115 + $(use_enable python) \
116 + $(use_with doc hackingdocs) \
117 + $(use_enable nls) \
118 + $(use_with dbus) \
119 + $(use_with lua) \
120 + $(use_with caps cap) \
121 + $(use_with acl) \
122 + $(use_enable zstd zstd $(usex zstd yes no))
123 +}
124 +
125 +src_install() {
126 + default
127 +
128 + # remove la files
129 + find "${ED}" -name '*.la' -delete || die
130 +
131 + # fix symlinks to /bin/rpm (#349840)
132 + for binary in rpmquery rpmverify;do
133 + ln -sf rpm "${ED}"/usr/bin/${binary} || die
134 + done
135 +
136 + if ! use nls; then
137 + rm -rf "${ED}"/usr/share/man/?? || die
138 + fi
139 +
140 + keepdir /usr/src/rpm/{SRPMS,SPECS,SOURCES,RPMS,BUILD}
141 +
142 + dodoc CREDITS README*
143 + if use doc; then
144 + for docname in hacking librpm; do
145 + docinto "html/${docname}"
146 + dodoc -r "doc/${docname}/html/."
147 + done
148 + fi
149 +
150 + # Fix perllocal.pod file collision
151 + perl_delete_localpod
152 +}
153 +
154 +src_test() {
155 + # Known to fail with FEATURES=usersandbox (bug #657500):
156 + if has usersandbox $FEATURES ; then
157 + ewarn "You are emerging ${P} with 'usersandbox' enabled." \
158 + "Expect some test failures or emerge with 'FEATURES=-usersandbox'!"
159 + fi
160 +
161 + emake check
162 +}
163 +
164 +pkg_postinst() {
165 + if [[ -f "${EROOT}"/var/lib/rpm/Packages ]] ; then
166 + einfo "RPM database found... Rebuilding database (may take a while)..."
167 + "${EROOT}"/usr/bin/rpmdb --rebuilddb --root="${EROOT}" || die
168 + else
169 + einfo "No RPM database found... Creating database..."
170 + "${EROOT}"/usr/bin/rpmdb --initdb --root="${EROOT}" || die
171 + fi
172 +}