debian/0000755000000000000000000000000012260016052007160 5ustar debian/compat0000644000000000000000000000000212260011672010361 0ustar 8 debian/copyright0000644000000000000000000000377512260011672011132 0ustar This package was debianized by: Niels Thykier on Thu, 21 May 2009 15:51:38 +0200 It was downloaded from: Stable releases: http://www.mcternan.me.uk/mscgen/ Development source (via svn): http://mscgen.googlecode.com/svn/trunk/ Upstream Author: Michael C McTernan Files: test/renderercheck.sh License: GPL-2+ Copyright: 2009 Michael C McTernan Files: src/* License: GPL-2+ Copyright: 2007 Michael C McTernan Files: debian/* License: GPL-2+ Copyright: 2009 Niels Thykier This package 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 package 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 Files: tests/*.msc examples/*.mscin License: Public Domain This file is PUBLIC DOMAIN and may be freely reproduced, distributed, transmitted, used, modified, built upon, or otherwise exploited by anyone for any purpose, commercial or non-commercial, and in any way, including by methods that have not yet been invented or conceived. This file is provided "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/move-files.sh0000755000000000000000000000107612260011672011574 0ustar #!/bin/sh # Moves the following files out of the way so they # are auto rebuilt. FILES="language.c language.h lexer.c" set -e domv() { echo "Moving $1 -> $2" if [ -f "$1" ] ; then mv "$1" "$2" || exit 1 else echo "not needed." fi } prebuild() { for FILE in $FILES ; do domv "src/$FILE" debian/ done } clean() { for FILE in $FILES ; do domv "debian/$FILE" src/ done } if [ "$1" = prebuild ] ; then prebuild elif [ "$1" = clean ] ; then clean else echo "Unknown argument $1" >&2 exit 1 fi debian/rules0000755000000000000000000000130112260014114010230 0ustar #!/usr/bin/make -f DEB_LDFLAGS_MAINT_APPEND=-Wl,--no-add-needed,--as-needed,--no-undefined DPKG_EXPORT_BUILDFLAGS=1 include /usr/share/dpkg/buildflags.mk %: dh $@ -Bbuild override_dh_auto_configure: sh debian/move-files.sh prebuild dh_auto_configure -Bbuild -- --with-freetype --with-png # dh_auto_install blindly dumps every thing in debian/mscgen/ # However this means that the package ends up with two upstream # changelogs and COPYING, which is one too much of each. override_dh_auto_install: dh_auto_install -Bbuild cd debian/mscgen/usr/share/doc/mscgen/ && \ rm -f COPYING && \ mv -f ChangeLog changelog override_dh_auto_clean: sh debian/move-files.sh clean dh_auto_clean -Bbuild debian/source/0000755000000000000000000000000012260011672010463 5ustar debian/source/format0000644000000000000000000000001412260011672011671 0ustar 3.0 (quilt) debian/tests/0000755000000000000000000000000012260011672010325 5ustar debian/tests/control0000644000000000000000000000004012260011672011722 0ustar Tests: renderercheck Depends: @ debian/tests/renderercheck0000644000000000000000000000056112260011672013056 0ustar #!/bin/bash set -e # We trick the upstream "renderercheck.sh" script into executing the # tests using the installed version of mscgen. export top_builddir="$ADTTMP/top_builddir" mkdir "$top_builddir" >"$top_builddir/config.h" mkdir "$top_builddir/src" ln -s `type -p mscgen` "$top_builddir/src" export srcdir=`pwd`/test export VALGRIND= exec test/renderercheck.sh debian/watch0000644000000000000000000000021112260011672010206 0ustar version=3 opts=dversionmangle=s/(\+svn\d+)?\+dfsg$// http://www.mcternan.me.uk/mscgen/software/ mscgen-src-(.*)\.tar\.gz debian uupdate debian/patches/0000755000000000000000000000000012260016044010610 5ustar debian/patches/series0000644000000000000000000000003512260014355012026 0ustar language.y-parse-param.patch debian/patches/language.y-parse-param.patch0000644000000000000000000000163712260016044016100 0ustar Description: Use %parse-param to ensure that yyparse is generated with the proper prototype. diff --git a/src/language.y b/src/language.y index 1b6db52..d2c466f 100644 --- a/src/language.y +++ b/src/language.y @@ -48,7 +48,7 @@ int yylex_destroy(void); * Error handling function. The TOK_XXX names are substituted for more * understandable values that make more sense to the user. */ -void yyerror(const char *str) +void yyerror(void *unused, const char *str) { static const char *tokNames[] = { "TOK_OCBRACKET", "TOK_CCBRACKET", "TOK_OSBRACKET", "TOK_CSBRACKET", @@ -224,6 +224,8 @@ Msc MscParse(FILE *in) %} +%parse-param {void *YYPARSE_PARAM} + %token TOK_STRING TOK_QSTRING TOK_EQUAL TOK_COMMA TOK_SEMICOLON TOK_OCBRACKET TOK_CCBRACKET TOK_OSBRACKET TOK_CSBRACKET TOK_MSC TOK_ATTR_LABEL TOK_ATTR_URL TOK_ATTR_ID TOK_ATTR_IDURL debian/changelog0000644000000000000000000001733712260016044011046 0ustar mscgen (0.20-4) unstable; urgency=medium * Set %parse-param in language.y to ensure bison generates the correct prototype for yyparse. (Closes: #733370) * Bump Standards-Version to 3.9.5 - no changes required. -- Niels Thykier Sun, 29 Dec 2013 13:48:54 +0100 mscgen (0.20-3) unstable; urgency=low * Apply patch from Ian Jackson to add DEP-8/autopkgtests to mscgen. (Closes: #720687) * Use canonical URLs in the Vcs-* fields. * Bump Standards-Version to 3.9.4 - no changes required. * Build-Depend on libgd-dev instead of libgd2-xpm-dev, since the latter is now a transitional package. -- Niels Thykier Wed, 25 Sep 2013 23:45:47 +0200 mscgen (0.20-2) unstable; urgency=low * Use buildflags.mk from dpkg to set compiler and linker flags. - This enables hardning flags. * Bumped Standards-Versions to 3.9.2 - no changes required. * Bumped debhelper compat to 8. -- Niels Thykier Sun, 06 Nov 2011 14:52:33 +0100 mscgen (0.20-1) unstable; urgency=low * New upstream release. * Removed all remaining patches as they were already applied upstream. -- Niels Thykier Thu, 10 Mar 2011 16:52:20 +0100 mscgen (0.19-3) unstable; urgency=low * Upload to unstable. * Backported patch to fix crash when source entity is not known. -- Niels Thykier Sun, 06 Feb 2011 23:31:04 +0100 mscgen (0.19-2) experimental; urgency=low * Added patch from upstream to fix spelling mistakes. * Build in separate directory and removed the homemade pkg-config file for gdlib. * Moved packaging to git on git.debian.org. * Made sure that the parser and the lexer are rebuilt from their specification and not just their pre-generated C-files. -- Niels Thykier Tue, 04 Jan 2011 13:03:36 +0100 mscgen (0.19-1) experimental; urgency=low * New upstream release. * Pass --with-freetype to configure. -- Niels Thykier Mon, 03 Jan 2011 21:14:29 +0100 mscgen (0.18-1) experimental; urgency=low * New upstream release to experimental due to the freeze. - Removed all patches (they were all backports). * Added --as-needed and --no-undefined to linker flags to avoid overlinking. * Bumped Standards-Versions to 3.9.1 - no changes required. -- Niels Thykier Thu, 11 Nov 2010 23:24:02 +0100 mscgen (0.17-2) unstable; urgency=low * Pulled bug-fix patches from upstream. - Corrected the handling of the "-F" option; removes a false positive warning. - Fixed buffer overflow with long output names. - Fixed an issue, where mscgen would pass unsigned integers to libgd that would overflow and cause mscgen to hang. - Fixed an issue with how multi-line labels are rendered. * Bumped Standards-Versions to 3.8.4 - no changes required. * Changed source format to 3.0 (quilt). * Added homemade ".pc" file for gd2, since its dev package does not ship one. -- Niels Thykier Sun, 07 Feb 2010 22:04:08 +0100 mscgen (0.17-1) unstable; urgency=low * New upstream release. * Added Vcs fields. * Removed dpatch and libgd2-noxpm-dev as build depends. - The patches have been merged upstream or are no longer required. - libgd2-noxpm-dev is not built with the font support required for mscgen. * Removed README.source. - There are no longer any debian patches. - Upstream no longer ships a precompiled version of libgd in the src tar.gz. - All tests files now have a license. * Bumped to Standards-Version 3.8.3 - no changes required. * Rewrote debian/rules to let dh do all the work, where possible. * Updated debian/copyright. - The source code is now completely GPL-2+. Previously parts of it was licensed under LGPL-2.1. - The tests files have received a "No warranty" clause. -- Niels Thykier Mon, 31 Aug 2009 23:19:09 +0200 mscgen (0.16+dfsg-1) unstable; urgency=low * Corrected priority to "optional" and applied other beautification changes to the control file. * Changed the comment type of examples. * Removed unused dpatch (was outdated). * Created a debian/README.source to document modifications done to upstream source. -- Niels Thykier Mon, 13 Jul 2009 22:00:04 +0200 mscgen (0.16-1) unstable; urgency=low * New upstream release. * Modified the watch files to handle svn-snapshot builds more gracefully. * Added some examples based on the test files (via a patch). -- Niels Thykier Mon, 13 Jul 2009 12:26:08 +0200 mscgen (0.16~svn35-2) unstable; urgency=low * Implemented changes suggested by Y Giridhar Appaji Nag. - Removed (most) versions and libc from Build-Depends. - Rephrased parts of the package description. - Updated patch description to properly reflect what it does. - Removed some dh script calls and an the arguments to dh_installdocs. - Changed priority to optional (used to be extra). * Removed one useless if-statement in debian/rules. * Added a "get-orig-source" rule to debian/rules. -- Niels Thykier Fri, 10 Jul 2009 20:33:39 +0200 mscgen (0.16~svn35-1) unstable; urgency=low * Pre-upstream release. - Prevents echoing of "unexpected" characters in mscgen files to stdout. - Addresses some licenses issues. * Added missing license about test scripts in debian/copyright. * Corrected the LGPL reference - it was incorrectly referring to version 2, when it should have been 2.1. * Changed description to mention the mediawiki extension that can use mscgen. -- Niels Thykier Sun, 05 Jul 2009 22:09:56 +0200 mscgen (0.16~svn32-1) unstable; urgency=low * Pre-upstream release. - Fixes a regression on a sample input file using boxes. * Removed unless arguments for dh_installdirs - it created them by default. -- Niels Thykier Sat, 04 Jul 2009 11:04:33 +0200 mscgen (0.16~svn31-2) unstable; urgency=low * Fixed inverted check for the debian build options that caused optimizations to be disabled by default. -- Niels Thykier Thu, 02 Jul 2009 22:26:29 +0200 mscgen (0.16~svn31-1) unstable; urgency=low * Pre-upstream release: 0.16~svn31 - Fixes a segmentation fault occurring when using undeclared (or misspelled) entities in a graph. * Updated to Standards-Version 3.8.2.0 - No changes required. * Upstream's README is no longer installed as a part of this package's documentation - It contains information that is irrelevant for debian users. * Added patch to correct the outputted version number. -- Niels Thykier Wed, 01 Jul 2009 14:07:21 +0200 mscgen (0.15-4) unstable; urgency=low * Removed "bash" again from the build depends (forgot it was marked as Essential). -- Niels Thykier Sat, 30 May 2009 17:52:34 +0200 mscgen (0.15-3) unstable; urgency=low * Corrected Homepage field. * Added "bash" as build depends (used by test scripts). -- Niels Thykier Sat, 30 May 2009 17:38:46 +0200 mscgen (0.15-2) unstable; urgency=low * Removed comments from debian/control. * Repackaged source due to convenience sources being included. * Listed upstream's svn repository in the copyright file. -- Niels Thykier Thu, 28 May 2009 19:37:57 +0200 mscgen (0.15-1) unstable; urgency=low * Initial release. (Closes: #528784) * Added dpatch (01_debian-patch.dpatch) to remove optimization flags from upstream makefile to comply with debian build options (DEB_BUILD_OPTIONS=noopt). The optimization flags are instead inserted by the rules file. -- Niels Thykier Thu, 21 May 2009 15:51:38 +0200 debian/control0000644000000000000000000000234312260016044010566 0ustar Source: mscgen Section: devel Priority: optional Maintainer: Niels Thykier Build-Depends: autoconf, automake, bison, debhelper (>= 8~), # for buildflags.mk dpkg-dev (>= 1.16.1~), flex, libgd-dev, locales Standards-Version: 3.9.5 Homepage: http://www.mcternan.me.uk/mscgen/ Vcs-Git: git://anonscm.debian.org/collab-maint/mscgen.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/mscgen.git XS-Testsuite: autopkgtest Package: mscgen Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Enhances: doxygen Description: Message Sequence Chart (MSC) generator mscgen is a small program that parses Message Sequence Chart descriptions and produces PNG, SVG, EPS or server side image maps (ismaps) as the output. Message Sequence Charts (MSCs) are a way of representing entities and interactions over some time period and are often used in combination with SDL. MSCs are popular in Telecoms to specify how protocols operate. . mscgen can be used to create in-line MSC-charts in documentations parsed by doxygen. Extensions also exists for Python's Sphinx and mediawiki that can use mscgen.