Page 1 of 2

Newest llvm update fails

Posted: 19. Feb 2024, 15:55
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?

Re: Newest llvm update fails

Posted: 19. Feb 2024, 18:17
by Papasot
I have the same problem as well.

Re: Newest llvm update fails

Posted: 19. Feb 2024, 19:25
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.

Re: Newest llvm update fails

Posted: 19. Feb 2024, 22:03
by ivanovnegro
At least I am relieved to see that it is not something on my end. Thank you for reporting.

Re: Newest llvm update fails

Posted: 20. Feb 2024, 10:34
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.

Re: Newest llvm update fails

Posted: 20. Feb 2024, 10:44
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.

Re: Newest llvm update fails

Posted: 20. Feb 2024, 11:19
by djemos
I think it is a mistake of someone in slackware team. I hope they will understand it and correct it.

Re: Newest llvm update fails

Posted: 20. Feb 2024, 12:06
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.

Re: Newest llvm update fails

Posted: 20. Feb 2024, 13:06
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.

Re: Newest llvm update fails

Posted: 20. Feb 2024, 21:29
by ivanovnegro
Everything fine now. Thanks again.