Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#72344 - makepkg -g/--geninteg does not respect 'SKIP'

Attached to Project: Pacman
Opened by janek (xeruf) - Monday, 04 October 2021, 20:51 GMT
Task Type Bug Report
Category makepkg
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 6.0.0
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Summary and Info:
makepkg should not generate checksums for files that it was told to skip as specified in https://wiki.archlinux.org/title/PKGBUILD#integrity

Steps to Reproduce:
1) Create a PKGBUILD file with SKIP in the checksums
2) run makepkg --geninteg
3) checksums are generated for files that should be skipped
This task depends upon

Comment by morganamilo (morganamilo) - Monday, 04 October 2021, 20:55 GMT
Works for me. Post the pkgbuild.
Comment by janek (xeruf) - Monday, 04 October 2021, 21:28 GMT
WIP PKGBUILD, please do not make ;)
```sh
# Maintainer: xerus <27jf at pm dot me>

_pkgname='context'
pkgname="${_pkgname}-bin"
pkgver=1
pkgrel=1
pkgdesc='ConTeXt LMTX, the Lean and Mean TeX eXperience with Lua, MetaPost, TeX, and XML'
arch=('x86_64')
url="https://wiki.contextgarden.net/Installation"
license=(GPL)
depends=()
provides=("${_pkgname}")
conflicts=("${_pkgname}")
optdepends=('')
source=("http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip")
sha512sums=('SKIP')

package() {
cd "${srcdir}"
chmod +x install.sh
./install.sh

context="${pkgdir}/usr/share/context"
mkdir -p "$context"
cd "tex"
install -Dm 644 texmf texmf-context "$context"
install -Dm 644 texmf-linux-64/bin "${pkgdir}/usr/bin"
}

pkgver() {
cd "${srcdir}"
echo 1
}
```
Then:
```sh
❯ makepkg --geninteg
==> Retrieving sources...
-> Found context-linux-64.zip
==> Generating checksums for source files...
sha512sums=('c784ba0359131bb17d4c663b23a5bcca9a9ec053ef81d67ae3e46f1a28062e596c67b92fc88ff4f4601dd53d5bba271ef3932c5f49ac6ffe7693746670b39029')
```
Comment by morganamilo (morganamilo) - Tuesday, 05 October 2021, 07:42 GMT
I assumed makepkg would keep skip if it was there bug looking at the code it just hardcodes skip for vcs sources.

Loading...