Bug 145758 - lang/squeak can't compile under 9-current because of utmpx.h issue
Summary: lang/squeak can't compile under 9-current because of utmpx.h issue
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sylvio Cesar Teixeira
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-16 14:30 UTC by Takeshi MUTOH
Modified: 2010-04-17 20:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Takeshi MUTOH 2010-04-16 14:30:04 UTC
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.

Fix: Please apply patch below:



--
Takeshi MUTOH	<mutoh@openedu.org>--ge3Qf9sTQAK33inozkisu9kYPc1Gle14kdBV22jqr4wC9wjd
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

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:
How-To-Repeat: 
Under 9-current, try below:
$ cd /usr/ports/lang/squeak
$ make
Comment 1 Sylvio Cesar Teixeira freebsd_committer freebsd_triage 2010-04-16 14:45:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sylvio

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-04-17 20:45:10 UTC
sylvio      2010-04-17 19:44:54 UTC

  FreeBSD ports repository

  Modified files:
    lang/squeak          Makefile 
  Log:
  - Fix problem of utmpx.h with build in 9-current
  - BUMP PORTREVISION
  
  PR:             ports/145758
  Submitted by:   Takeshi Mutoh <mutoh@openedu.org> (maintainer)
  Approved by:    itetcu (mentor, implicit)
  
  Revision  Changes    Path
  1.21      +6 -4      ports/lang/squeak/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Sylvio Cesar Teixeira freebsd_committer freebsd_triage 2010-04-17 20:45:14 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!