Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2008 22:08:10 +0200 (CEST)
From:      Martin Dieringer <martin.dieringer@gmx.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/127590: [PATCH] textproc/db2latex: fix compilation error
Message-ID:  <alpine.BSF.2.00.0809232204080.1681@thinkpad.nowhere.local>
Resent-Message-ID: <200809232010.m8NKA1Wl093397@freefall.freebsd.org>

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

>Number:         127590
>Category:       ports
>Synopsis:       [PATCH] textproc/db2latex: fix compilation error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 23 20:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Martin Dieringer
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD thinkpad 7.0-STABLE FreeBSD 7.0-STABLE #22: Fri Mar  7 04:18:13 CET
>Description:

patch fixes "compilation error: file [...]db2latex/xsl/qandaset.mod.xsl line 366 element template" 
see http://bugs.gentoo.org/show_bug.cgi?id=129367

Added file(s):
- files/patch-xsl-common-common.xsl

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- db2latex-0.8p1_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/textproc/db2latex/Makefile /data/compile/db2latex_port/Makefile
--- /usr/ports/textproc/db2latex/Makefile	2008-09-23 21:53:44.000000000 +0200
+++ /data/compile/db2latex_port/Makefile	2008-09-23 21:58:58.000000000 +0200
@@ -8,6 +8,7 @@

  PORTNAME=	db2latex
  PORTVERSION=	0.8p1
+PORTREVISION=	1
  CATEGORIES=	textproc
  MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
  MASTER_SITE_SUBDIR=	${PORTNAME}
diff -ruN --exclude=CVS /usr/ports/textproc/db2latex/files/patch-xsl-common-common.xsl /data/compile/db2latex_port/files/patch-xsl-common-common.xsl
--- /usr/ports/textproc/db2latex/files/patch-xsl-common-common.xsl	1970-01-01 01:00:00.000000000 +0100
+++ /data/compile/db2latex_port/files/patch-xsl-common-common.xsl	2008-09-23 21:53:26.000000000 +0200
@@ -0,0 +1,92 @@
+--- xsl/common/common.xsl~	2005-03-10 23:09:55.639189152 +0100
++++ xsl/common/common.xsl	2005-03-10 23:10:50.762690340 +0100
+@@ -356,89 +356,6 @@
+   <xsl:value-of select="count($anc.divs) + number($section.level)"/>
+ </xsl:template>
+ 
+-<xsl:template name="question.answer.label">
+-  <xsl:variable name="deflabel">
+-    <xsl:choose>
+-      <xsl:when test="ancestor-or-self::*[@defaultlabel]">
+-        <xsl:value-of select="(ancestor-or-self::*[@defaultlabel])[last()]
+-                              /@defaultlabel"/>
+-      </xsl:when>
+-      <xsl:otherwise>
+-        <xsl:value-of select="$qanda.defaultlabel"/>
+-      </xsl:otherwise>
+-    </xsl:choose>
+-  </xsl:variable>
+-
+-  <xsl:variable name="label" select="@label"/>
+-
+-<!--
+- (hnr      (hierarchical-number-recursive (normalize "qandadiv") node))
+-
+-	 (parsect  (ancestor-member node (section-element-list)))
+-
+-	 (defnum   (if (and %qanda-inherit-numeration% 
+-			    %section-autolabel%)
+-		       (if (node-list-empty? parsect)
+-			   (section-autolabel-prefix node)
+-			   (section-autolabel parsect))
+-		       ""))
+-
+-	 (hnumber  (let loop ((numlist hnr) (number defnum) 
+-			      (sep (if (equal? defnum "") "" ".")))
+-		     (if (null? numlist)
+-			 number
+-			 (loop (cdr numlist) 
+-			       (string-append number
+-					      sep
+-					      (number->string (car numlist)))
+-			       "."))))
+-	 (cnumber  (child-number (parent node)))
+-	 (number   (string-append hnumber 
+-				  (if (equal? hnumber "")
+-				      ""
+-				      ".")
+-				  (number->string cnumber))))
+--->
+-
+-  <xsl:choose>
+-    <xsl:when test="$deflabel = 'qanda'">
+-      <xsl:call-template name="gentext">
+-        <xsl:with-param name="key">
+-          <xsl:choose>
+-            <xsl:when test="local-name(.) = 'question'">question</xsl:when>
+-            <xsl:when test="local-name(.) = 'answer'">answer</xsl:when>
+-            <xsl:when test="local-name(.) = 'qandadiv'">qandadiv</xsl:when>
+-            <xsl:otherwise>qandaset</xsl:otherwise>
+-          </xsl:choose>
+-        </xsl:with-param>
+-      </xsl:call-template>
+-    </xsl:when>
+-    <xsl:when test="$deflabel = 'label'">
+-      <xsl:value-of select="$label"/>
+-    </xsl:when>
+-    <xsl:when test="$deflabel = 'number'
+-                    and local-name(.) = 'question'">
+-      <xsl:apply-templates select="ancestor::qandaset[1]"
+-                           mode="number"/>
+-      <xsl:choose>
+-        <xsl:when test="ancestor::qandadiv">
+-          <xsl:apply-templates select="ancestor::qandadiv[1]"
+-                               mode="number"/>
+-          <xsl:apply-templates select="ancestor::qandaentry"
+-                               mode="number"/>
+-        </xsl:when>
+-        <xsl:otherwise>
+-          <xsl:apply-templates select="ancestor::qandaentry"
+-                               mode="number"/>
+-        </xsl:otherwise>
+-      </xsl:choose>
+-    </xsl:when>
+-    <xsl:otherwise>
+-      <!-- nothing -->
+-    </xsl:otherwise>
+-  </xsl:choose>
+-</xsl:template>
+-
+ <xsl:template match="qandaset" mode="number">
+   <!-- FIXME: -->
+ </xsl:template>
--- db2latex-0.8p1_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:
 SEND-PR: 	[ non-critical | serious | critical ] 
 SEND-PR: 	[ low | medium | high ]
 SEND-PR: <choose from the list of categories below (one line)>
 SEND-PR: advocacy  alpha     bin       conf      docs      gnu 
 SEND-PR: i386      ia64      java      kern      misc      ports 
 SEND-PR: powerpc   sparc64   standards www 
 SEND-PR: [ sw-bug | doc-bug | change-request | update | maintainer-update ]



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