Newest llvm update fails

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
ivanovnegro
Donor
Posts: 36
Joined: 5. Jul 2021, 22:07

Newest llvm update fails

Post by ivanovnegro »

Since this morning I cannot update my Salix install.
There is an update for the llvm package, but it cannot fetch the update because it fails with this error message:

Code: Select all

...HTTP response code said error...
I also tried a different mirror, but the same happens. So I get the update notification but cannot apply the update, neither from gslapt or from slapt-get.
Is somebody experiencing the same?
User avatar
Papasot
Donor
Posts: 247
Joined: 3. May 2015, 18:37
Location: Patras, Greece

Re: Newest llvm update fails

Post by Papasot »

I have the same problem as well.
A pleasant detail in this forum: several people pick a picture of their pet as their avatar. Who am I to do otherwise? ;-)
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Newest llvm update fails

Post by laprjns »

Same problem here on two different computers.

Code: Select all

ich[~]$ sudo slapt-get --upg
Reading Package Lists...Done
The following packages have been EXCLUDED:
  glibc-zoneinfo rootuser-settings zzz-settings 
The following packages will be upgraded:
  llvm 
1 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 3 not upgraded.
Need to get 117.5MB of archives.
After unpacking 511.2MB of additional disk space will be used.
Do you want to continue? [y/N] y
1/1 Get http://slackware.uk/salix/x86_64/slackware-15.0/extra/ llvm 17.0.6-x86_64-1_slack15.0 [117.5MB]...Failed to download: HTTP response code said error
Is there possibly extra spaces between the .../extra/ llvm,,, in the last line.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
User avatar
ivanovnegro
Donor
Posts: 36
Joined: 5. Jul 2021, 22:07

Re: Newest llvm update fails

Post by ivanovnegro »

At least I am relieved to see that it is not something on my end. Thank you for reporting.
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Newest llvm update fails

Post by gapan »

OK, I can confirm this too. I actually saw it yesterday but I thought it was probably a temporary glitch with syncing mirrors so I didn't think much about it. But it turns out it's a combination of issues.

1. it's the first (?) time slackware puts a package straight in the /extra/ directory, instead of another subdirectory in there.
2. slackware defines the location of everything in the extra repo to be in "./extra" in the PACKAGES.TXT that is in /extra, so if you actually follow that, the packages are supposed to be in /extra/extra, which is just wrong. You can see that with:

Code: Select all

$ sudo slapt-get --print-uris -i llvm
Reading Package Lists...Done
The following packages will be upgraded:
  llvm 
1 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 0 not upgraded.
Need to get 117.5MB of archives.
After unpacking 511.2MB of additional disk space will be used.
https://repo.greeklug.gr/data/pub/linux/salix//x86_64/slackware-15.0/extra/extra/llvm-17.0.6-x86_64-1_slack15.0.txz
and you can see the following in the PACKAGES.TXT in the slackware extra repo (http://slackware.uk/slackware/slackware ... CKAGES.TXT):

Code: Select all

PACKAGE NAME:  llvm-17.0.6-x86_64-1_slack15.0.txz
PACKAGE LOCATION:  ./extra
3. slapt-get has provisions to work with this discrepancy, by taking out the extra "/extra/". See this for example:

Code: Select all

$ sudo slapt-get --print-uris -i aspell-nds
Reading Package Lists...Done
The following NEW packages will be installed:
  aspell-nds 
0 upgraded, 0 reinstalled, 1 newly installed, 0 to remove, 0 not upgraded.
Need to get 40.0kB of archives.
After unpacking 140.0kB of additional disk space will be used.
https://repo.greeklug.gr/data/pub/linux/salix//x86_64/slackware-15.0/extra/aspell-word-lists/aspell-nds-0.01_0-x86_64-5.txz
but in this case there is no "/" after the "/extra" as with all other packages in the extra repo, so the "/extra" part was not removed.
4. I kind of hacked a workaround to put the trailing slash back for llvm in the slackware PACKAGES.TXT in our repos, so slapt-get can work with it, so the PACKAGES.TXT now looks like this:

Code: Select all

PACKAGE NAME:  llvm-17.0.6-x86_64-1_slack15.0.txz
PACKAGE LOCATION:  ./extra/
(you'll need to wait for your mirror to sync to see this)
5. which makes slapt-get find the package, but then there is an md5sum problem, probably related to all these issues, which I haven't figured out yet:

Code: Select all

$ sudo slapt-get -i llvm
Password: 
Reading Package Lists...Done
The following packages will be upgraded:
  llvm 
1 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 0 not upgraded.
Need to get 5.0kB/117.5MB of archives.
After unpacking 511.2MB of additional disk space will be used.
Do you want to continue? [y/N] y
1/1 Get file:///home/george/salix/repos/x86_64/slackware-15.0/extra/ llvm 17.0.6-x86_64-1_slack15.0 [5.0kB]...Done
Failed to download: Missing MD5 checksum, override with --no-md5
if you use the --no-md5 option it will work.

I think ultimately it's probably something that should be fixed in slapt-get, by fixing the workaround it has for all packages in extra (and also patches and pasture directories). Until then, I'll see if there's anything more I can do about the md5 issue.
Image
Image
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Newest llvm update fails

Post by gapan »

OK, I just worked around the md5 issue in our repos too. So, it should just work when your mirror syncs.

But it's still something that should be fixed in slapt-get, only just because right now slapt-get won't work with the original slackware repositories, although it will work with the slackware repositories that are hosted in our servers, because of said work around.
Image
Image
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Newest llvm update fails

Post by djemos »

I think it is a mistake of someone in slackware team. I hope they will understand it and correct it.
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Newest llvm update fails

Post by gapan »

I agree it's wrong the way it is, but it's been like that for ever. I doubt slackware will change it anytime soon.
Image
Image
User avatar
ivanovnegro
Donor
Posts: 36
Joined: 5. Jul 2021, 22:07

Re: Newest llvm update fails

Post by ivanovnegro »

Thank you very much Gapan for explaining all this and fixing it! Later I will do an update and see how it works.
User avatar
ivanovnegro
Donor
Posts: 36
Joined: 5. Jul 2021, 22:07

Re: Newest llvm update fails

Post by ivanovnegro »

Everything fine now. Thanks again.
Post Reply