ports/145758: [lang/squeak] Unbroke related utmpx.h

Takeshi MUTOH mutoh at openedu.org
Fri Apr 16 13:30:05 UTC 2010


>Number:         145758
>Category:       ports
>Synopsis:       lang/squeak can't compile under 9-current because of utmpx.h issue
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 16 13:30:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Takeshi MUTOH <mutoh at openedu.org>
>Release:        FreeBSD 9.0-CURRENT i386
>Organization:
610t
>Environment:

FreeBSD fuji.mutoh.dyndns.org 9.0-CURRENT FreeBSD 9.0-CURRENT #47: Tue Apr 13 06:45:18 JST 2010     root at fuji.mutoh.dyndns.org:/usr/obj/usr/src/sys/GENERIC  i386

>Description:

The lang/squeak can't compile under 9-current because of utmpx.h issue.
See 
- http://lists.freebsd.org/pipermail/freebsd-current/2010-January/014893.html
more detail.

>How-To-Repeat:

Under 9-current, try below:
$ cd /usr/ports/lang/squeak
$ make 

>Fix:

Please apply patch below:

diff -ruN squeak.org/Makefile squeak/Makefile
--- squeak.org/Makefile	2010-04-16 16:13:08.000000000 +0900
+++ squeak/Makefile	2010-04-16 21:59:47.000000000 +0900
@@ -49,10 +49,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} > 900007
-BROKEN=		fails to build with new utmpx
-.endif
-
 ##################################################
 XIM_PATCH=		SqueakImmX11Plugin3a${EXTRACT_SUFX}
 PLUGIN_IMAGE=		SqueakPlugin.zip
@@ -168,6 +164,13 @@
 .endif
 # Fix external plugins
 	@${ECHO_MSG} "EXTERNAL_PLUGINS = B3DAcceleratorPlugin PseudoTTYPlugin UnixOSProcessPlugin XDisplayControlPlugin Squeak3D AioPlugin ${EXT_PLUGINS}" > ${WRKSRC}/platforms/unix/src/plugins.ext
+# Fix utmp.h
+.if ${OSVERSION} > 900007
+	@${REINPLACE_CMD} \
+		-e "s,<utmp.h>,<utmpx.h>,g" \
+		${WRKSRC}/platforms/unix/plugins/PseudoTTYPlugin/openpty.h
+.endif
+
 
 ##################################################
 pre-configure:


--
Takeshi MUTOH	<mutoh at openedu.org>
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list