Bug 171297

Summary: [PATCH] devel/tbb: Remove hardcoded dependency on gcc
Product: Ports & Packages Reporter: christian.mangin
Component: Individual Port(s)Assignee: Ganael LAPLANCHE <martymac>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
tbb.diff none

Description christian.mangin 2012-09-03 22:30:05 UTC
This port has a hardcoded dependency on gcc and will not compile if gcc 
is not present in the base system. It does honor $CXX but not $CC.

In fact, this port requires the presence of a file 'FreeBSD.<compiler>.inc' 
to actually accept using a given C compiler. At this time, only 
'FreeBSD.gcc.inc' is present and therefore gcc is required.

My solution here is to create a copy the file with the correct name for
the requested C compiler and make the appropriate substitutions.

This has been tested to work with base clang, base gcc and lang/gcc.

Fix: Patch attached:
Comment 1 Edwin Groothuis freebsd_committer 2012-09-03 22:30:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->martymac

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Ganael LAPLANCHE freebsd_committer 2012-09-06 07:28:15 UTC
Hi Christian,

Thank you very much for your patch.

I will upgrade devel/tbb to 4.0.5 soon (after the upcoming ports freeze)
; I'll integrate your patch with this update.

Best regards,

Ganael LAPLANCHE <ganael.laplanche@martymac.org>
http://www.martymac.org | http://contribs.martymac.org
FreeBSD: martymac <martymac@FreeBSD.org>, http://www.FreeBSD.org
Comment 3 Ganael LAPLANCHE freebsd_committer 2012-12-12 07:43:57 UTC
State Changed
From-To: open->closed

Committed, thanks!