Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/libguestfs/
Date: Wed, 07 Feb 2018 22:39:23
Message-Id: 1518043128.d5fdb7d569488c4f4a33a6d1cae714d45b5a4f56.eva@gentoo
1 commit: d5fdb7d569488c4f4a33a6d1cae714d45b5a4f56
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 7 22:34:53 2018 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 7 22:38:48 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5fdb7d5
7
8 app-emulation/libguestfs: version bump 1.36.5 → 1.36.13
9
10 * Now compatible with >=glibc-2.26, bug #638180.
11 * Make sure USE=introspection explicitely passes configure switch as we
12 might split glib/gobject from introspection at some point.
13 * Switch to perl-functions eclass as advised in bug #629946.
14 * Restore USE=ocaml as I could not bug #629490 from provided info.
15 * Fix pkg_postinst feature check on USE=gtk.
16 * Fix build with FEATURES=test by disabling -Werror always. It makes no
17 sense to enable this flag for a release, bug #640494.
18 * Add myself to maintainers.
19
20 Closes: https://bugs.gentoo.org/629690
21 Closes: https://bugs.gentoo.org/629946
22 Closes: https://bugs.gentoo.org/638180
23 Closes: https://bugs.gentoo.org/640494
24
25 Package-Manager: Portage-2.3.24, Repoman-2.3.6
26
27 app-emulation/libguestfs/Manifest | 1 +
28 app-emulation/libguestfs/libguestfs-1.36.13.ebuild | 173 +++++++++++++++++++++
29 app-emulation/libguestfs/metadata.xml | 4 +
30 3 files changed, 178 insertions(+)
31
32 diff --git a/app-emulation/libguestfs/Manifest b/app-emulation/libguestfs/Manifest
33 index d3685b72382..6dd41368a28 100644
34 --- a/app-emulation/libguestfs/Manifest
35 +++ b/app-emulation/libguestfs/Manifest
36 @@ -1,2 +1,3 @@
37 DIST libguestfs-1.28.5.tar.gz 12747537 BLAKE2B b0cc023efef41955c4b448b68bd5578d88d305364afdc1fc24c7d26ba5fae4a1b81ee58799d42774ea28e162208edbf36a0e49c1a7e4f751c74e9c45e9a472a6 SHA512 5ab25498fa9141950c1077cc52bae05a2781fa86a983b5fa49fbd4a4bca70710db3d4f7b9f45fb6f8b4ee8e3d77ffde7c4c0d9e9e526443e2a8251a62306ebb6
38 +DIST libguestfs-1.36.13.tar.gz 22886310 BLAKE2B b0961cc6b941f1b68bba23af72e8b5478ed33da6f343e453f90decd7454cfc6a94cf67a81ad59c443df744727afa9bd4e98c77411efc4134e3422eaae59ffff5 SHA512 7c9799d5d563ffd8296f70a8402582aba85f3bf3c0dcaa18c44ecff5b7f771a3bc3f297aa85a4056351758298c79752d456a4b46e41924ff9acf196c992d51fb
39 DIST libguestfs-1.36.5.tar.gz 23012703 BLAKE2B 31dcbef2ae1c287c4a353f671e6073cdb4eb2c7173666ff9589ed0e0ce909c2dfa00f2da14b40a0a6a9384dd830082f1f721b0c1dafabe2862391f0f75ff3f3d SHA512 01f10ab902386130f0565f53d0c361b903d6790b572e5562a2180e896952ead2e7661795bd976a7e2442887ea17014a6767db8b6e575de634f32de82ca4124c6
40
41 diff --git a/app-emulation/libguestfs/libguestfs-1.36.13.ebuild b/app-emulation/libguestfs/libguestfs-1.36.13.ebuild
42 new file mode 100644
43 index 00000000000..16835babf72
44 --- /dev/null
45 +++ b/app-emulation/libguestfs/libguestfs-1.36.13.ebuild
46 @@ -0,0 +1,173 @@
47 +# Copyright 1999-2018 Gentoo Foundation
48 +# Distributed under the terms of the GNU General Public License v2
49 +
50 +EAPI=6
51 +
52 +PYTHON_COMPAT=( python{2_7,3_{4,5}} )
53 +
54 +inherit autotools linux-info perl-functions python-single-r1 versionator
55 +
56 +MY_PV_1="$(get_version_component_range 1-2)"
57 +MY_PV_2="$(get_version_component_range 2)"
58 +[[ $(( $(get_version_component_range 2) % 2 )) -eq 0 ]] && SD="stable" || SD="development"
59 +
60 +DESCRIPTION="Tools for accessing, inspect and modifying virtual machine (VM) disk images"
61 +HOMEPAGE="http://libguestfs.org/"
62 +SRC_URI="http://libguestfs.org/download/${MY_PV_1}-${SD}/${P}.tar.gz"
63 +
64 +LICENSE="GPL-2 LGPL-2"
65 +SLOT="0/"${MY_PV_1}""
66 +
67 +KEYWORDS="~amd64"
68 +IUSE="bash-completion debug doc erlang +fuse gtk inspect-icons introspection lua ocaml +perl python ruby selinux static-libs systemtap test"
69 +
70 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
71 +
72 +# Failures - doc
73 +# Failures - bash-completion, see GBZ #486306
74 +
75 +# FIXME: selinux support is automagic
76 +COMMON_DEPEND="
77 + sys-libs/ncurses:0=
78 + sys-devel/gettext
79 + >=app-misc/hivex-1.3.1
80 + dev-libs/libpcre:3
81 + app-arch/cpio
82 + dev-lang/perl
83 + virtual/cdrtools
84 + >=app-emulation/qemu-2.0[qemu_softmmu_targets_x86_64,systemtap?,selinux?,filecaps]
85 + sys-apps/fakeroot
86 + sys-apps/file
87 + app-emulation/libvirt
88 + dev-libs/libxml2:2
89 + >=sys-apps/fakechroot-2.8
90 + >=app-admin/augeas-1.0.0
91 + sys-fs/squashfs-tools:*
92 + dev-libs/libconfig
93 + sys-libs/readline:0=
94 + >=sys-libs/db-4.6:*
95 + app-arch/xz-utils
96 + app-arch/lzma
97 + app-crypt/gnupg
98 + app-arch/unzip[natspec]
99 + perl? (
100 + virtual/perl-ExtUtils-MakeMaker
101 + >=dev-perl/Sys-Virt-0.2.4
102 + virtual/perl-Getopt-Long
103 + virtual/perl-Data-Dumper
104 + dev-perl/libintl-perl
105 + >=app-misc/hivex-1.3.1[perl?]
106 + dev-perl/String-ShellQuote
107 + )
108 + python? ( ${PYTHON_DEPS} )
109 + fuse? ( sys-fs/fuse:= )
110 + introspection? (
111 + >=dev-libs/glib-2.26:2
112 + >=dev-libs/gobject-introspection-1.30.0:=
113 + dev-libs/gjs
114 + )
115 + selinux? (
116 + sys-libs/libselinux
117 + sys-libs/libsemanage
118 + )
119 + systemtap? ( dev-util/systemtap )
120 + ocaml? (
121 + >=dev-lang/ocaml-4.02[ocamlopt]
122 + dev-ml/findlib[ocamlopt]
123 + dev-ml/ocaml-gettext
124 + >=dev-ml/ounit-2
125 + )
126 + erlang? ( dev-lang/erlang )
127 + inspect-icons? (
128 + media-libs/netpbm
129 + media-gfx/icoutils
130 + )
131 + virtual/acl
132 + sys-libs/libcap
133 + lua? ( dev-lang/lua:* )
134 + >=app-shells/bash-completion-2.0
135 + >=dev-libs/yajl-2.0.4
136 + gtk? (
137 + sys-apps/dbus
138 + x11-libs/gtk+:3
139 + )
140 + net-libs/libtirpc
141 + sys-libs/libxcrypt
142 + "
143 +DEPEND="${COMMON_DEPEND}
144 + dev-util/gperf
145 + doc? ( app-text/po4a )
146 + ruby? ( dev-lang/ruby virtual/rubygems dev-ruby/rake )
147 + "
148 +RDEPEND="${COMMON_DEPEND}
149 + app-emulation/libguestfs-appliance
150 + "
151 +
152 +DOCS=( AUTHORS BUGS ChangeLog HACKING README TODO )
153 +
154 +pkg_setup () {
155 + CONFIG_CHECK="~KVM ~VIRTIO"
156 + [ -n "${CONFIG_CHECK}" ] && check_extra_config;
157 +
158 + use python && python-single-r1_pkg_setup
159 +}
160 +
161 +src_prepare() {
162 + eapply "${FILESDIR}"/${MY_PV_1}/0001-Update-libtool-initialization.patch
163 + eapply "${FILESDIR}"/${MY_PV_1}/0002-Add-support-for-Gentoo-in-distribution-detection.patch
164 + eapply_user
165 + eautoreconf
166 +}
167 +
168 +src_configure() {
169 + # Disable feature test for kvm for more reason
170 + # i.e: not loaded module in __build__ time,
171 + # build server not supported kvm, etc. ...
172 + #
173 + # In fact, this feature is virtio support and requires
174 + # configured kernel.
175 + export vmchannel_test=no
176 +
177 + econf \
178 + --with-libvirt \
179 + --with-default-backend=libvirt \
180 + --disable-appliance \
181 + --disable-daemon \
182 + --with-extra="-gentoo" \
183 + --with-readline \
184 + --disable-php \
185 + $(use_enable python) \
186 + --without-java \
187 + $(use_enable perl) \
188 + $(use_enable fuse) \
189 + $($use_enable ocaml) \
190 + $(use_enable ruby) \
191 + --disable-haskell \
192 + --disable-golang \
193 + $(use_enable introspection gobject) \
194 + $(use_enable introspection) \
195 + $(use_enable erlang) \
196 + $(use_enable systemtap probes) \
197 + $(use_enable lua) \
198 + --with-gtk=$(usex gtk 3 no) \
199 + $(usex doc '' PO4A=no)
200 +}
201 +
202 +src_install() {
203 + strip-linguas -i po
204 + emake DESTDIR="${D}" install "LINGUAS=""${LINGUAS}"""
205 +
206 + use perl && perl_delete_localpod
207 +}
208 +
209 +pkg_postinst() {
210 + if ! use gtk ; then
211 + einfo "virt-p2v NOT installed"
212 + fi
213 + if ! use ocaml ; then
214 + einfo "Ocaml based tools ( sysprep , ... ) NOT installed"
215 + fi
216 + if ! use perl ; then
217 + einfo "Perl based tools NOT build"
218 + fi
219 +}
220
221 diff --git a/app-emulation/libguestfs/metadata.xml b/app-emulation/libguestfs/metadata.xml
222 index 44378eae0f7..8a1be2d16af 100644
223 --- a/app-emulation/libguestfs/metadata.xml
224 +++ b/app-emulation/libguestfs/metadata.xml
225 @@ -10,6 +10,10 @@
226 <name>Richard Jones</name>
227 <description>Upstream - please CC on bugs that concerns upstream</description>
228 </maintainer>
229 +<maintainer type="person">
230 + <email>eva@g.o</email>
231 + <name>Gilles Dartiguelongue</name>
232 +</maintainer>
233 <longdescription>Libguestfs is a library and tool set for accessing and
234 modifying virtual machine (VM) disk images</longdescription>
235 <use>