Date: Thu, 30 Jun 2011 22:09:22 +0200 (CEST) From: Niclas Zeising <niclas.zeising@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/158537: [PATCH] fix print/lprps-letter and slave ports to build with clang Message-ID: <201106302009.p5UK9Mqn010174@vincent.daemonic.se> Resent-Message-ID: <201106302010.p5UKA718082937@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 158537 >Category: ports >Synopsis: [PATCH] fix print/lprps-letter and slave ports to build with clang >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: Thu Jun 30 20:10:06 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Niclas Zeising >Release: FreeBSD 8.2-RELEASE amd64 >Organization: >Environment: System: FreeBSD vincent.daemonic.se 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Wed Apr 20 17:22:47 CEST 2011 root@vincent.daemonic.se:/usr/obj/usr/src/sys/VINCENT amd64 >Description: print/lprps-letter and slaveport print/lprps-a4 doesn't build with clang, they hardcode cc as system compiler. >How-To-Repeat: >Fix: Attached patch makes them build using clang. --- print.lprps.clangfix.diff begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/print/lprps-letter/Makefile,v retrieving revision 1.18 diff -u -d -r1.18 Makefile --- Makefile 5 Oct 2008 02:51:07 -0000 1.18 +++ Makefile 30 Jun 2011 20:06:33 -0000 @@ -32,6 +32,9 @@ @${FALSE} .endif +post-patch: + ${REINPLACE_CMD} -e 's/^\(CC[^g]*\)cc$$/\1${CC}/' ${WRKSRC}/Makefile + do-install: ${MKDIR} ${DATADIR} cd ${WRKSRC} && \ --- print.lprps.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?201106302009.p5UK9Mqn010174>