Gentoo Archives: gentoo-dev

From: Gerion Entrup <gerion.entrup@×××××.de>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Ebuild Generators (Was: GSoC 2020: Call for mentors and project ideas)
Date: Mon, 03 Feb 2020 09:42:02
Message-Id: 4207106.LvFx2qVVIh@falbala
In Reply to: [gentoo-dev] Ebuild Generators (Was: GSoC 2020: Call for mentors and project ideas) by Benda Xu
1 Am Montag, 3. Februar 2020, 05:20:42 CET schrieb Benda Xu:
2 > Gerion Entrup <gerion.entrup@×××××.de> writes:
3 >
4 > > I saw the idea „Big Data Infrastructure by Gentoo“ and found it kind of
5 > > interesting. However, I have a little bit the fear that a full automation
6 > > won't be possible and the whole project becomes a little bit like g-sorcery
7 > > (gs-pypi, gs-elpa) or g-octave: a really cool project but not used at a
8 > > large scale.
9 >
10 > Yes, that's true. I share the same observation and concern with you.
11 >
12 > This is one exception: the CRAN ebuild generator powered R overlay has
13 > been running well for 8 years.
14 >
15 > https://wiki.gentoo.org/wiki/Project:Science/Overlay/R
16 Hmm, interesting, thank you.
17
18
19 > > What do you think of the idea to not do this fully automated but supervised
20 > > by a maintainer? With that I mean an ebuild generator that generates only
21 > > the parts of the ebuild that it can easily parse and then present the ebuild
22 > > draft to a maintainer who completes it to an full ebuild. As far a I know no
23 > > tool like this exists. I think the focus shift helps a lot:
24 > > Developing a tool for the Gentoo maintainer not the Gentoo user.
25 >
26 > Yes, that makes a lot of sense. The R overlay follows this model. Most
27 > of the ebuilds are automated. When an ebuild generation fails, we add
28 > the ebuild manually, understand it and then update the generator to
29 > cover it in the future.
30 Is this possible in all cases? I think of adding custom patches,
31 appropriate mapping of dependencies, check for things like desktop icon
32 cache...
33
34
35 > > I'm only "maintaining" an overlay so maybe I'm missing experience
36 > > but I often have wished a tool that automatically parses the language specific
37 > > packaging files and is able to generate a primitive ebuild out of that.
38 > > Maybe it even can do this in an interactive way:
39 > > "Hey, upstream needs the dependency 'foo'. In the Gentoo packages I have found
40 > > 'dev-bar/foo' and 'dev-util/foo'. What is the correct one?"
41 >
42 > Yes, that's the way R overlay is working. And I have a similar plan and
43 > proof-of-concept solution for the Java Maven overlay.
44 Nice to hear. I think, it is meaningful to solve all generation with one
45 tool. Maybe it can even "recognize" the used build system and package
46 database. Is this your plan, too?
47
48
49 Best,
50 Gerion

Attachments

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

Replies

Subject Author
Re: [gentoo-dev] Ebuild Generators Benda Xu <heroxbd@g.o>