svn commit: r384199 - head/emulators/doscmd

Dmitry Marakasov amdmi3 at FreeBSD.org
Sat Apr 18 01:52:04 UTC 2015


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


More information about the svn-ports-head mailing list