You are not logged in.

#1 2019-05-31 18:49:38

gunjah292
Member
From: Hamburg
Registered: 2011-05-05
Posts: 186

[SOLVED] Yaourt installs package, but yay complains about checksum

I just made a new package for AUR https://aur.archlinux.org/packages/plecs-blockset/. Yaourt installs it without errors, but yay complains about a wrong checksum and throws a download error. I checked the checksums multiple times.

Last edited by gunjah292 (2019-05-31 20:34:42)


KDE Plasma, ThinkPad X380 Yoga, Intel Core i7-8550U, Intel UHD Graphics 620, 512GB PCIe-NVMe SSD (OPAL 2.0), 16GB PC4-19200 (2400 MHz)

Offline

#2 2019-05-31 18:59:18

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,835
Website

Re: [SOLVED] Yaourt installs package, but yay complains about checksum

We don't really care about what either of those say. What does makepkg say? Post the actual output, not paraphrasing.

https://bbs.archlinux.org/viewtopic.php?id=57855


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2019-05-31 19:06:41

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,514
Website

Re: [SOLVED] Yaourt installs package, but yay complains about checksum


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2019-05-31 19:18:27

gunjah292
Member
From: Hamburg
Registered: 2011-05-05
Posts: 186

Re: [SOLVED] Yaourt installs package, but yay complains about checksum

Everything seems to work right. Or what else do you mean by "What does makepkg say?". This is the first package I contributed to AUR.

$ makepkg --printsrcinfo > .SRCINFO 
$ git add -f -A
$ git commit -m "Changed checksum back again"
[master c27bf5e] Changed checksum back again
 2 files changed, 2 insertions(+), 2 deletions(-)

$ git push
Enter passphrase for key '/home/jan/.ssh/aur': 
Specifying objects: 7, Done.
Counting objects: 100% (7/7), Done.
Delta-compression uses up to  8 threads.
Compressing objects: 100% (4/4), Done.
Writing objects: 100% (4/4), 567 bytes | 567.00 KiB/s, Done.
Gesamt 4 (Delta 2), Wiederverwendet 1 (Delta 0)
To ssh://aur.archlinux.org/plecs-blockset.git
   52928bb..c27bf5e  master -> master

KDE Plasma, ThinkPad X380 Yoga, Intel Core i7-8550U, Intel UHD Graphics 620, 512GB PCIe-NVMe SSD (OPAL 2.0), 16GB PC4-19200 (2400 MHz)

Offline

#5 2019-05-31 19:24:03

gunjah292
Member
From: Hamburg
Registered: 2011-05-05
Posts: 186

Re: [SOLVED] Yaourt installs package, but yay complains about checksum

@Trilby: No, I didn't  but there doesn't seem to be anything written about my problem.

I built the package based on https://aur.archlinux.org/packages/plecs-standalone, which does compile with yay. I really don't see why one AUR helper would take the checksum and the other wouldn't. I realized that the checksum differ if I generate them in /tmp/yaourt-tmp or in the Download folder. I don't understand why, because it is the same file.


KDE Plasma, ThinkPad X380 Yoga, Intel Core i7-8550U, Intel UHD Graphics 620, 512GB PCIe-NVMe SSD (OPAL 2.0), 16GB PC4-19200 (2400 MHz)

Offline

#6 2019-05-31 19:26:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,514
Website

Re: [SOLVED] Yaourt installs package, but yay complains about checksum

gunjah292 wrote:

Everything seems to work right. Or what else do you mean by "What does makepkg say?"

He means precisely that: what is the output of makepkg when building that package?  Provide the full output in code tags.  Most notably, we'd want to know if makepkg rejects the checksum.

My links are relevant as it sounds like this is a problem with yay.  So you should be reporting this on the yay github page, not here.

gunjah292 wrote:

I really don't see why one AUR helper would take the checksum and the other wouldn't.

Niether do we, precisely, but the answer is clearly that one of them is broken.  Don't use either of them and the problem is solved.

Keep in mind also that we have no idea what is in your "/tmp/yaourt-tmp" or your "Downloads" folders.  Show exactly what commands you used that resulted in the different checksums in these two places, and we could likely spot the problem.

