App-perlbrew icon indicating copy to clipboard operation
App-perlbrew copied to clipboard

Feature request: configuration file

Open hoelzro opened this issue 13 years ago • 2 comments

I think perlbrew's usefulness would be further enhanced by a configuration file; one could even leverage the existing Conf.pm that is used for mirror selection. This could come in handy if I want to make sure all the perl environments I install have a certain set of compilation flags; for example -Doptimize=-O2 -Dman1dir=' ' -Dman3dir=' '. I know I could accomplish this with shell aliasing, but then I'd lose those settings if I ran perlbrew from within a script.

Also, I think that the settings for a build could be organized into profiles; that way, I could have a default profile with the example settings from above, and a debug profile with debugging enabled in the interpreter and using Perl's malloc for Devel::Peek::mstat. If I wanted to install a Perl interpreter for version 5.8.9 for debugging, I could simply do this:

perlbrew install --profile debugging perl-5.8.9 --as perl-5.8.9-debug

Thoughts?

hoelzro avatar May 17 '11 17:05 hoelzro

I'd be interested in something like profiles that could be set ahead of time and then invoked on install (with 'default' always being used if another isn't specified):

$ perlbrew profile set default -Doptimize=-O2 -Dman1dir=' ' -Dman3dir=' '
$ perlbrew install perl-5.8.9

Or for a particular profile:

$ perlbrew profile set debug -Doptimize=-O2 -Dman1dir=' ' -Dman3dir=' ' -Dusedebugging
$ perlbrew install --profile debug perl-5.8.9

dagolden avatar Dec 22 '11 20:12 dagolden

Id like to +1 this feature request.

I always forget the recipe to say "use parallelism, use ccache, etc etc", which makes builds and tests vastly faster.

EG, during install I want -j 8, and i want -Dusedevel -Dcc=ccache\ gcc -Dld=gcc to be my standard build flags.

Thanks for the great tool, it makes hacking on core much easier. Especially testing code against old versions or different configs!

Yves

demerphq avatar Feb 10 '20 06:02 demerphq