FS#55010 - [jemalloc] Add "staticlibs" makepkg options

Attached to Project: Arch Linux
Opened by Tatsuyuki Ishi (ishitatsuyuki) - Wednesday, 02 August 2017, 06:45 GMT
Last edited by Eli Schwartz (eschwartz) - Wednesday, 02 August 2017, 11:42 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

libjemalloc.a is missing due to the makepkg defaults. IIRC -fPIC is not mandatory in Arch, so we should include the normal version as well.

This may also cause pkg-config output weirdness if used with --static option. The link flags default to -ljemalloc.
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Wednesday, 02 August 2017, 11:42 GMT
Reason for closing:  Won't implement
Additional comments about closing:  There is no specific need for this static library that overrides our default "no staticlibs" policy
Comment by Allan McRae (Allan) - Wednesday, 02 August 2017, 07:31 GMT
Arch does not package static binaries unless absolutely needed.
Comment by Tatsuyuki Ishi (ishitatsuyuki) - Wednesday, 02 August 2017, 07:32 GMT
libjemalloc_pic.a is packaged and libjemalloc.a being stripped looks strange.
Comment by Allan McRae (Allan) - Wednesday, 02 August 2017, 07:43 GMT
Packages are built with PIE these days, so libjemalloc_pic.a can be removed.
Comment by Tatsuyuki Ishi (ishitatsuyuki) - Wednesday, 02 August 2017, 07:48 GMT
The _pic variant is built with -fPIC, and the regular variant isn't. The PIC variant is required for Rust.
Comment by Christian Hesse (eworm) - Wednesday, 02 August 2017, 08:09 GMT
Static library libjemalloc_pic.a is required for rust (and possibly others, see  FS#54791 ).
Other than that I second what Allan states: Arch does not package static binaries unless absolutely needed.

So any really good reason? Using -ljemalloc should link dynamically.
Comment by Tatsuyuki Ishi (ishitatsuyuki) - Wednesday, 02 August 2017, 08:15 GMT
I have no more points, so feel free to close then.

Loading...