Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#67056 - [efitools] No way to rebuild the package without cleaning up

Attached to Project: Arch Linux
Opened by Yuri Kanivetsky (x-yuri) - Saturday, 20 June 2020, 15:46 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 20 June 2020, 17:03 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: You rename src/"${pkgname}" to src/"${pkgname}-${pkgver}" in prepare():

https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/efitools&id=375300f5342e6e980f2d3f11dab387262d44453f#n22

But if src/"${pkgname}-${pkgver}" already exists (on second build), what's really happening is src/"${pkgname}" is moved into src/"${pkgname}-${pkgver}". And it fails:

==> Starting prepare()...
renamed 'efitools' -> 'efitools-1.9.2/efitools'
patching file lib/console.c
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/console.c.rej
==> ERROR: A failure occurred in prepare().
Aborting...


Additional info:
* 1.9.2-3

Steps to reproduce:
* makepkg && makepkg -f
This task depends upon

Closed by  Doug Newgard (Scimmia)
Saturday, 20 June 2020, 17:03 GMT
Reason for closing:  Not a bug
Additional comments about closing:  PKGBUILDs in the official repos are made to be built in a clean chroot/container.

Loading...