Last edited by Trilby (2019-05-31 19:29:23)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2019-05-31 19:57:33

gunjah292
Member
From: Hamburg
Registered: 2011-05-05
Posts: 186

Re: [SOLVED] Yaourt installs package, but yay complains about checksum

So here is my PKGBUILD

# Maintainer: Jan Claussen <jan.claussen at web dot de>
# Maintainer: Julian Daube <joposter at gmail dot com>
# Contributer: Jan Claussen jan.claussen at web dot de>

pkgname=plecs-blockset
_pkgname="plecs-blockset"
pkgver=v4.2.6
pkgrel=1
pkgdesc="PLECS integration into MATLAB/Simulink (license needed / no demo version available)"
url='http://www.plexim.com/de/products/plecs_blockset'

arch=('x86_64')
license=('custom')
provides=('plecs-blockset')
depends=('qt4' 'ncurses5-compat-libs' 'zlib')
makedepends=('coreutils')

source=("plecs-blockset.desktop" "plecs-blockset.png" "plecs-blockset.sh" "$pkgname-$pkgver-x86_64.tar.gz::https://www.plexim.com/sites/default/files/packages/plecs-blockset-4-2-6_linux64.tar.gz")

md5sums=('381be723bc77af74c5aca5f070d5925c'
         '8ed62f1ce2de47c761c9244531dc154e'
         'fa37afb26f11e1dd331e886eb175a2ef'
         'c479fbcd1d3b2b8d7c2f6502daaff67e')

sha1sums=('ad2dcabb5ef5c51d48809df6645d4c0b74aabe6e'
          'e1d9007695acbf40ce55b47f3724c4de8b5ac270'
          'fc44048d6defd161e850bb18bdc132b3dcee6242'
          '0820a419091e73bbd37e0e74517b48afc8315ad4')

package() {
    # install icon
    mkdir -p "$pkgdir/usr/share/pixmaps/"
    echo "install icon"
    install -m 644 "$srcdir/plecs-blockset.png" "$pkgdir/usr/share/pixmaps/"
   
    # make directory structure for main app
	mkdir -p "$pkgdir/usr/share/applications/"
	mkdir -p "$pkgdir/opt/plecs-blockset"
	mkdir -p "$pkgdir/usr/bin"
	mkdir -p "$pkgdir/usr/share/licenses/plecs-blockset"

	# install desktop file
	echo "install plecs-blockset.desktop"
	install -m 664 "$srcdir/plecs-blockset.desktop" "$pkgdir/usr/share/applications/"

	echo "install start script"
	install -m 555 "$srcdir/plecs-blockset.sh" "$pkgdir/usr/bin/plecs-blockset"

	echo "install license.txt"
	install -m 664 "$srcdir/plecs/license.txt" "$pkgdir/usr/share/licenses/plecs-blockset/"
	rm "$srcdir/plecs/license.txt"

	echo "copying plecs dir"
	cp "$srcdir/plecs/." "$pkgdir/opt/plecs-blockset" -r 
}

I realized that when you directly download the file via a browser, the size of the file is 396.1 MB and its checksum is

$ sha1sum /home/jan/Downloads/plecs-blockset-4-2-6_linux64.tar.gz 
0820a419091e73bbd37e0e74517b48afc8315ad4  /home/jan/Downloads/plecs-blockset-4-2-6_linux64.tar.gz

When I use this checksum in the PKGBUILD, the output of makepkg is

$ makepkg
==> Making package: plecs-blockset v4.2.6-1 (Fri May 31 21:50:42 2019)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found plecs-blockset.desktop
  -> Found plecs-blockset.png
  -> Found plecs-blockset.sh
  -> Downloading plecs-blockset-v4.2.6-x86_64.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  189M  100  189M    0     0  9625k      0  0:00:20  0:00:20 --:--:-- 9740k
==> Validating source files with sha1sums...
    plecs-blockset.desktop ... Passed
    plecs-blockset.png ... Passed
    plecs-blockset.sh ... Passed
    plecs-blockset-v4.2.6-x86_64.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!

The file downloaded by yaourt or yay has a size of 189.7 MB and its checksum is

