-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Automatically find dependencies on standard locations on BSD systems #4468
Comments
Because of an upstream Meson bug [1], the /usr/local prefix used by ports is not included in default Meson search paths. Do it explicitly for now. [1]: mesonbuild/meson#4468
Because of an upstream Meson bug [1], the /usr/local prefix used by ports is not included in default Meson search paths. Do it explicitly for now. [1]: mesonbuild/meson#4468
Because of an upstream Meson bug [1], the /usr/local prefix used by ports is not included in default Meson search paths. Do it explicitly for now. [1]: mesonbuild/meson#4468
Because of an upstream Meson bug [1], the /usr/local prefix used by ports is not included in default Meson search paths. Do it explicitly for now. [1]: mesonbuild/meson#4468
Because of an upstream Meson bug [1], the /usr/local prefix used by ports is not included in default Meson search paths. Do it explicitly for now. [1]: mesonbuild/meson#4468
Thanks @nomis, I used your patch earlier tonight (on MacOS though, not BSD... ) |
Related to issue mesonbuild#4468, the included example is part of a patch I found by @nomis
Related to issue mesonbuild#4468, the included example is part of a patch I found by @nomis
Apparently related to (or a duplicate of) #3929 |
@nomis @emersion You may want to test this branch that @eli-schwartz is working on. I think it's supposed to take care of this. |
Please stop trying to consider this to be a duplicate of difficulty finding The |
My projects don't need libintl. Instead, they need Also |
My suggested code for handling libintl will use the default search path of /usr/lib because it will act like cc.find_library(). It is indeed completely unrelated to (and will not fix) any /usr/local/lib problems on BSD systems. |
Note that #2239 was incorrectly closed and is (still) affected by this. |
I just ran into this as well. It looks like in the activity around the linked issue gh-2239 , the
Now this is not a blocker for me right now, because it's easily worked around by |
In gh-7746 it's pointed out that this could also be solved on the distro side (e.g., https://wiki.freebsd.org/WarnerLosh/UsrLocal). But it doesn't seem like that is moving. |
I guess it sort of depends on whether we view it as "working around a system bug" or "disrespecting the intended policy of the system". |
Hmm, I am not too familiar with BSD politics, but I can't see much of a justification for "intended policy". Seems more like a bad situation with just a lack of coordination to improve on the status quo, if I read the first paragraphs of the page linked two comments up. Either way, fixing it just for the Boost dependency in Meson but not for all dependencies is surely inconsistent? |
Allows to check build and run unit tests in FreeBSD VM. Signed-off-by: Artem Senichev <[email protected]>
Meson currently includes in
/usr/local/lib
in theget_library_dirs()
function but doesn't use this path when trying to find dependencies. It is noted that this is "probably Debian/Ubuntu specific". There's no checking of/usr/local/include
anywhere.For Boost on Windows it will attempt to search various paths in
C:\
(this is probably wrong because the system may not be installed onC:\
), but on BSD systems I have to setBOOST_ROOT
.I think Meson should include the standard locations of packages on BSD systems when searching for dependencies:
/usr/local
/usr/local
/usr/pkg
/usr/local
These are not simply the default locations when manually installing dependencies (that would be an exercise for the user in specifying the correct location), they're the standard locations when using the OS-provided package manager to install packages from a predefined list. Similar to how Debian/Ubuntu systems install packages from a predefined list to
/usr
.The text was updated successfully, but these errors were encountered: