Bug 201895

Summary: archivers/pigz: respect CC/CFLAGS/LDFLAGS and convert to system libzopfli
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Jan Beich <jbeich>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: feature, patch
Priority: --- Flags: delphij: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 201894    
Bug Blocks:    
Attachments:
Description Flags
v1
none
84amd64 poudriere bulk -t log
none
93i386 poudriere bulk -t log
none
101i386 poudriere bulk -t log
none
head_i386 poudriere bulk -t log
none
102amd64 poudriere bulk -t log none

Description Jan Beich freebsd_committer freebsd_triage 2015-07-26 18:11:53 UTC
Created attachment 159255 [details]
v1

It appears files/patch-Makefile fails to remove CC/CFLAGS while post-patch fails to append -lm. Instead of fixing them override variables via MAKE_ARGS which is more robust.

libzopfli will be available in archivers/zopfli once bug 201894 lands. Adopt and remove now superfluous -lm.
Comment 1 Jan Beich freebsd_committer freebsd_triage 2015-07-26 18:15:00 UTC
Example of not respected CFLAGS which should have -fstack-protector and -fno-strict-aliasing nowadays.

  $ make
  ...
  cc -O3 -Wall -Wextra   -c -o pigz.o pigz.c

http://beefy5.nyi.freebsd.org/data/101i386-default/392703/logs/pigz-2.3.3.log
Comment 2 Jan Beich freebsd_committer freebsd_triage 2015-07-26 18:21:57 UTC
Created attachment 159262 [details]
84amd64 poudriere bulk -t log
Comment 3 Jan Beich freebsd_committer freebsd_triage 2015-07-26 18:22:00 UTC
Created attachment 159263 [details]
93i386 poudriere bulk -t log
Comment 4 Jan Beich freebsd_committer freebsd_triage 2015-07-26 18:22:03 UTC
Created attachment 159264 [details]
101i386 poudriere bulk -t log
Comment 5 Jan Beich freebsd_committer freebsd_triage 2015-07-26 18:22:06 UTC
Created attachment 159265 [details]
head_i386 poudriere bulk -t log
Comment 6 Xin LI freebsd_committer freebsd_triage 2015-07-27 05:43:35 UTC
Patch looks good to me, please feel free to commit once 201894 landed.
Comment 7 Jan Beich freebsd_committer freebsd_triage 2015-08-01 07:25:50 UTC
Created attachment 159427 [details]
102amd64 poudriere bulk -t log
Comment 8 commit-hook freebsd_committer freebsd_triage 2015-08-16 03:03:49 UTC
A commit references this bug:

Author: jbeich
Date: Sun Aug 16 03:03:40 UTC 2015
New revision: 394384
URL: https://svnweb.freebsd.org/changeset/ports/394384

Log:
  archivers/pigz: convert to system libzopfli and respect CC/CFLAGS/LDFLAGS

  PR:		201895
  Approved by:	delphij (maintainer)

Changes:
  head/archivers/pigz/Makefile
  head/archivers/pigz/files/
Comment 9 Jan Beich freebsd_committer freebsd_triage 2015-08-16 03:07:09 UTC
Thanks. Committed.
Comment 10 Jan Beich freebsd_committer freebsd_triage 2015-08-16 03:07:20 UTC
Thanks. Committed.