Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Apr 2015 01:52:03 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r384199 - head/emulators/doscmd
Message-ID:  <201504180152.t3I1q3DY032513@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sat Apr 18 01:52:03 2015
New Revision: 384199
URL: https://svnweb.freebsd.org/changeset/ports/384199

Log:
  - Add patches to fix build on 10.x+
  - Mark BROKEN on 10.x+
  
  It accesses field of structure which was made opaque in r235647
  to change internally used file descriptor:
  
  cwd.c:892:15: error: incomplete definition of type 'struct _dirdesc'
      search->dp->dd_fd = squirrel_fd(search->dp->dd_fd);
      ~~~~~~~~~~^
  /usr/include/dirent.h:58:8: note: forward declaration of 'struct _dirdesc'
  struct _dirdesc;
         ^
  
  This hack is no longer possible on 10.x+. Doscmd may work fine
  without it though, but I'm not taking responsibility by blindly
  removing it. If you know the interlans and can test it, see
  extra-patch-cwd.c.

Modified:
  head/emulators/doscmd/Makefile

Modified: head/emulators/doscmd/Makefile
==============================================================================
--- head/emulators/doscmd/Makefile	Sat Apr 18 00:58:38 2015	(r384198)
+++ head/emulators/doscmd/Makefile	Sat Apr 18 01:52:03 2015	(r384199)
@@ -23,6 +23,11 @@ X11_MAKE_ARGS_OFF=	-DNO_X
 
 .include <bsd.port.options.mk>
 
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000012
+# files/extra-patch-cwd.c will fix this, see inside
+BROKEN=		does not build (accesses field of opaque structure)
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1



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