ports/158101: [PATCH] fix security/pgp to build with clang
Niclas Zeising
niclas.zeising at gmail.com
Tue Jun 21 10:40:11 UTC 2011
>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 at 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:
More information about the freebsd-ports-bugs
mailing list