From nobody@FreeBSD.org  Tue Sep 11 16:01:20 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 4C97D106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Sep 2012 16:01:20 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 2D5AC8FC1A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Sep 2012 16:01:20 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8BG1JgN053322
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Sep 2012 16:01:19 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q8BG1JBl053321;
	Tue, 11 Sep 2012 16:01:19 GMT
	(envelope-from nobody)
Message-Id: <201209111601.q8BG1JBl053321@red.freebsd.org>
Date: Tue, 11 Sep 2012 16:01:19 GMT
From: Pawel Worach <pawel.worach@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] fix build of textproc/jade with clang
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         171547
>Category:       ports
>Synopsis:       [patch] fix build of textproc/jade with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kuriyama
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 11 16:10:03 UTC 2012
>Closed-Date:    Sat Oct 06 05:08:07 UTC 2012
>Last-Modified:  Sat Oct  6 05:10:15 UTC 2012
>Originator:     Pawel Worach
>Release:        FreeBSD 10.0-CURRENT
>Organization:
>Environment:
>Description:
Attached is a patch to fix the textproc/jade build with clang.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -urN -x distfiles ports.orig/textproc/jade/files/patch-TeXFOTBuilder.cxx ports/textproc/jade/files/patch-TeXFOTBuilder.cxx
--- ports.orig/textproc/jade/files/patch-TeXFOTBuilder.cxx	1970-01-01 00:00:00.000000000 +0000
+++ ports/textproc/jade/files/patch-TeXFOTBuilder.cxx	2011-09-24 14:23:57.000000000 +0000
@@ -0,0 +1,20 @@
+--- jade/TeXFOTBuilder.cxx.orig	2011-09-24 14:17:02.000000000 +0000
++++ jade/TeXFOTBuilder.cxx	2011-09-24 14:19:42.000000000 +0000
+@@ -83,6 +83,8 @@
+       value.convertString(nic_.placement);
+       }
+     ExtensionFlowObj *copy() const { return new PageFloatFlowObj(*this); }
++  public:
++    PageFloatFlowObj() {}
+   private:
+     PageFloatNIC nic_;
+     StringC name_;
+@@ -96,6 +98,8 @@
+       fotb.endPageFootnote();
+     }
+     ExtensionFlowObj *copy() const { return new PageFootnoteFlowObj(*this); }
++  public:
++    PageFootnoteFlowObj() {}
+   private:
+   };
+   //////////////////////////////////////////////////////////////////////
diff -urN -x distfiles ports.orig/textproc/jade/files/patch-TransformFOTBuilder.cxx ports/textproc/jade/files/patch-TransformFOTBuilder.cxx
--- ports.orig/textproc/jade/files/patch-TransformFOTBuilder.cxx	1970-01-01 00:00:00.000000000 +0000
+++ ports/textproc/jade/files/patch-TransformFOTBuilder.cxx	2011-09-24 14:24:07.000000000 +0000
@@ -0,0 +1,54 @@
+--- jade/TransformFOTBuilder.cxx.orig	2011-09-24 14:20:28.000000000 +0000
++++ jade/TransformFOTBuilder.cxx	2011-09-24 14:22:32.000000000 +0000
+@@ -41,6 +41,7 @@
+   };
+   class EntityRefFlowObj : public TransformExtensionFlowObj {
+   public:
++    EntityRefFlowObj() {}
+     void atomic(TransformFOTBuilder &fotb, const NodePtr &) const {
+       fotb.entityRef(name_);
+     }
+@@ -56,6 +57,7 @@
+   };
+   class ProcessingInstructionFlowObj : public TransformExtensionFlowObj {
+   public:
++    ProcessingInstructionFlowObj() {}
+     void atomic(TransformFOTBuilder &fotb, const NodePtr &) const {
+       fotb.processingInstruction(data_);
+     }
+@@ -98,6 +100,8 @@
+       }
+     }
+     ExtensionFlowObj *copy() const { return new EmptyElementFlowObj(*this); }
++  public:
++    EmptyElementFlowObj() {}
+   private:
+     ElementNIC nic_;
+   };
+@@ -133,6 +137,8 @@
+       }
+     }
+     ExtensionFlowObj *copy() const { return new ElementFlowObj(*this); }
++  public:
++    ElementFlowObj() {}
+   private:
+     ElementNIC nic_;
+   };
+@@ -150,6 +156,8 @@
+       value.convertString(systemId_);
+     }
+     ExtensionFlowObj *copy() const { return new EntityFlowObj(*this); }
++  public:
++    EntityFlowObj() {};
+   private:
+     StringC systemId_;
+   };
+@@ -174,6 +182,8 @@
+       }
+     }
+     ExtensionFlowObj *copy() const { return new DocumentTypeFlowObj(*this); }
++  public:
++    DocumentTypeFlowObj() {}
+   private:
+     DocumentTypeNIC nic_;
+   };


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kuriyama 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Sep 11 16:10:15 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=171547 
State-Changed-From-To: open->closed 
State-Changed-By: kuriyama 
State-Changed-When: Sat Oct 6 05:07:28 UTC 2012 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=171547 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/171547: commit references a PR
Date: Sat,  6 Oct 2012 05:08:13 +0000 (UTC)

 Author: kuriyama
 Date: Sat Oct  6 05:08:03 2012
 New Revision: 305337
 URL: http://svn.freebsd.org/changeset/ports/305337
 
 Log:
   - Fix build with clang.
   
   PR:		ports/171547
   Submitted by:	Pawel Worach <pawel.worach@gmail.com>
 
 Added:
   head/textproc/jade/files/patch-TeXFOTBuilder.cxx   (contents, props changed)
   head/textproc/jade/files/patch-TransformFOTBuilder.cxx   (contents, props changed)
 
 Added: head/textproc/jade/files/patch-TeXFOTBuilder.cxx
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/textproc/jade/files/patch-TeXFOTBuilder.cxx	Sat Oct  6 05:08:03 2012	(r305337)
 @@ -0,0 +1,22 @@
 +$FreeBSD$
 +
 +--- jade/TeXFOTBuilder.cxx.orig	2011-09-24 14:17:02.000000000 +0000
 ++++ jade/TeXFOTBuilder.cxx	2011-09-24 14:19:42.000000000 +0000
 +@@ -83,6 +83,8 @@
 +       value.convertString(nic_.placement);
 +       }
 +     ExtensionFlowObj *copy() const { return new PageFloatFlowObj(*this); }
 ++  public:
 ++    PageFloatFlowObj() {}
 +   private:
 +     PageFloatNIC nic_;
 +     StringC name_;
 +@@ -96,6 +98,8 @@
 +       fotb.endPageFootnote();
 +     }
 +     ExtensionFlowObj *copy() const { return new PageFootnoteFlowObj(*this); }
 ++  public:
 ++    PageFootnoteFlowObj() {}
 +   private:
 +   };
 +   //////////////////////////////////////////////////////////////////////
 
 Added: head/textproc/jade/files/patch-TransformFOTBuilder.cxx
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/textproc/jade/files/patch-TransformFOTBuilder.cxx	Sat Oct  6 05:08:03 2012	(r305337)
 @@ -0,0 +1,56 @@
 +$FreeBSD$
 +
 +--- jade/TransformFOTBuilder.cxx.orig	2011-09-24 14:20:28.000000000 +0000
 ++++ jade/TransformFOTBuilder.cxx	2011-09-24 14:22:32.000000000 +0000
 +@@ -41,6 +41,7 @@
 +   };
 +   class EntityRefFlowObj : public TransformExtensionFlowObj {
 +   public:
 ++    EntityRefFlowObj() {}
 +     void atomic(TransformFOTBuilder &fotb, const NodePtr &) const {
 +       fotb.entityRef(name_);
 +     }
 +@@ -56,6 +57,7 @@
 +   };
 +   class ProcessingInstructionFlowObj : public TransformExtensionFlowObj {
 +   public:
 ++    ProcessingInstructionFlowObj() {}
 +     void atomic(TransformFOTBuilder &fotb, const NodePtr &) const {
 +       fotb.processingInstruction(data_);
 +     }
 +@@ -98,6 +100,8 @@
 +       }
 +     }
 +     ExtensionFlowObj *copy() const { return new EmptyElementFlowObj(*this); }
 ++  public:
 ++    EmptyElementFlowObj() {}
 +   private:
 +     ElementNIC nic_;
 +   };
 +@@ -133,6 +137,8 @@
 +       }
 +     }
 +     ExtensionFlowObj *copy() const { return new ElementFlowObj(*this); }
 ++  public:
 ++    ElementFlowObj() {}
 +   private:
 +     ElementNIC nic_;
 +   };
 +@@ -150,6 +156,8 @@
 +       value.convertString(systemId_);
 +     }
 +     ExtensionFlowObj *copy() const { return new EntityFlowObj(*this); }
 ++  public:
 ++    EntityFlowObj() {};
 +   private:
 +     StringC systemId_;
 +   };
 +@@ -174,6 +182,8 @@
 +       }
 +     }
 +     ExtensionFlowObj *copy() const { return new DocumentTypeFlowObj(*this); }
 ++  public:
 ++    DocumentTypeFlowObj() {}
 +   private:
 +     DocumentTypeNIC nic_;
 +   };
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
