-
Notifications
You must be signed in to change notification settings - Fork 15
[Feature request] custom tag directories #86
Comments
All these cases seem to be described in #87, aren't they? |
Yes they are the same examples, but both feature requests serve a different purpose. This one is about being able to control where files get installed when using the "custom" tag. The other feature request is for more auto detection abilities. |
Remember that if the destination path doesn't start with '/', it will be $DESTDIR/$PREFIX, so "custom: file share/" will install the file "filename" inside /usr/local/share or /usr/share, depending on the building settings. |
Good to know, but doesn't solve this problem. What if the user ran |
Mmm... you are right... |
Mmm... But the user should never need to install to the lib or lib64 folder because there belong only libraries, and the decision for libraries is made by cmake/meson themselves... Is there another case where the user really need to choose between several folders? |
That isn't correct, there are also binaries, shell scripts, config files, etc in the lib directories. They are usually in subdirectories though. For example with the software OpenRC they install some binaries, config files, log files, etc into /usr/lib/openrc My libdir looks like this: Binaries that are in /usr/bin can be called by the user of the system or by other binaries/scripts. Binaries that are in /usr/lib are only supposed to be called by other binaries not by the user. Here is the FHS(File Hierarchy Standard): http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLIBLIBRARIESFORPROGRAMMINGANDPA Programs that have files that are not libraries installed in a subdir in lib: These are only a few examples, if you go through all the folders you have under /usr/lib you will notice there are things other than binaries stored there. So installing into the correct lib folder is important for software that installs those extra files into the lib folder. |
Ok, you convinced me. I'll try to do it. |
Jajaja gracias. :) |
It would be nice if the custom tag had a component to choose the correct directory for the files for both meson and cmake.
For example right now I have these custom tags:
Naturally in meson this is broken since $CMAKE_INSTALL_DATAROOTDIR is not set.
My suggestion would be to change the custom tag to this:
By having 3 arguments to the custom tag we can choose where on the system the files get installed to. This will also allow prefix installs to work correctly. For example I am using DESTDIR="$pkgdir" in a pacman PKGBUILD, which means I need the custom tag to respect the DESTDIR for the installation.
For example sysconfdir would put the correct directory "$DESTDIR/$PREFIX/etc" into the cmake/meson directories.
The text was updated successfully, but these errors were encountered: