[pkg-java] r13550 - in tags/jclassinfo: . 0.19.1-6/debian 0.19.1-6/debian/patches
Vincent Fourmond
fourmond at alioth.debian.org
Sun Apr 17 21:58:08 UTC 2011
Author: fourmond
Date: 2011-04-17 21:58:07 +0000 (Sun, 17 Apr 2011)
New Revision: 13550
Added:
tags/jclassinfo/0.19.1-6/
tags/jclassinfo/0.19.1-6/debian/changelog
tags/jclassinfo/0.19.1-6/debian/compat
tags/jclassinfo/0.19.1-6/debian/control
tags/jclassinfo/0.19.1-6/debian/docs
tags/jclassinfo/0.19.1-6/debian/patches/01-make-static-lib.diff
tags/jclassinfo/0.19.1-6/debian/patches/02-use-stdin.diff
tags/jclassinfo/0.19.1-6/debian/patches/03-fix-malloc.diff
tags/jclassinfo/0.19.1-6/debian/patches/04-newer-jvms.diff
tags/jclassinfo/0.19.1-6/debian/patches/05-fix-jstring-memory.diff
tags/jclassinfo/0.19.1-6/debian/patches/series
tags/jclassinfo/0.19.1-6/debian/rules
tags/jclassinfo/0.19.1-6/debian/source/
Removed:
tags/jclassinfo/0.19.1-6/debian/README.source
tags/jclassinfo/0.19.1-6/debian/changelog
tags/jclassinfo/0.19.1-6/debian/compat
tags/jclassinfo/0.19.1-6/debian/control
tags/jclassinfo/0.19.1-6/debian/dirs
tags/jclassinfo/0.19.1-6/debian/docs
tags/jclassinfo/0.19.1-6/debian/patches/00list
tags/jclassinfo/0.19.1-6/debian/patches/01-make-static-lib.dpatch
tags/jclassinfo/0.19.1-6/debian/patches/02-use-stdin.dpatch
tags/jclassinfo/0.19.1-6/debian/patches/03-fix-malloc.dpatch
tags/jclassinfo/0.19.1-6/debian/rules
Log:
[svn-buildpackage] Tagging jclassinfo 0.19.1-6
Deleted: tags/jclassinfo/0.19.1-6/debian/README.source
===================================================================
--- trunk/jclassinfo/debian/README.source 2011-04-13 22:17:14 UTC (rev 13529)
+++ tags/jclassinfo/0.19.1-6/debian/README.source 2011-04-17 21:58:07 UTC (rev 13550)
@@ -1,7 +0,0 @@
-Note about the source package of jclassinfo.
-
-This package uses dpatch to manage all modifications to the upstream
-source. See /usr/share/doc/dpatch/README.source.gz to get more
-information on how to use it.
-
- -- Vincent Fourmond <fourmond at debian.org>, Tue, 5 May 2009 20:24:09 +0200
Deleted: tags/jclassinfo/0.19.1-6/debian/changelog
===================================================================
--- trunk/jclassinfo/debian/changelog 2011-04-13 22:17:14 UTC (rev 13529)
+++ tags/jclassinfo/0.19.1-6/debian/changelog 2011-04-17 21:58:07 UTC (rev 13550)
@@ -1,42 +0,0 @@
-jclassinfo (0.19.1-5) unstable; urgency=low
-
- * patches/03-fix-malloc: fix a memory allocation error (closes: #550203)
- * Now conforms to 3.8.3
-
- -- Vincent Fourmond <fourmond at debian.org> Tue, 26 Jan 2010 21:03:03 +0100
-
-jclassinfo (0.19.1-4) unstable; urgency=low
-
- * Definitely should go in Section: java...
-
- -- Vincent Fourmond <fourmond at debian.org> Tue, 05 May 2009 21:15:32 +0200
-
-jclassinfo (0.19.1-3) unstable; urgency=medium
-
- * Running libtoolize -f for every build to make sure libtool and
- autoconf are in sync (closes: #526553). Thanks to Daniel Schepler
- <dschepler at gmail.com> for reporting and giving a fix.
- * Urgency medium to fix a RC bug in testing.
- * Adding a debian/README.source to document the patch system.
- * Now conforms to standard 3.8.1
- * Update the FSF's address in debian/copyright
-
- -- Vincent Fourmond <fourmond at debian.org> Tue, 05 May 2009 20:26:09 +0200
-
-jclassinfo (0.19.1-2) unstable; urgency=low
-
- * Make it team-maintained
- * Added VCS fields
- * Fixed copyright problems.
-
- -- Vincent Fourmond <fourmond at debian.org> Tue, 01 Jan 2008 19:32:35 +0100
-
-jclassinfo (0.19.1-1) unstable; urgency=low
-
- * Initial release (Closes: #458062)
- * 01-make-static-lib to link libjclass statically
- * 02-use-stdin to have "-" work with the usual meaning
- as an argument (this way, no need for temporary files for jar analysis).
-
- -- Vincent Fourmond <fourmond at debian.org> Fri, 28 Dec 2007 10:18:32 +0100
-
Copied: tags/jclassinfo/0.19.1-6/debian/changelog (from rev 13549, trunk/jclassinfo/debian/changelog)
===================================================================
--- tags/jclassinfo/0.19.1-6/debian/changelog (rev 0)
+++ tags/jclassinfo/0.19.1-6/debian/changelog 2011-04-17 21:58:07 UTC (rev 13550)
@@ -0,0 +1,55 @@
+jclassinfo (0.19.1-6) unstable; urgency=low
+
+ * Switch to dh 7 and its wonderful sequencer
+ * Bump compatibility level accordingly
+ * Now conforms to standards 3.9.2
+ * Switch to format 3.0 (quilt)
+ * Drop dependencies on dpatch
+ * Drop README.source
+ * Now recognizing newer JVMs (closes: #623158)
+ * Find the flaw in the computations of the string size (closes: #613367)
+
+ -- Vincent Fourmond <fourmond at debian.org> Sun, 17 Apr 2011 23:18:23 +0200
+
+jclassinfo (0.19.1-5) unstable; urgency=low
+
+ * patches/03-fix-malloc: fix a memory allocation error (closes: #550203)
+ * Now conforms to 3.8.3
+
+ -- Vincent Fourmond <fourmond at debian.org> Tue, 26 Jan 2010 21:03:03 +0100
+
+jclassinfo (0.19.1-4) unstable; urgency=low
+
+ * Definitely should go in Section: java...
+
+ -- Vincent Fourmond <fourmond at debian.org> Tue, 05 May 2009 21:15:32 +0200
+
+jclassinfo (0.19.1-3) unstable; urgency=medium
+
+ * Running libtoolize -f for every build to make sure libtool and
+ autoconf are in sync (closes: #526553). Thanks to Daniel Schepler
+ <dschepler at gmail.com> for reporting and giving a fix.
+ * Urgency medium to fix a RC bug in testing.
+ * Adding a debian/README.source to document the patch system.
+ * Now conforms to standard 3.8.1
+ * Update the FSF's address in debian/copyright
+
+ -- Vincent Fourmond <fourmond at debian.org> Tue, 05 May 2009 20:26:09 +0200
+
+jclassinfo (0.19.1-2) unstable; urgency=low
+
+ * Make it team-maintained
+ * Added VCS fields
+ * Fixed copyright problems.
+
+ -- Vincent Fourmond <fourmond at debian.org> Tue, 01 Jan 2008 19:32:35 +0100
+
+jclassinfo (0.19.1-1) unstable; urgency=low
+
+ * Initial release (Closes: #458062)
+ * 01-make-static-lib to link libjclass statically
+ * 02-use-stdin to have "-" work with the usual meaning
+ as an argument (this way, no need for temporary files for jar analysis).
+
+ -- Vincent Fourmond <fourmond at debian.org> Fri, 28 Dec 2007 10:18:32 +0100
+
Deleted: tags/jclassinfo/0.19.1-6/debian/compat
===================================================================
--- trunk/jclassinfo/debian/compat 2011-04-13 22:17:14 UTC (rev 13529)
+++ tags/jclassinfo/0.19.1-6/debian/compat 2011-04-17 21:58:07 UTC (rev 13550)
@@ -1 +0,0 @@
-5
Copied: tags/jclassinfo/0.19.1-6/debian/compat (from rev 13549, trunk/jclassinfo/debian/compat)
===================================================================
--- tags/jclassinfo/0.19.1-6/debian/compat (rev 0)
+++ tags/jclassinfo/0.19.1-6/debian/compat 2011-04-17 21:58:07 UTC (rev 13550)
@@ -0,0 +1 @@
+7
Deleted: tags/jclassinfo/0.19.1-6/debian/control
===================================================================
--- trunk/jclassinfo/debian/control 2011-04-13 22:17:14 UTC (rev 13529)
+++ tags/jclassinfo/0.19.1-6/debian/control 2011-04-17 21:58:07 UTC (rev 13550)
@@ -1,23 +0,0 @@
-Source: jclassinfo
-Section: java
-Priority: optional
-Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
-Uploaders: Vincent Fourmond <fourmond at debian.org>
-Build-Depends: debhelper (>= 5), automake, autoconf,
- autotools-dev, dpatch, libtool, zlib1g-dev
-Standards-Version: 3.8.3
-Homepage: http://jclassinfo.sourceforge.net/
-Vcs-Svn: svn://svn.debian.org/svn/pkg-java/packages/trunk/jclassinfo/
-Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/packages/trunk/jclassinfo/
-
-Package: jclassinfo
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: extracts information from Java class files
- jclassinfo reads Java class files and extract useful information
- from them, such as:
- * the classes/methods/constants/fields provided
- * their dependencies
- * the version of the virtual machine necessary to run them
- * a full disassembly of the bytecode
- * other attributes
Copied: tags/jclassinfo/0.19.1-6/debian/control (from rev 13549, trunk/jclassinfo/debian/control)
===================================================================
--- tags/jclassinfo/0.19.1-6/debian/control (rev 0)
+++ tags/jclassinfo/0.19.1-6/debian/control 2011-04-17 21:58:07 UTC (rev 13550)
@@ -0,0 +1,26 @@
+Source: jclassinfo
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Vincent Fourmond <fourmond at debian.org>
+Build-Depends: debhelper (>= 7.0.50~), automake, autoconf,
+ autotools-dev, libtool, zlib1g-dev
+Standards-Version: 3.9.2
+Homepage: http://jclassinfo.sourceforge.net/
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/packages/trunk/jclassinfo/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/packages/trunk/jclassinfo/
+
+Package: jclassinfo
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: extracts information from Java class files
+ jclassinfo reads Java class files and extract useful information
+ from them, such as:
+ * the classes/methods/constants/fields provided
+ * their dependencies
+ * the version of the virtual machine necessary to run them
+ * a full disassembly of the bytecode
+ * other attributes
+ .
+ Its main advantage over other similar programs is that it is written
+ in C, which makes it much faster and more suitable for scripting.
Deleted: tags/jclassinfo/0.19.1-6/debian/dirs
===================================================================
--- trunk/jclassinfo/debian/dirs 2011-04-13 22:17:14 UTC (rev 13529)
+++ tags/jclassinfo/0.19.1-6/debian/dirs 2011-04-17 21:58:07 UTC (rev 13550)
@@ -1 +0,0 @@
-usr/bin
Deleted: tags/jclassinfo/0.19.1-6/debian/docs
===================================================================
--- trunk/jclassinfo/debian/docs 2011-04-13 22:17:14 UTC (rev 13529)
+++ tags/jclassinfo/0.19.1-6/debian/docs 2011-04-17 21:58:07 UTC (rev 13550)
@@ -1,4 +0,0 @@
-NEWS
-README
-README.win32
-TODO
Copied: tags/jclassinfo/0.19.1-6/debian/docs (from rev 13549, trunk/jclassinfo/debian/docs)
===================================================================
--- tags/jclassinfo/0.19.1-6/debian/docs (rev 0)
+++ tags/jclassinfo/0.19.1-6/debian/docs 2011-04-17 21:58:07 UTC (rev 13550)
@@ -0,0 +1,3 @@
+NEWS
+README
+TODO
Deleted: tags/jclassinfo/0.19.1-6/debian/patches/00list
===================================================================
--- trunk/jclassinfo/debian/patches/00list 2011-04-13 22:17:14 UTC (rev 13529)
+++ tags/jclassinfo/0.19.1-6/debian/patches/00list 2011-04-17 21:58:07 UTC (rev 13550)
@@ -1,3 +0,0 @@
-01-make-static-lib
-02-use-stdin
-03-fix-malloc
\ No newline at end of file
Copied: tags/jclassinfo/0.19.1-6/debian/patches/01-make-static-lib.diff (from rev 13549, trunk/jclassinfo/debian/patches/01-make-static-lib.diff)
===================================================================
--- tags/jclassinfo/0.19.1-6/debian/patches/01-make-static-lib.diff (rev 0)
+++ tags/jclassinfo/0.19.1-6/debian/patches/01-make-static-lib.diff 2011-04-17 21:58:07 UTC (rev 13550)
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01-make-static-lib.dpatch by <fourmond at debian.org>
+##
+## DP: Link statically libjclass: we don't want to support a shared library
+## DP: with dubious utility.
+
+ at DPATCH@
+diff -urNad jclassinfo-0.19.1~/jclass/Makefile.am jclassinfo-0.19.1/jclass/Makefile.am
+--- jclassinfo-0.19.1~/jclass/Makefile.am 2004-03-23 05:55:15.000000000 +0100
++++ jclassinfo-0.19.1/jclass/Makefile.am 2007-12-28 10:43:47.000000000 +0100
+@@ -3,7 +3,7 @@
+ INCLUDES=
+
+ lib_LTLIBRARIES = libjclass.la
+-libjclass_la_LDFLAGS = -no-undefined -version-info @JCLASS_CURRENT@:@JCLASS_RELEASE@:@JCLASS_AGE@
++libjclass_la_LDFLAGS = -no-undefined -version-info @JCLASS_CURRENT@:@JCLASS_RELEASE@:@JCLASS_AGE@ -static
+
+ library_includedir=$(includedir)/jclass/jclass
+
Deleted: tags/jclassinfo/0.19.1-6/debian/patches/01-make-static-lib.dpatch
===================================================================
--- trunk/jclassinfo/debian/patches/01-make-static-lib.dpatch 2011-04-13 22:17:14 UTC (rev 13529)
+++ tags/jclassinfo/0.19.1-6/debian/patches/01-make-static-lib.dpatch 2011-04-17 21:58:07 UTC (rev 13550)
@@ -1,19 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 01-make-static-lib.dpatch by <fourmond at debian.org>
-##
-## DP: Link statically libjclass: we don't want to support a shared library
-## DP: with dubious utility.
-
- at DPATCH@
-diff -urNad jclassinfo-0.19.1~/jclass/Makefile.am jclassinfo-0.19.1/jclass/Makefile.am
---- jclassinfo-0.19.1~/jclass/Makefile.am 2004-03-23 05:55:15.000000000 +0100
-+++ jclassinfo-0.19.1/jclass/Makefile.am 2007-12-28 10:43:47.000000000 +0100
-@@ -3,7 +3,7 @@
- INCLUDES=
-
- lib_LTLIBRARIES = libjclass.la
--libjclass_la_LDFLAGS = -no-undefined -version-info @JCLASS_CURRENT@:@JCLASS_RELEASE@:@JCLASS_AGE@
-+libjclass_la_LDFLAGS = -no-undefined -version-info @JCLASS_CURRENT@:@JCLASS_RELEASE@:@JCLASS_AGE@ -static
-
- library_includedir=$(includedir)/jclass/jclass
-
Copied: tags/jclassinfo/0.19.1-6/debian/patches/02-use-stdin.diff (from rev 13549, trunk/jclassinfo/debian/patches/02-use-stdin.diff)
===================================================================
--- tags/jclassinfo/0.19.1-6/debian/patches/02-use-stdin.diff (rev 0)
+++ tags/jclassinfo/0.19.1-6/debian/patches/02-use-stdin.diff 2011-04-17 21:58:07 UTC (rev 13550)
@@ -0,0 +1,187 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02-use-stdin.dpatch by <fourmond at debian.org>
+##
+## DP: Adds some code so that the "-" argument for stdin works.
+
+ at DPATCH@
+diff -urNad jclassinfo-0.19.1~/jclass/Makefile.am jclassinfo-0.19.1/jclass/Makefile.am
+--- jclassinfo-0.19.1~/jclass/Makefile.am 2007-12-28 18:41:58.000000000 +0100
++++ jclassinfo-0.19.1/jclass/Makefile.am 2007-12-28 18:41:58.000000000 +0100
+@@ -29,8 +29,9 @@
+ constant_pool.c \
+ field.c \
+ jar.c \
+- java_file.c \
++ java_file.c \
+ java_buf.c \
+ jstring.c \
+ manifest.c \
++ open.h open.c \
+ strtok_r.h strtok_r.c
+diff -urNad jclassinfo-0.19.1~/jclass/class.c jclassinfo-0.19.1/jclass/class.c
+--- jclassinfo-0.19.1~/jclass/class.c 2004-05-07 13:44:44.000000000 +0200
++++ jclassinfo-0.19.1/jclass/class.c 2007-12-28 18:41:58.000000000 +0100
+@@ -28,6 +28,8 @@
+ #include <jclass/jstring.h>
+ #include <jclass/class_loader.h>
+
++#include <jclass/open.h>
++
+ /*
+ *
+ * libjclass API reference
+@@ -74,7 +76,7 @@
+ if(filename == NULL)
+ return NULL;
+
+- is_filename = (strlen(filename) > 6) && !strcmp(".class", &filename[strlen(filename) - 6]);
++ is_filename = ((strlen(filename) > 6) && !strcmp(".class", &filename[strlen(filename) - 6]) || (!strcmp(filename, "-")));
+
+ if(!is_filename)
+ {
+@@ -96,7 +98,7 @@
+ }
+ else
+ {
+- classfile = fopen(filename, "rb");
++ classfile = my_open(filename, "rb");
+ new_class = jclass_class_new_from_file(classfile);
+ }
+
+diff -urNad jclassinfo-0.19.1~/jclass/class_loader.c jclassinfo-0.19.1/jclass/class_loader.c
+--- jclassinfo-0.19.1~/jclass/class_loader.c 2004-07-10 17:15:10.000000000 +0200
++++ jclassinfo-0.19.1/jclass/class_loader.c 2007-12-28 18:41:58.000000000 +0100
+@@ -40,6 +40,8 @@
+ #include <jclass/jstring.h>
+ #include <jclass/jar.h>
+
++#include <jclass/open.h>
++
+ #include "strtok_r.h"
+
+ #ifdef __WIN32__
+@@ -212,7 +214,7 @@
+ absolute_class_filename[path_len + 1] = '\0';
+ strcat(absolute_class_filename, class_filename);
+
+- file_ptr = fopen(absolute_class_filename,"rb");
++ file_ptr = my_open(absolute_class_filename,"rb");
+ if (file_ptr) {
+ fclose(file_ptr);
+ break;
+@@ -292,7 +294,7 @@
+ absolute_class_filename[path_len + 1] = '\0';
+ strcat(absolute_class_filename, class_filename);
+
+- class_file_info->file_ptr = fopen(absolute_class_filename,"rb");
++ class_file_info->file_ptr = my_open(absolute_class_filename,"rb");
+ free(absolute_class_filename);
+ if(class_file_info->file_ptr != NULL)
+ break;
+diff -urNad jclassinfo-0.19.1~/jclass/jar.c jclassinfo-0.19.1/jclass/jar.c
+--- jclassinfo-0.19.1~/jclass/jar.c 2004-03-21 06:04:10.000000000 +0100
++++ jclassinfo-0.19.1/jclass/jar.c 2007-12-28 18:41:58.000000000 +0100
+@@ -38,6 +38,8 @@
+ #include <zlib.h>
+ #include <jclass/jar.h>
+
++#include <jclass/open.h>
++
+ static int readcompresszip(JarFile*, const JarEntry*, char*);
+ static int seekcompresszip (JarFile*, const JarEntry*);
+ static uint16_t read_word (char*);
+@@ -211,7 +213,7 @@
+ JarFile *zip = (JarFile *) malloc (sizeof (JarFile));
+
+ /* open */
+- zip->fp = fopen (zipfile, "rb");
++ zip->fp = my_open (zipfile, "rb");
+ if (zip->fp == NULL)
+ {
+ free (zip);
+diff -urNad jclassinfo-0.19.1~/jclass/open.c jclassinfo-0.19.1/jclass/open.c
+--- jclassinfo-0.19.1~/jclass/open.c 1970-01-01 01:00:00.000000000 +0100
++++ jclassinfo-0.19.1/jclass/open.c 2007-12-28 18:41:58.000000000 +0100
+@@ -0,0 +1,32 @@
++/* open.c: a small wrapper around fopen to take care of "-"
++ Copyright 2007 by Vincent Fourmond
++
++ 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 program; if not, write to the Free Software
++ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
++
++*/
++
++#include <stdio.h>
++#include <string.h>
++
++FILE * my_open(const char * file, const char * mode)
++{
++ if(! strcmp(file, "-")) {
++ if(strchr(mode, 'r')) /* Read mode */
++ return fdopen(0, "r");
++ else
++ return fdopen(1, "w");
++ }
++ return fopen(file, mode);
++}
+diff -urNad jclassinfo-0.19.1~/jclass/open.h jclassinfo-0.19.1/jclass/open.h
+--- jclassinfo-0.19.1~/jclass/open.h 1970-01-01 01:00:00.000000000 +0100
++++ jclassinfo-0.19.1/jclass/open.h 2007-12-28 18:41:58.000000000 +0100
+@@ -0,0 +1,20 @@
++/* open.h: a small wrapper around fopen to take care of "-"
++ Copyright 2007 by Vincent Fourmond
++
++ 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 program; if not, write to the Free Software
++ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
++
++*/
++
++FILE * my_open(const char * file, const char * mode);
+diff -urNad jclassinfo-0.19.1~/jclassinfo.1 jclassinfo-0.19.1/jclassinfo.1
+--- jclassinfo-0.19.1~/jclassinfo.1 2004-05-07 13:49:00.000000000 +0200
++++ jclassinfo-0.19.1/jclassinfo.1 2007-12-28 18:43:10.000000000 +0100
+@@ -1,4 +1,4 @@
+-.TH "jclassinfo" "1" "0.18" "jclassinfo" "utils"
++.TH "jclassinfo" "1" "0.19" "jclassinfo" "utils"
+ .SH "NAME"
+ .LP
+ jclassinfo \- Provides information for Java class files.
+@@ -8,7 +8,15 @@
+
+ .SH "DESCRIPTION"
+ .LP
+-jclassinfo reads a class file and provides all sorts of information about it.
++jclassinfo reads a class file and provides all sorts of information
++about it.
++.I file
++can be
++.I -
++then
++.B jclassinfo
++reads a classfile from standard input.
++
+ .SH "OPTIONS"
+ .LP
+ .TP
Deleted: tags/jclassinfo/0.19.1-6/debian/patches/02-use-stdin.dpatch
===================================================================
--- trunk/jclassinfo/debian/patches/02-use-stdin.dpatch 2011-04-13 22:17:14 UTC (rev 13529)
+++ tags/jclassinfo/0.19.1-6/debian/patches/02-use-stdin.dpatch 2011-04-17 21:58:07 UTC (rev 13550)
@@ -1,187 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 02-use-stdin.dpatch by <fourmond at debian.org>
-##
-## DP: Adds some code so that the "-" argument for stdin works.
-
- at DPATCH@
-diff -urNad jclassinfo-0.19.1~/jclass/Makefile.am jclassinfo-0.19.1/jclass/Makefile.am
---- jclassinfo-0.19.1~/jclass/Makefile.am 2007-12-28 18:41:58.000000000 +0100
-+++ jclassinfo-0.19.1/jclass/Makefile.am 2007-12-28 18:41:58.000000000 +0100
-@@ -29,8 +29,9 @@
- constant_pool.c \
- field.c \
- jar.c \
-- java_file.c \
-+ java_file.c \
- java_buf.c \
- jstring.c \
- manifest.c \
-+ open.h open.c \
- strtok_r.h strtok_r.c
-diff -urNad jclassinfo-0.19.1~/jclass/class.c jclassinfo-0.19.1/jclass/class.c
---- jclassinfo-0.19.1~/jclass/class.c 2004-05-07 13:44:44.000000000 +0200
-+++ jclassinfo-0.19.1/jclass/class.c 2007-12-28 18:41:58.000000000 +0100
-@@ -28,6 +28,8 @@
- #include <jclass/jstring.h>
- #include <jclass/class_loader.h>
-
-+#include <jclass/open.h>
-+
- /*
- *
- * libjclass API reference
-@@ -74,7 +76,7 @@
- if(filename == NULL)
- return NULL;
-
-- is_filename = (strlen(filename) > 6) && !strcmp(".class", &filename[strlen(filename) - 6]);
-+ is_filename = ((strlen(filename) > 6) && !strcmp(".class", &filename[strlen(filename) - 6]) || (!strcmp(filename, "-")));
-
- if(!is_filename)
- {
-@@ -96,7 +98,7 @@
- }
- else
- {
-- classfile = fopen(filename, "rb");
-+ classfile = my_open(filename, "rb");
- new_class = jclass_class_new_from_file(classfile);
- }
-
-diff -urNad jclassinfo-0.19.1~/jclass/class_loader.c jclassinfo-0.19.1/jclass/class_loader.c
---- jclassinfo-0.19.1~/jclass/class_loader.c 2004-07-10 17:15:10.000000000 +0200
-+++ jclassinfo-0.19.1/jclass/class_loader.c 2007-12-28 18:41:58.000000000 +0100
-@@ -40,6 +40,8 @@
- #include <jclass/jstring.h>
- #include <jclass/jar.h>
-
-+#include <jclass/open.h>
-+
- #include "strtok_r.h"
-
- #ifdef __WIN32__
-@@ -212,7 +214,7 @@
- absolute_class_filename[path_len + 1] = '\0';
- strcat(absolute_class_filename, class_filename);
-
-- file_ptr = fopen(absolute_class_filename,"rb");
-+ file_ptr = my_open(absolute_class_filename,"rb");
- if (file_ptr) {
- fclose(file_ptr);
- break;
-@@ -292,7 +294,7 @@
- absolute_class_filename[path_len + 1] = '\0';
- strcat(absolute_class_filename, class_filename);
-
-- class_file_info->file_ptr = fopen(absolute_class_filename,"rb");
-+ class_file_info->file_ptr = my_open(absolute_class_filename,"rb");
- free(absolute_class_filename);
- if(class_file_info->file_ptr != NULL)
- break;
-diff -urNad jclassinfo-0.19.1~/jclass/jar.c jclassinfo-0.19.1/jclass/jar.c
---- jclassinfo-0.19.1~/jclass/jar.c 2004-03-21 06:04:10.000000000 +0100
-+++ jclassinfo-0.19.1/jclass/jar.c 2007-12-28 18:41:58.000000000 +0100
-@@ -38,6 +38,8 @@
- #include <zlib.h>
- #include <jclass/jar.h>
-
-+#include <jclass/open.h>
-+
- static int readcompresszip(JarFile*, const JarEntry*, char*);
- static int seekcompresszip (JarFile*, const JarEntry*);
- static uint16_t read_word (char*);
-@@ -211,7 +213,7 @@
- JarFile *zip = (JarFile *) malloc (sizeof (JarFile));
-
- /* open */
-- zip->fp = fopen (zipfile, "rb");
-+ zip->fp = my_open (zipfile, "rb");
- if (zip->fp == NULL)
- {
- free (zip);
-diff -urNad jclassinfo-0.19.1~/jclass/open.c jclassinfo-0.19.1/jclass/open.c
---- jclassinfo-0.19.1~/jclass/open.c 1970-01-01 01:00:00.000000000 +0100
-+++ jclassinfo-0.19.1/jclass/open.c 2007-12-28 18:41:58.000000000 +0100
-@@ -0,0 +1,32 @@
-+/* open.c: a small wrapper around fopen to take care of "-"
-+ Copyright 2007 by Vincent Fourmond
-+
-+ 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 program; if not, write to the Free Software
-+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-+
-+*/
-+
-+#include <stdio.h>
-+#include <string.h>
-+
-+FILE * my_open(const char * file, const char * mode)
-+{
-+ if(! strcmp(file, "-")) {
-+ if(strchr(mode, 'r')) /* Read mode */
-+ return fdopen(0, "r");
-+ else
-+ return fdopen(1, "w");
-+ }
-+ return fopen(file, mode);
-+}
-diff -urNad jclassinfo-0.19.1~/jclass/open.h jclassinfo-0.19.1/jclass/open.h
---- jclassinfo-0.19.1~/jclass/open.h 1970-01-01 01:00:00.000000000 +0100
-+++ jclassinfo-0.19.1/jclass/open.h 2007-12-28 18:41:58.000000000 +0100
-@@ -0,0 +1,20 @@
-+/* open.h: a small wrapper around fopen to take care of "-"
-+ Copyright 2007 by Vincent Fourmond
-+
-+ 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 program; if not, write to the Free Software
-+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-+
-+*/
-+
-+FILE * my_open(const char * file, const char * mode);
-diff -urNad jclassinfo-0.19.1~/jclassinfo.1 jclassinfo-0.19.1/jclassinfo.1
---- jclassinfo-0.19.1~/jclassinfo.1 2004-05-07 13:49:00.000000000 +0200
-+++ jclassinfo-0.19.1/jclassinfo.1 2007-12-28 18:43:10.000000000 +0100
-@@ -1,4 +1,4 @@
--.TH "jclassinfo" "1" "0.18" "jclassinfo" "utils"
-+.TH "jclassinfo" "1" "0.19" "jclassinfo" "utils"
- .SH "NAME"
- .LP
- jclassinfo \- Provides information for Java class files.
-@@ -8,7 +8,15 @@
-
- .SH "DESCRIPTION"
- .LP
--jclassinfo reads a class file and provides all sorts of information about it.
-+jclassinfo reads a class file and provides all sorts of information
-+about it.
-+.I file
-+can be
-+.I -
-+then
-+.B jclassinfo
-+reads a classfile from standard input.
-+
- .SH "OPTIONS"
- .LP
- .TP
Copied: tags/jclassinfo/0.19.1-6/debian/patches/03-fix-malloc.diff (from rev 13549, trunk/jclassinfo/debian/patches/03-fix-malloc.diff)
===================================================================
--- tags/jclassinfo/0.19.1-6/debian/patches/03-fix-malloc.diff (rev 0)
+++ tags/jclassinfo/0.19.1-6/debian/patches/03-fix-malloc.diff 2011-04-17 21:58:07 UTC (rev 13550)
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## Author: Vincent Fourmond <fourmond at debian.org>
+## Description: fix memory allocation error
+##
+
+ at DPATCH@
+diff -urNad jclassinfo-0.19.1~/jclass/jstring.c jclassinfo-0.19.1/jclass/jstring.c
+--- jclassinfo-0.19.1~/jclass/jstring.c 2004-03-21 05:33:07.000000000 +0100
++++ jclassinfo-0.19.1/jclass/jstring.c 2010-01-26 20:48:45.091764004 +0100
+@@ -199,7 +199,8 @@
+ number = strdup("0");
+ else
+ {
+- number = (char*) malloc(40);
++ /* Of course... */
++ number = (char*) malloc(41);
+ number[40] = '\0';
+
+ /* set sign */
Deleted: tags/jclassinfo/0.19.1-6/debian/patches/03-fix-malloc.dpatch
===================================================================
--- trunk/jclassinfo/debian/patches/03-fix-malloc.dpatch 2011-04-13 22:17:14 UTC (rev 13529)
+++ tags/jclassinfo/0.19.1-6/debian/patches/03-fix-malloc.dpatch 2011-04-17 21:58:07 UTC (rev 13550)
@@ -1,19 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## Author: Vincent Fourmond <fourmond at debian.org>
-## Description: fix memory allocation error
-##
-
- at DPATCH@
-diff -urNad jclassinfo-0.19.1~/jclass/jstring.c jclassinfo-0.19.1/jclass/jstring.c
---- jclassinfo-0.19.1~/jclass/jstring.c 2004-03-21 05:33:07.000000000 +0100
-+++ jclassinfo-0.19.1/jclass/jstring.c 2010-01-26 20:48:45.091764004 +0100
-@@ -199,7 +199,8 @@
- number = strdup("0");
- else
- {
-- number = (char*) malloc(40);
-+ /* Of course... */
-+ number = (char*) malloc(41);
- number[40] = '\0';
-
- /* set sign */
Copied: tags/jclassinfo/0.19.1-6/debian/patches/04-newer-jvms.diff (from rev 13549, trunk/jclassinfo/debian/patches/04-newer-jvms.diff)
===================================================================
--- tags/jclassinfo/0.19.1-6/debian/patches/04-newer-jvms.diff (rev 0)
+++ tags/jclassinfo/0.19.1-6/debian/patches/04-newer-jvms.diff 2011-04-17 21:58:07 UTC (rev 13550)
@@ -0,0 +1,30 @@
+Author: Vincent Fourmond <fourmond at debian.org>
+Description: Allow jclassinfo to recognize class files written by
+ recent JVM (numbers come from http://en.wikipedia.org/wiki/Java_class_file)
+
+Index: jclassinfo-0.19.1/jclass/class.c
+===================================================================
+--- jclassinfo-0.19.1.orig/jclass/class.c 2011-04-17 23:02:46.611166770 +0200
++++ jclassinfo-0.19.1/jclass/class.c 2011-04-17 23:03:21.219166790 +0200
+@@ -181,7 +181,7 @@
+ const char* jclass_class_get_vm_spec(JavaClass* class_struct)
+ {
+ char* vm_spec;
+- static char* spec_string[] = { "unknown", "1.1", "1.2", "1.3", "1.4"};
++ static char* spec_string[] = { "unknown", "1.1", "1.2", "1.3", "1.4", "1.5", "1.6" };
+
+ if(class_struct == NULL)
+ return NULL;
+@@ -200,6 +200,12 @@
+ case 48:
+ vm_spec = spec_string[4];
+ break;
++ case 49:
++ vm_spec = spec_string[5];
++ break;
++ case 50:
++ vm_spec = spec_string[6];
++ break;
+ default:
+ vm_spec = spec_string[0];
+ }
Copied: tags/jclassinfo/0.19.1-6/debian/patches/05-fix-jstring-memory.diff (from rev 13549, trunk/jclassinfo/debian/patches/05-fix-jstring-memory.diff)
===================================================================
--- tags/jclassinfo/0.19.1-6/debian/patches/05-fix-jstring-memory.diff (rev 0)
+++ tags/jclassinfo/0.19.1-6/debian/patches/05-fix-jstring-memory.diff 2011-04-17 21:58:07 UTC (rev 13550)
@@ -0,0 +1,17 @@
+Author: Vincent Fourmond <fourmond at debian.org>
+Description: Fix a small flaw in the computation of the display string length
+
+Index: jclassinfo-0.19.1/jclass/jstring.c
+===================================================================
+--- jclassinfo-0.19.1.orig/jclass/jstring.c 2011-04-17 23:09:38.523167000 +0200
++++ jclassinfo-0.19.1/jclass/jstring.c 2011-04-17 23:15:30.663167194 +0200
+@@ -114,6 +114,9 @@
+ string_length++;
+ else if(*str_ptr < ' ')
+ string_length += 2;
++ else if(*str_ptr == '\\' ||
++ *str_ptr == '"')
++ string_length++;
+
+ str_ptr++;
+ }
Copied: tags/jclassinfo/0.19.1-6/debian/patches/series (from rev 13549, trunk/jclassinfo/debian/patches/series)
===================================================================
--- tags/jclassinfo/0.19.1-6/debian/patches/series (rev 0)
+++ tags/jclassinfo/0.19.1-6/debian/patches/series 2011-04-17 21:58:07 UTC (rev 13550)
@@ -0,0 +1,5 @@
+01-make-static-lib.diff
+02-use-stdin.diff
+03-fix-malloc.diff
+04-newer-jvms.diff
+05-fix-jstring-memory.diff
Deleted: tags/jclassinfo/0.19.1-6/debian/rules
===================================================================
--- trunk/jclassinfo/debian/rules 2011-04-13 22:17:14 UTC (rev 13529)
+++ tags/jclassinfo/0.19.1-6/debian/rules 2011-04-17 21:58:07 UTC (rev 13550)
@@ -1,90 +0,0 @@
-#!/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
-
-
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
-include /usr/share/dpatch/dpatch.make
-
-config.status: configure patch-stamp
- dh_testdir
- # Add here commands to configure the package.
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
- cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
- cp -f /usr/share/misc/config.guess config.guess
-endif
- libtoolize -f
- aclocal
- automake
- autoconf
- ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
-
-
-build: build-stamp
-
-build-stamp: patch-stamp config.status
- dh_testdir
-
- # Add here commands to compile the package.
- $(MAKE)
-
- touch $@
-
-clean: clean-patched unpatch
-clean-patched:
- dh_testdir
- dh_testroot
- rm -f build-stamp
-
- # Add here commands to clean up after the build process.
- [ ! -r Makefile ] || $(MAKE) distclean
- rm -f config.sub config.guess
-
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
-
- # Add here commands to install the package into debian/jclassinfo.
- cd jclassinfo && $(MAKE) DESTDIR=$(CURDIR)/debian/jclassinfo install
- cd xml && $(MAKE) DESTDIR=$(CURDIR)/debian/jclassinfo install
-
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installchangelogs ChangeLog
- dh_installdocs
- dh_installman
- dh_strip
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
Copied: tags/jclassinfo/0.19.1-6/debian/rules (from rev 13549, trunk/jclassinfo/debian/rules)
===================================================================
--- tags/jclassinfo/0.19.1-6/debian/rules (rev 0)
+++ tags/jclassinfo/0.19.1-6/debian/rules 2011-04-17 21:58:07 UTC (rev 13550)
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_auto_configure:
+# We modify one of the Makefile.am stuff, we need to re-run the AM/AC tools
+ libtoolize -f
+ aclocal
+ automake
+ autoconf
+ dh_auto_configure
More information about the pkg-java-commits
mailing list