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 10-25-2014, 09:12 AM   #1
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Upgrade Slackware 14.1's glibc to the current version


Can I do that? It is a minor version so I guess I should be fine?

I was thinking about grabbing the latest glibc SlackBuild and build my own package.
 
Old 10-25-2014, 10:38 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,259

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
You can chance it. I agree, a minor version would usually be fine. I am not a software purist, and such would probably disagree. Why bother? Is there some security hole?
 
Old 10-25-2014, 02:16 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
Quote:
Originally Posted by moisespedro View Post
Can I do that?
Why couldn't you? If you want to do that, then yes the easiest way would be to use the build material from Slackware-current (not only the SlackBuild, but all files in /source/l/glibc).

Quote:
It is a minor version so I guess I should be fine?
This does not imply that, see current's Changelog about the need to rebuild gcc then glibc as an example.

Advice (only an advice): unless you have a specific need or you want to do that just for fun, either run stable or current, don't mix them or be prepared to solve the problems that could occur. But that also can be fun, of course
 
Old 10-25-2014, 05:08 PM   #4
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
I think that 2.20 has bit of performance gain than the last one, but I can't back it with numbers.

There are number of security fixes in it, I only needed to tweak and add one of Mancha's CVE-0475 fix for glibc 2.20.
 
Old 10-25-2014, 05:38 PM   #5
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
This would be a just for fun upgrade. But I am afraid I could break my system. I guess it is safe enough then?

So I would build the latest GCC and then glibc?
 
Old 10-25-2014, 06:14 PM   #6
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I don't think it would be very fun, because something is bound to break. glibc is the heart of the system, and I would only upgrade it if it is truly warranted, never for fun.
 
Old 10-26-2014, 04:14 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,259

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
I'll leasve you guys to your patches, and won't comment further.

For the benefit of searchers of this thread, I'll state the bit of theory we all know but nobody has mentioned. Glibc is part of the toolchain (Kernel-headers and gcc being the other 2 parts) and as such, affects basic system libs. Received wisdom is that you don't update these, because they are the basics with which the system is built.

Of the three, glibc is the fussiest, kernel headers the most forgiving of an update, and gcc comes out in the middle. Rather than update glibc from 2.15 to s.15.1 or some such, Linuxfromscratch issued a new book, and pulled the old one, indicating to all that the system should be rebuilt.
 
Old 10-26-2014, 06:11 AM   #8
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Quote:
Originally Posted by number22 View Post
I think that 2.20 has bit of performance gain than the last one, but I can't back it with numbers.

There are number of security fixes in it, I only needed to tweak and add one of Mancha's CVE-0475 fix for glibc 2.20.
Isn't 0475 already fixed upstream in 2.20?
https://sourceware.org/git/?p=glibc....ae1e161bc8a8a3
 
Old 10-26-2014, 09:30 AM   #9
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by GazL View Post
Isn't 0475 already fixed upstream in 2.20?
https://sourceware.org/git/?p=glibc....ae1e161bc8a8a3
Apparently, I was not carefully reading the release note.
 
Old 10-26-2014, 11:14 AM   #10
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Don't forget that if you are using multilib, your glibc has already been altered... replacing it with this patch at this point will almost certainly break that.
 
Old 10-26-2014, 12:32 PM   #11
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
glibc should be a C standard library

anyway
unless some function was deprecated that some of the programs you run need, there shouldn't be any problem
glibc people go to fair trouble for it to be backwards compatible with older kernels
so in theory there shouldn't be any problems
in practice if something goes wrong remember to delete all the simlinks of the newer library when reverting, as upgradepkg can't do it itself
 
Old 10-27-2014, 12:43 AM   #12
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Might be a good time to use one of my favourite quotes.

Quote:
Originally Posted by Einstein
In theory, theory and practice are the same. In practice, they are not.
 
2 members found this post helpful.
Old 10-27-2014, 01:33 AM   #13
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Never replace glibc unless you're prepared to rebuild an entire system back around it, and patch as you go.

From what I've learned with LFS, once you install a new glibc, some things must be rebuilt to the new system. Some programs may work, but others may not work. You'd have to probably build a small temporary system to use as a chroot jail, then rebuild packages for the new glibc, test, patch if needed, and lather, rinse, repeat as needed. It's a process... a long arduous process.

Go read the past changelogs and get Patrick to give you details about what is required when you rebuild glibc. It may seem as easy as building a SlackBuild, but this is just of those packages that isn't all cut and dry. Glibc, just like the kernel-headers are just two packages you do not touch outside of the aaa_* packages.

Last edited by ReaperX7; 10-27-2014 at 01:34 AM.
 
1 members found this post helpful.
Old 12-09-2019, 07:58 AM   #14
shevegen
Member
 
Registered: May 2004
Distribution: Slackware / GoboLinux / LFS / VoidLinux
Posts: 145

Rep: Reputation: 26
This is mostly for others who may find the thread here.

ReaperX7 is right.

IMO the best approach is to do the LFS-approach - first build a
temporary toolchain. The LFS recommends to remove it lateron,
but I recommend to keep it - and re-use it. That way whenever
glibc changes, you can change it, but it is still quite annoying
since you have to recompile a lot, even when using statically
compiled programs. Nonetheless I also recommend to use some statically
compiled programs, as well as binutils for recovery.

The core toolchain set is: glibc, gcc, kernel headers, binutils. Then
there are secondary helpers: sed, awk, grep, coreutils. If you have
a working glibc, gcc and binutils, you should be able to compile most
everything though.

I don't yet know how lilo/grub play with it, but you can do things
step by step. Also make sure to know how to compile a kernel on
your own - it may help for later.
 
Old 12-09-2019, 11:38 AM   #15
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
@ shevegen: please do not post in a 3 years old thread to provide an advice probably not adapted to Slackware. Unless you can alse provide a success report telling with all details how you did it on Slackware: what was the glibc version you started with, which steps you took and what was the glibc version at the end of the process.

Last edited by Didier Spaier; 12-09-2019 at 12:51 PM.
 
1 members found this post helpful.
  


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] Please upgrade Operating System version to 2.6.5-7.97-bigsmp - the current version is panneer_dxb Linux - Kernel 1 04-10-2011 03:16 PM
Swaret upgrade from 10.0 to current broke glibc - unable to login vharishankar Slackware 6 04-03-2006 12:30 AM
Problems with glibc on Slackware current? MS3FGX Slackware 2 03-30-2006 09:57 PM
X11 upgrade glibc version geomatt Slackware 4 11-20-2004 07:08 PM
wrong upgrade of glibc . Can i go back to the correct version? RedHat 7.3 enrique-t Red Hat 1 03-06-2004 02:52 PM

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

All times are GMT -5. The time now is 11:20 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