keg_only dependencies and rpath #494
Comments
I am lost :o PS: I am using the libc which came with ubuntu (14.04), not glibc. |
Hi, Julien.
Linuxbrew does not really support After installing a bottle, Linuxbrew uses Cheers, |
thanks this is what I thought. |
What I did is add the linuxbrew lib path to my system library paths so there is no need to specifically point to it and then set the rpath to the locations of keg only libraries. For me it does the job pretty well. |
Yes, modifying |
even with the existing code why not set the rpath to include the linuxbrew lib folder and all the keg_only library paths ? |
So far I've found no use for |
I am using them in a similar way to homebrew itself, I take a base ubuntu server os and then our applications on it but I always disliked dependending on what comes with ubuntu since I have little to no control on which versions are available. Until now we simply used what came with the os to build upon, this means things like libcurl which are used by many base packages, but now with linuxbrew I should be able to take full control on what we actually use. Since I have the linuxbrew lib folder in the system path I would end up using any library installed there even with system applications which would probably a lot of things. |
If you |
I have an issue for a package with
keg_only
dependencies, after compilation the executable does not uses the correct library (checked withldd
), after fiddling around it looks like setting theRPATH
withpatchelf
would solve my issue and indeed it does but is it supposed to work out of the box ?I created a package
libcurl
but since there is one on the system already I made itkeg_only
, when compiling the environment seems correct and everything goes well, the issue is only on the final result (on a .so file in this case).calling
patchelf --set-rpath #{(Formula['libcurl'].prefix / "lib")} ...
manually in the install method worked.The text was updated successfully, but these errors were encountered: