Thoughts about D package management on Gentoo

Dicebot public at dicebot.lv
Mon Nov 11 05:22:34 PST 2013


On Sunday, 10 November 2013 at 18:14:25 UTC, Marco Leise wrote:
>> True. This why I have them all in a single PKGBUILD (ebuild 
>> analog I guess) despite those looking separate in package 
>> manager.
>
> So a single PKGBUILD can advertise multiple items to install?
> And when you later install more from the same package you just
> run the PKGBUILD again and it reinstalls everything plus the
> new options?

`PKGBUILD` in Arch Linux is simply a standard package building 
script, essentially a bash script with metadata. It is not a 
package on its own, in is used to create ones. It is convenient 
for maintenance to generate packages with a shared/related built 
process from a single PKGBUILD. This, for example, is the one for 
dmd stack : 
https://github.com/Dicebot/Arch-PKGBUILDs/blob/master/dmd/PKGBUILD

>> AFAIK no one uses D1 but company I am working for :P
>
> Yeah, and they hopefully don't use Gentoo... maybe it is time
> to drop that version if it causes trouble. I'll try to have
> at least an dmd-1.076 ebuild though. It is also a good test
> for the whole multiple versions at once idea.

Well, wish you good best luck with it :) I don't have any plans 
to support it in main repositories (actually, other TU's would 
have yelled at me even if I did as it is against Arch design :P)

> Too many smilies, hehe. Well, it should be possible to have at
> least one installable version of every package at any time.
> Unless that package hasn't been updated for 10 months or so.
> I don't want to run into a situation where you can't update
> dmd because some application isn't updated or where I do
> update dmd early and D programs can't be installed any longer
> until they work with that latest version of D.

If such package is a stand-alone application and does not seem to 
be maintained for some time it can be adjusted to use DVM to 
retrieve older version specifically to build itself. Not very 
convenient, but won't at least pollute the system with dozens of 
different compiler/phobos versions.


More information about the Digitalmars-d mailing list