LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-18-2021, 06:31 AM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,571
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Upgrading glibc in current: what I did and what should I have done?


This is not a story about a disaster, merely a mild annoyance. But I do feel that I missed a trick somewhere and hope someone here will tell me what I should have done.

I have a partial Slackware-current system on /dev/sda10, which I regard as my new Slackware-15. I installed glibc-multilib on it because I will eventually need 32-bit glibc for my printer. I have the multilib repo uncommented in slackpkgplus.conf and I also have glibc blacklisted because I hoped this would force slackpkg to use the multilib version for updating (which turned out not to be the case).

Early this morning I did a monthly update and noticed that this included glibc. I've never had to do a glibc update in Slackware before (I assume it never happens in a release version) and so I was ultra-cautious. I unchecked glibc and did the update without it.

Then I ran slackpkg upgrade-all again. The ncurses interface now showed only one package, the normal glibc. At the bottom I could see a line of text with two packages named: glibc and glibc-multilib. Obviously it was the second one I wanted but only the first showed up in ncurses. So I said yes and it upgraded smoothly but my multilib setup is gone. Not that that's a problem; I'll reinstall it down the line when we finally have a stable release. But obviously I did something wrong because I didn't get the result I really wanted. So what should I have done?
 
Old 03-18-2021, 06:53 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
I suspect you may have been caught by the new slackpkg blacklist behaviour.
Quote:
Mon Feb 8 05:13:26 UTC 2021
...
ap/slackpkg-15.0-noarch-1.txz: Upgraded.
These are some of the important changes (see the ChangeLog for more):
Note that this slackpkg release contains a backwards-incompatible change to
the blacklisting syntax (e.g. glibc ---> glibc-*). This changes the prior
behavior of the blacklist function; previously, adding "glibc" to the
blacklist would cause glibc, glibc-profile, glibc-zoneinfo, et al to be
ignored by slackpkg. The new behavior is that *only* the glibc package is
ignored. If you want to blacklist all packages whose names begin with glibc,
you would need to add "glibc.*" to the blacklist now. Also note that any
special characters, e.g. "+", will need to be escaped in the blacklist file.
To blacklist entire package sets, a trailing slash is now required: e.g. kde/
Another backwards-incompatibility warning: check-updates will now return 1 if
there are updates available - this will make it easier to use this feature
with cron (thanks to Peter Hyman).
Added support for Slackware-AArch64 (thanks to Stuart Winter).
Added aaa_glibc-solibs and aaa_libraries to the "do these first" routine.
Thanks to Robby Workman for the new slackpkg release!
 
Old 03-18-2021, 07:15 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,571

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
This changes the prior behavior of the blacklist function; previously, adding "glibc" to the blacklist would cause glibc, glibc-profile, glibc-zoneinfo, et al to be
ignored by slackpkg. The new behavior is that *only* the glibc package is
ignored. If you want to blacklist all packages whose names begin with glibc,
you would need to add "glibc.*" to the blacklist now.
That would cause further hiccups, I think, and I shall certainly edit that file. But according to the above, glibc itself should have been blacklisted even with the old syntax. And it clearly wasn't.

Also I should like to know why only glibc appeared in the interactive part of the display when slackpkg clearly was aware of the glibc-multilib package as fulfilling the requirement.

PS: I think I know now what I did wrong. I've just checked the configuration file again; it was a new one because slackpkg+ itself got updated, and I edited it by hand afterwards but I think I didn't complete the edit. I uncommented the multilib repo but forgot to add it to REPOPLUS.

Funny how posing a question here clears the mind!

Last edited by hazel; 03-18-2021 at 07:26 AM. Reason: Added postscript.
 
Old 03-18-2021, 07:57 AM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
The act of writing does force you to order your thoughts.
 
1 members found this post helpful.
Old 03-18-2021, 07:59 AM   #5
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
Quote:
Originally Posted by hazel View Post
I have a partial Slackware-current system on /dev/sda10, which I regard as my new Slackware-15. I installed glibc multilib on it because I will eventually need 32-bit glibc for my printer. I have the multilib repo uncommented in slackpkgplus.conf and I also have glibc blacklisted because I hoped this would force slackpkg to use the multilib version for updating (which turned out not to be the case).
Since I have no idea what you have installed with this partial install, kind of hard to say. When you say installed glib multilib I am going with you installed these packages:

aaa_glibc-solibs-2.33_multilib-x86_64-1alien
glibc-2.33_multilib-x86_64-1alien
glibc-i18n-2.33_multilib-x86_64-1alien
glibc-profile-2.33_multilib-x86_64-1alien

I would not have blacklisted glibc and let slackpkg+ handle those packages.

I run with the full set of multilib except for the gcc set as I have no plans to compile 32-bit on this computer.

This is my slackpkgplus.conf (applicable sections).
Code:
PKGS_PRIORITY=( slackware64:id3lib ) # 2018-01-09, also in alienbob
PKGS_PRIORITY+=( slackware64:gcc ) # 2020-09-17, give slackware packages priority over multilib.
PKGS_PRIORITY+=( nonslack )
PKGS_PRIORITY+=( slackpkgplus multilib restricted alienbob )
REPOPLUS=( nonslack )
REPOPLUS+=( slackpkgplus multilib restricted alienbob )
MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+dev/
MIRRORPLUS['nonslack']=file://home/non-slack/slackbuilds/
MIRRORPLUS['multilib']=https://bear.alienbase.nl/mirrors/people/alien/multilib/current/
MIRRORPLUS['alienbob']=https://bear.alienbase.nl/mirrors/people/alien/sbrepos/current/x86_64/
MIRRORPLUS['restricted']=https://bear.alienbase.nl/mirrors/people/alien/restricted_sbrepos/current/x86_64/
I actually use "file://" for multilib, alienbob and restricted that points to a local mirror on my LAN.
Code:
MIRRORPLUS['multilib']=file://home/non-slack/multilib/current/
MIRRORPLUS['alienbob']=file://home/non-slack/alienbob/current/x86_64/
MIRRORPLUS['restricted']=file://home/non-slack/alienbob_restricted/current/x86_64/
 
Old 03-18-2021, 08:00 AM   #6
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
Quote:
Originally Posted by hazel View Post
PS: I think I know now what I did wrong. I've just checked the configuration file again; it was a new one because slackpkg+ itself got updated, and I edited it by hand afterwards but I think I didn't complete the edit. I uncommented the multilib repo but forgot to add it to REPOPLUS.

Funny how posing a question here clears the mind!
Saw this after I posted.
 
Old 03-18-2021, 12:25 PM   #7
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Slackpkg and Slackpkg have wone me over from my default suspicions about automation, but I do wish there was a less cavalier attitude about replacing configuration files needlessly. Having to repeatedly revert to the same configuration manually when no substantive change was made is just busy work and a bit silly not to mention disrespectful. This too is a minor issue but I don't see any justification. It creates errors and extra work needlessly.
 
2 members found this post helpful.
Old 03-18-2021, 12:46 PM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,571

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Having done some configuration edits, I'm going to mark this tentatively as solved. If I get further problems down the line, I can always unsolve it again.
 
Old 03-19-2021, 11:57 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,571

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Yes, it's fixed. Multilib showing up normally now. Thanks a lot!
 
Old 03-19-2021, 09:02 PM   #10
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
Good to hear/
 
  


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] Slackware 14.2 glibc-2.23 vs Slackware Current glibc-2.24 and the Current 4.4.17 Kernel kjhambrick Slackware 10 08-13-2016 01:00 AM
RH 9.0 glibc rpm says it needs glibc-common, but glibc-common is installed whitshade Red Hat 2 04-28-2007 05:49 PM
upgrading (or not upgrading) glibc richarde Slackware 9 09-12-2005 12:56 AM
upgrading glibc 2.3.2 to glibc 2.3.3 =cop=Jesse Linux - Newbie 3 12-08-2004 11:00 PM
Upgrading glibc-2.2.4 to glibc-2.3.2 on redhat 7.2 Shuja Linux From Scratch 2 07-30-2004 12:34 AM

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

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