You are not logged in.

#1 2022-03-04 02:01:43

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 272
Website

SOLVED Spotify client fails to build

UPDATE:

1) users can run makepkg with --noprepare
2) users can run updpkgsums prior to running makepkg

I have switched to the spotify-snapstore package. Contrary to the name it is not a snap but rather it uses the latest Debian package the same as the spotify package.

**** 

The Spotify client fails to build and I get the following error:

==> Starting prepare()...
spotify-1.1.72.439-3-x86_64-Packages: OK
spotify-1.1.72.439-x86_64.deb: FAILED
sha512sum: WARNING: 1 computed checksum did NOT match
==> ERROR: A failure occurred in prepare().
    Aborting...

I can get the build to complete by editing the prepare () function within the PKGBUILD file.
I just commented the code which operates on the spotify-1.1.72.439-x86_64.deb file:

PKGBUILD
*************
prepare() {
    # Validate hashes from the PGP signed "Release" file
    echo "$(grep non-free/binary-amd64/Packages ${pkgname}-${pkgver}-${pkgrel}-Release | tail -n 2 | head -n 1 | awk '{print $1}') ${pkgname}-${pkgver}-${pkgrel}-x86_64-Packages" \
        > "${pkgname}-${pkgver}-x86_64-Packages.sha256"
    sha256sum -c "${pkgname}-${pkgver}-x86_64-Packages.sha256"

#    echo "$(grep SHA512 ${pkgname}-${pkgver}-${pkgrel}-x86_64-Packages | head -n 1 | awk '{print $2}') ${pkgname}-${pkgver}-x86_64.deb" \
#       > "${pkgname}-${pkgver}-x86_64.deb.sha512"
#    sha512sum -c "${pkgname}-${pkgver}-x86_64.deb.sha512"
}

I have not been able to determine what in that code is broken.

Thoughts ?

Last edited by lenhuppe (2022-03-08 02:09:50)


Why do we drive on the parkway and then park in the driveway?

Offline

#2 2022-03-04 06:21:27

mrLOLOLOSHKA
Member
Registered: 2022-03-04
Posts: 1

Re: SOLVED Spotify client fails to build

Same problem for me

Offline

#3 2022-03-04 08:29:39

a821
Member
Registered: 2012-10-31
Posts: 381

Re: SOLVED Spotify client fails to build

If you look at the file `${pkgname}-${pkgver}-${pkgrel}-x86_64-Packages`  you'll see that the sha-512 hash is for a different deb file with version 1.1.80.699...

Offline

#4 2022-03-04 12:17:41

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 272
Website

Re: SOLVED Spotify client fails to build

a821 wrote:

If you look at the file `${pkgname}-${pkgver}-${pkgrel}-x86_64-Packages`  you'll see that the sha-512 hash is for a different deb file with version 1.1.80.699...

Yep the file `${pkgname}-${pkgver}-${pkgrel}-x86_64-Packages` is for the latest release rather than the version used in the spotify package.

For now users can run makepkg with the '--noprepare' option until the problem is resolved.   

Thank you

Last edited by lenhuppe (2022-03-04 14:58:42)


Why do we drive on the parkway and then park in the driveway?

Offline

Board footer

Powered by FluxBB