ports/150153: [PATCH] editors/ved can't install due to port is marked as BROKEN

Anderson Eduardo anderson at secover.com.br
Tue Aug 31 17:20:04 UTC 2010


>Number:         150153
>Category:       ports
>Synopsis:       [PATCH] editors/ved can't install due to port is marked as BROKEN
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 31 17:20:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anderson Eduardo
>Release:        8.1-RELEASE
>Organization:
Secover
>Environment:
FreeBSD lab.secover.com.br 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Aug 16 17:36:19 UTC 2010     anderson at lab.secover.com.br:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The port editors/ved is marked as BROKEN due to some build erros.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- /usr/ports/editors/ved/Makefile	2008-04-25 20:11:46.000000000 -0300
+++ /usr/home/anderson/ports/editors/ved/Makefile	2010-08-31 14:34:05.000000000 -0300
@@ -13,7 +13,7 @@
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	A small and fast screen-oriented editor
 
-USE_GMAKE=	yes
+BUILD_DEPENDS=	smake:${PORTSDIR}/devel/smake
 
 MAN1=		ved.1
 PLIST_FILES=	bin/ved %%DATADIR%%/ved.help
@@ -21,10 +21,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 800030
-BROKEN=		does not compile
-.endif
-
 .if ${ARCH} == "ia64"
 BROKEN=		does not compile on ia64
 .endif
@@ -32,6 +28,8 @@
 post-patch:
 	${REINPLACE_CMD} -e 's|^COPTOPT=.*$$|COPTOPT= ${CFLAGS}|g ; \
 		 s| gcc| ${CC}|g' ${WRKSRC}/RULES/i386-freebsd-cc.rul
+	${REINPLACE_CMD} -e 's|fexecve|fexecve_ved|g' ${WRKSRC}/include/schily.h
+	${REINPLACE_CMD} -e 's|fexecve|fexecve_ved|g' ${WRKSRC}/libschily/fexec.c
 .for file in ved.h ved.1
 	${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/ved/${file}
 .endfor
@@ -40,6 +38,9 @@
 		&& ${LN} -sf i386-freebsd-cc.rul ${arch}-freebsd-cc.rul
 .endfor
 
+do-build:
+	(cd ${WRKSRC} && smake)
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/ved/OBJ/${ARCH}-freebsd-cc/ved \
 		${PREFIX}/bin


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



More information about the freebsd-ports-bugs mailing list