You are not logged in.

#1 2020-10-20 21:37:39

sxmwht
Member
Registered: 2020-05-15
Posts: 9

[SOLVED]How do I install a program with an older version of libraries?

I want to install Citrix Receiver, but it needs outdated libraries which have large security holes. I would like to run this application in a sandbox with these libraries. Is that possible using something like Docker, Snap or Flatpak?

Last edited by sxmwht (2020-10-21 13:25:47)

Offline

#2 2020-10-21 06:41:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,660

Re: [SOLVED]How do I install a program with an older version of libraries?

Which archlinux site and when he compiled it, then what?

Online

#3 2020-10-21 07:16:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,660

Re: [SOLVED]How do I install a program with an older version of libraries?

The point is that the OP asked "would like to run this application in a sandbox with these libraries" and your reply boils down to "download it from somewhere and compile it".
How does that answer the OPs question at all?

Online

#4 2020-10-21 10:43:45

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,387

Re: [SOLVED]How do I install a program with an older version of libraries?

Check https://wiki.archlinux.org/index.php/Se … plications and make sure to follow the links.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2020-10-21 10:48:25

sxmwht
Member
Registered: 2020-05-15
Posts: 9

Re: [SOLVED]How do I install a program with an older version of libraries?

Lone_Wolf wrote:

Check https://wiki.archlinux.org/index.php/Se … plications and make sure to follow the links.

Thanks. That mentions Linux containers which were also mentioned by a colleague. I will give them a look

Offline

#6 2020-10-21 11:37:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,660

Re: [SOLVED]How do I install a program with an older version of libraries?

You do not need to use a container.
If you only want to ensure the application is used w/ a different version of a library and can use the rest of the software stack, get an older version of the librar{y,ies} and use LD_LIBRARY_PATH or LD_PRELOAD to ensure the linker resolves that version.
Where to get the lib specifically and how to build it actually depends on the specific library in question.
You can posibly lift the PKGBUILD of the current library and adjust the intallation path to build a package (but you'll also have to alter the package identifier to avoid a collision w/ the existing package)

Me being a lazy ass would just fetch the library source, build it, copy the resulting shared object into (probably) /opt/Citrix/ICAClient and ensure that's at front of the LD_LIBRARY_PATH

Also, do you use https://aur.archlinux.org/packages/icaclient/ ? There seems no "helps, I needs old library of foobar" comment?

Online

#7 2020-10-21 12:41:33

sxmwht
Member
Registered: 2020-05-15
Posts: 9

Re: [SOLVED]How do I install a program with an older version of libraries?

seth wrote:

You do not need to use a container.
If you only want to ensure the application is used w/ a different version of a library and can use the rest of the software stack, get an older version of the librar{y,ies} and use LD_LIBRARY_PATH or LD_PRELOAD to ensure the linker resolves that version.
Where to get the lib specifically and how to build it actually depends on the specific library in question.
You can posibly lift the PKGBUILD of the current library and adjust the intallation path to build a package (but you'll also have to alter the package identifier to avoid a collision w/ the existing package)

Me being a lazy ass would just fetch the library source, build it, copy the resulting shared object into (probably) /opt/Citrix/ICAClient and ensure that's at front of the LD_LIBRARY_PATH

Also, do you use https://aur.archlinux.org/packages/icaclient/ ? There seems no "helps, I needs old library of foobar" comment?

Hi. I had tried that package, but I got SSL errors as we require a prior version at work. However, there is icaclient-old in the AUR, which is the version I need. I had tried this before, but I hadn't got very far - it just wasn't working properly. It was down a rabbit hole of forums that I came to the conclusion I needed some different libraries.

Today, though, on a whim, I decided to install xfce4 (I usually use i3) and it loads up fine! So thanks for your help, even if it was just indirectly through the fact that you prompted me to try the AUR again before going further.

It's been an interesting learning experience - I have learned a bit about Docker which I wouldn't have otherwise used, and I've received some good pointers here, even if this thread did turn out to be a bit of an XY problem.

Thanks everyone!

Sam

Offline

#8 2020-10-21 12:48:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,660

Re: [SOLVED]How do I install a program with an older version of libraries?

Great.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

#9 2020-10-21 13:44:54

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,513
Website

Re: [SOLVED]How do I install a program with an older version of libraries?

Khrere, you seem to have a history of blanking posts - perhaps when you realize you were mistaken or they are no longer relevant.  If you realize you posted in error before someone replies, feel free to use the report button to ask a moderator to remove your post.  Once someone has replied, and especially after there have been a couple rounds of back and forth, blanking your posts destroys the discussion and makes it very confusing for everyone else.  This is extremely disrespectful (even if unintentionally so).  Please break the habit ASAP.  Note that repeated post blanking often results in a ban.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB