LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-17-2015, 11:09 AM   #16
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656

Quote:
Originally Posted by bobzilla View Post
I think you misread what I wrote. There's no any playing with symlinks.

TLDR version: you make a directory outside of systems lib dirs like /opt/lib64/oldlibs and put the old libs inside. Than put it in ld.so.conf.

Only symlinks you make is those in /opt/lib64/oldlibs. You don't really mess up anything on your default install.

Cheers.
I can understand doing this if the new package doesn't compile on the updated system, but if it does compile, I think it'd be much easier to just recompile the package (and dependencies, if needed) than trying to figure out what libs you're missing, finding those libs (hopefully they're official Slackware libs so they're easily grabbed out of packages), adding them to your system, creating any symlinks needed, and then updating ld.so.conf...

Maybe it's because I use some programs that rely on a lot of different libs, and it would take a while to find all the required libs and add them to the system. I'd much rather set up a queue, let sbopkg run through the night (I have an old computer) and then in the morning, it'll be as good as before.
 
Old 09-17-2015, 11:11 AM   #17
bobzilla
Member
 
Registered: Nov 2005
Location: Serbia
Distribution: Slackware
Posts: 231

Rep: Reputation: Disabled
Quote:
Originally Posted by bobzilla View Post
I think you misread what I wrote. There's no any playing with symlinks.

TLDR version: you make a directory outside of systems lib dirs like /opt/lib64/oldlibs and put the old libs inside. Than put it in ld.so.conf.

Only symlinks you make is those in /opt/lib64/oldlibs. You don't really mess up anything on your default install.

Cheers.
Anyways, the idea is not to have to recompile 100 packages at once, but over the time as the new versions get released.

Those libs won't interfer with system libs. All newly compiled packages will use the new libs from the system lib directories.

Of course, it's important that you only copy the runtime libs and discard the other parts of the packages (no development headers, pkgconfig files, docs and other non-runtime stuff). What you need are versioned runtime libs and symlinks (libgif.so.2.0.0 and libgif.so.2 are ok, but libgif.so is not). Then everything works just fine.
 
Old 09-17-2015, 11:17 AM   #18
bobzilla
Member
 
Registered: Nov 2005
Location: Serbia
Distribution: Slackware
Posts: 231

Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
I can understand doing this if the new package doesn't compile on the updated system, but if it does compile, I think it'd be much easier to just recompile the package (and dependencies, if needed) than trying to figure out what libs you're missing, finding those libs (hopefully they're official Slackware libs so they're easily grabbed out of packages), adding them to your system, creating any symlinks needed, and then updating ld.so.conf...

Maybe it's because I use some programs that rely on a lot of different libs, and it would take a while to find all the required libs and add them to the system. I'd much rather set up a queue, let sbopkg run through the night (I have an old computer) and then in the morning, it'll be as good as before.
One package is not the problem. 20 or 30 packages are. Not even counting the bulky dependencies like webkitgtk or wxPython.

It takes much less time to workout the dependencies for those than recompile everything. 15 minutes. Maybe more. Dependeing on the case. But not more than 30 mins.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] What circumstances justify the installation of compiled software in "/usr"? ffffdisk Slackware 18 01-22-2013 07:11 PM
The difference of "rc" and "pl" software version nithima Linux - Software 1 06-10-2011 12:24 AM
Do I have to "apt-get upgrade" everyday for my system not to break? r3dhatter Debian 7 11-23-2004 05:48 PM
does failed using urpmi messed up my "Install Software" / "mandrake update" ??? sirpelidor Mandriva 1 11-02-2003 09:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration