Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.

FS#55754 - makepkg.conf(5) doesn't give OPTIONS=(debug)'s default value

Attached to Project: Pacman
Opened by Ralph Corderoy (RalphCorderoy) - Tuesday, 26 September 2017, 14:21 GMT
Last edited by Allan McRae (Allan) - Monday, 08 January 2018, 05:07 GMT
Task Type Bug Report
Category Documentation
Status Closed
Assigned To Eli Schwartz (eschwartz)
Architecture All
Severity Very Low
Priority Normal
Reported Version 5.0.1
Due in Version 5.1.0
Due Date Undecided
Percent Complete 100%
Votes 1
Private No


pacman 5.0.2-2's makepkg.conf(5) describes `OPTIONS=(...)' and says it lists the default values.
It then describes each of the values.
`debug' is the last to be described.
Its default value is not in the header along with the others.
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 08 January 2018, 05:07 GMT
Reason for closing:  Fixed
Additional comments about closing:  git commit 44f3a157983e
Comment by Dave Reisner (falconindy) - Tuesday, 26 September 2017, 14:34 GMT
Two things:

1) The manpage is misleading. Removing the OPTIONS array from /etc/makepkg.conf would not cause the defaults shown in the manpage to be assumed.
2) I don't see *any* default values listed for the given options.

You should simply assume that if an option is not explicitly enabled, it's disabled.
Comment by Eli Schwartz (eschwartz) - Tuesday, 26 September 2017, 15:58 GMT
Actually, the defaults are defined de facto in libmakepkg itself. The defaults are (!strip docs libtool staticlibs emptydirs !zipman !purge !debug) which is fairly conservative but also disagrees with the manpage. The manpage should be fixed.

Similar logic applies to BUILDENV. I'll post a patch shortly.