--- dia2code-0.8.3.orig/debian/watch +++ dia2code-0.8.3/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/dia2code/dia2code-(.*)\.tar\.gz debian uupdate --- dia2code-0.8.3.orig/debian/control +++ dia2code-0.8.3/debian/control @@ -0,0 +1,15 @@ +Source: dia2code +Section: devel +Priority: optional +Build-Depends: debhelper (>= 5), cdbs, libxml2-dev (>= 2.4.10), autotools-dev, automake, patchutils +Maintainer: Francesco Aloe +Standards-Version: 3.7.3 + +Package: dia2code +Architecture: any +Depends: ${shlibs:Depends} +Recommends: dia | dia-gnome +Description: a dia-UML code generator + dia2code is a code generator which uses UML diagrams produced by dia, + and turns them into C, C++, Java, Ada, PHP, Python, Shapefile, SQL, + and C# files. --- dia2code-0.8.3.orig/debian/copyright +++ dia2code-0.8.3/debian/copyright @@ -0,0 +1,17 @@ +This package was debianized by Cyrille Chepelov on +Tue, 20 Feb 2001 21:38:32 +0100. + +It was downloaded from http://download.sourceforge.net/dia2code +(dia2code's site is http://dia2code.sourceforge.net) + +Upstream Authors: + Javier O'Hara + Ruben Lopez + + Copyright (C) 2000-2001 Javier O'Hara + Copyright (C) 2001 Ruben Lopez + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in /usr/share/common-licenses/GPL file. --- dia2code-0.8.3.orig/debian/compat +++ dia2code-0.8.3/debian/compat @@ -0,0 +1,2 @@ +5 + --- dia2code-0.8.3.orig/debian/changelog +++ dia2code-0.8.3/debian/changelog @@ -0,0 +1,176 @@ +dia2code (0.8.3-4) unstable; urgency=low + + * debian/patches/fix_Segfault.patch: fixed segfault (Closes: #550092). + + -- Francesco Aloe Sat, 24 Apr 2010 12:42:48 +0200 + +dia2code (0.8.3-3) unstable; urgency=low + + * debian/watch: fixed obsolete and not working watch file. Closes #49789. + * debian/control: removed build-dep on automake1.4 and added automake. + * debian/dirs: removed this file because it was not needed. + * Removed some superfluous newlines, trailing whitespaces and fixed typos. + + -- Francesco Aloe Wed, 19 Dec 2007 18:33:39 +0100 + +dia2code (0.8.3-2) unstable; urgency=low + + * New maintainer (Closes: #264107) + * debian/control: updated standards version to 3.7.3 + * debian/control: removed build-dep on doc-to-man and added cdbs, patchutils + * debian/rules: switched to cdbs + * debian/compat: updated to 5 + * debian/patches: managed patches by cdbs simple-patchsys + * Fixed manpage: added some options missing + * debian/dia2code.sgml: removed this file because it was used for to generate + the manpage, is now being used the upstream manpage + + -- Francesco Aloe Thu, 13 Dec 2007 11:33:22 +0100 + +dia2code (0.8.3-1) unstable; urgency=low + + * QA upload. + * New upstream release (closes: #410690), notable changes: + - added various code generators: C# (closes: #201049), PHP5, Ruby + + -- Stefano Zacchiroli Mon, 12 Feb 2007 18:03:22 +0100 + +dia2code (0.8.1-5) unstable; urgency=low + + * QA upload. + * Fix FTBFS by adding automake1.4 to build depends, closes: #264026. + + -- Ola Lundqvist Tue, 31 Aug 2004 12:45:59 +0200 + +dia2code (0.8.1-4) unstable; urgency=low + + * QA upload. + * Changed maintainer to Debian QA Group + as the package has been orphaned for some time according to + #264107. + * Updated standards verstion to 3.6.1. + * Fixed FTBFS bug, closes: #264026. + + -- Ola Lundqvist Fri, 20 Aug 2004 09:21:51 +0200 + +dia2code (0.8.1-3) unstable; urgency=low + + * New maintainer. (Closes: #187731) + * dia2code.h: prefix libxml2 includes with . (Closes: #192857) + * Updated standards version to 3.5.10 + * Updated package descriptions for additional languages dia2code can + generate. + * Add AM_MAINTAINER_MODE to configure.in and update aclocal.m4, configure. + Add a kludge to debian/rules to avoid rerunning autoheader and automake. + * Use autotools-dev. + + -- Morgon Kanter Wed, 4 Jun 2003 16:29:47 -0400 + +dia2code (0.8.1-2) unstable; urgency=low + + * Prevent a crash in lolipop_implementation(). Patch from Patrice Neff + (also forwarded upstream) (Closes: #133339) + + -- Cyrille Chepelov Fri, 15 Feb 2002 00:07:06 +0100 + +dia2code (0.8.1-1) unstable; urgency=low + + * New upstream release + + -- Cyrille Chepelov Sat, 5 Jan 2002 22:01:27 +0100 + +dia2code (0.7-2) unstable; urgency=low + + * Removed check for xml-config, since the transition to libxml2 is done + (Closes: #122889) + + -- Cyrille Chepelov Sat, 8 Dec 2001 08:48:00 +0100 + +dia2code (0.7-1) unstable; urgency=low + + * New upstream release + + -- Cyrille Chepelov Fri, 7 Dec 2001 14:39:15 +0100 + +dia2code (0.5-11) unstable; urgency=low + + * Added a build-dependency on automake to fix ia-64 build-time problems. + Fix from Eric Gillepsie (Closes: #105103) + + -- Cyrille Chepelov Thu, 19 Jul 2001 18:54:12 +0200 + +dia2code (0.5-10) unstable; urgency=low + + * dia2code.kdevprj, configure.in, dia2code/Makefile.am: use proper + detection and invocation of libxml using xml-config. This makes the + build more resilient when building on the HURD. (sent upstream) + + -- Cyrille Chepelov Tue, 3 Jul 2001 01:56:32 +0200 + +dia2code (0.5-9) unstable; urgency=low + + * Made relationship fields in debian/control single-line (policy and + behaviour of core tools are quite in disagreement...) + * new maintainer address (same maintainer, but NM) + * bumped up the standards version number in debian/control. + * debian/dia2code.sgml: bumped up to DocBook 4.1 (hopefully). + changed the manpage author's address (mine). + + -- Cyrille Chepelov Sat, 24 Mar 2001 21:17:06 +0100 + +dia2code (0.5-8) unstable; urgency=low + + * moved docbook-to-man as a Build-Depends, not a Build-Depends-Indep (we + do nothing in binary-indep, thus we need nothing). (Closes: #89266) + + -- Cyrille Chepelov Sun, 11 Mar 2001 18:53:29 +0100 + +dia2code (0.5-7) unstable; urgency=low + + * versioned the build-dependency on docbook-to-man (>= 1:2.0.0-8) + * removed obsolete call to dh_testversion in debian/rules + * removed call to dh_installmenu, as this program doesn't make sense + without command-line arguments. + + -- Cyrille Chepelov Fri, 9 Mar 2001 09:52:28 +0100 + +dia2code (0.5-6) unstable; urgency=low + + * Added checks for DEB_BUILD_OPTIONS="debug" in debian/rules (nostrip + already handled by dh_strip) [PM 11.1] + * Moved docbook-to-man to Build-Depends-Indep in debian/control [PM 7.6] + + -- Cyrille Chepelov Mon, 5 Mar 2001 06:02:26 +0100 + +dia2code (0.5-5) unstable; urgency=low + + * various clean-ups of debian/rules. + + -- Cyrille Chepelov Sat, 3 Mar 2001 19:27:05 +0100 + +dia2code (0.5-4) unstable; urgency=low + + * lintian cleanups. + + -- Cyrille Chepelov Sat, 3 Mar 2001 09:50:08 +0100 + +dia2code (0.5-3) unstable; urgency=low + + * build-depends again. Removed a lintian warning. + + -- Cyrille Chepelov Sat, 3 Mar 2001 09:11:29 +0100 + +dia2code (0.5-2) unstable; urgency=low + + * Added missing build-depends. + + -- Cyrille Chepelov Fri, 2 Mar 2001 21:32:24 +0100 + +dia2code (0.5-1) unstable; urgency=low + + * Initial Release. + * + + -- Cyrille Chepelov Fri, 2 Mar 2001 21:32:10 +0100 + + --- dia2code-0.8.3.orig/debian/rules +++ dia2code-0.8.3/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +DEB_INSTALL_MANPAGES_dia2code = dia2code.1 + --- dia2code-0.8.3.orig/debian/docs +++ dia2code-0.8.3/debian/docs @@ -0,0 +1,2 @@ +README +TODO --- dia2code-0.8.3.orig/debian/patches/fix_parse_diagram_c.patch +++ dia2code-0.8.3/debian/patches/fix_parse_diagram_c.patch @@ -0,0 +1,12 @@ +diff -Nur dia2code-0.8.3/dia2code/parse_diagram.c dia2code-0.8.3.new/dia2code/parse_diagram.c +--- dia2code-0.8.3/dia2code/parse_diagram.c 2003-03-05 17:44:38.000000000 +0100 ++++ dia2code-0.8.3.new/dia2code/parse_diagram.c 2007-12-13 10:36:02.000000000 +0100 +@@ -490,7 +490,7 @@ + } + implementator = find(classlist, id); + free(id); +- if (implementator != NULL && strlen(name) > 2) { ++ if (implementator != NULL && name != NULL && strlen(name) > 2) { + interface = (umlclasslist) my_malloc (sizeof (umlclassnode)); + interface->key = (umlclass *) my_malloc (sizeof(umlclass)); + interface->parents = NULL; --- dia2code-0.8.3.orig/debian/patches/fix_Segfault.patch +++ dia2code-0.8.3/debian/patches/fix_Segfault.patch @@ -0,0 +1,34 @@ +diff -ruN orig/dia2code-0.8.3/dia2code/parse_diagram.c dia2code-0.8.3/dia2code/parse_diagram.c +--- orig/dia2code-0.8.3/dia2code/parse_diagram.c 2003-03-05 17:44:38.000000000 +0100 ++++ dia2code-0.8.3/dia2code/parse_diagram.c 2010-04-24 16:18:25.000000000 +0200 +@@ -384,6 +384,10 @@ + attribute = package->xmlChildrenNode; + while ( attribute != NULL ) { + attrname = xmlGetProp(attribute, "name"); ++ if( attrname == NULL ) { ++ attribute = attribute->next; ++ continue; ++ } + if ( ! strcmp("name", attrname) ) { + parse_dia_string(attribute->xmlChildrenNode, myself->name); + } else if ( ! strcmp ( "obj_pos", attrname ) ) { +@@ -418,6 +422,10 @@ + attribute = class->xmlChildrenNode; + while ( attribute != NULL ) { + attrname = xmlGetProp(attribute, "name"); ++ if( attrname == NULL ) { ++ attribute = attribute->next; ++ continue; ++ } + if ( ! strcmp("name", attrname) ) { + parse_dia_string(attribute->xmlChildrenNode, myself->name); + } else if ( ! strcmp ( "obj_pos", attrname ) ) { +@@ -478,7 +486,7 @@ + id = xmlGetProp(attribute->xmlChildrenNode, "to"); + } else { + attrname = xmlGetProp(attribute, "name"); +- if ( ! strcmp("text", attrname) && attribute->xmlChildrenNode != NULL && ++ if ( attrname != NULL && ! strcmp("text", attrname) && attribute->xmlChildrenNode != NULL && + attribute->xmlChildrenNode->xmlChildrenNode != NULL ){ + name = attribute->xmlChildrenNode->xmlChildrenNode->content; + } else { --- dia2code-0.8.3.orig/debian/patches/fix_manpage.patch +++ dia2code-0.8.3/debian/patches/fix_manpage.patch @@ -0,0 +1,130 @@ +diff -Nur dia2code-0.8.3/dia2code.1 dia2code-0.8.3.new/dia2code.1 +--- dia2code-0.8.3/dia2code.1 2007-01-05 19:14:49.000000000 +0100 ++++ dia2code-0.8.3.new/dia2code.1 2007-12-15 02:34:38.000000000 +0100 +@@ -1,54 +1,55 @@ +-.TH dia2code 1 "September 2, 2001" +-.LO 1 +-.SH NAME ++.\" .LO 1 ++.TH "dia2code" "1" "September 2, 2001" "" "" ++.SH "NAME" + dia2code \- Generate code from Dia files +-.SH SYNOPSIS ++.SH "SYNOPSIS" + .B dia2code +-[\-h] +-[\-\-help] +-[\-t \fIada|c|cpp|java|php|python|shp|sql\fR] ++[\-t \fIada|c|cpp|cs|java|php|php5|python|ruby|shp|sql\fR] + [\-d \fIdir\fR] + [\-nc] + [\-c] + [\-cl \fIclasslist\fR] + [\-v] + diagramfile ++[\-h] ++[\-\-help] + +-.SH DESCRIPTION +-.PP ++.LP .RP .IP .TP .br <\fI\fR ++.SH "DESCRIPTION" ++.PP + .B dia2code + generates code from a Dia file containing a UML diagram. Output code can +-be: Ada, C, C++, C#, Java, PHP, Python, Ruby, Shape File or SQL create statements. +-.SH OPTIONS +-.PP +-.TP ++be: Ada, C, C++, C#, Java, PHP, PHP5, Python, Ruby, shapefiles and SQL. ++.SH "OPTIONS" ++.PP ++.TP + .B \-h \-\-help + Print help text and exit. +-.TP ++.TP + .B \-t ada|c|cpp|cs|java|php|php5|python|ruby|shp|sql + Selects the output language, default is C++. +-.TP ++.TP + .B \-d dir + Output generated files to , default is "." +-.TP ++.TP + .B \-nc + Do not overwrite files that already exist. +-.TP ++.TP + .B \-cl classlist +-Generate code only for the classes specified in the comma-separated . ++Generate code only for the classes specified in the comma\-separated . + E.g: Base,Derived. +-.TP ++.TP + .B \-v +-Invert the class list selection. When used without -cl prevents any file from ++Invert the class list selection. When used without \-cl prevents any file from + being created. +-.TP ++.TP + .B \-l licensefile + Prepend the specified license to every source file generated. +-.TP ++.TP + .B diagramfile + The Dia file that holds the diagram to be read. +-.SH AUTHOR +-.PP ++.SH "AUTHOR" ++.PP + Written by Javier O'Hara + with contributions from Ruben Lopez (C code generation), + Chris McGee (Dependencies, Associations, C++ Templates, +@@ -59,31 +60,31 @@ + Takaaki Tateishi <> (Dynamic Shared Objects for dynamic code generator modules), + Martin Vidner (Porting to libxml2). + +-.SH THANKS +-.PP ++.SH "THANKS" ++.PP + Thanks to Collin Starkweather, Richard Torkar and Slush Gore for the extra + help. +-.SH REPORTING BUGS +-.PP ++.SH "REPORTING BUGS" ++.PP + Report bugs to +-.br ++.br + . +-.SH COPYRIGHT +-.PP +-Copyright \(co 2000-2001 Javier O'Hara +-.br ++.SH "COPYRIGHT" ++.PP ++Copyright \(co 2000\-2001 Javier O'Hara ++.br + This is free software, and you are welcome to redistribute it + under certain conditions; read the COPYING file for details. +-.SH SEE ALSO +-.PP ++.SH "SEE ALSO" ++.PP + dia(1) +-.SH ALSO SEE ALSO +-.PP ++.SH "ALSO SEE ALSO" ++.PP + The + .B Dia + homepage: +- +-.br ++ ++.br + The + .B dia2code + homepage: