Package Details: plugin-autenticacao-gov-pt 2.0.97-2

Git Clone URL: https://aur.archlinux.org/plugin-autenticacao-gov-pt.git (read-only, click to copy)
Package Base: plugin-autenticacao-gov-pt
Description: O plugin Autenticação.Gov (anteriormente designado por aplicação Autenticação.gov.pt) permite realizar o procedimento de autenticação com o Cartão de Cidadão sem necessidade de efetuar a instalação de qualquer componente no navegador
Upstream URL: https://autenticacao.gov.pt/fa/ajuda/autenticacaogovpt.aspx
Keywords: autenticacao cartão cidadão de gov plugin pt
Licenses: custom:EUPL
Submitter: a36233
Maintainer: a36233
Last Packager: a36233
Votes: 3
Popularity: 0.000000
First Submitted: 2020-04-08 22:14 (UTC)
Last Updated: 2024-09-08 10:20 (UTC)

Dependencies (4)

Required by (2)

Sources (2)

Latest Comments

1 2 3 Next › Last »

a36233 commented on 2024-09-08 10:25 (UTC)

I've added the pkgver + pkgrel to the download filename. Please be advised that file hashes are used not only for version control but also to make sure the file integrity and origin. Also it's a way for the mantainers to check if packaging changes are required between versions.

luisnabais commented on 2024-09-02 08:10 (UTC)

@a36233, thank you for your work on this package, it's very useful.

The validity issue is not AUR helper related. The sha512sum for the original file changes when they publish a new version, which makes the file to be different, even if the file name remains the same. So the sha512sum hash needs to be changed in the PKGBUILD file. It's easy to do it manually for most of us, but I believe we can all agree that it's a more polished job if the PKGBUILD file is updated accordingly, when there are changes.

tomaspinho commented on 2024-08-27 17:21 (UTC) (edited on 2024-08-27 17:24 (UTC) by tomaspinho)

@a36233 First of all, thank you very much for this package. Secondly, most users will (understandably) use a AUR helper to manage packages for them, expecting everyone to perform a clean git clone + makepkg + pacman installation is unrealistic and detrimental for new adopters/newbies.

Most of the AUR helpers implement caching which will keep the git repository around across builds/installations which will keep any downloaded files (like the .deb which this package depends on). There is a permanent solution for this, however, but you'll need to make some changes for us. As per my previous comment:

The deb package this AUR package is based on changes upstream every time the AMA releases a new version and the AUR package maintainer has to update the validity hashes for it. If you don't run a clean build, the older .deb file is preserved and the new hash is validating the older file, thus failing.

The way to solve this permanently for all users is for the maintainer to force a re-download of the .deb file every time the validity hash changes. This can be achieved by aliasing the downloaded file with a name that depends on the pkgver or similar: https://forum.manjaro.org/t/how-can-i-always-download-new-build-assets-on-package-update/115421/5

a36233 commented on 2024-08-23 09:05 (UTC)

Updated to 2.0.97 SD

a36233 commented on 2024-07-28 22:51 (UTC)

Those errors seem to be AUR helper related, use the AUR / ArchLinux recommended method ... git clone + makepkg + pacman -U

a36233 commented on 2024-07-28 22:51 (UTC)

Those errors seem to be AUR helper related, use the AUR / ArchLinux recommended method ... git clone + makepkg + pacman -U

GPereira commented on 2024-07-14 11:11 (UTC) (edited on 2024-07-14 11:12 (UTC) by GPereira)

==> Validating source files with sha512sums...
    plugin-autenticacao-gov-pt.install ... Passed
    plugin-autenticacao-gov.deb ... FAILED
==> ERROR: One or more files did not pass the validity check!

gabber commented on 2024-07-02 17:26 (UTC) (edited on 2024-07-02 17:30 (UTC) by gabber)

@tomaspinho My AUR helper doesn't ask anything, I use aptpac upgrade. That link gives Oops! That page doesn’t exist or is private. After deleting the package from .cache/paru/clone/ it worked!

tomaspinho commented on 2024-07-02 10:33 (UTC)

@gabber just make sure to run a "clean build" when your AUR helper asks you how to install.

The deb package this AUR package is based on changes upstream every time the AMA releases a new version and the AUR package maintainer has to update the validity hashes for it. If you don't run a clean build, the older .deb file is preserved and the new hash is validating the older file, thus failing.

The way to solve this permanently for all users is for the maintainer to force a re-download of the .deb file every time the validity hash changes. This can be achieved by aliasing the downloaded file with a name that depends on the pkgver or similar: https://forum.manjaro.org/t/how-can-i-always-download-new-build-assets-on-package-update/115421/5

gabber commented on 2024-07-01 04:48 (UTC)

Same error that @stunts @luisnabais @a36233 what is supposed to do with git clean -dfffx && git pull? I didn't install it with git