diff options
-rw-r--r-- | debian/README.Debian | 7 | ||||
-rw-r--r-- | debian/README.source | 18 | ||||
-rw-r--r-- | debian/changelog | 326 | ||||
-rw-r--r-- | debian/control | 30 | ||||
-rw-r--r-- | debian/copyright | 234 | ||||
-rw-r--r-- | debian/dirs | 1 | ||||
-rw-r--r-- | debian/doc-base | 14 | ||||
-rw-r--r-- | debian/docs | 1 | ||||
-rw-r--r-- | debian/patches/0001-xsd_xsdcxx-rename.patch | 159 | ||||
-rw-r--r-- | debian/patches/0100-C++Parser_Expat_support.patch | 59 | ||||
-rw-r--r-- | debian/patches/0105-Fix_path_handling_bug.patch | 20 | ||||
-rw-r--r-- | debian/patches/0110-xerces-c3.2.patch | 183 | ||||
-rw-r--r-- | debian/patches/0115-lintian-typos.patch | 32 | ||||
-rw-r--r-- | debian/patches/0120-g++10.patch | 19 | ||||
-rw-r--r-- | debian/patches/0700_hurd_PATH_MAX.patch | 22 | ||||
-rw-r--r-- | debian/patches/series | 7 | ||||
-rwxr-xr-x | debian/rules | 48 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/ubuntu/apport-hook.py | 12 | ||||
-rw-r--r-- | debian/watch | 6 | ||||
-rw-r--r-- | debian/xsdcxx.lintian-overrides | 1 |
21 files changed, 1200 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..13c7c4a --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,7 @@ +XSD for Debian +------------------ + +Due to name conflicts with mono-1.0-devel the `xsd` application was renamed +to `xsdcxx`. The output of `xsdcxx` is the same, including the directories. + + -- Raphael Bossek <bossekr@debian.org> Sat, 16 Feb 2008 19:26:38 +0100 diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..e4f2b3d --- /dev/null +++ b/debian/README.source @@ -0,0 +1,18 @@ +Hello, + +now I use the branching model from Vincent Driessen[1]. + +I use the gitflow-avh[2]. with the Documentation[3]. +The Debian package can be found here[4]. + +Please upload unattended uploads use a branch feature/<your title>. + + +Many thanks. + + -- Jörg Frings-Fürst <debian@jff-webhosting.net> Fri, 02 Jun 2017 19:00:40 +0200 + +[1] http://nvie.com/posts/a-successful-git-branching-model/ +[2] https://github.com/petervanderdoes/gitflow-avh +[3] https://github.com/petervanderdoes/gitflow-avh/wiki +[4] https://tracker.debian.org/pkg/git-flow diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..654ac41 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,326 @@ +xsd (4.0.0-9) unstable; urgency=medium + + * Migrate to debhelper 13: + - Bump minimum debhelper-compat version in debian/control to = 13. + * Fix FTCBFS: Use dpkg's buildtools.mk to export tools for make + install. (Closes: #955728). Thanks to Helmut Grohne <helmut@subdivi.de>. + * Declare compliance with Debian Policy 4.6.0.0 (No changes needed). + * Use jdupes to change duplicate files into symlinks: + - debian/rules: Add override_dh_link. + - debian/control: Add Build-Depend jdupes. + - debian/xsdcxx.lintian-overrides: Remove duplicate-files. + * Switch to debhelper-compat: + - debian/control: Replace debhelper with debhelper-compat. + - Remove debian/compat. + * debian/control: + - Switch Vcs-* to new location. + - Add Rules-Requires-Root: no. + * debian/copyright: + - Add year 2020 to debian/*. + - Use secure URI. + - Change Source to directory listing. + - Add paragraph for FLOSS. + - Fix lintian *-globbing-patterns errors. + * debian/changelog: + - Remove EOL before EOF. + * Add -std=gnu++11 to CXXFLAGS to fix FTBFS with GCC-11 (Closes: #984405). + + -- Jörg Frings-Fürst <debian@jff.email> Sat, 21 Aug 2021 23:43:37 +0200 + +xsd (4.0.0-8.1) unstable; urgency=medium + + * Non-maintainer upload. + * Apply patch from upstream to fix build with gcc 10. (Closes: #957999) + + -- Michael Hudson-Doyle <mwhudson@debian.org> Tue, 06 Oct 2020 14:03:20 +1300 + +xsd (4.0.0-8) unstable; urgency=medium + + * Team upload. + * Moved packaging to Salsa (after several pings via e-mail) + * cme fix dpkg-control + * Secure URI in watch file + * debian/rules: + - Remove useless dh-make boilerplate + - drop in debhelper 9 unneeded autotools-dev + + -- Andreas Tille <tille@debian.org> Sat, 05 May 2018 19:42:32 +0200 + +xsd (4.0.0-7) unstable; urgency=medium + + * New debian/patches/0110-xerces-c3.2.patch (Closes: #881108): + - Remove tests for character reference values unsupported by Xerces-C++ 3.2. + Thanks to Boris Kolpackov <boris@codesynthesis.com>. + * Change to my new email-address: + - debian/control, + - debian/copyright. + * New README.source to explain the branching model used. + * debian/changelog: + - Remove trailing white spaces. + * debian/control: + - Replace Priority extra with optional. + * debian/watch: + - Switch to secure URI. + * Declare compliance with Debian Policy 4.1.1. (No changes needed). + * Migrate to debhelper 10: + - Change debian/compat to 10. + - Bump minimum debhelper version in debian/control to >= 10. + - Drop autotools-dev from Build-Depends. + - Remove autotools-dev and parallel from dh command line as both are + enabled by default for dh compat level 10. + + -- Jörg Frings-Fürst <debian@jff.email> Sun, 12 Nov 2017 14:36:31 +0100 + +xsd (4.0.0-6) unstable; urgency=medium + + * Fix parallel building (Closes: #823271). + Thanks to Pino Toscano <pino@debian.org> + * debian/control: + - Bump Standards-Version to 3.9.8 (no changes required). + - Use http URI for the homepage. + * debian/copyright: + - Move the license text in alphabetical order to the end. + - Remove trailing whitespaces. + * New upstream patch: 0105-Fix_path_handling_bug.patch. + + -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sun, 11 Sep 2016 04:49:55 +0200 + +xsd (4.0.0-5) unstable; urgency=medium + + * debian/patches/0100-C++Parser_Expat_support.patch: + - Add upstream commit (LP: #1560565). + * debian/control: + - Bump Standards-Version to 3.9.7 (no changes required). + - Use secure URI's. + + -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sun, 10 Apr 2016 03:37:25 +0200 + +xsd (4.0.0-4) unstable; urgency=medium + + * debian/rules: + - Add test if NO_CPUS == 0 to prevent build errors + on some architetures. + - Use nproc from coreutils to get the number of processors. + + -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sun, 07 Feb 2016 19:02:02 +0100 + +xsd (4.0.0-3) unstable; urgency=low + + * debian/copyright: + - Add year 2016 to debian/*. + * debian/watch: + - Set version=4 (no changes required). + * New debian/patches/0700_hurd_PATH_MAX.patch: + - Add PATH_MAX for hurd (Closes: #784425). + * debian/control: + - Remove trailing whitespaces. + - Change VCS-Browser to cgit. + * debian/xsdcxx.lintian-overrides: + - Add override for hardening-no-fortify-functions. + * debian/rules: + - Remove comments "Test for gcc-5 support". + + -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sun, 17 Jan 2016 13:54:03 +0100 + +xsd (4.0.0-2) unstable; urgency=medium + + * debian/rules: + - Add "make xsd_clean_gen=n clean" to override_dh_clean to + build the cli at build time (Closes: #794440). + - Reduce buildtime (Closes: #795545): + + Add overrides for dh_auto_build and dh_auto_test to change + the make parameter -j to the current number of CPUs. + + Add --parallel to dh call. + - Add "export verbose=1" to increase the verbosity (Closes: #795547). + - Remove useless hardening lines. + * debian/control: + - Bump Standards-Version to 3.9.6 (no changes required). + * debian/copyright: + - Add year 2015 to debian/*. + - Change directory from xsd/documentation to xsd/doc. + - Refresh file list. + * Remove useless debian/source/options. + * Upload to rebuild for the GCC5 transition (Closes: #793289). + + -- Jörg Frings-Fürst <debian@jff-webhosting.net> Wed, 19 Aug 2015 12:23:23 +0200 + +xsd (4.0.0-1) unstable; urgency=medium + + * New upstream release: + - Remove debian/patch/0002-bigendian.patch. + - Remove directory debian/bigendian. + - Refresh patches. + * debian/watch + - Change regex to find all releases. + * rewrite debian/rules. + * debian/control: + - Build-Depends: + + Remove obsolete hardenning-wrapper. + * Add debian/patches/0100-C++Parser_Expat_support.patch + - Fix bug in C++/Parser Expat support. + + -- Jörg Frings-Fürst <debian@jff-webhosting.net> Mon, 21 Jul 2014 22:19:27 +0200 + +xsd (3.3.0.2-3) unstable; urgency=medium + + * debian/rules + - add --with autotools-dev + to prevent build errors on ppc64el & arm64 + thanks to Dimitri John Ledkov + - add ubuntu apport hook + - change hardening to debhelper >= 9 + * debian/source + - add options + compression xz + * debian/ubuntu + -add apport-hook.py + + -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sat, 24 May 2014 19:12:08 +0200 + +xsd (3.3.0.2-2) unstable; urgency=medium + + * add patch to prevent builderrors on big-endian systems + - new patch 0002-bigendian.patch + - based on patches for bug #604256 + * debian/rules + - use debhelper vars + - replacement of 2 test.std files + * debian/control + - add dpkg-dev (>= 1.15.4) to Build-Depends + + -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sun, 18 May 2014 12:24:50 +0200 + +xsd (3.3.0.2-1) unstable; urgency=low + + * rewrite debian/copyright + * replace old tarball-in-tarball to the Upstream-tarball + * remove + - patches included in tarball + - debian/README.source + * add hardenning-wrapper to Build-Depends + * rewrite debian/rules + * rename debian/patches/xsd_xsdcxx-rename.patch to + 0001-xsd_xsdcxx-rename.patch + * add file xsdcxx.lintian-overrides + - duplicate-files + * change debian/compat to 9 + * change Standards-Version to 3.9.5 + * change debhelper to >= 9 + * add debian/doc-base + * move Homepage to debian/control source section + * rename xsdcxx.watch to watch + * change to upstream 3.3.0.2 + * New Maintainer (Closes: #741475) + + -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sun, 20 Apr 2014 16:26:04 +0200 + +xsd (3.3.0.1-1.4) unstable; urgency=medium + + * Non-maintainer upload. + * Stop trying to apply binary git diffs with quilt (closes: #711950). + + -- Julien Cristau <jcristau@debian.org> Sun, 01 Dec 2013 14:09:10 +0100 + +xsd (3.3.0.1-1.3) unstable; urgency=low + + * Non maintainer upload + * Fix build failure with GCC 4.7. + + -- Matthias Klose <doko@debian.org> Tue, 22 May 2012 16:38:15 +0000 + +xsd (3.3.0.1-1.2) unstable; urgency=medium + + * Non-maintainer upload. + + [ Konstantinos Margaritis ] + * debian/patches/boost1.46.patch: + - Fix FTBFS against boost1.46 (Closes: #624942). + + -- Luca Falavigna <dktrkranz@debian.org> Tue, 23 Aug 2011 22:06:28 +0200 + +xsd (3.3.0.1-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix build fail on Renesas sh4 (Closes: #606057). + Update debian/rules. + When architecture of host is sh4, CXXFLAGS was added -mieee option. + + -- Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Fri, 11 Mar 2011 09:45:12 +0900 + +xsd (3.3.0.1-1) unstable; urgency=low + + * Use ASCII encoding instead of UCS-4LE to work around Xerces-C++ bug. + Closes: #604256 + + -- Raphael Bossek <bossekr@debian.org> Mon, 22 Nov 2010 21:57:58 +0100 + +xsd (3.3.0-2) unstable; urgency=low + + * Added autotools-dev build dependency. Closes: #604086 + + -- Raphael Bossek <bossekr@debian.org> Sat, 20 Nov 2010 22:28:47 +0100 + +xsd (3.3.0-1) unstable; urgency=low + + * New upstream release. Closes: #556724 + * Update Automake files at build time. Closes: #536423 + + -- Raphael Bossek <bossekr@debian.org> Thu, 18 Nov 2010 21:27:00 +0100 + +xsd (3.2.0.1-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix FTBFS with new boost (>= 1.37.0) by using the “-mt” suffix for + boost libraries since starting with this version, only this variant + is available (Closes: #530484): + + debian/patches: Add xsd_fix-boost-ftbfs.patch + + debian/rules: Apply that patch. + * Set urgency to “medium” since this bug affects testing too. + + -- Cyril Brulebois <kibi@debian.org> Sat, 18 Jul 2009 10:51:36 +0200 + +xsd (3.2.0.1-1) unstable; urgency=low + + * New upstream version. This version depends on Xerces-C 3.0.0 which + is in experimental right now. (Closes: #505837) + + -- Raphael Bossek <bossekr@debian.org> Sat, 06 Dec 2008 13:44:38 +0100 + +xsd (3.1.0.1-2) unstable; urgency=low + + * Added build dependency on libboost-date-time-dev. + + -- Raphael Bossek <bossekr@debian.org> Wed, 18 Jun 2008 06:57:20 +0200 + +xsd (3.1.0.1-1) unstable; urgency=low + + * Update libcult to 1.4.1 to support GCC 4.3 (build errors). + * Added m4 as build dependency. + * Added README.source to confirm with standards version 3.8.0. + + -- Raphael Bossek <bossekr@debian.org> Tue, 17 Jun 2008 07:04:15 +0200 + +xsd (3.1.0-4) unstable; urgency=low + + * Try to suppress compilation errors by disable not obsolate implementation + (as mentioned in error report #482569) (Closes: #485843) + + -- Raphael Bossek <bossekr@debian.org> Sun, 15 Jun 2008 21:46:20 +0200 + +xsd (3.1.0-3) unstable; urgency=low + + * Removed old build dependency on libxerces25-dev. (Closes: #483965) + + -- Raphael Bossek <bossekr@debian.org> Mon, 02 Jun 2008 21:00:43 +0200 + +xsd (3.1.0-2) unstable; urgency=low + + * Fixed bulid problem. (Closes: #482569) + + -- Raphael Bossek <bossekr@debian.org> Mon, 26 May 2008 12:14:37 +0200 + +xsd (3.1.0-1) unstable; urgency=low + + * Initial release (Closes: #479523) + + -- Raphael Bossek <bossekr@debian.org> Sat, 16 Feb 2008 19:26:38 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..91e94ec --- /dev/null +++ b/debian/control @@ -0,0 +1,30 @@ +Source: xsd +Section: devel +Priority: optional +Maintainer: Jörg Frings-Fürst <debian@jff.email> +Rules-Requires-Root: no +Build-Depends: + debhelper-compat (= 13), + dpkg-dev (>= 1.15.4), + jdupes, + libboost-date-time-dev, + libboost-filesystem-dev, + libboost-regex-dev, + libxerces-c-dev (>= 3), + m4 +Standards-Version: 4.6.0.0 +Homepage: http://codesynthesis.com +Vcs-Git: git://jff.email/opt/git/xsd.git +Vcs-Browser: https://jff.email/cgit/xsd.git/ + +Package: xsdcxx +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: XML Data Binding for C++ + CodeSynthesis XSD is an open-source, cross-platform W3C XML Schema to + C++ data binding compiler. Provided with an XML instance specification + (XML Schema), it generates C++ classes that represent the given + vocabulary as well as parsing and serialization code. + You can then access the data stored in XML using types and functions + that semantically correspond to your application domain rather than + dealing with intricacies of reading and writing XML. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..8af26f2 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,234 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: xsd +Upstream-Contact: xsd-user Maillist <xsd-users@codesynthesis.com> +Source: https://www.codesynthesis.com/download/xsd/ + +Files: * +Copyright: Copyright (©) 2005-2014 CODE SYNTHESIS TOOLS CC +License: GPL-2+ and FLOSS + +Files: xsd/doc/custom-literals.xsd + xsd/examples/cxx/parser/generated/library.* + xsd/examples/cxx/parser/hello/hello.* + xsd/examples/cxx/parser/library/library*.* + xsd/examples/cxx/parser/mixed/anchor.hxx + xsd/examples/cxx/parser/mixed/text.* + xsd/examples/cxx/parser/mixin/types.hxx + xsd/examples/cxx/parser/mixin/instance.xml + xsd/examples/cxx/parser/mixin/schema.* + xsd/examples/cxx/parser/multiroot/balance.xml + xsd/examples/cxx/parser/multiroot/deposit.xml + xsd/examples/cxx/parser/multiroot/protocol*.* + xsd/examples/cxx/parser/multiroot/withdraw.xml + xsd/examples/cxx/parser/performance/test.xsd + xsd/examples/cxx/parser/performance/time.* + xsd/examples/cxx/parser/polymorphism/supermen*.* + xsd/examples/cxx/parser/polyroot/*.xml + xsd/examples/cxx/parser/polyroot/supermen*.* + xsd/examples/cxx/parser/wildcard/email.* + xsd/examples/cxx/tree/binary/boost/boost*.* + xsd/examples/cxx/tree/binary/boost/library.* + xsd/examples/cxx/tree/binary/cdr/library.* + xsd/examples/cxx/tree/binary/xdr/library.* + xsd/examples/cxx/tree/caching/library.* + xsd/examples/cxx/tree/compression/library.* + xsd/examples/cxx/tree/compression/compressed*.* + xsd/examples/cxx/tree/custom/calendar/calendar.* + xsd/examples/cxx/tree/custom/calendar/xml-schema-custom.* + xsd/examples/cxx/tree/custom/comments/dom-parse.* + xsd/examples/cxx/tree/custom/comments/people.* + xsd/examples/cxx/tree/custom/comments/xml-schema-custom.* + xsd/examples/cxx/tree/custom/contacts/contacts*.* + xsd/examples/cxx/tree/custom/double/double-custom.* + xsd/examples/cxx/tree/custom/double/order.xsd + xsd/examples/cxx/tree/custom/mixed/people*.* + xsd/examples/cxx/tree/custom/taxonomy/people*.* + xsd/examples/cxx/tree/custom/wildcard/wildcard*.* + xsd/examples/cxx/tree/embedded/library.* + xsd/examples/cxx/tree/embedded/grammar-input-stream.* + xsd/examples/cxx/tree/embedded/xsdbin.cxx + xsd/examples/cxx/tree/hello/hello.* + xsd/examples/cxx/tree/library/library.* + xsd/examples/cxx/tree/messaging/*.xml + xsd/examples/cxx/tree/messaging/*.cxx + xsd/examples/cxx/tree/messaging/*.hxx + xsd/examples/cxx/tree/messaging/protocol.xsd + xsd/examples/cxx/tree/mixed/text.* + xsd/examples/cxx/tree/multiroot/*.xml + xsd/examples/cxx/tree/multiroot/dom-parse.* + xsd/examples/cxx/tree/multiroot/protocol.xsd + xsd/examples/cxx/tree/performance/parsing.cxx + xsd/examples/cxx/tree/performance/serialization.cxx + xsd/examples/cxx/tree/performance/test.xsd + xsd/examples/cxx/tree/performance/time.* + xsd/examples/cxx/tree/polymorphism/supermen.* + xsd/examples/cxx/tree/streaming/parser.* + xsd/examples/cxx/tree/streaming/position.* + xsd/examples/cxx/tree/streaming/serializer.* + xsd/examples/cxx/tree/wildcard/email.* + xsd/examples/cxx/tree/xpath/dom-parse.* + xsd/examples/cxx/tree/xpath/driver.cxx + xsd/examples/cxx/tree/xpath/people.* +Copyright: Boris Kolpackov <boris@codesynthesis.com> +License: public-domain + In xsd/LICENSE all files are published under GPL-2 + +Files: xsd/doc/cxx/tree/guide/cxx-tree-guide.* + xsd/doc/cxx/tree/guide/index.xhtml + xsd/doc/cxx/tree/guide/guide.html2ps + xsd/doc/cxx/tree/manual/cxx-tree-manual.* + xsd/doc/cxx/tree/manual/index.xhtml + xsd/doc/cxx/tree/manual/manual.html2ps + xsd/doc/cxx/parser/guide/cxx-parser-guide.* + xsd/doc/cxx/parser/guide/index.xhtml + xsd/doc/cxx/parser/guide/guide.html2ps + xsd/doc/xsd.* +Copyright: 2005-2014 CODE SYNTHESIS TOOLS CC +License: GFDL-1.2 + +Files: debian/* +Copyright: 2008 Raphael Bossek <bossekr@debian.org> + 2014-2020 Jörg Frings-Fürst <debian@jff.email> +License: GPL-1+ + + +License: GFDL-1.2 + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.2 + as published by the Free Software Foundation; with no Invariant Sections, no + Front-Cover Texts, and no Back-Cover Texts. + . + On Debian systems, the complete text of the GNU Free Documentation License + version 1.2 can be found in "/usr/share/common-licenses/GFDL-1.2". + +License: GPL-1+ + This program is free software; you can redistribute it + and/or modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 1 of the License, or (at your option) any later + version. + . + This program is distributed in the hope that it will be + useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the GNU General Public License for more + details. + . + You should have received a copy of the GNU General Public + License along with this package; if not, write to the Free + Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301 USA + . + On Debian systems, the full text of the GNU General Public + License version 1 can be found in the file + `/usr/share/common-licenses/GPL-1'. + +License: GPL-2+ + This program is free software; you can redistribute it + and/or modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later + version. + . + This program is distributed in the hope that it will be + useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the GNU General Public License for more + details. + . + You should have received a copy of the GNU General Public + License along with this package; if not, write to the Free + Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301 USA + . + On Debian systems, the full text of the GNU General Public + License version 2 can be found in the file + `/usr/share/common-licenses/GPL-2'. + +License: FLOSS + Free/Libre and Open Source Software ("FLOSS") + °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°° + 1. Intent + . + We want specified Free/Libre and Open Source Software ("FLOSS") + to be able to use the specified GPL-licensed xsd runtime library + and xsd generated code (collectively called the "Program") despite + the fact that not all FLOSS licenses are compatible with version 2 + of the GNU General Public License (the "GPL"). + . + It is our intent to allow distribution of the entire Derivative + Work (including the Program) under one or more of the FLOSS licenses + listed in section 3 (section 2.a). It is also our intent to disallow + simple relicensing of the Program for the sole purpose of using it in + proprietary applications (section 2.b and 2.c). As an example, consider + two hypothetical scenarios: + . + a) You created a program that uses the xsd generated code and the xsd + runtime library to access information in XML instance documents. + Your program performs useful computations based on this information + (sections 2.b and 2.c are satisfied). You distribute your program, + including the xsd generated code and the xsd runtime library under + the BSD license and make it available at no charge to all third + parties (section 2.a is satisfied). Later you (or someone else) may + choose to base their proprietary application on your code since the + BSD license does not prohibit it. + . + This scenario falls under this FLOSS Exception. + . + b) You created a library that uses the xsd generated code and the xsd + runtime library to access information in XML instance documents. You + did not add to the library any other useful code that uses the xsd + generated code or the xsd runtime library (neither section 2.b nor + 2.c is satisfied). You distribute your library, including the xsd + generated code and the xsd runtime library under the BSD license and + make it available at no charge to all third parties (section 2.a + is satisfied). Later you base your proprietary application on this + library since the BSD license does not prohibit it. + . + This scenario does not fall under this FLOSS Exception (neither + section 2.b nor 2.c is satisfied). You created the library for the + sole purpose of making the xsd generated code and the xsd runtime + library available to your proprietary application. + . + 2. Legal Terms and Conditions + . + As a special exception to the terms and conditions of version 2 of + the GPL you are free to distribute a verbatim copy of the Program + as part of the Derivative Work that is formed from the Program or + any part thereof and one or more works (each, a "FLOSS Work") as + long as you also meet all of these conditions: + . + a) You must cause the Derivative Work that in whole or in part + contains or is derived from the Program or any part thereof, + to be licensed as a whole at no charge to all third parties + under the terms of one or more of the licenses listed in + section 3. + . + b) The Derivative Work should contain one or more FLOSS Work that + can be reasonably considered as derived from the Program or some + part thereof. + . + c) The Derivative Work should not contain any part of the Program + that cannot be reasonably considered as a base of one or more + FLOSS Work. + . + 3. FLOSS License List + . + a) Any license listed in the "GPL-Compatible Free Software Licenses" + and the "GPL-Incompatible Free Software Licenses" sections of the + License List as published by the Free Software Foundation (FSF): + . + http://www.gnu.org/licenses/license-list.html + . + 4. Definitions + . + Terms used, but not defined, herein shall have the meaning + provided in the GPL. + . + Derivative Work means a derivative work under copyright law. + . + 5. Applicability + . + You may choose to redistribute a copy of the Program exclusively under + the terms of the GPL by removing the FLOSS Exception notice from that + copy of the Program. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..e772481 --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +usr/bin diff --git a/debian/doc-base b/debian/doc-base new file mode 100644 index 0000000..eb746ae --- /dev/null +++ b/debian/doc-base @@ -0,0 +1,14 @@ +Document: xsdcxx +Title: xsd Documentation +Section: Programming/C++ + +Format: PDF +Files: /usr/share/doc/xsdcxx/cxx/tree/manual/cxx-tree-manual.pdf.gz + /usr/share/doc/xsdcxx/cxx/tree/guide/cxx-tree-guide.pdf.gz + /usr/share/doc/xsdcxx/cxx/parser/guide/cxx-parser-guide.pdf.gz + +Format: PostScript +Files: /usr/share/doc/xsdcxx/cxx/tree/manual/cxx-tree-manual.ps.gz + /usr/share/doc/xsdcxx/cxx/tree/guide/cxx-tree-guide.ps.gz + /usr/share/doc/xsdcxx/cxx/parser/guide/cxx-parser-guide.ps.gz + diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/patches/0001-xsd_xsdcxx-rename.patch b/debian/patches/0001-xsd_xsdcxx-rename.patch new file mode 100644 index 0000000..a2984c0 --- /dev/null +++ b/debian/patches/0001-xsd_xsdcxx-rename.patch @@ -0,0 +1,159 @@ +Description: change docu from xsd to xsdcxx +Author: Jörg Frings-Fürst <debian@jff-webhosting.net> +Forwarded: not-needed +Last-Update: 2014-07-22 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/xsd/doc/xsd.1 +=================================================================== +--- trunk.orig/xsd/doc/xsd.1 2014-07-21 08:38:41.000000000 +0200 ++++ trunk/xsd/doc/xsd.1 2014-07-21 23:27:00.928980158 +0200 +@@ -1,16 +1,16 @@ + .\" Process this file with + .\" groff -man -Tascii xsd.1 + .\" +-.TH XSD 1 "July 2014" "XSD 4.0.0" ++.TH XSDCXX 1 "July 2014" "XSDCXX 4.0.0" + .SH NAME +-xsd \- W3C XML Schema to C++ Compiler ++xsdcxx \- W3C XML Schema to C++ Compiler + .\" + .\" + .\" + .\"-------------------------------------------------------------------- + .SH SYNOPSIS + .\"-------------------------------------------------------------------- +-.B xsd ++.B xsdcxx + .I command + .B [ + .I options +@@ -20,19 +20,19 @@ + .I file + .B ...] + .in +-.B xsd help ++.B xsdcxx help + .B [ + .I command + .B ] + .in +-.B xsd version ++.B xsdcxx version + .\" + .\" + .\" + .\"-------------------------------------------------------------------- + .SH DESCRIPTION + .\"-------------------------------------------------------------------- +-.B xsd ++.B xsdcxx + generates vocabulary-specific, statically-typed C++ mapping from W3C XML + Schema definitions. Particular mapping to produce is selected by a + .IR command . +@@ -96,7 +96,7 @@ + .PP + .RS + .RS 3 +-.B xsd help ++.B xsdcxx help + .I command + .RE + .PP +@@ -133,9 +133,9 @@ + + When the C++11 mode is selected, you normally don't need to perform any + extra steps other than enable C++11 in your C++ compiler, if required\. The +-XSD compiler will automatically add the necessary macro defines to the +-generated header files that will switch the header-only XSD runtime library +-(\fBlibxsd\fP) to the C++11 mode\. However, if you include any of the XSD ++XSDCXX compiler will automatically add the necessary macro defines to the ++generated header files that will switch the header-only XSDCXX runtime library ++(\fBlibxsd\fP) to the C++11 mode\. However, if you include any of the XSDCXX + runtime headers directly in your application (normally you just include the + generated headers), then you will need to define the \fBXSD_CXX11\fP macro + for your entire project\. +@@ -1632,7 +1632,7 @@ + .\" + .SH DIAGNOSTICS + If the input file is not a valid W3C XML Schema definition, +-.B xsd ++.B xsdcxx + will issue diagnostic messages to + .B STDERR + and exit with non-zero exit code. +Index: trunk/xsd/doc/xsd.xhtml +=================================================================== +--- trunk.orig/xsd/doc/xsd.xhtml 2014-07-21 08:38:41.000000000 +0200 ++++ trunk/xsd/doc/xsd.xhtml 2014-07-21 23:29:32.796093697 +0200 +@@ -3,11 +3,11 @@ + <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> + + <head> +- <title>XSD 4.0.0 Compiler Command Line Manual</title> ++ <title>XSDCXX 4.0.0 Compiler Command Line Manual</title> + + <meta name="copyright" content="© 2005-2014 Code Synthesis Tools CC"/> + <meta name="keywords" content="xsd,xml,schema,c++,mapping,data,binding,code,generator,manual,man,page"/> +- <meta name="description" content="XSD Compiler Command Line Manual"/> ++ <meta name="description" content="XSDCXX Compiler Command Line Manual"/> + + <link rel="stylesheet" type="text/css" href="default.css" /> + +@@ -50,19 +50,19 @@ + + <h1>NAME</h1> + +- <p>xsd - W3C XML Schema to C++ Compiler</p> ++ <p>xsdcxx - W3C XML Schema to C++ Compiler</p> + + <h1>SYNOPSIS</h1> + + <dl id="synopsis"> +- <dt><code><b>xsd</b> <i>command</i> [<i>options</i>] <i>file</i> [<i>file</i> ...]</code></dt> +- <dt><code><b>xsd help</b> [<i>command</i>]</code></dt> +- <dt><code><b>xsd version</b></code></dt> ++ <dt><code><b>xsdcxx</b> <i>command</i> [<i>options</i>] <i>file</i> [<i>file</i> ...]</code></dt> ++ <dt><code><b>xsdcxx help</b> [<i>command</i>]</code></dt> ++ <dt><code><b>xsdcxx version</b></code></dt> + </dl> + + <h1>DESCRIPTION</h1> + +- <p><code><b>xsd</b></code> generates vocabulary-specific, statically-typed ++ <p><code><b>xsdcxx</b></code> generates vocabulary-specific, statically-typed + C++ mapping from W3C XML Schema definitions. Particular mapping to + produce is selected by a <code><i>command</i></code>. Each mapping has + a number of mapping-specific <code><i>options</i></code> that should +@@ -138,10 +138,10 @@ + + <p>When the C++11 mode is selected, you normally don't need to perform any + extra steps other than enable C++11 in your C++ compiler, if required. The +- XSD compiler will automatically add the necessary macro defines to the +- generated header files that will switch the header-only XSD runtime library ++ XSDCXX compiler will automatically add the necessary macro defines to the ++ generated header files that will switch the header-only XSDCXX runtime library + (<code><b>libxsd</b></code>) to the C++11 mode. However, if you include any +- of the XSD runtime headers directly in your application (normally you just ++ of the XSDCXX runtime headers directly in your application (normally you just + include the generated headers), then you will need to define the + <code><b>XSD_CXX11</b></code> macro for your entire project.</p></dd> + +@@ -219,7 +219,7 @@ + + <p>For example, if you have file <code><b>hello.xsd</b></code> with + namespace <code><b>http://example.com/hello</b></code> and you run +- <code><b>xsd</b></code> on this file, then the string in question will ++ <code><b>xsdcxx</b></code> on this file, then the string in question will + be:</p> + + <p><code><b>hello.xsd. http://example.com/hello</b></code></p> +@@ -1530,7 +1530,7 @@ + <h1>DIAGNOSTICS</h1> + + <p>If the input file is not a valid W3C XML Schema definition, +- <code><b>xsd</b></code> will issue diagnostic messages to STDERR ++ <code><b>xsdcxx</b></code> will issue diagnostic messages to STDERR + and exit with non-zero exit code.</p> + + <h1>BUGS</h1> diff --git a/debian/patches/0100-C++Parser_Expat_support.patch b/debian/patches/0100-C++Parser_Expat_support.patch new file mode 100644 index 0000000..f37ea02 --- /dev/null +++ b/debian/patches/0100-C++Parser_Expat_support.patch @@ -0,0 +1,59 @@ +Description: Fix bug in C++/Parser Expat support. +Author: Jörg Frings-Fürst <debian@jff-webhosting.net> +Origin: http://scm.codesynthesis.com/?p=xsd/xsd.git;a=commit;h=94cba986108a0e0f42295572ca42c356d59328d7 + http://scm.codesynthesis.com/?p=xsd/xsd.git;a=commit;h=0e5fab0664fb36c6253dfd7bb86d8985d1b349ef +Forwarded: not-needed +Last-Update: 2016-04-10 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/xsd/libxsd/xsd/cxx/parser/expat/elements.hxx +=================================================================== +--- trunk.orig/xsd/libxsd/xsd/cxx/parser/expat/elements.hxx ++++ trunk/xsd/libxsd/xsd/cxx/parser/expat/elements.hxx +@@ -51,7 +51,9 @@ namespace xsd + } + }; + +- typedef std::unique_ptr<XML_ParserStruct> parser_auto_ptr; ++ typedef ++ std::unique_ptr<XML_ParserStruct, parser_deleter> ++ parser_auto_ptr; + #else + // Simple auto pointer for Expat's XML_Parser object. + // +Index: trunk/xsd/libxsd/xsd/cxx/parser/expat/elements.txx +=================================================================== +--- trunk.orig/xsd/libxsd/xsd/cxx/parser/expat/elements.txx ++++ trunk/xsd/libxsd/xsd/cxx/parser/expat/elements.txx +@@ -279,13 +279,14 @@ namespace xsd + { + parser_auto_ptr parser (XML_ParserCreateNS (0, XML_Char (' '))); + +- if (parser == 0) ++ if (parser.get () == 0) + throw std::bad_alloc (); + + if (system_id || public_id) +- parse_begin (parser, system_id ? *system_id : *public_id, eh); ++ parse_begin ( ++ parser.get (), system_id ? *system_id : *public_id, eh); + else +- parse_begin (parser, eh); ++ parse_begin (parser.get (), eh); + + // Temporarily unset the exception failbit. Also clear the + // fail bit when we reset the old state if it was caused +@@ -309,9 +310,10 @@ namespace xsd + // + break; + } +- +- if (XML_Parse ( +- parser, buf, is.gcount (), is.eof ()) == XML_STATUS_ERROR) ++ if (XML_Parse (parser.get (), ++ buf, ++ is.gcount (), ++ is.eof ()) == XML_STATUS_ERROR) + { + r = false; + break; diff --git a/debian/patches/0105-Fix_path_handling_bug.patch b/debian/patches/0105-Fix_path_handling_bug.patch new file mode 100644 index 0000000..7275283 --- /dev/null +++ b/debian/patches/0105-Fix_path_handling_bug.patch @@ -0,0 +1,20 @@ +Description: Fix path handling bug +Author: Boris Kolpackov <boris@codesynthesis.com> +Origin: git commit b4c3242a763e0461f454cc29be28c2ab26e4a495 +Forwarded: not-needed +Last-Update: 2016-09-10 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/xsd/examples/cxx/tree/embedded/xsdbin.cxx +=================================================================== +--- trunk.orig/xsd/examples/cxx/tree/embedded/xsdbin.cxx ++++ trunk/xsd/examples/cxx/tree/embedded/xsdbin.cxx +@@ -334,7 +334,7 @@ main (int argc, char* argv[]) + // + string::size_type p (base.rfind ('/')), p1 (base.rfind ('\\')); + +- if (p1 != string::npos && p1 > p) ++ if (p1 != string::npos && (p == string::npos || p1 > p)) + p = p1; + + if (p != string::npos) diff --git a/debian/patches/0110-xerces-c3.2.patch b/debian/patches/0110-xerces-c3.2.patch new file mode 100644 index 0000000..b15960b --- /dev/null +++ b/debian/patches/0110-xerces-c3.2.patch @@ -0,0 +1,183 @@ +Description: Remove tests for character ref. values unsupported by Xerces-C++ 3.2 +Author: Boris Kolpackov <boris@codesynthesis.com> +Origin: https://git.codesynthesis.com/cgit/xsd/xsd/patch/?id=400651ba7fd2f80155348ed39fc02e2aa9892fb9 +Bug: <URL to the upstream bug report if any, implies patch has been forwarded, optional> +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881108 +Forwarded: not-needed +Last-Update: 2017-11-08 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/xsd/tests/cxx/tree/encoding/char/iso-8859-1/driver.cxx +=================================================================== +--- trunk.orig/xsd/tests/cxx/tree/encoding/char/iso-8859-1/driver.cxx ++++ trunk/xsd/tests/cxx/tree/encoding/char/iso-8859-1/driver.cxx +@@ -43,7 +43,7 @@ main (int argc, char* argv[]) + if (s[0] != "abc" || + s[1] != "\xE6" || + s[2] != "\xA2\xA3\xA4\xA5" || +- s[3] != "???") ++ s[3] != "??") + { + cerr << "invalid encoding" << endl; + return 1; +Index: trunk/xsd/tests/cxx/tree/encoding/char/iso-8859-1/test.std +=================================================================== +--- trunk.orig/xsd/tests/cxx/tree/encoding/char/iso-8859-1/test.std ++++ trunk/xsd/tests/cxx/tree/encoding/char/iso-8859-1/test.std +@@ -3,7 +3,7 @@ + <a>abc</a> + <a></a> + <a></a> +- <a>???</a> ++ <a>??</a> + <b>abc</b> + <b>ac</b> + <b>bc</b> +Index: trunk/xsd/tests/cxx/tree/encoding/char/iso-8859-1/test.xml +=================================================================== +--- trunk.orig/xsd/tests/cxx/tree/encoding/char/iso-8859-1/test.xml ++++ trunk/xsd/tests/cxx/tree/encoding/char/iso-8859-1/test.xml +@@ -5,7 +5,7 @@ + <a>abc</a> + <a>æ</a> + <a>¢£¤¥</a> +- <a>Āꪪ򪪪</a> ++ <a>Āꪪ</a> + + <b>abc</b> + <b>aâc</b> +Index: trunk/xsd/tests/cxx/tree/encoding/char/utf-8/driver.cxx +=================================================================== +--- trunk.orig/xsd/tests/cxx/tree/encoding/char/utf-8/driver.cxx ++++ trunk/xsd/tests/cxx/tree/encoding/char/utf-8/driver.cxx +@@ -32,8 +32,7 @@ main (int argc, char* argv[]) + + if (s[0] != "abc" || + s[1] != "\xD5\x95" || +- s[2] != "\xEA\xAA\xAA" || +- s[3] != "\xF2\xAA\xAA\xAA") ++ s[2] != "\xEA\xAA\xAA") + { + cerr << "invalid encoding" << endl; + return 1; +@@ -45,8 +44,7 @@ main (int argc, char* argv[]) + + if (s[0] != strenum::abc || + s[1] != strenum::a_c || +- s[2] != strenum::cxx_bc || +- s[3] != strenum::ab_) ++ s[2] != strenum::cxx_bc) + { + cerr << "invalid encoding" << endl; + return 1; +Index: trunk/xsd/tests/cxx/tree/encoding/char/utf-8/test.std +=================================================================== +--- trunk.orig/xsd/tests/cxx/tree/encoding/char/utf-8/test.std ++++ trunk/xsd/tests/cxx/tree/encoding/char/utf-8/test.std +@@ -3,9 +3,7 @@ + <a>abc</a> + <a>Օ</a> + <a>ꪪ</a> +- <a>򪪪</a> + <b>abc</b> + <b>aՕc</b> + <b>ꪪbc</b> +- <b>ab򪪪</b> + </t:root> +Index: trunk/xsd/tests/cxx/tree/encoding/char/utf-8/test.xml +=================================================================== +--- trunk.orig/xsd/tests/cxx/tree/encoding/char/utf-8/test.xml ++++ trunk/xsd/tests/cxx/tree/encoding/char/utf-8/test.xml +@@ -5,11 +5,9 @@ + <a>abc</a> + <a>Օ</a> + <a>ꪪ</a> +- <a>򪪪</a> + + <b>abc</b> + <b>aՕc</b> + <b>ꪪbc</b> +- <b>ab򪪪</b> + + </t:root> +Index: trunk/xsd/tests/cxx/tree/encoding/char/utf-8/test.xsd +=================================================================== +--- trunk.orig/xsd/tests/cxx/tree/encoding/char/utf-8/test.xsd ++++ trunk/xsd/tests/cxx/tree/encoding/char/utf-8/test.xsd +@@ -9,7 +9,6 @@ + abc + aՕc + ꪪbc +- ab򪪪 + </documentation> + </annotation> + +@@ -17,7 +16,6 @@ + <enumeration value="abc"/> + <enumeration value="aՕc"/> + <enumeration value="ꪪbc"/> +- <enumeration value="ab򪪪"/> + </restriction> + </simpleType> + +Index: trunk/xsd/tests/cxx/tree/encoding/wchar/test.std +=================================================================== +--- trunk.orig/xsd/tests/cxx/tree/encoding/wchar/test.std ++++ trunk/xsd/tests/cxx/tree/encoding/wchar/test.std +@@ -2,9 +2,9 @@ + <t:root xmlns:t="test"> + <a>abc</a> + <a>῿퟿</a> +- <a>𐀀􏿽</a> ++ <a>ကჿ</a> + <b>abc</b> + <b>a῿퟿c</b> +- <b>𐀀􏿽bc</b> +- <b>ab𐀀􏿽</b> ++ <b>ကჿbc</b> ++ <b>abကჿ</b> + </t:root> +Index: trunk/xsd/tests/cxx/tree/encoding/wchar/test.xml +=================================================================== +--- trunk.orig/xsd/tests/cxx/tree/encoding/wchar/test.xml ++++ trunk/xsd/tests/cxx/tree/encoding/wchar/test.xml +@@ -4,11 +4,11 @@ + + <a>abc</a> + <a>῿퟿</a> +- <a>𐀀􏿽</a> ++ <a>ကჿ</a> + + <b>abc</b> + <b>a῿퟿c</b> +- <b>𐀀􏿽bc</b> +- <b>ab𐀀􏿽</b> ++ <b>ကჿbc</b> ++ <b>abကჿ</b> + + </t:root> +Index: trunk/xsd/tests/cxx/tree/encoding/wchar/test.xsd +=================================================================== +--- trunk.orig/xsd/tests/cxx/tree/encoding/wchar/test.xsd ++++ trunk/xsd/tests/cxx/tree/encoding/wchar/test.xsd +@@ -8,16 +8,16 @@ + Test enum. Valid values are: + abc + a῿퟿c +- 𐀀􏿽bc +- ab𐀀􏿽 ++ ကჿbc ++ abကჿ + </documentation> + </annotation> + + <restriction base="string"> + <enumeration value="abc"/> + <enumeration value="a῿퟿c"/> +- <enumeration value="𐀀􏿽bc"/> +- <enumeration value="ab𐀀􏿽"/> ++ <enumeration value="ကჿbc"/> ++ <enumeration value="abကჿ"/> + </restriction> + </simpleType> + diff --git a/debian/patches/0115-lintian-typos.patch b/debian/patches/0115-lintian-typos.patch new file mode 100644 index 0000000..f2b96b5 --- /dev/null +++ b/debian/patches/0115-lintian-typos.patch @@ -0,0 +1,32 @@ +Description: Correct some typos +Author: Jörg Frings-Fürst <debian@jff.email> +Forwarded: not-needed +Last-Update: 2017-11-09 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/xsd/xsd/cxx/tree/tree-header.cxx +=================================================================== +--- trunk.orig/xsd/xsd/cxx/tree/tree-header.cxx ++++ trunk/xsd/xsd/cxx/tree/tree-header.cxx +@@ -972,7 +972,7 @@ namespace CXX + << " * @brief Assign the underlying enum value." << endl + << " *" << endl + << " * @param v A enum value." << endl +- << " * @return A refernce to the instance." << endl ++ << " * @return A reference to the instance." << endl + << " */" << endl; + } + +Index: trunk/xsd/xsd/processing/inheritance/processor.cxx +=================================================================== +--- trunk.orig/xsd/xsd/processing/inheritance/processor.cxx ++++ trunk/xsd/xsd/processing/inheritance/processor.cxx +@@ -290,7 +290,7 @@ namespace Processing + wcerr << t.file () << ":" << t.line () << ":" << t.column () + << " error: nested anonymous type in '" << t.name () + << "' or '" << type.name () << "' inherits from one of " +- << "these types and makes them mutually dependant" ++ << "these types and makes them mutually dependent" + << endl; + + wcerr << t.file () << ":" << t.line () << ":" << t.column () diff --git a/debian/patches/0120-g++10.patch b/debian/patches/0120-g++10.patch new file mode 100644 index 0000000..441b278 --- /dev/null +++ b/debian/patches/0120-g++10.patch @@ -0,0 +1,19 @@ +Description: Fix FTBFS with gcc-10 +Author: Boris Kolpackov <boris@codesynthesis.com> +Origin: upstream, https://git.codesynthesis.com/cgit/libxsd-frontend/libxsd-frontend/commit/?id=5029f8665190879285787a9dcdaf5f997cadd2e2 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=957999 +Last-Update: 2020-09-10 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx +=================================================================== +--- trunk.orig/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx ++++ trunk/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx +@@ -3,6 +3,7 @@ + // license : GNU GPL v2 + exceptions; see accompanying LICENSE file + + #include <algorithm> ++#include <iostream> + + #include <cutl/compiler/type-info.hxx> + diff --git a/debian/patches/0700_hurd_PATH_MAX.patch b/debian/patches/0700_hurd_PATH_MAX.patch new file mode 100644 index 0000000..b825e23 --- /dev/null +++ b/debian/patches/0700_hurd_PATH_MAX.patch @@ -0,0 +1,22 @@ +Description: Add PATH_MAX for hurd +Author: Jörg Frings-Fürst <debain@jff-webhosting.net> +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784425 +Forwarded: not-needed +Last-Update: 2016-01-17 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/libcutl/cutl/fs/path.cxx +=================================================================== +--- trunk.orig/libcutl/cutl/fs/path.cxx ++++ trunk/libcutl/cutl/fs/path.cxx +@@ -13,6 +13,10 @@ + + #include <cutl/fs/path.hxx> + ++#ifndef PATH_MAX ++ #define PATH_MAX 4096 ++#endif ++ + namespace cutl + { + namespace fs diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..e82ca95 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,7 @@ +0100-C++Parser_Expat_support.patch +0001-xsd_xsdcxx-rename.patch +0700_hurd_PATH_MAX.patch +0105-Fix_path_handling_bug.patch +0110-xerces-c3.2.patch +0115-lintian-typos.patch +0120-g++10.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b44adc6 --- /dev/null +++ b/debian/rules @@ -0,0 +1,48 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 +export DH_OPTIONS + +DPKG_EXPORT_BUILDTOOLS=1 +include /usr/share/dpkg/buildtools.mk + +# +# Hardening +# +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +export verbose=1 + +export CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS) +export CXXFLAGS += -std=gnu++11 + +%: + dh $@ + +override_dh_clean: + rm -f $(CURDIR)/libcult/build/system/configuration-dynamic.make + make xsd_clean_gen=n clean + dh_clean + +override_dh_auto_install: + MAKEFLAGS="$$MAKEFLAGS install_prefix=$(CURDIR)/debian/xsdcxx/usr" $(MAKE) -C $(CURDIR)/ -f makefile install + mv $(CURDIR)/debian/xsdcxx/usr/share/doc/xsd $(CURDIR)/debian/xsdcxx/usr/share/doc/xsdcxx + mv $(CURDIR)/debian/xsdcxx/usr/bin/xsd $(CURDIR)/debian/xsdcxx/usr/bin/xsdcxx + mv $(CURDIR)/debian/xsdcxx/usr/share/man/man1/xsd.1 $(CURDIR)/debian/xsdcxx/usr/share/man/man1/xsdcxx.1 + rm -rf $(CURDIR)/debian/xsdcxx/usr/share/doc/libxsd + find $(CURDIR)/debian/xsdcxx \( -name "COPYRIGHT*" -o -name "FLOSSE*" -o -name "LICENSE*" -o -name "GPL*" \) -exec rm -v {} \; + +override_dh_install: + dh_install + install -D -m 644 debian/ubuntu/apport-hook.py $(CURDIR)/debian/xsdcxx/usr/share/apport/package-hooks/source_xsdcxx.py + +override_dh_link: + jdupes -rl debian/xsdcxx/usr + dh_link diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/ubuntu/apport-hook.py b/debian/ubuntu/apport-hook.py new file mode 100644 index 0000000..200718b --- /dev/null +++ b/debian/ubuntu/apport-hook.py @@ -0,0 +1,12 @@ +'''apport package hook for xsdcxx + +Author: Jörg Frings-Fürst <ubuntu@jff-webhosting.net> +''' + +from apport.hookutils import * + +def add_info(report): + attach_dmesg(report) + attach_hardware(report) + attach_related_packages(report, packages) + diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..2501db5 --- /dev/null +++ b/debian/watch @@ -0,0 +1,6 @@ +# Compulsory line, this is a version 4 file +version=4 +opts=dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$// \ +https://codesynthesis.com/download/xsd/(\d+)\.(\d+)/xsd-(\d+)\.(\d+)\.(\d+)[-(\d+)]?\+dep\.tar\.bz2 + + diff --git a/debian/xsdcxx.lintian-overrides b/debian/xsdcxx.lintian-overrides new file mode 100644 index 0000000..3de886d --- /dev/null +++ b/debian/xsdcxx.lintian-overrides @@ -0,0 +1 @@ +hardening-no-fortify-functions |