LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 10-10-2023, 11:15 AM   #1
pee_bee
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 12
glibc-2.38-2 doinst.sh problem


the install/doinst.sh for glibc-2.38-2 has
multiple @@VERSION@@
which should be 2.38

Last edited by pee_bee; 10-14-2023 at 12:50 AM.
 
Old 10-13-2023, 03:55 PM   #2
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 766

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
I see it too in the 'glibc-2.38-x86_64-2.txz' package on my -current mirror.

The excerpt, from the install/doinst.sh is:
Code:
# This block below *should* be dead code, but it's probably safer to leave it
# here as a fallback. It no longer has complete coverage of all the links
# that would be needed in /lib${LIBDIRSUFFIX}, but it covers enough that if
# we did fall back on this the machine would boot until it reached the boot
# time call to ldconfig, which would then take care of any missing links.
# In case there's no ldconfig, make the links manually:
if [ ! -x /sbin/ldconfig ]; then
( cd lib64 ; rm -rf libm.so.6 )
( cd lib64 ; ln -sf libm-@@VERSION@@.so libm.so.6 )
( cd lib64 ; rm -rf libnss_files.so.2 )
( cd lib64 ; ln -sf libnss_files-@@VERSION@@.so libnss_files.so.2 )
( cd lib64 ; rm -rf libresolv.so.2 )
( cd lib64 ; ln -sf libresolv-@@VERSION@@.so libresolv.so.2 )
( cd lib64 ; rm -rf libutil.so.1 )
( cd lib64 ; ln -sf libutil-@@VERSION@@.so libutil.so.1 )
( cd lib64 ; rm -rf libnss_compat.so.2 )
( cd lib64 ; ln -sf libnss_compat-@@VERSION@@.so libnss_compat.so.2 )
( cd lib64 ; rm -rf libthread_db.so.1 )
( cd lib64 ; ln -sf libthread_db-1.0.so libthread_db.so.1 )
( cd lib64 ; rm -rf libnss_hesiod.so.2 )
( cd lib64 ; ln -sf libnss_hesiod-@@VERSION@@.so libnss_hesiod.so.2 )
( cd lib64 ; rm -rf libanl.so.1 )
( cd lib64 ; ln -sf libanl-@@VERSION@@.so libanl.so.1 )
( cd lib64 ; rm -rf libcrypt.so.1 )
( cd lib64 ; ln -sf libcrypt1-@@VERSION@@.so libcrypt.so.1 )
( cd lib64 ; rm -rf libcrypt.so.2 )
( cd lib64 ; ln -sf libcrypt2-@@VERSION@@.so libcrypt.so.2 )
( cd lib64 ; rm -rf libBrokenLocale.so.1 )
( cd lib64 ; ln -sf libBrokenLocale-@@VERSION@@.so libBrokenLocale.so.1 )
( cd lib64 ; rm -rf ld-linux-x86-64.so.2 )
( cd lib64 ; ln -sf ld-@@VERSION@@.so ld-linux-x86-64.so.2 )
( cd lib64 ; rm -rf libdl.so.2 )
( cd lib64 ; ln -sf libdl-@@VERSION@@.so libdl.so.2 )
( cd lib64 ; rm -rf libnss_dns.so.2 )
( cd lib64 ; ln -sf libnss_dns-@@VERSION@@.so libnss_dns.so.2 )
( cd lib64 ; rm -rf libpthread.so.0 )
( cd lib64 ; ln -sf libpthread-@@VERSION@@.so libpthread.so.0 )
( cd lib64 ; rm -rf libc.so.6 )
( cd lib64 ; ln -sf libc-@@VERSION@@.so libc.so.6 )
( cd lib64 ; rm -rf librt.so.1 )
( cd lib64 ; ln -sf librt-@@VERSION@@.so librt.so.1 )
fi
I don't know why that would have happened. The 'sed' line in the glibc.SlackBuild that handles the @@VERSION@@ substitution is valid and works properly. I built the 'glibc-2.38-x86_64-2.txz' from source and the resulting install/doinst.sh is properly substituted to 2.38 on that run.

That part of the doinst.sh script will probably never run with the '! -x /sbin/ldconfig' condition, but still I don't know why the substitution failed on the mirror's copy.
 
Old 10-13-2023, 04:04 PM   #3
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 766

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
Well this just hit as I was typing that reply:
Code:
l/glibc-2.38-x86_64-3.txz:  Rebuilt.
  Don't strip ld-2.38.so as this breaks valgrind.
  Thanks to rastos and alienBOB.
  Fixed unreplaced @@VERSION@@ in the doinst.sh "dead code."
  Thanks to pee_bee.
 
  


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] SLackbuild config function (doinst.sh) problem tuxuser1 Slackware 4 05-29-2023 07:43 AM
Sharing the changes I did in doinst.sh in glibc-zoneinfo Weber Kai Slackware 2 08-23-2021 10:30 PM
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
doinst.sh i need to install packages using command line Clarence27 Zenwalk 2 10-07-2006 07:03 AM
appending to perllocal.pod via doinst.sh jong357 Slackware 1 10-31-2005 10:48 AM

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

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