$ sha1sum plecs-blockset-v4.2.6-x86_64.tar.gz
4f7de4c1680432536ee12b0940aa3df154a58af2  plecs-blockset-v4.2.6-x86_64.tar.gz

The output of makepkg

$ makepkg       
==> Making package: plecs-blockset v4.2.6-1 (Fri May 31 21:52:42 2019)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found plecs-blockset.desktop
  -> Found plecs-blockset.png
  -> Found plecs-blockset.sh
  -> Found plecs-blockset-v4.2.6-x86_64.tar.gz
==> Validating source files with sha1sums...
    plecs-blockset.desktop ... Passed
    plecs-blockset.png ... Passed
    plecs-blockset.sh ... Passed
    plecs-blockset-v4.2.6-x86_64.tar.gz ... Passed
==> Extracting sources...
  -> Extracting plecs-blockset-v4.2.6-x86_64.tar.gz with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
install icon
install plecs-blockset.desktop
install start script
install license.txt
copying plecs dir
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "plecs-blockset"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
^C
==> ERROR: Aborted by user! Exiting...

Passes obviously and the application runs without errors, even though the file size is just half of the size it should be. Yaourt installs and yay doesn't. This is all really weird to me...

Last edited by gunjah292 (2019-05-31 20:23:56)


KDE Plasma, ThinkPad X380 Yoga, Intel Core i7-8550U, Intel UHD Graphics 620, 512GB PCIe-NVMe SSD (OPAL 2.0), 16GB PC4-19200 (2400 MHz)

Offline

#8 2019-05-31 20:03:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,514
Website

Re: [SOLVED] Yaourt installs package, but yay complains about checksum

You are giving us incomplete and contradictory information.

Are you using the file you manually downloaded via your browser on some of these attempts?  With each tool, makepkg, yaourt, or yay, which ones work when you don't have some file with that name already in the working directory?

All you've really shown us so far is that some file downloaded somehow from some web browser is not correct.  This has nothing to do with your initial reported problem.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2019-05-31 20:21:44

gunjah292
Member
From: Hamburg
Registered: 2011-05-05
Posts: 186

Re: [SOLVED] Yaourt installs package, but yay complains about checksum

Sorry, if I have not been clear enough.

Trilby wrote:

Are you using the file you manually downloaded via your browser on some of these attempts?

I am using the one downloaded by yay, of course.

Trilby wrote:

With each tool, makepkg, yaourt, or yay, which ones work when you don't have some file with that name already in the working directory?

work: makepkg, yaourt
doesn't: yay

Trilby wrote:

All you've really shown us so far is that some file downloaded somehow from some web browser is not correct.  This has nothing to do with your initial reported problem.

Actually, you are right. I've downloaded the same file with Firefox and the size is 189.7 MB. This was a Chrome related problem.

Still yay doesn't take the checksum (or the right file of 189.7 MB).

Last edited by gunjah292 (2019-05-31 20:24:20)


KDE Plasma, ThinkPad X380 Yoga, Intel Core i7-8550U, Intel UHD Graphics 620, 512GB PCIe-NVMe SSD (OPAL 2.0), 16GB PC4-19200 (2400 MHz)

Offline

#10 2019-05-31 20:33:48

gunjah292
Member
From: Hamburg
Registered: 2011-05-05
Posts: 186

Re: [SOLVED] Yaourt installs package, but yay complains about checksum

Found the problem. Yay did not download the new PKGBUILD, but used the old one from cache. yay -Scc solved the problem.


KDE Plasma, ThinkPad X380 Yoga, Intel Core i7-8550U, Intel UHD Graphics 620, 512GB PCIe-NVMe SSD (OPAL 2.0), 16GB PC4-19200 (2400 MHz)

Offline

#11 2019-05-31 20:45:05

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,411
Website

Re: [SOLVED] Yaourt installs package, but yay complains about checksum

If you want helpers to pick up changes, you should bump pkgrel. However, if the change does not influence the built package, it's perfectly fine to not bump the pkgrel.

Last edited by Alad (2019-05-31 20:45:17)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

Board footer

Powered by FluxBB