Void Linux discussion
 help / color / mirror / Atom feed
* Libraries in program-packages?
@ 2015-01-16 20:01 Stefan Mühlinghaus
  2015-01-16 20:07 ` Juan RP
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Mühlinghaus @ 2015-01-16 20:01 UTC (permalink / raw)
  To: voidlinux


[-- Attachment #1.1: Type: text/plain, Size: 816 bytes --]

I am currently in the process of creating a package for a closed-source 
binary program that depends on several older library versions. What is the 
preferred way to deal with this problem? I would rather not put an older 
version of the libraries as independant packages into the repositories only 
to get this one package working (that should be recompiled and linked 
against current versions anyway).

My current approach is to build the libraries with the program, install 
them into a library-subfolder and run the program with an appropriate 
LD_LIBRARY_PATH. Is this acceptable? Are there other alternatives?

Another problem is that the automatic ELF dependency detection process 
fails since the required libraries are not provided by any package. Is 
there a way to circumvent these errors?

[-- Attachment #1.2: Type: text/html, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Libraries in program-packages?
  2015-01-16 20:01 Libraries in program-packages? Stefan Mühlinghaus
@ 2015-01-16 20:07 ` Juan RP
  0 siblings, 0 replies; 2+ messages in thread
From: Juan RP @ 2015-01-16 20:07 UTC (permalink / raw)
  To: voidlinux


[-- Attachment #1.1: Type: text/plain, Size: 510 bytes --]

Hi,

- Adding the missing shared libraries to the package into a private 
directory and using LD_LIBRARY_PATH is perfectly fine,
  you can create a wrapper to set up this.

- Another way would be using `patchelf` to add a RPATH to the binary, this 
way you wouldn't need to use LD_LIBRARY_PATH.

To make `xbps-src` ignore the unmet shared libraries you can set 
`allow_unknown_shlibs=1` in the template to ignore them.

Either way you'll have to add the missing shared libraries into the package.

[-- Attachment #1.2: Type: text/html, Size: 550 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-16 20:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-16 20:01 Libraries in program-packages? Stefan Mühlinghaus
2015-01-16 20:07 ` Juan RP

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).