Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 May 2010 23:30:59 +0400
From:      Anonymous <swell.k@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/146773: [patch] lang/sbcl: /etc/sbclrc -> PREFIX/etc/sbclrc
Message-ID:  <86hbm274lo.fsf@gmail.com>
Resent-Message-ID: <201005201940.o4KJe4aT070459@freefall.freebsd.org>

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

>Number:         146773
>Category:       ports
>Synopsis:       [patch] lang/sbcl: /etc/sbclrc -> PREFIX/etc/sbclrc
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 20 19:40:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
>How-To-Repeat:
$ echo '(print "blah")' >$PREFIX/etc/sbcrc
$ sbcl
>Fix:
--- a.diff begins here ---
Index: lang/sbcl/Makefile
===================================================================
RCS file: /a/.cvsup/ports/lang/sbcl/Makefile,v
retrieving revision 1.75
diff -u -p -r1.75 Makefile
--- lang/sbcl/Makefile	5 Jan 2010 01:29:46 -0000	1.75
+++ lang/sbcl/Makefile	20 May 2010 18:01:16 -0000
@@ -106,6 +106,8 @@ pre-everything::
 post-patch:
 	@${REINPLACE_CMD} -E -e 's|(CFLAGS =) .*|\1 ${CFLAGS}|' \
 		${WRKSRC}/src/runtime/GNUmakefile
+	@${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} -E -e \
+		's|/etc/sbclrc|${PREFIX}&|g' {} +
 	@${FIND} ${WRKSRC} -name '*.orig' -o -name '*.bak' -delete
 .if defined(WITH_THREADS)
 	@${CP} ${FILESDIR}/customize-target-features.lisp ${WRKSRC}
--- a.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?86hbm274lo.fsf>