Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2014 21:11:36 GMT
From:      Alexander Lunkov <lunkov@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/186498: www/cas build failure
Message-ID:  <201402052111.s15LBaHR020656@oldred.freebsd.org>
Resent-Message-ID: <201402052120.s15LK0P9010111@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         186498
>Category:       ports
>Synopsis:       www/cas build failure
>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:   Wed Feb 05 21:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Lunkov
>Release:        10.0-RELEASE
>Organization:
>Environment:
FreeBSD  10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Port www/cas build failed on FreeBSD 10.
>How-To-Repeat:
cd /usr/ports/www/cas && make
>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	cas
#	cas/pkg-descr
#	cas/files
#	cas/files/patch-CMakeLists.txt
#	cas/pkg-plist
#	cas/Makefile
#
echo c - cas
mkdir -p cas > /dev/null 2>&1
echo x - cas/pkg-descr
sed 's/^X//' >cas/pkg-descr << '1c0338d386d75be29a08da1bf3118d36'
XC++ Application Server, version 2
X
XWWW: http://ctpp.havoc.ru/
1c0338d386d75be29a08da1bf3118d36
echo c - cas/files
mkdir -p cas/files > /dev/null 2>&1
echo x - cas/files/patch-CMakeLists.txt
sed 's/^X//' >cas/files/patch-CMakeLists.txt << '3a2621de50392868f0e1bccd501933d0'
X--- CMakeLists.txt.orig	2012-05-29 17:56:42.000000000 +0400
X+++ CMakeLists.txt	2014-02-06 00:35:40.000000000 +0400
X@@ -33,6 +33,9 @@ SET(CAS_LIBEXEC_DIR)
X # CAS share dir
X SET(CAS_SHAREDIR "${CMAKE_INSTALL_PREFIX}/share/cas")
X 
X+# CAS conf dir
X+SET(CAS_CONFDIR "${CMAKE_INSTALL_PREFIX}/etc/cas")
X+
X # Force linking with libstdc++, need for Solaris
X SET(FORCE_LBSTDCPP_LINKING "OFF")
X 
X@@ -293,7 +296,7 @@ IF (ICONV_INCLUDE)
X     INCLUDE_DIRECTORIES(${ICONV_INCLUDE})
X 
X     IF (NOT "${SKIP_ICONV_LIRARY}" MATCHES "ON")
X-        FIND_LIBRARY(ICONV_LIBRARY NAMES iconv PATHS /lib
X+        FIND_LIBRARY(ICONV_LIBRARY NAMES kiconv PATHS /lib
X                                                      /opt/lib
X                                                      /usr/lib
X                                                      /usr/local/lib
X@@ -380,7 +383,7 @@ SET_TARGET_PROPERTIES(cas PROPERTIES OUT
X SET_TARGET_PROPERTIES(cas PROPERTIES LINKER_LANGUAGE CXX)
X SET_TARGET_PROPERTIES(cas PROPERTIES VERSION ${AS_VERSION} SOVERSION ${AS_VERSION_MAJOR})
X TARGET_LINK_LIBRARIES(cas ${HAVE_ctpp2} ${HAVE_expat} ${ICONV_LIBRARY} ${HAVE_pcre} ${HAVE_curl} ${MD5_LIBRARY} ${HAVE_dl} ${RT_LIBRARY})
X-SET_PROPERTY(TARGET cas PROPERTY LINK_INTERFACE_LIBRARIES "")
X+#SET_PROPERTY(TARGET cas PROPERTY LINK_INTERFACE_LIBRARIES "")
X 
X # ################################################################################
X # Loadable modules
X@@ -865,7 +868,7 @@ ENDIF (INSTALL_CAS_DATA MATCHES "ON")
X IF (INSTALL_CAS_CONFIGS MATCHES "ON")
X     INSTALL(FILES conf/global-config.xml.sample
X                   conf/vhost-config.xml.sample
X-            DESTINATION ${CAS_SHAREDIR}/conf
X+            DESTINATION ${CAS_CONFDIR}/
X             PERMISSIONS OWNER_READ OWNER_WRITE
X                         GROUP_READ
X                         WORLD_READ)
3a2621de50392868f0e1bccd501933d0
echo x - cas/pkg-plist
sed 's/^X//' >cas/pkg-plist << 'bbe5cbd5b1dbf17464c7635a6c03fd97'
X%%CAS_BINARIES%%bin/cas-config
X%%CAS_BINARIES%%bin/cas-globalconf
X%%CAS_BINARIES%%bin/cas-hostconf
X%%CAS_BINARIES%%bin/cas-regexp
X%%CAS_BINARIES%%bin/cas-server
X%%CAS_BINARIES%%bin/cas-xmlrpc-parser
X%%CAS_BINARIES%%bin/cas-xt
X%%CAS_HEADERS%%include/cas/ASConfigErrorHandler.hpp
X%%CAS_HEADERS%%include/cas/ASCookie.hpp
X%%CAS_HEADERS%%include/cas/ASDataFilter.hpp
X%%CAS_HEADERS%%include/cas/ASDebugHelper.hpp
X%%CAS_HEADERS%%include/cas/ASEventCodes.hpp
X%%CAS_HEADERS%%include/cas/ASException.hpp
X%%CAS_HEADERS%%include/cas/ASFile.hpp
X%%CAS_HEADERS%%include/cas/ASFilePool.hpp
X%%CAS_HEADERS%%include/cas/ASGenericConfigHandler.hpp
X%%CAS_HEADERS%%include/cas/ASGetOpt.hpp
X%%CAS_HEADERS%%include/cas/ASGlobalConfig.hpp
X%%CAS_HEADERS%%include/cas/ASHandler.hpp
X%%CAS_HEADERS%%include/cas/ASHandlerConfig.hpp
X%%CAS_HEADERS%%include/cas/ASHostConfig.hpp
X%%CAS_HEADERS%%include/cas/ASLoadableObject.hpp
X%%CAS_HEADERS%%include/cas/ASLoader.hpp
X%%CAS_HEADERS%%include/cas/ASLocation.hpp
X%%CAS_HEADERS%%include/cas/ASLocationURI.hpp
X%%CAS_HEADERS%%include/cas/ASLogCodes.hpp
X%%CAS_HEADERS%%include/cas/ASLogger.hpp
X%%CAS_HEADERS%%include/cas/ASMD5.hpp
X%%CAS_HEADERS%%include/cas/ASModule.hpp
X%%CAS_HEADERS%%include/cas/ASNetworkRange.hpp
X%%CAS_HEADERS%%include/cas/ASObject.hpp
X%%CAS_HEADERS%%include/cas/ASObjectLoader.hpp
X%%CAS_HEADERS%%include/cas/ASPCRE.hpp
X%%CAS_HEADERS%%include/cas/ASPreRequestHandler.hpp
X%%CAS_HEADERS%%include/cas/ASPreRequestHandlerConfig.hpp
X%%CAS_HEADERS%%include/cas/ASProfiler.hpp
X%%CAS_HEADERS%%include/cas/ASPool.hpp
X%%CAS_HEADERS%%include/cas/ASRequest.hpp
X%%CAS_HEADERS%%include/cas/ASResourceStorage.hpp
X%%CAS_HEADERS%%include/cas/ASResponse.hpp
X%%CAS_HEADERS%%include/cas/ASResponseCodes.hpp
X%%CAS_HEADERS%%include/cas/ASResponseWriter.hpp
X%%CAS_HEADERS%%include/cas/ASServer.hpp
X%%CAS_HEADERS%%include/cas/ASServerContext.hpp
X%%CAS_HEADERS%%include/cas/ASServerManager.hpp
X%%CAS_HEADERS%%include/cas/ASSysHeaders.h
X%%CAS_HEADERS%%include/cas/ASTemplate.hpp
X%%CAS_HEADERS%%include/cas/ASTypes.hpp
X%%CAS_HEADERS%%include/cas/ASUtil.hpp
X%%CAS_HEADERS%%include/cas/ASView.hpp
X%%CAS_HEADERS%%include/cas/ASViewConfig.hpp
X%%CAS_HEADERS%%include/cas/ASXMLHandler.hpp
X%%CAS_HEADERS%%include/cas/ASXMLParser.hpp
X%%CAS_HEADERS%%include/cas/ASXMLRPCHandler.hpp
X%%CAS_HEADERS%%include/cas/STLException.hpp
X%%CAS_HEADERS%%include/cas/STLFunctional.hpp
X%%CAS_HEADERS%%include/cas/STLMap.hpp
X%%CAS_HEADERS%%include/cas/STLPair.hpp
X%%CAS_HEADERS%%include/cas/STLString.hpp
X%%CAS_HEADERS%%include/cas/STLVector.hpp
X%%CURL_XMLRPC_CLIENT%%include/cas/ASXMLRPCClient.hpp
X%%CAS_LIBRARY%%lib/libcas.so.%%PORTVERSION%%
X%%CAS_LIBRARY%%lib/libcas.so.3
X%%CAS_LIBRARY%%lib/libcas.so
X%%CAS_LIBRARY%%lib/libcas-st.a
X%%APACHE2X_MODULE%%libexec/apache22/mod_cas2.so
X%%CAS_MODULES%%libexec/cas/mod_ctpp_view.so
X%%CAS_MODULES%%libexec/cas/mod_json_view.so
X%%CAS_MODULES%%libexec/cas/mod_jsonrpc_view.so
X%%CAS_MODULES%%libexec/cas/mod_plain_view.so
X%%CAS_MODULES%%libexec/cas/mod_xmlrpc_view.so
X%%CAS_MODULES%%libexec/cas/mod_xml_view.so
X%%CAS_MODULES%%libexec/cas/mod_tabseparated_view.so
X%%CAS_MODULES%%libexec/cas/mod_http_redirect_view.so
X%%CAS_CONFIGS%%etc/cas/global-config.xml.sample
X%%CAS_CONFIGS%%etc/cas/vhost-config.xml.sample
X%%CAS_DATA%%share/cas/tmpl/redirect/html-redirect.tmpl
X%%CAS_DATA%%share/cas/tmpl/redirect/wml-redirect.tmpl
X%%CAS_DATA%%share/cas/examples/request.json
X%%CAS_DATA%%share/cas/xt/HandlerTemplate.tmpl
X%%CAS_DATA%%share/cas/xt/PreRequestHandlerTemplate.tmpl
X%%CAS_DATA%%share/cas/xt/ViewTemplate.tmpl
X%%CAS_DATA%%share/cas/xt/CMakeLists.tmpl
X%%CAS_DATA%%share/cas/xt/ConfigureLibrary.cmake
X%%CAS_DATA%%share/cas/xt/ConfigurePackage.cmake
X%%CAS_DATA%%share/cas/xt/RenameModule.cmake
X%%EXAMPLE_MODULES%%lib/libexampleclass.so.3.5.5
X%%EXAMPLE_MODULES%%lib/libexampleclass.so.3
X%%EXAMPLE_MODULES%%lib/libexampleclass.so
X%%EXAMPLE_MODULES%%libexec/cas/mod_example_handler.so
X%%EXAMPLE_MODULES%%libexec/cas/mod_example_module.so
X%%EXAMPLE_MODULES%%libexec/cas/mod_example_view.so
X@exec mkdir -p %D/include/cas
X@exec mkdir -p %D/libexec/cas
X@exec mkdir -p %D/share/cas/tmpl/redirect
X@exec mkdir -p %D/share/cas/tmpl
X@exec mkdir -p %D/share/cas/examples
X@exec mkdir -p %D/share/cas/xt/
X@exec mkdir -p %D/share/cas/
X@exec mkdir -p %D/etc/cas/
X@dirrmtry etc/cas
X@dirrm include/cas
X@dirrm libexec/cas
X@dirrm share/cas/tmpl/redirect
X@dirrm share/cas/tmpl
X@dirrm share/cas/examples
X@dirrm share/cas/xt/
X@dirrm share/cas/
bbe5cbd5b1dbf17464c7635a6c03fd97
echo x - cas/Makefile
sed 's/^X//' >cas/Makefile << 'a7ce65e9094a6102cad0e4c4b55b017e'
X# Created by: Alexander Lunkov <lunkov@gmail.com>
X# $FreeBSD: www/cas/Makefile 336335 2013-12-13 11:27:38Z bapt $
X
XPORTNAME=	cas
XPORTVERSION=	3.5.6
XPORTREVISION=	3
XCATEGORIES=	www devel
XMASTER_SITES=	http://cas.havoc.ru/download/
X
XMAINTAINER=	lunkov@gmail.com
XCOMMENT=	C++ Application Server, version 2
X
XLIB_DEPENDS=	expat:${PORTSDIR}/textproc/expat2 \
X		pcre:${PORTSDIR}/devel/pcre       \
X		ctpp2:${PORTSDIR}/textproc/ctpp2
X
XUSES=		cmake iconv
XUSE_LDCONFIG=	yes
XUSE_GCC=	any
X
XOPTIONS_DEFINE=	DEBUG_MODE               \
X		ENABLE_OPTIMIZATION      \
X		BUILD_APACHE2X_MODULE    \
X		BUILD_CURL_XMLRPC_CLIENT \
X		INSTALL_EXAMPLE_MODULES  \
X		INSTALL_CAS_LIBRARY      \
X		INSTALL_CAS_MODULES      \
X		INSTALL_CAS_HEADERS      \
X		INSTALL_CAS_CONFIGS      \
X		INSTALL_CAS_BINARIES     \
X		INSTALL_CAS_DATA
X
XOPTIONS_DEFAULT=ENABLE_OPTIMIZATION      \
X		BUILD_APACHE2X_MODULE    \
X		BUILD_CURL_XMLRPC_CLIENT \
X		INSTALL_CAS_LIBRARY      \
X		INSTALL_CAS_MODULES      \
X		INSTALL_CAS_HEADERS      \
X		INSTALL_CAS_CONFIGS      \
X		INSTALL_CAS_BINARIES     \
X		INSTALL_CAS_DATA
X
XDEBUG_MODE_DESC=		Enable debug output
XENABLE_OPTIMIZATION_DESC=	Enable optimization
XBUILD_APACHE2X_MODULE_DESC=	Build Apache 2.x module
XBUILD_CURL_XMLRPC_CLIENT_DESC=	Build cURL-based XMLRPC client
XINSTALL_EXAMPLE_MODULES_DESC= 	Install example modules
XINSTALL_CAS_LIBRARY_DESC=	Install CAS library (libcas)
XINSTALL_CAS_MODULES_DESC=	Install CAS modules
XINSTALL_CAS_HEADERS_DESC=	Install CAS headers
XINSTALL_CAS_CONFIGS_DESC=	Install CAS configuration files
XINSTALL_CAS_BINARIES_DESC=	Install CAS binaries
XINSTALL_CAS_DATA_DESC=		Install CAS data files
X
XPLIST_SUB+=	PORTVERSION=${PORTVERSION}
X
XNO_STAGE=	yes
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MDEBUG_MODE}
XCMAKE_ARGS+=	-DDEBUG_MODE=ON
X.else
XCMAKE_ARGS+=	-DDEBUG_MODE=OFF
X.endif
X
X.if ${PORT_OPTIONS:MENABLE_OPTIMIZATION}
XCMAKE_ARGS+=	-DENABLE_OPTIMIZATION=ON
X.else
XCMAKE_ARGS+=	-DENABLE_OPTIMIZATION=OFF
X.endif
X
XCMAKE_ARGS+=	-DBUILD_APACHE13_MODULE=OFF
X
X.if ${PORT_OPTIONS:MBUILD_APACHE2X_MODULE}
XUSE_APACHE=	22
XCMAKE_ARGS+=	-DBUILD_APACHE2X_MODULE=ON
XPLIST_SUB+=	APACHE2X_MODULE=""
X.else
XCMAKE_ARGS+=	-DBUILD_APACHE2X_MODULE=OFF
XPLIST_SUB+=	APACHE2X_MODULE="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MBUILD_CURL_XMLRPC_CLIENT}
XLIB_DEPENDS+=	curl:${PORTSDIR}/ftp/curl
XCMAKE_ARGS+=	-DBUILD_CURL_XMLRPC_CLIENT=ON
XPLIST_SUB+=	CURL_XMLRPC_CLIENT=""
X.else
XCMAKE_ARGS+=	-DBUILD_CURL_XMLRPC_CLIENT=OFF
XPLIST_SUB+=	CURL_XMLRPC_CLIENT="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MINSTALL_EXAMPLE_MODULES}
XCMAKE_ARGS+=	-DINSTALL_EXAMPLE_MODULES=ON
XPLIST_SUB+=	EXAMPLE_MODULES=""
X.else
XCMAKE_ARGS+=	-DINSTALL_EXAMPLE_MODULES=OFF
XPLIST_SUB+=	EXAMPLE_MODULES="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MINSTALL_CAS_LIBRARY}
XCMAKE_ARGS+=	-DINSTALL_CAS_LIBRARY=ON
XPLIST_SUB+=	CAS_LIBRARY=""
X.else
XCMAKE_ARGS+=	-DINSTALL_CAS_LIBRARY=OFF
XPLIST_SUB+=	CAS_LIBRARY="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MINSTALL_CAS_MODULES}
XCMAKE_ARGS+=	-DINSTALL_CAS_MODULES=ON
XPLIST_SUB+=	CAS_MODULES=""
X.else
XCMAKE_ARGS+=	-DINSTALL_CAS_MODULES=OFF
XPLIST_SUB+=	CAS_MODULES="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MINSTALL_CAS_HEADERS}
XCMAKE_ARGS+=	-DINSTALL_CAS_HEADERS=ON
XPLIST_SUB+=	CAS_HEADERS=""
X.else
XCMAKE_ARGS+=	-DINSTALL_CAS_HEADERS=OFF
XPLIST_SUB+=	CAS_HEADERS="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MINSTALL_CAS_CONFIGS}
XCMAKE_ARGS+=	-DINSTALL_CAS_CONFIGS=ON
XPLIST_SUB+=	CAS_CONFIGS=""
X.else
XCMAKE_ARGS+=	-DINSTALL_CAS_CONFIGS=OFF
XPLIST_SUB+=	CAS_CONFIGS="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MINSTALL_CAS_BINARIES}
XCMAKE_ARGS+=	-DINSTALL_CAS_BINARIES=ON
XPLIST_SUB+=	CAS_BINARIES=""
X.else
XCMAKE_ARGS+=	-DINSTALL_CAS_BINARIES=OFF
XPLIST_SUB+=	CAS_BINARIES="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MINSTALL_CAS_DATA}
XCMAKE_ARGS+=	-DINSTALL_CAS_DATA=ON
XPLIST_SUB+=	CAS_DATA=""
X.else
XCMAKE_ARGS+=	-DINSTALL_CAS_DATA=OFF
XPLIST_SUB+=	CAS_DATA="@comment "
X.endif
X
X.include <bsd.port.mk>
a7ce65e9094a6102cad0e4c4b55b017e
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



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