Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 2014 11:40:33 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r347741 - head/security/ophcrack
Message-ID:  <201403101140.s2ABeX6p012807@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Mon Mar 10 11:40:33 2014
New Revision: 347741
URL: http://svnweb.freebsd.org/changeset/ports/347741
QAT: https://qat.redports.org/buildarchive/r347741/

Log:
  Fix the build on big-endian arches (again).  It was fixed once already in
  r220419, but apparently some bugs just like to come back.  Also, it looks
  like ia64 was added in r303640 rather unfairly, so just remove the BROKEN
  statement altogether.
  
  Tested on:	eris, flame (unfortunately, non-GUI builds only)

Modified:
  head/security/ophcrack/Makefile

Modified: head/security/ophcrack/Makefile
==============================================================================
--- head/security/ophcrack/Makefile	Mon Mar 10 11:40:06 2014	(r347740)
+++ head/security/ophcrack/Makefile	Mon Mar 10 11:40:33 2014	(r347741)
@@ -45,12 +45,17 @@ LIB_DEPENDS+=	qwt:${PORTSDIR}/x11-toolki
 CONFIGURE_ARGS+=	--disable-graph
 .endif
 
+post-patch:
+	@${REINPLACE_CMD} -E '/#include <byteswap\.h>/d ; \
+		/#include/s,"bswap\.h",<machine/endian.h>, ; \
+		s,bswap_([[:digit:]]+),bswap\1, ' \
+			${WRKSRC}/src/samdump2/bkhive.c \
+			${WRKSRC}/src/samdump2/hive.c \
+			${WRKSRC}/src/samdump2/samdump2.c \
+			${WRKSRC}/src/misc.h
+
 post-install:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 
-.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
-BROKEN=		Does not compile on ia64, powerpc, or sparc64
-.endif
-
 .include <bsd.port.mk>



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