jrmarino / synth

Next D/Ports build tool for live systems (Alternative for Portmaster and Portupgrade tools)
ISC License
255 stars 15 forks source link

Feature request/suggestion: fall back to /etc/make.conf when no <profile>-make.conf found #189

Open bitwise-operators opened 3 years ago

bitwise-operators commented 3 years ago

I just started using synth, and immediately ran into a surprise (after rebuilding everything): When you don't create a LiveSystem-make.conf, it doesn't use any config file, even if /etc/make.conf exists.

It would be nice if the application would fall back to /etc/make.conf, if it exists and there is no -make.conf.

Alternatively, when the system is initialized and there is an /etc/make.conf, it could be copied to LiveSystem-make.conf, to match the default profile in synth.ini.

As a third alternative, the install script could detect the presence of /etc/make.conf, and warn the user who installed synth that the application will not use it, with instructions to manually copy it to LiveSystem-make.conf (although that might be something I need to submit to the FreeBSD port maintainer, not here).

Regards, and keep up the good work!

EDIT: after rebuilding everything from scratch (again), it seems this isn't the problem. Wherever the file is located, I can't get synth to honour the DEFAULT_VERSIONS set in my make.conf.

If I specify DEFAULT_VERSIONS+=ssl=libressl, it still builds everything against openssl in base, and if I specify DEFAULT_VERSIONS+=php=7.4, I still have to specfify a flavor when I want to install a port that has php flavors.

Is this a bug, or am I doing something wrong? The same make.conf works fine when using portmaster.