Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Aug 2008 13:52:58 GMT
From:      Ken Menzel <kenm@icarz.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/126888: [patch] textproc/xerces-c2 port tinderbox failing 
Message-ID:  <200808271352.m7RDqwtl070011@www.freebsd.org>
Resent-Message-ID: <200808271400.m7RE03H2034669@freefall.freebsd.org>

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

>Number:         126888
>Category:       ports
>Synopsis:       [patch] textproc/xerces-c2 port tinderbox failing
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 27 14:00:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Ken Menzel
>Release:        freebsd 7.0
>Organization:
whisolutions
>Environment:
FreeBSD decius.icarz.com 7.0-RELEASE-p3 FreeBSD 7.0-RELEASE-p3 #1: Wed Aug 20 13:28:02 EDT 2008     sysadm@decius.icarz.com:/usr/obj/usr/src/sys/WHI  amd64

>Description:
Port build on tinderbox failed do to find docs installed even though with following vars set:
NOPORTDOCS=yes,  NOPORTEXAMPLES=yes, NOPORTDATA=yes, FORCE_PACKAGE=yes.

Furthur the docs were not deinstalled.  A patch has been created to modify the port to honor NOPORTDOCS=yes and  NOPORTEXAMPLES=yes.


>How-To-Repeat:
build textproc/xerces-c2 with following vars set:
NOPORTDOCS=yes,  NOPORTEXAMPLES=yes, NOPORTDATA=yes, FORCE_PACKAGE=yes and the local config set to install docs and examples.  Install and remove the port. The docs will still be installed but not deinstalled. Examples with be installed and deinstalled.
>Fix:
Please commit the attached patch which change to WITHOUT_DOCS style variables to NOPORTDOCS, same for examples. Patch is also available on http://www.kodem.com/ports/ .

Patch attached with submission follows:

--- Makefile.old	2008-08-26 15:17:28.000000000 -0400
+++ Makefile	2008-08-27 09:23:55.000000000 -0400
@@ -7,6 +7,7 @@
 
 PORTNAME=	xerces-c2
 PORTVERSION=	2.7.0
+PORTREVISION=   1
 CATEGORIES=	textproc
 MASTER_SITES=	${MASTER_SITE_APACHE_XML}
 MASTER_SITE_SUBDIR=	xerces-c/source
@@ -84,7 +85,7 @@
 
 CONFIGURE_ARGS+=	-t ${TRANSCODER}
 
-.if !defined(WITHOUT_DEBUG)
+.if !defined(NODEBUG)
 CONFIGURE_ARGS+=	-d
 STRIP=
 .endif
@@ -111,7 +112,7 @@
 			XERCESC_DEPDOM_LIB=${XERCESC_DEPDOM_LIB} \
 				XERCESC_LIB_VERSION=${XERCESC_LIB_VERSION}
 
-.if !defined(WITHOUT_SAMPLES)
+.if !defined(NOPORTEXAMPLES)
 PLIST_SUB+=	NO_SAMPLES=""
 ALL_TARGET?=	all samples
 XERCES_BINS?=	CreateDOMDocument DOMCount DOMPrint EnumVal MemParse PParse \
@@ -129,7 +130,7 @@
 PLIST_SUB+=	NO_SAMPLES="@comment "
 .endif
 
-.if !defined(WITHOUT_PORTDOCS)
+.if !defined(NOPORTDOCS)
 PORTDOCS=	*
 .endif
 
@@ -149,7 +150,7 @@
 	@${CHMOD} 700 ${CONFIGURE_WRKSRC}/configure
 
 post-configure:
-.if !defined(WITHOUT_SAMPLES)
+.if !defined(NOPORTEXAMPLES)
 .if defined(TRANSCODER) && (${TRANSCODER} == "icu")
 	@(cd ${WRKSRC}/samples && \
 		${SETENV} \
@@ -168,15 +169,15 @@
 .endif
 
 post-install:
-.if defined(WITHOUT_DEBUG)
+.if defined(NODEBUG)
 	@${STRIP_CMD} ${PREFIX}/lib/${XERCESC_LIB}
 	@${STRIP_CMD} ${PREFIX}/lib/${XERCESC_DEPDOM_LIB}
 .endif
-.if !defined(WITHOUT_PORTDOCS)
+.if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
 	@${CP} -r ${WRKSRC}/doc/ ${DOCSDIR}
 .endif
-.if !defined(WITHOUT_SAMPLES)
+.if !defined(NOPORTEXAMPLES)
 	@${MKDIR} ${EXAMPLESDIR}
 .for i in ${XERCES_BINS} data
 	@${CP} -r ${WRKSRC}/samples/$i ${EXAMPLESDIR}


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



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