Gentoo Archives: gentoo-user

From: nunojsilva@×××××××.pt
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Running 3rd party apps intended for Ubuntu/RedHat
Date: Wed, 22 Aug 2018 10:11:21
Message-Id: pljcnj$vis$1@blaine.gmane.org
In Reply to: [gentoo-user] Running 3rd party apps intended for Ubuntu/RedHat by Grant Edwards
1 On 2018-08-21, Grant Edwards wrote:
2
3 > There are a handful of 3rd party, closed-source apps that I run on my
4 > Gentoo systems. Often they're available for RedHat or Ubuntu,
5 > sometimes for "generic" Linux.
6 >
7 > The apps for "generic" Linux usually run without too much trouble,
8 > since they tend to include most of the libraries they need bundled
9 > with the package or linked statically with the executable.
10 >
11 > Apps packaged for RedHat or Ubuntu tend to rely on the host for far
12 > more libraries (e.g. Qt or Gtk and underlying X11 stuff). Sometimes I
13 > have to copy some libraries from a RedHat or Ubuntu system and set
14 > LD_LIBRARY_PATH to point to that set of "private" libraries to get
15 > these apps running. Manually figuring out which libraries are
16 > required is a time-consuming and error-prone process. One of the ones
17 > I use regularly is going to stop working one of these days because it
18 > depends on qtwebkit-4.8, which has been EOL'ed on Gentoo. [So I'll
19 > have to grab one more library from an Ubuntu system.]
20 >
21 > I've been thinking about trying to automate this by installing the app
22 > on an Ubuntu or RedHat system and then running a bash script that uses
23 > ldd et alia to find and bundle up the set of required library files.
24 > (How deep to recurse in the tree of library dependencies will be a big
25 > question.)
26 >
27 > If I understand what containers are (never used them), it occurs to me
28 > that if I bundle up everything all the way down to libc and libgcc, I
29 > might as well be using a container, right?
30 >
31 > Is this a good use case for containers, or is there some other way to
32 > do this?
33
34 This is something I would like to do as well (grabbing all the required
35 libraries for a given binary). Unfortunately, so far I didn't have
36 enough time to look into it. But here's a link from my bookmarks, which
37 might (or not...) be useful to you:
38
39 http://www.ucc.asn.au/~dagobah/~dagobah/things/make-static.html
40
41 --
42 Nuno Silva

Replies

Subject Author
[gentoo-user] Re: Running 3rd party apps intended for Ubuntu/RedHat Grant Edwards <grant.b.edwards@×××××.com>