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#11664 - Compilation of p7zip: make ignores CXXFLAGS

Attached to Project: Arch Linux
Opened by Anton Shestakov (engored) - Monday, 06 October 2008, 12:38 GMT
Last edited by Hugo Doria (hdoria) - Thursday, 23 October 2008, 02:04 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Hugo Doria (hdoria)
Architecture All
Severity Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When trying to build p7zip from sources via ABS, make does not use local CXXFLAGS. It seems that one string in the PKGBUILD for the package is incorrect:
> sed -i "s|-O1|$CXXFLAGS|g" makefile.machine
and in both cases (for x86_64 and i686) makefile.machine contain this:
> OPTFLAGS=-O
so sed changes nothing.

Additional info:
* p7zip 4.58-3

Steps to reproduce:
$ yaourt -Sb p7zip # or build from ABS manually
look at output and note gcc flags during compilation
This task depends upon

Closed by  Hugo Doria (hdoria)
Thursday, 23 October 2008, 02:04 GMT
Reason for closing:  Fixed
Comment by Jan de Groot (JGC) - Monday, 06 October 2008, 14:36 GMT
Note that these things can be done more simple:
make all3 OPTFLAGS="${CXXFLAGS}"

and the multiple sed operations to change install.sh can be replaced by running:
make install DEST_HOME="${pkgdir}" DEST_MAN="${pkgdir}/usr/share/man}"

Loading...