Bug 171548 - [patch] fix build of textproc/openjade with clang
Summary: [patch] fix build of textproc/openjade with clang
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jun Kuriyama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-11 17:10 UTC by Pawel Worach
Modified: 2012-10-06 06:10 UTC (History)
0 users

See Also:


Attachments
file.diff (2.80 KB, patch)
2012-09-11 17:10 UTC, Pawel Worach
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Worach 2012-09-11 17:10:04 UTC
Attached is a patch to fix the textproc/openjade build with clang.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-09-11 17:10:24 UTC
Responsible Changed
From-To: freebsd-ports-bugs->kuriyama

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Jun Kuriyama freebsd_committer freebsd_triage 2012-10-06 06:03:22 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-10-06 06:06:41 UTC
Author: kuriyama
Date: Sat Oct  6 05:06:25 2012
New Revision: 305336
URL: http://svn.freebsd.org/changeset/ports/305336

Log:
  - Fix build with clang.
  
  PR:		ports/171548
  Submitted by:	Pawel Worach <pawel.worach@gmail.com>

Added:
  head/textproc/openjade/files/patch-TeXFOTBuilder.cxx   (contents, props changed)
  head/textproc/openjade/files/patch-TransformFOTBuilder.cxx   (contents, props changed)

Added: head/textproc/openjade/files/patch-TeXFOTBuilder.cxx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/openjade/files/patch-TeXFOTBuilder.cxx	Sat Oct  6 05:06:25 2012	(r305336)
@@ -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/openjade/files/patch-TransformFOTBuilder.cxx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/openjade/files/patch-TransformFOTBuilder.cxx	Sat Oct  6 05:06:25 2012	(r305336)
@@ -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"