desiderantes / stew

Simple buid system for the 21st century
GNU General Public License v3.0
2 stars 0 forks source link

Default install target does not match traditional /usr/local #10

Open desiderantes opened 7 years ago

desiderantes commented 7 years ago

Normally if I download a source tarball for any program and run 'make' and then 'make install', the program is installed in /usr/local by default. I can configure with prefix=/usr if I want to override this.

But when I download the bake tarball and run 'make' and then 'make install', bake ends up in /usr (specifically in /usr/bin). It would be more consistent with other programs to go in /usr/local by default.

Launchpad Details: #LP1162593 Adam Dingle - 2013-03-31 21:29:31 +0000

desiderantes commented 7 years ago

I used to have it install to /usr/local but I changed it recently.

I've been thinking about this for a while, but not 100% sure the correct direction. My thoughts so far:

Launchpad Details: #LPC Robert Ancell - 2013-04-01 08:25:28 +0000

desiderantes commented 7 years ago

One more, I plan on having a ~/.config/bake/Recipe.conf that all programs will have at their toplevel recipe tree. So inside there you can specify root-directory and override the built-in defaults.

Launchpad Details: #LPC Robert Ancell - 2013-04-01 08:26:19 +0000

desiderantes commented 7 years ago

"I plan on having a ~/.config/bake/Recipe.conf that all programs will have at their toplevel recipe tree. So inside there you can specify root-directory and override the built-in defaults."

Yes please! I've noticed that existing build systems spend a lot of code on detecting the proper paths to install everything. Wouldn't it be great if each distribution just had a default Bake config with all the variables like location of executable-but-internal files (libexec) defined in there?

Also I assume power users would require managing several profiles, so that they can e.g. install something to their home folder or to a chroot or to /usr/local/ instead of /usr/ simply by specifying a profile that contains the overrides.

Launchpad Details: #LPC Sergey "Shnatsel" Davidoff - 2013-09-16 10:46:37 +0000