Date: Fri, 26 Oct 2007 19:32:08 GMT From: pluknet <pluknet@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/117540: [patch] unbrake www/mod_ntlm on gcc 4.2 Message-ID: <200710261932.l9QJW8oL098376@www.freebsd.org> Resent-Message-ID: <200710261940.l9QJe149045646@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 117540 >Category: ports >Synopsis: [patch] unbrake www/mod_ntlm on gcc 4.2 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 26 19:40:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: pluknet >Release: 7.0-BETA1 >Organization: >Environment: 7.0-BETA1, gcc 4.2.1 20070719 [FreeBSD] >Description: this patch helps to build www/mod_ntlm on OSVERSION >= 700042 (with gcc 4.2.1) I have at least one positive response from testers. >How-To-Repeat: run 'make' to see that: "Does not compile with GCC 4.2" >Fix: Apply the patch against www/mod_ntlm/ Patch attached with submission follows: --- Makefile.orig 2007-10-26 09:16:41.000000000 +0400 +++ Makefile 2007-10-26 09:29:46.000000000 +0400 @@ -2,7 +2,7 @@ # Date created: 04 July 2004 # Whom: Sergey Skvortsov <skv@protey.ru> # -# $FreeBSD: ports/www/mod_ntlm/Makefile,v 1.3 2007/09/30 09:35:55 linimon Exp $ +# $FreeBSD$ # PORTNAME= mod_ntlm @@ -17,12 +17,17 @@ USE_APACHE= YES MAKE_ENV= APXS=${APXS} +.include <bsd.port.pre.mk> + post-patch: ${FIND} ${WRKSRC}/smbval -name "*.inc.c" -type f|${XARGS} \ ${REINPLACE_CMD} -e "s/malloc.h/stdlib.h/g" ${REINPLACE_CMD} -e "s/APXS=.*//" ${WRKSRC}/Makefile ${REINPLACE_CMD} -e "s!#include <sys/vfs.*!!" \ ${WRKSRC}/smbval/smbencrypt.inc.c +.if ${OSVERSION} >= 700042 + ${REINPLACE_CMD} -e "s/extern/static/" ${WRKSRC}/smbval/smblib-priv.h +.endif post-install: .ifndef(NOPORTDOCS) @@ -31,10 +36,4 @@ ${INSTALL_DATA} ${WRKSRC}/Documentation/mod_ntlm.html ${DOCSDIR} .endif -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 700042 -BROKEN= Does not compile with GCC 4.2 -.endif - .include <bsd.port.post.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710261932.l9QJW8oL098376>