Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2013 11:00:08 GMT
From:      Vitaly Magerya <vmagerya@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/182033: [maintainer] make devel/wordgrinder build when gcc is missing
Message-ID:  <201309121100.r8CB083L065374@oldred.freebsd.org>
Resent-Message-ID: <201309121110.r8CBA0uh050068@freefall.freebsd.org>

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

>Number:         182033
>Category:       misc
>Synopsis:       [maintainer] make devel/wordgrinder build when gcc is missing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 12 11:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Vitaly Magerya
>Release:        
>Organization:
>Environment:
>Description:
It seems that devel/wordgrinder has "gcc" hardcoded
and fails to build on CURRENT (where gcc is missing).

The attached patch changes "gcc" into "cc ", so that
it would always build with default compiler.

Note that changing "gcc" into "${CC}" is impossible,
since wordgrinder builds using a "pm" file, which has
hardcoded offsets into itself (i.e. it is not plain text).
Changing "gcc" into "cc " only works because they are
of the same length.

Also note that wordgrinder 0.4.1 is already out, but
I can't update to it yet, since our port for LuaFileSystem
only works with Lua 5.1, and wordgrinder switched to Lua 5.2.

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN wordgrinder.orig/Makefile wordgrinder/Makefile
--- wordgrinder.orig/Makefile	2012-11-17 07:57:19.000000000 +0200
+++ wordgrinder/Makefile	2013-09-12 13:37:13.000000000 +0300
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	wordgrinder
-# Date created:				15 August 2010
-# Whom:					Vitaly Magerya <vmagerya@gmail.com>
-#
+# Created by: Magerya <vmagerya@gmail.com>
 # $FreeBSD: ports/editors/wordgrinder/Makefile,v 1.2 2012/11/17 05:57:19 svnexp Exp $
-#
 
 PORTNAME=	wordgrinder
 PORTVERSION=	0.3.3
@@ -13,14 +9,14 @@
 MAINTAINER=	vmagerya@gmail.com
 COMMENT=	A simple Unicode-aware console-based word processor
 
+LICENSE=	MIT
+
 RUN_DEPENDS=	${LUA_MODLIBDIR}/lfs.so:${PORTSDIR}/devel/luafilesystem
 
 USE_LUA=	5.1+
 
 USE_BZIP2=	yes
 
-LICENSE=	MIT
-
 MAN1=		wordgrinder.1
 
 PLIST_DIRS=	share/doc/wordgrinder
@@ -37,6 +33,8 @@
 		${WRKSRC}/pmfile
 	${REINPLACE_CMD} 's,^LUACOMPILER =.*$$,LUACOMPILER = "${LUAC_CMD}",' \
 		${WRKSRC}/tools/lua.pm
+	${REINPLACE_CMD} "/CCOMPILER = /s,gcc,cc ," ${WRKSRC}/tools/c.pm
+	${REINPLACE_CMD} "/CC=/s,gcc,cc ," ${WRKSRC}/pm
 
 do-build:
 	(cd ${WRKSRC}; ./pm)


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



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