Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jul 2013 16:14:12 +0200 (CEST)
From:      Niclas Zeising <zeising@daemonic.se>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/180384: [PATCH] x11/dzen2 hardcodes gcc
Message-ID:  <201307081414.r68EECBX057032@vivi.daemonic.se>
Resent-Message-ID: <201307081430.r68EU06D087035@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         180384
>Category:       ports
>Synopsis:       [PATCH] x11/dzen2 hardcodes gcc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 08 14:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Niclas Zeising
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD vivi.daemonic.se 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r252979M: Sun Jul 7 21:07:39 CEST 2013 root@vivi.daemonic.se:/usr/obj/usr/src/sys/VIVI amd64


	
>Description:
	x11/dzen2 hardcodes CC=gcc in its makefile.

>How-To-Repeat:
	
>Fix:

	Attached patch changes the default to use cc, and makes it possible to override CC in the environment.  This makes the port build with clang, or when gcc does not exists.

--- x11.dzen2.clangfix.diff begins here ---
Index: x11/dzen2/files/patch-config.mk
===================================================================
--- x11/dzen2/files/patch-config.mk	(revision 0)
+++ x11/dzen2/files/patch-config.mk	(working copy)
@@ -0,0 +1,9 @@
+--- config.mk.orig	2013-07-03 22:32:45.866885213 +0200
++++ config.mk	2013-07-03 22:32:51.306100406 +0200
+@@ -49,5 +49,5 @@
+ #LDFLAGS = -g ${LIBS}
+ 
+ # compiler and linker
+-CC = gcc
++CC ?= cc
+ LD = ${CC}

Property changes on: x11/dzen2/files/patch-config.mk
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- x11.dzen2.clangfix.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307081414.r68EECBX057032>