ports/146327: Subject: Patch to fix cd /usr/ports/textproc/docbook-sk ; make reinstall

Julian H. Stacey jhs at berklix.com
Wed May 5 12:20:01 UTC 2010


>Number:         146327
>Category:       ports
>Synopsis:       Subject: Patch to fix cd /usr/ports/textproc/docbook-sk ; make reinstall
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 05 12:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Julian H. Stacey
>Release:        FreeBSD 8.0-RELEASE amd64
>Organization:
http://berklix.com BSD Linux Unix Consultancy, Munich/Muenchen.
>Environment:
System: FreeBSD fire.js.berklix.net 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Wed Apr 21 10:27:18 CEST 2010 jhs at fire.js.berklix.net:/usr1/src/sys/amd64/compile/FIRE64.small2 amd64


	
>Description:
	
xmlcatmgr: entry already exists for `-//OASIS//ELEMENTS DocBook XML Informatio
n Pool V4.1.2//EN' of type `public'
  *** Error code 1


>How-To-Repeat:
	
	cd /usr/ports/textproc/docbook-sk ; make reinstall
>Fix:

	


patch:
http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/ports/gen/textproc/docbook-sk/Makefile.REL=ALL.diff

To avoid this error:
  cd /usr/ports/textproc/docbook-sk ; make reinstall
  ===>  Installing for docbook-sk-4.1.2_4
  ===>   docbook-sk-4.1.2_4 depends on file: /usr/local/bin/xmlcatmgr - found
  ===>   Generating temporary packing list
  for file in `/usr/bin/find /usra/ftp/pri/host/fire/usr/ports/textproc/docbook-sk/work -type f | /usr/bin/sed -e 's|^/usra/ftp/pri/host/fire/usr/ports/textproc/docbook-sk/work/||' | /usr/bin/grep -v '^\.' | /usr/bin/sort`; do  install  -o root -g wheel -m 444 /usra/ftp/pri/host/fire/usr/ports/textproc/docbook-sk/work/$file /usr/local/share/xml/docbook/4.1.2/$file;  done
  xmlcatmgr: entry already exists for `-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN' of type `public'
  *** Error code 1

*** 8.0-RELEASE/ports/textproc/docbook-sk/Makefile	Wed May  5 13:59:28 2010
--- new-generic/ports/textproc/docbook-sk/Makefile	Wed May  5 14:03:47 2010
***************
*** 32,38 ****
  CATALOG_PORTS_XML=	${PREFIX}/share/xml/catalog.ports
  
  pre-su-install:
! 	@[ -d ${DOCBOOKDIR}/ent ] || ${MKDIR} ${DOCBOOKDIR}/ent
  
  do-install:
  	for file in `${FIND} ${WRKSRC} -type f | ${SED} -e 's|^${WRKSRC}/||' | ${GREP} -v '^\.' | ${SORT}`; do \
--- 32,38 ----
  CATALOG_PORTS_XML=	${PREFIX}/share/xml/catalog.ports
  
  pre-su-install:
! 	[ -d ${DOCBOOKDIR}/ent ] || ${MKDIR} ${DOCBOOKDIR}/ent
  
  do-install:
  	for file in `${FIND} ${WRKSRC} -type f | ${SED} -e 's|^${WRKSRC}/||' | ${GREP} -v '^\.' | ${SORT}`; do \
***************
*** 40,54 ****
  	done
  
  post-install:
! 	@${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" file://${DOCBOOKDIR}/dbpoolx.mod
! 	@${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//DTD DocBook XML V4.1.2//EN" file://${DOCBOOKDIR}/docbookx.dtd
! 	@${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" file://${DOCBOOKDIR}/dbcentx.mod
! 	@${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" file://${DOCBOOKDIR}/dbnotnx.mod
! 	@${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" file://${DOCBOOKDIR}/dbgenent.mod
! 	@${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" file://${DOCBOOKDIR}/dbhierx.mod
! 	@${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//DTD XML Exchange Table Model 19990315//EN" file://${DOCBOOKDIR}/soextblx.dtd
! 	@${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" file://${DOCBOOKDIR}/calstblx.dtd
! 	@${XMLCATMGR} -c ${CATALOG_PORTS_XML} add rewriteSystem "http://www.oasis-open.org/docbook/xml/4.1.2" file://${DOCBOOKDIR}
! 	@${XMLCATMGR} -c ${CATALOG_PORTS_XML} add rewriteURI "http://www.oasis-open.org/docbook/xml/4.1.2" file://${DOCBOOKDIR}
  
  .include <bsd.port.mk>
--- 40,54 ----
  	done
  
  post-install:
! 	-${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" file://${DOCBOOKDIR}/dbpoolx.mod
! 	-${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//DTD DocBook XML V4.1.2//EN" file://${DOCBOOKDIR}/docbookx.dtd
! 	-${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" file://${DOCBOOKDIR}/dbcentx.mod
! 	-${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" file://${DOCBOOKDIR}/dbnotnx.mod
! 	-${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" file://${DOCBOOKDIR}/dbgenent.mod
! 	-${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" file://${DOCBOOKDIR}/dbhierx.mod
! 	-${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//DTD XML Exchange Table Model 19990315//EN" file://${DOCBOOKDIR}/soextblx.dtd
! 	-${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" file://${DOCBOOKDIR}/calstblx.dtd
! 	-${XMLCATMGR} -c ${CATALOG_PORTS_XML} add rewriteSystem "http://www.oasis-open.org/docbook/xml/4.1.2" file://${DOCBOOKDIR}
! 	-${XMLCATMGR} -c ${CATALOG_PORTS_XML} add rewriteURI "http://www.oasis-open.org/docbook/xml/4.1.2" file://${DOCBOOKDIR}
  
  .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list