Gentoo Archives: gentoo-dev

From: Samuel Bernardo <samuelbernardo.mail@×××××.com>
To: Gentoo Dev <gentoo-dev@l.g.o>
Subject: [gentoo-dev] Re: Opennebula ebuild
Date: Mon, 11 May 2020 00:12:16
Message-Id: 9237ac8b-1eb4-f5d3-8e70-4c1d52b107cd@gmail.com
In Reply to: [gentoo-dev] Opennebula ebuild by Samuel Bernardo
1 Hi,
2
3 I finally manage to get opennebula-5.10.4[1] hotfix version working,
4 compiling everything from source. This includes also the documentation.
5
6 If use flags docker or sunstone are selected, build will require
7 network-sandbox disabled. emerge will fail in pretend and setup phase if
8 network-sandbox was not authorized by the user.
9
10 I hope this ebuild to be useful and I'm glad to share it for Gentoo
11 community.
12
13 Best,
14
15 Samuel
16
17 [1] https://cgit.gentoo.org/repo/user/ssnb.git/tree/app-emulation/opennebula
18
19 On 5/4/20 2:00 PM, Samuel Bernardo wrote:
20 > Hi,
21 >
22 > I start to thanks all your advices from previous emails related to
23 > ebuild development.
24 >
25 > I send you this email to let off steam about the big mess to have latest
26 > OpenNebula version available in my Gentoo overlay[1]. This was the
27 > problems I had to deal with:
28 >
29 > - patch many source files with sed to change /usr/lib into /usr/lib64
30 > - pretend phase fails for use flag docker because requires
31 > -network-sandbox (I don't see value in the effort to use the
32 > docker-machine driver in opennebula, besides it was possible to get all
33 > required dependencies using EGO_SUM)
34 > - pretend phase fails for use flag sunstone in case of an hotfix release
35 > because it requires -network-sandbox (in this case is just impossible to
36 > manage npm and bower)
37 > - missing parser source files from official archive that I solved using
38 > archive from same github tag using ebuild files to add them
39 > - some files in /usr/lib64/one, /usr/share/one and /var/lib/one with
40 > executable permissions (I need to use cp -a to copy this directories to
41 > the image because the file permissions are set by their build tool, and
42 > there are so many that I haven't the time to review them in each release
43 > using the required Gentoo install functions)
44 >
45 > I send an email to upstream with all my complaints, asking them that all
46 > required dependencies for the source code must be present in the archive
47 > and not being downloaded during build.
48 >
49 > There are also compile problems for sunstone minified files using hotfix
50 > release, and that's the reason why I have those ebuilds hard masked.
51 >
52 > I also do a big improvement in ebuild code from the previous versions
53 > that I had removed since they are insecure.
54 >
55 > So in summary, is possible to install opennebula with network-sandbox
56 > but without docker-machine driver and only using stable releases without
57 > hotfixes. Anyway, the pretend phase tests for use flags docker and
58 > sunstone, and fails in case it requires -network-sandbox. So is an user
59 > decision in the end to allow -network-sandbox.
60 >
61 > Best,
62 >
63 > [1] https://cgit.gentoo.org/repo/user/ssnb.git/tree/app-emulation/opennebula
64 >

Attachments

File name MIME type
signature.asc application/pgp-signature