Bug 195665

Summary: Fix www/squid build with clang 3.5.0
Product: Ports & Packages Reporter: Dimitry Andric <dim>
Component: Individual Port(s)Assignee: Antoine Brodin <antoine>
Status: Closed FIXED    
Severity: Affects Many People CC: emaste
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 195480    
Attachments:
Description Flags
Fix www/squid build with clang 3.5.0 none

Description Dimitry Andric freebsd_committer freebsd_triage 2014-12-04 01:35:35 UTC
Created attachment 150166 [details]
Fix www/squid build with clang 3.5.0

In bug 195480, I asked for an exp-run with clang 3.5.0.  One of the failures from that exp-run is in www/squid, which fails with many -Werror warnings.

Obviously the warnings should be fixed, but that requires too much churn, so the least painful solution is to simply squelch the warnings.

This patch also uses COMPILER_TYPE and COMPILER_VERSION from the ports framework, instead of hand-rolling a test for clang.
Comment 1 Antoine Brodin freebsd_committer freebsd_triage 2014-12-05 13:14:20 UTC
I will work on this
Comment 2 commit-hook freebsd_committer freebsd_triage 2014-12-05 14:25:05 UTC
A commit references this bug:

Author: antoine
Date: Fri Dec  5 14:24:38 UTC 2014
New revision: 374030
URL: https://svnweb.freebsd.org/changeset/ports/374030

Log:
  Allow building with clang 3.5
  Those warnings should be fixed, but squelch them for now

  PR:		ports/195665

Changes:
  head/www/squid/Makefile
Comment 3 Antoine Brodin freebsd_committer freebsd_triage 2014-12-05 14:26:31 UTC
A different version of the patch has been committed, thanks