Date: Tue, 21 Jun 2011 12:38:31 +0200 (CEST) From: Niclas Zeising <niclas.zeising@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/158101: [PATCH] fix security/pgp to build with clang Message-ID: <201106211038.p5LAcVuH000981@vincent.daemonic.se> Resent-Message-ID: <201106211040.p5LAeBH9047559@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 158101 >Category: ports >Synopsis: [PATCH] fix security/pgp 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: Tue Jun 21 10:40:10 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: security/pgp hardcoedes the use of cc in makefile. >How-To-Repeat: >Fix: attached patch removes that hardcodeing and makes it possible to build the port using clang. --- security.pgp.clangfix.diff begins here --- Index: files/patch-aa =================================================================== RCS file: /home/ncvs/ports/security/pgp/files/patch-aa,v retrieving revision 1.4 diff -u -d -r1.4 patch-aa --- files/patch-aa 11 Sep 2008 22:59:23 -0000 1.4 +++ files/patch-aa 21 Jun 2011 10:36:38 -0000 @@ -1,6 +1,6 @@ ---- makefile 1996-01-18 04:42:36.000000000 -0600 -+++ makefile.patched 2008-09-12 01:55:27.000000000 -0500 -@@ -50,7 +50,8 @@ +--- makefile.orig 1996-01-18 11:42:36.000000000 +0100 ++++ makefile 2011-06-21 12:34:37.000000000 +0200 +@@ -50,13 +50,14 @@ # -DUSE_SELECT to use select() system call # -DUSE_NBIO to use non-blocking read() @@ -10,6 +10,14 @@ # must set byte order for targets "sysv" and "bsd" # BYTEORDER= -DHIGHFIRST + +-CC = cc +-LD = cc # Link command ++CC ?= cc ++LD = $(CC) # Link command + LDFLAGS = + CPP = $(CC) -E + DBG = -O @@ -79,7 +80,7 @@ @echo "where <system> can be:" @echo " 386bsd, 3b1, 3b1_asm, aix370, aix386, amix-68k-gcc, apollo," --- security.pgp.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?201106211038.p5LAcVuH000981>