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#19935 - [makepkg] aborts if the 'let' keyword is used in PKGBUILD

Attached to Project: Pacman
Opened by Giuseppe Borzi (gborzi) - Wednesday, 23 June 2010, 21:54 GMT
Last edited by Allan McRae (Allan) - Thursday, 24 June 2010, 01:17 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: makepkg aborts if the 'let' keyword is used in PKGBUILD. The only message given is 'Aborting...'
This is possibly due to the -e option given to bash in makepkg. In fact, let <expression> returns a npn-zero status when <expression> evaluates to zero.


Additional info:
* package version(s) pacman 3.4.0-2
* config and/or log files etc.


Steps to reproduce: take any PKGBUILD and add a 'let x=0' statesmen in the build function. The run makepkg.
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 24 June 2010, 01:17 GMT
Reason for closing:  Not a bug
Comment by Giuseppe Borzi (gborzi) - Wednesday, 23 June 2010, 21:56 GMT
Sorry, I meant 'Then run makepkg'.
Comment by Allan McRae (Allan) - Wednesday, 23 June 2010, 22:44 GMT
If you must use let, add a "|| true" at the end.
Comment by Giuseppe Borzi (gborzi) - Thursday, 24 June 2010, 00:41 GMT
@Allan
That's what I made to compile the octave-forge package from AUR. The maintainer of that package used another workaround.
Comment by Allan McRae (Allan) - Thursday, 24 June 2010, 01:17 GMT
Closing this as aborting on any command that returns non-zero is by design. There are simple workarounds.

Loading...