-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install libraries as per GNU Coding Standards #650
base: master
Are you sure you want to change the base?
Conversation
Attaching my version that I use to build the userland packages for Raspberry Pi OS, in case there's something worth adding from there (like pkgconfig path fixes). |
Does this change also have the side effect of moving the installed libraries from |
64-bit ubuntu seems not to bother with "lib64" at all:
|
I'd vote for getting rid of /opt and sticking to standard GNU paths for everything by default. If a user wants to install to opt, then that's easy enough to do through the usual configure parameters. |
I'd have been okay with it if that happened at the beginning - but after files having been under /opt for some years, it is a bit of a pain to switch, even if that's the correct direction. Besides, I think a few bits and pieces in userland are still closed-source, so the appropriate place of installation is indeed |
Better late than never. The current setup causes headaches for multiarch support. The closed bits don't ship in this repo, so that shouldn't things. |
Do people actually want multi-arch on a pi? Seems easier just swapping an SD card! (that's what I am doing at the moment...). |
Well, it's easier because you can't just |
Also multi-arch made sense on x86_64, because there are enough older (and closed source) software, or for which re-compiling-from-source is not convenient or even an option. That's not the eco-system on pi - there is little incentive to run 32-bit binaries on 64-bit os, or vice versa. The few and must-have closed-source software on pi are basically those which are closed-source here - the broadcom firmware tools, etc. |
minecraft-pi comes to mind, but I'm sure a lot of people have software they can't easily rebuild. I'm told widevine also doesn't have an arm64 build. If it multiarch, worked from the start, we would've been able to support mathematica, accelerated chromium and vlc right away. But you're right, it's not THAT important, which is why I haven't gone out of my way to work it yet. Proper native arm64 packages are preferred wherever possible. |
Raspbian is available officially as a 64-bit release only 3 months ago? I assume mathematica etc will follow at some point. Anyway, I think some system (perhaps ubuntu?) have the policy of putting "main" libs in Anyway, my point is that |
The assumption was that this patch shouldn't cause any harm on Ubuntu/Debian derivatives (although I don't have any possibilities to test it). It also has no impact whether libraries will be installed on the |
I found that on Ubuntu there is a patch to achieve the same goal, see: https://launchpad.net/ubuntu/+source/raspberrypi-userland/0~20200520+git2fe4ca3-0ubuntu2 |
It is not available yet - I just did a |
Includes GNUInstallDirs and uses LIBDIR (instead of hardcoded lib) to install libraries. Fixes packaging on aarch64 systems where LIBDIR=lib64 (not lib). Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
I just wanted to point out that they need to patch it as well. |
I was just working on something similar for eventual inclusion into Gentoo. Please merge. |
I originally prepared that for |
Thanks @dwrobel this patch helped me with my own build of raspberrypy-vc. What are the remaining obstacles to merging it? May I help? |
Includes GNUInstallDirs and uses LIBDIR (instead of hardcoded lib)
to install libraries.
Fixes packaging on aarch64 systems where LIBDIR=lib64 (not lib).
Signed-off-by: Damian Wrobel dwrobel@ertelnet.rybnik.pl