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#44210 - [llvm] PKGBUILD: enabling debug build

Attached to Project: Arch Linux
Opened by Kirill Gagarski (gagarski) - Monday, 16 March 2015, 14:21 GMT
Last edited by Evangelos Foutras (foutrelis) - Monday, 16 March 2015, 16:26 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi!

It seems like it's supposed to pass "--enable-optimized" or "--disable-optimized" to LLVM's ./configure based on "strip" makepkg option.

Probably this code is supposed to do that:

# Apply strip option to configure
_optimized_switch="enable"
[[ $(check_option strip) == n ]] && _optimized_switch="disable"

However adding '!strip' to PKGBUILD options does not disable LLVM optimized build (probably because check_option signature has been sometimes changed).

This code would disable/enable optimized buld correctly:

# Apply strip option to configure
_optimized_switch="enable"
check_option "strip" "n" && _optimized_switch="disable"
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Monday, 16 March 2015, 16:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in /trunk; --enable-optimized is no longer based on the PKGBUILD options and is always passed to ./configure.
Comment by Evangelos Foutras (foutrelis) - Monday, 16 March 2015, 16:23 GMT
Thanks for reporting this inconsistency; I've opted to drop the flag selection part and just use --enable-optimized:

https://lists.archlinux.org/pipermail/arch-commits/2015-March/273102.html

Loading...