1 |
commit: 978cfedeaa8ab81f979532d0a8e5f4140201cdd0 |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 7 14:37:20 2018 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 7 16:24:37 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=978cfede |
7 |
|
8 |
app-emulation/libguestfs: 1.36.15 → 1.38.6 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/663380 |
11 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
12 |
Signed-off-by: Gilles Dartiguelongue <eva <AT> gentoo.org> |
13 |
|
14 |
app-emulation/libguestfs/Manifest | 1 + |
15 |
...-failure-when-not-built-with-OCaml-suppor.patch | 40 +++++ |
16 |
...build-time-requirement-on-bash-completion.patch | 45 ++++++ |
17 |
app-emulation/libguestfs/libguestfs-1.38.6.ebuild | 174 +++++++++++++++++++++ |
18 |
4 files changed, 260 insertions(+) |
19 |
|
20 |
diff --git a/app-emulation/libguestfs/Manifest b/app-emulation/libguestfs/Manifest |
21 |
index 59a48fc2b5e..b72e0e45769 100644 |
22 |
--- a/app-emulation/libguestfs/Manifest |
23 |
+++ b/app-emulation/libguestfs/Manifest |
24 |
@@ -1,2 +1,3 @@ |
25 |
DIST libguestfs-1.36.13.tar.gz 22886310 BLAKE2B b0961cc6b941f1b68bba23af72e8b5478ed33da6f343e453f90decd7454cfc6a94cf67a81ad59c443df744727afa9bd4e98c77411efc4134e3422eaae59ffff5 SHA512 7c9799d5d563ffd8296f70a8402582aba85f3bf3c0dcaa18c44ecff5b7f771a3bc3f297aa85a4056351758298c79752d456a4b46e41924ff9acf196c992d51fb |
26 |
DIST libguestfs-1.36.15.tar.gz 22256729 BLAKE2B 7ed9c0010ffe6b904b055068e86544f12a884ff52f1f3322a3014574310de9a69077d1865e641ad8304149d1a2eb0d0fbc5e107c93a9790135dc543592da68a6 SHA512 a918bc886b60340d748093bdcca3a048ed26b31508ba256cd7903b76798816e54f836446d9286f7c452fa0d4fa82c0c1216606d01fce2ada9d7386fa463857c7 |
27 |
+DIST libguestfs-1.38.6.tar.gz 23284845 BLAKE2B 005aaef731e1711dc5f4552dbecff80f2c7a79fd8a13f6b79675b0a381dcd7b9ad16867ed0dda73a9f20ab0a7e03892b5ebffa5436b870613233fbd2024ca846 SHA512 20a254f1d6a4628a11f42c08947d1165430a020030da7e6ee7b22859b552245e8f3822a2d86c60055878ca00d8f17d346a0ad8274e8f0bb03ef4a9410b9630f1 |
28 |
|
29 |
diff --git a/app-emulation/libguestfs/files/1.38/0001-Fix-install-failure-when-not-built-with-OCaml-suppor.patch b/app-emulation/libguestfs/files/1.38/0001-Fix-install-failure-when-not-built-with-OCaml-suppor.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..cb608beca08 |
32 |
--- /dev/null |
33 |
+++ b/app-emulation/libguestfs/files/1.38/0001-Fix-install-failure-when-not-built-with-OCaml-suppor.patch |
34 |
@@ -0,0 +1,40 @@ |
35 |
+From 3b06e1cbb25615495ef108d6ee194bb718e46408 Mon Sep 17 00:00:00 2001 |
36 |
+From: Gilles Dartiguelongue <eva@g.o> |
37 |
+Date: Fri, 7 Dec 2018 11:21:25 +0100 |
38 |
+Subject: [PATCH 1/2] Fix install failure when not built with OCaml support |
39 |
+ |
40 |
+Makefile rules in po/ require builder/index-parse.c to be generated to |
41 |
+allow translation utilities to work on it, however builder/ is |
42 |
+completely masked behind OCaml conditional build even if some tools do |
43 |
+not require it and proper guards are in place already. |
44 |
+ |
45 |
+Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1614502 |
46 |
+--- |
47 |
+ Makefile.am | 4 +++- |
48 |
+ 1 file changed, 3 insertions(+), 1 deletion(-) |
49 |
+ |
50 |
+diff --git a/Makefile.am b/Makefile.am |
51 |
+index cc363341f..5d96093a1 100644 |
52 |
+--- a/Makefile.am |
53 |
++++ b/Makefile.am |
54 |
+@@ -164,7 +164,6 @@ SUBDIRS += common/mlvisit |
55 |
+ SUBDIRS += common/mlxml |
56 |
+ SUBDIRS += common/mltools |
57 |
+ SUBDIRS += customize |
58 |
+-SUBDIRS += builder builder/templates |
59 |
+ SUBDIRS += get-kernel |
60 |
+ SUBDIRS += resize |
61 |
+ SUBDIRS += sparsify |
62 |
+@@ -178,6 +177,9 @@ SUBDIRS += dib |
63 |
+ endif |
64 |
+ endif |
65 |
+ |
66 |
++# Tools mixed with more OCAML based tools |
67 |
++SUBDIRS += builder builder/templates |
68 |
++ |
69 |
+ # Perl tools. |
70 |
+ if HAVE_TOOLS |
71 |
+ SUBDIRS += tools |
72 |
+-- |
73 |
+2.19.2 |
74 |
+ |
75 |
|
76 |
diff --git a/app-emulation/libguestfs/files/1.38/0002-Loosen-build-time-requirement-on-bash-completion.patch b/app-emulation/libguestfs/files/1.38/0002-Loosen-build-time-requirement-on-bash-completion.patch |
77 |
new file mode 100644 |
78 |
index 00000000000..e68a4b0bded |
79 |
--- /dev/null |
80 |
+++ b/app-emulation/libguestfs/files/1.38/0002-Loosen-build-time-requirement-on-bash-completion.patch |
81 |
@@ -0,0 +1,45 @@ |
82 |
+From b8a31fcfe81a680ffed1fa0879ac20a3e0e8753a Mon Sep 17 00:00:00 2001 |
83 |
+From: Gilles Dartiguelongue <eva@g.o> |
84 |
+Date: Fri, 7 Dec 2018 12:14:15 +0100 |
85 |
+Subject: [PATCH 2/2] Loosen build time requirement on bash-completion |
86 |
+ |
87 |
+Distributions might avoid pulling bash-completion during build as it is |
88 |
+an optional feature and would only make sense at runtime anyway. Since |
89 |
+this setting is well-known across a given distribution, allow them to |
90 |
+provide the value and avoid the dependency. |
91 |
+--- |
92 |
+ m4/guestfs-bash-completion.m4 | 21 ++++++++++----------- |
93 |
+ 1 file changed, 10 insertions(+), 11 deletions(-) |
94 |
+ |
95 |
+diff --git a/m4/guestfs-bash-completion.m4 b/m4/guestfs-bash-completion.m4 |
96 |
+index 1975b8c03..9a38ab2d6 100644 |
97 |
+--- a/m4/guestfs-bash-completion.m4 |
98 |
++++ b/m4/guestfs-bash-completion.m4 |
99 |
+@@ -16,14 +16,13 @@ |
100 |
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
101 |
+ |
102 |
+ dnl Bash completion. |
103 |
+-PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0], [ |
104 |
+- bash_completion=yes |
105 |
+- AC_MSG_CHECKING([for bash-completions directory]) |
106 |
+- BASH_COMPLETIONS_DIR="`pkg-config --variable=completionsdir bash-completion`" |
107 |
+- AC_MSG_RESULT([$BASH_COMPLETIONS_DIR]) |
108 |
+- AC_SUBST([BASH_COMPLETIONS_DIR]) |
109 |
+-],[ |
110 |
+- bash_completion=no |
111 |
+- AC_MSG_WARN([bash-completion not installed]) |
112 |
+-]) |
113 |
+-AM_CONDITIONAL([HAVE_BASH_COMPLETION],[test "x$bash_completion" = "xyes"]) |
114 |
++AC_ARG_WITH([bashcompletiondir], |
115 |
++ AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completions directory]), |
116 |
++ [], |
117 |
++ [AS_IF([$($PKG_CONFIG --exists bash-completion)], [ |
118 |
++ with_bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion) |
119 |
++ ] , [ |
120 |
++ with_bashcompletiondir=${datadir}/bash-completion/completions |
121 |
++ ])]) |
122 |
++AC_SUBST([BASH_COMPLETIONS_DIR], [$with_bashcompletiondir]) |
123 |
++AM_CONDITIONAL([HAVE_BASH_COMPLETION],[test -n "$with_bashcompletiondir"]) |
124 |
+-- |
125 |
+2.19.2 |
126 |
+ |
127 |
|
128 |
diff --git a/app-emulation/libguestfs/libguestfs-1.38.6.ebuild b/app-emulation/libguestfs/libguestfs-1.38.6.ebuild |
129 |
new file mode 100644 |
130 |
index 00000000000..7da9fbcf7a2 |
131 |
--- /dev/null |
132 |
+++ b/app-emulation/libguestfs/libguestfs-1.38.6.ebuild |
133 |
@@ -0,0 +1,174 @@ |
134 |
+# Copyright 1999-2018 Gentoo Authors |
135 |
+# Distributed under the terms of the GNU General Public License v2 |
136 |
+ |
137 |
+EAPI=6 |
138 |
+ |
139 |
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} ) |
140 |
+ |
141 |
+inherit autotools bash-completion-r1 eapi7-ver eutils linux-info perl-functions python-single-r1 xdg-utils |
142 |
+ |
143 |
+MY_PV_1="$(ver_cut 1-2)" |
144 |
+MY_PV_2="$(ver_cut 2)" |
145 |
+[[ $(( ${MY_PV_2} % 2 )) -eq 0 ]] && SD="stable" || SD="development" |
146 |
+ |
147 |
+DESCRIPTION="Tools for accessing, inspect and modifying virtual machine (VM) disk images" |
148 |
+HOMEPAGE="http://libguestfs.org/" |
149 |
+SRC_URI="http://libguestfs.org/download/${MY_PV_1}-${SD}/${P}.tar.gz" |
150 |
+ |
151 |
+LICENSE="GPL-2 LGPL-2" |
152 |
+SLOT="0/"${MY_PV_1}"" |
153 |
+ |
154 |
+KEYWORDS="~amd64" |
155 |
+IUSE="doc erlang +fuse gtk inspect-icons introspection libvirt lua ocaml +perl python ruby selinux static-libs systemtap test" |
156 |
+ |
157 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
158 |
+ |
159 |
+# Failures - doc |
160 |
+ |
161 |
+# FIXME: selinux support is automagic |
162 |
+COMMON_DEPEND=" |
163 |
+ sys-libs/ncurses:0= |
164 |
+ sys-devel/gettext |
165 |
+ >=app-misc/hivex-1.3.1 |
166 |
+ dev-libs/libpcre:3 |
167 |
+ app-arch/cpio |
168 |
+ dev-lang/perl |
169 |
+ virtual/cdrtools |
170 |
+ >=app-emulation/qemu-2.0[qemu_softmmu_targets_x86_64,systemtap?,selinux?,filecaps] |
171 |
+ sys-apps/fakeroot |
172 |
+ sys-apps/file |
173 |
+ libvirt? ( app-emulation/libvirt ) |
174 |
+ dev-libs/libxml2:2 |
175 |
+ >=sys-apps/fakechroot-2.8 |
176 |
+ >=app-admin/augeas-1.8.0 |
177 |
+ sys-fs/squashfs-tools:* |
178 |
+ dev-libs/libconfig |
179 |
+ sys-libs/readline:0= |
180 |
+ >=sys-libs/db-4.6:* |
181 |
+ app-arch/xz-utils |
182 |
+ app-arch/lzma |
183 |
+ app-crypt/gnupg |
184 |
+ app-arch/unzip[natspec] |
185 |
+ perl? ( |
186 |
+ virtual/perl-ExtUtils-MakeMaker |
187 |
+ >=dev-perl/Sys-Virt-0.2.4 |
188 |
+ virtual/perl-Getopt-Long |
189 |
+ virtual/perl-Data-Dumper |
190 |
+ dev-perl/libintl-perl |
191 |
+ >=app-misc/hivex-1.3.1[perl?] |
192 |
+ dev-perl/String-ShellQuote |
193 |
+ ) |
194 |
+ python? ( ${PYTHON_DEPS} ) |
195 |
+ fuse? ( sys-fs/fuse:= ) |
196 |
+ introspection? ( |
197 |
+ >=dev-libs/glib-2.26:2 |
198 |
+ >=dev-libs/gobject-introspection-1.30.0:= |
199 |
+ ) |
200 |
+ selinux? ( |
201 |
+ sys-libs/libselinux |
202 |
+ sys-libs/libsemanage |
203 |
+ ) |
204 |
+ systemtap? ( dev-util/systemtap ) |
205 |
+ ocaml? ( >=dev-lang/ocaml-4.03[ocamlopt] ) |
206 |
+ erlang? ( dev-lang/erlang ) |
207 |
+ inspect-icons? ( |
208 |
+ media-libs/netpbm |
209 |
+ media-gfx/icoutils |
210 |
+ ) |
211 |
+ virtual/acl |
212 |
+ sys-libs/libcap |
213 |
+ lua? ( dev-lang/lua:* ) |
214 |
+ >=dev-libs/yajl-2.0.4 |
215 |
+ gtk? ( |
216 |
+ sys-apps/dbus |
217 |
+ x11-libs/gtk+:3 |
218 |
+ ) |
219 |
+ net-libs/libtirpc |
220 |
+ sys-libs/libxcrypt |
221 |
+ " |
222 |
+DEPEND="${COMMON_DEPEND} |
223 |
+ dev-util/gperf |
224 |
+ >=dev-lang/ocaml-4.03[ocamlopt] |
225 |
+ dev-ml/findlib[ocamlopt] |
226 |
+ dev-ml/ocaml-gettext |
227 |
+ >=dev-ml/ounit-2 |
228 |
+ doc? ( app-text/po4a ) |
229 |
+ ruby? ( dev-lang/ruby virtual/rubygems dev-ruby/rake ) |
230 |
+ test? ( introspection? ( dev-libs/gjs ) ) |
231 |
+ " |
232 |
+RDEPEND="${COMMON_DEPEND} |
233 |
+ app-emulation/libguestfs-appliance |
234 |
+ " |
235 |
+ |
236 |
+DOCS=( AUTHORS BUGS ChangeLog HACKING README TODO ) |
237 |
+ |
238 |
+PATCHES=( |
239 |
+ "${FILESDIR}"/${MY_PV_1}/ |
240 |
+) |
241 |
+ |
242 |
+pkg_setup () { |
243 |
+ CONFIG_CHECK="~KVM ~VIRTIO" |
244 |
+ [ -n "${CONFIG_CHECK}" ] && check_extra_config; |
245 |
+ |
246 |
+ use python && python-single-r1_pkg_setup |
247 |
+} |
248 |
+ |
249 |
+src_prepare() { |
250 |
+ default |
251 |
+ xdg_environment_reset |
252 |
+ eautoreconf |
253 |
+} |
254 |
+ |
255 |
+src_configure() { |
256 |
+ # Disable feature test for kvm for more reason |
257 |
+ # i.e: not loaded module in __build__ time, |
258 |
+ # build server not supported kvm, etc. ... |
259 |
+ # |
260 |
+ # In fact, this feature is virtio support and requires |
261 |
+ # configured kernel. |
262 |
+ export vmchannel_test=no |
263 |
+ |
264 |
+ econf \ |
265 |
+ --with-bashcompletiondir="$(get_bashcompdir)" \ |
266 |
+ $(use_with libvirt) \ |
267 |
+ --disable-appliance \ |
268 |
+ --disable-daemon \ |
269 |
+ --with-extra="-gentoo" \ |
270 |
+ --with-readline \ |
271 |
+ --disable-php \ |
272 |
+ $(use_enable python) \ |
273 |
+ --without-java \ |
274 |
+ $(use_enable perl) \ |
275 |
+ $(use_enable fuse) \ |
276 |
+ $(use_enable ocaml) \ |
277 |
+ $(use_enable ruby) \ |
278 |
+ --disable-haskell \ |
279 |
+ --disable-golang \ |
280 |
+ $(use_enable introspection gobject) \ |
281 |
+ $(use_enable introspection) \ |
282 |
+ $(use_enable erlang) \ |
283 |
+ $(use_enable static-libs static) \ |
284 |
+ $(use_enable systemtap probes) \ |
285 |
+ $(use_enable lua) \ |
286 |
+ --with-gtk=$(usex gtk 3 no) \ |
287 |
+ $(usex doc '' PO4A=no) |
288 |
+} |
289 |
+ |
290 |
+src_install() { |
291 |
+ strip-linguas -i po |
292 |
+ emake DESTDIR="${D}" install "LINGUAS=""${LINGUAS}""" |
293 |
+ find "${ED}" -name '*.la' -delete || die |
294 |
+ use perl && perl_delete_localpod |
295 |
+} |
296 |
+ |
297 |
+pkg_postinst() { |
298 |
+ if ! use gtk ; then |
299 |
+ einfo "virt-p2v NOT installed" |
300 |
+ fi |
301 |
+ if ! use ocaml ; then |
302 |
+ einfo "Ocaml based tools and bindings (sysprep, ...) NOT installed" |
303 |
+ fi |
304 |
+ if ! use perl ; then |
305 |
+ einfo "Perl based tools NOT build" |
306 |
+ fi |
307 |
+} |