Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Jan 2015 15:06:18 +0000 (UTC)
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r376120 - in head/www/mod_cplusplus: . files
Message-ID:  <201501031506.t03F6I6g094451@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ohauer
Date: Sat Jan  3 15:06:17 2015
New Revision: 376120
URL: https://svnweb.freebsd.org/changeset/ports/376120
QAT: https://qat.redports.org/buildarchive/r376120/

Log:
  - try to fix linker error (/usr/bin/ld: cannot find -lstdc++) [1]
  - mark broken on FreeBSD > 1001000
  - mark DEPRECATED, set EXPIRATION_DATE to 2015-02-28 [2]
  - bump PORTREVISION to allert potential users
  
  [1] setting ac_cv_header_stdc=no or CPPFLAGS+=-DNO_STDCPP in Makefile
      does not work, so try to fix direct configure.in
  
  [2] source written for apache 2.0, last release dates back to 2008-07-08

Added:
  head/www/mod_cplusplus/files/patch-configure.in   (contents, props changed)
Modified:
  head/www/mod_cplusplus/Makefile

Modified: head/www/mod_cplusplus/Makefile
==============================================================================
--- head/www/mod_cplusplus/Makefile	Sat Jan  3 14:51:08 2015	(r376119)
+++ head/www/mod_cplusplus/Makefile	Sat Jan  3 15:06:17 2015	(r376120)
@@ -3,7 +3,7 @@
 
 PORTNAME=	mod_cplusplus
 PORTVERSION=	1.5.4
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	www
 MASTER_SITES=	SF/modcplusplus/modcplusplus/${PORTNAME}-${PORTVERSION}
 PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}
@@ -11,6 +11,9 @@ PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}
 MAINTAINER=	apache@FreeBSD.org
 COMMENT=	Apache module for loading C++ objects as handlers
 
+DEPRECATED=	written for apache 2.0, no longer maintained upstream
+EXPIRATION_DATE=	2015-02-28
+
 USES=		libtool
 USE_APACHE=	22
 USE_AUTOTOOLS=	libtoolize aclocal autoconf autoheader automake
@@ -25,6 +28,12 @@ SUB_LIST=	"APACHEMODDIR=${APACHEMODDIR}"
 
 WRKSRC=	${WRKDIR}/${PORTNAME}
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == "FreeBSD" && ${OSVERSION} > 1001000
+BROKEN=	does not build with new clang
+.endif
+
 post-patch:
 	${REINPLACE_CMD} -e 's,-Werror,,' ${WRKSRC}/configure.in
 
@@ -36,4 +45,4 @@ do-install:
 	${INSTALL_LIB} ${WRKSRC}/src/.libs/libmod_cplusplus.so \
 		${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_cplusplus.so
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Added: head/www/mod_cplusplus/files/patch-configure.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/mod_cplusplus/files/patch-configure.in	Sat Jan  3 15:06:17 2015	(r376120)
@@ -0,0 +1,14 @@
+--- configure.in.orig	2007-04-09 17:25:44 UTC
++++ configure.in
+@@ -62,10 +62,7 @@ if test "x$INCLUDES" == "x" ; then
+ 	AC_MSG_ERROR(could not generate includes with apxs set to "$APXS" - you must specify a valid path to apxs using the --with-apxs flag)
+ fi
+ 
+-AC_CHECK_LIB(stdc++, __gxx_personality_v0, LIB_STDCPP="-lstdc++")
+-    if test "$LIB_STDCPP" == "" ; then
+-	CPPFLAGS="$CPPFLAGS -DNO_STDCPP"
+-    fi 
++CPPFLAGS="$CPPFLAGS -DNO_STDCPP"
+ CPLUSPLUS_BUILDDIR=`pwd`
+ CPPFLAGS="$CPPFLAGS -Wall -Werror -g -I$CPLUSPLUS_BUILDDIR/include"
+ 



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