Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Oct 2009 18:09:21 GMT
From:      Kris Moore <kmoore@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/139650: games/tuxpaint is broken with alternate LOCALBASE
Message-ID:  <200910151809.n9FI9LoX071174@www.freebsd.org>
Resent-Message-ID: <200910151810.n9FIA2r0043406@freefall.freebsd.org>

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

>Number:         139650
>Category:       ports
>Synopsis:       games/tuxpaint is broken with alternate LOCALBASE
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 15 18:10:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Kris Moore
>Release:        7.2-Stable
>Organization:
PC-BSD Software
>Environment:
FreeBSD pcbsd 7.2-STABLE FreeBSD 7.2-STABLE #3: Mon Oct  5 10:30:23 EDT 2009     kris@pcbsd:/usr/obj/usr/src/sys/PCBSD.i386  i386
>Description:
The tuxpaint port has /usr/local hard-coded in a few places, which causes the application to fail when it is built / run in a different LOCALBASE.
>How-To-Repeat:

>Fix:
Apply attached patch file and rebuild the port. 

Patch attached with submission follows:

--- tuxpaint/Makefile.orig	2009-10-15 17:20:18.000000000 +0000
+++ tuxpaint/Makefile	2009-10-15 17:28:15.000000000 +0000
@@ -24,8 +24,14 @@
 MAN1=		tp-magic-config.1 tuxpaint.1 tuxpaint-import.1
 MANCOMPRESSED=	yes
 
-.if defined(NOPORTDOCS)
 post-patch:
+	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
+			${WRKSRC}/${MAKEFILE} \
+			${WRKSRC}/src/tuxpaint-import.sh \
+			${WRKSRC}/src/tp_magic_api.h.in \
+			${WRKSRC}/src/tuxpaint.conf \
+			${WRKSRC}/hildon/tuxpaint.conf
+.if defined(NOPORTDOCS)
 	@${REINPLACE_CMD} -e 's|install-doc\([^:]\)|\1|' ${WRKSRC}/${MAKEFILE}
 .endif
 


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



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