This is a Debian patch file for "hp2xx" 3.4.4. This file was obtained originally from: http://ftp.de.debian.org/debian/pool/main/h/hp2xx/\ hp2xx_3.4.4-9.diff.gz The contents are unchanged except for these comments. This patch file may include trailing empty lines and/or trailing lines that consist solely of whitespace. If you edit this file, use software that preserves lines of this type, or you may break the patch. --- hp2xx-3.4.4.orig/debian/changelog +++ hp2xx-3.4.4/debian/changelog @@ -0,0 +1,150 @@ +hp2xx (3.4.4-9) unstable; urgency=low + + * build-depend on libtiff-dev, not libtiff4-dev (closes: #736012) + * updated standards-version to 3.9.5 (no changes) + + -- Christian T. Steigies Sun, 19 Jan 2014 18:32:17 +0100 + +hp2xx (3.4.4-8) unstable; urgency=low + + * build-Depend on libjpeg-dev, not libjpeg62-dev (closes: #634029) + * updated standards-version to 3.9.2 (no changes) + * add ${misc:Depends} to binary package's control entry + * clarify copyright and description to remove lintian warnings + + -- Christian T. Steigies Sun, 17 Jul 2011 18:29:17 +0200 + +hp2xx (3.4.4-7) unstable; urgency=low + + * add dircategory to info file + * add dpkg (>= 1.15.4) | install-info to Depends + * updated standards-version to 3.8.3 (no changes) + + -- Christian T. Steigies Thu, 08 Oct 2009 21:50:09 +0200 + +hp2xx (3.4.4-6) unstable; urgency=low + + * Prevent the upstream Makefile to strip binaries, such that the + DEB_BUILD_OPTIONS=nostrip option will be honored (closes: #437168) + + -- Christian T. Steigies Sat, 18 Aug 2007 19:58:47 +0200 + +hp2xx (3.4.4-5) unstable; urgency=low + + * fix core dump, thanks to Petr Slansky for forwarding the bug he reported to Ubuntu + * updated standards-version to 3.7.2 (no changes) + * switch to cdbs + + -- Christian T. Steigies Thu, 30 Nov 2006 22:35:28 +0100 + +hp2xx (3.4.4-4) unstable; urgency=low + + * re-add the binary-arch target to debian/rules (closes: #348495) + + -- Christian T. Steigies Tue, 17 Jan 2006 14:18:04 +0100 + +hp2xx (3.4.4-3) unstable; urgency=low + + * build-depend on libx11-dev instead of removed xlibs-dev (closes: #346702) + * update to use debhelper 5 + * fix bug in manpage + * updated Standards-Version to 3.6.2 (no changes) + + -- Christian T. Steigies Sat, 14 Jan 2006 20:39:03 +0100 + +hp2xx (3.4.4-2) unstable; urgency=low + + * recompile for libtiff4 transition + * updated Standards-Version to 3.6.1 (no changes) + + -- Christian T. Steigies Sat, 31 Jul 2004 20:34:20 +0200 + +hp2xx (3.4.4-1) unstable; urgency=low + + * New upstream release (closes: #195639) + * Do not apply patch 006, no more -m486 in upstream Makefile + + -- Christian T. Steigies Mon, 23 Jun 2003 14:00:19 -0400 + +hp2xx (3.4.3-1) unstable; urgency=low + + * new upstream version (closes: #147565) + * rebuild for gcc-3.2 transition + * updated standards-version + * updated Build-Depends: libpng12-0-dev + + -- Christian T. Steigies Tue, 21 Jan 2003 00:04:11 -0500 + +hp2xx (3.4.2-2) unstable; urgency=low + + * include upstream patch for 3.4.3 + + -- Christian T. Steigies Sun, 19 May 2002 23:05:41 -0400 + +hp2xx (3.4.2-1) unstable; urgency=medium + + * new upstream version with many bugfixes + + -- Christian T. Steigies Fri, 19 Apr 2002 11:45:56 -0400 + +hp2xx (3.4.1-1) unstable; urgency=low + + * new upstream version + + -- Christian T. Steigies Mon, 28 Jan 2002 22:47:28 -0500 + +hp2xx (3.4.0-3) unstable; urgency=low + + * update description (closes: #93825) + * update Standards-Version + + -- Christian T. Steigies Thu, 23 Aug 2001 20:39:48 -0400 + +hp2xx (3.4.0-2) unstable; urgency=low + + * Build-Depends on xlibs-dev (closes: #85916) + + -- Christian T. Steigies Thu, 15 Feb 2001 11:04:53 +0100 + +hp2xx (3.4.0-1) unstable; urgency=low + + * new upstream version + * remove dh_suidregister from debian/rules + * use dh_installman instead of dh_installmanpages + + -- Christian T. Steigies Tue, 13 Feb 2001 12:58:36 +0100 + +hp2xx (3.3.2-2) frozen unstable; urgency=low + + * activate PNG and TIFF support in the Makefile + + -- Christian T. Steigies Mon, 28 Feb 2000 21:50:59 +0100 + +hp2xx (3.3.2-1) frozen unstable; urgency=low + + * new upstream version + * fixes bugs with pixmaps, EPS output and landscape format, see changelog + for details + + -- Christian T. Steigies Wed, 16 Feb 2000 00:21:49 +0100 + +hp2xx (3.3.1-2) unstable; urgency=low + + * build with $(MAKE) prefix= $(DESTDIR)/usr to avoid changing the upstream + Makefile + + -- Christian T. Steigies Thu, 6 Jan 2000 23:02:50 +0100 + +hp2xx (3.3.1-1) unstable; urgency=low + + * new upstream version + + -- Christian T. Steigies Mon, 3 Jan 2000 21:55:53 +0100 + +hp2xx (3.3.0-1) unstable; urgency=low + + * Initial Release. + + -- Christian T. Steigies Wed, 10 Nov 1999 22:27:18 +0100 + + --- hp2xx-3.4.4.orig/debian/compat +++ hp2xx-3.4.4/debian/compat @@ -0,0 +1 @@ +5 --- hp2xx-3.4.4.orig/debian/control +++ hp2xx-3.4.4/debian/control @@ -0,0 +1,19 @@ +Source: hp2xx +Section: graphics +Priority: optional +Maintainer: Christian T. Steigies +Standards-Version: 3.9.5 +Build-Depends: cdbs, debhelper (>=5.0.0), texinfo, libtiff-dev, libpng12-0-dev, zlib1g-dev, libjpeg-dev, libx11-dev + +Package: hp2xx +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, dpkg (>= 1.15.4) | install-info +Description: HPGL converter into some vector- and raster formats + HP2XX reads HPGL ASCII source files, interprets them, and converts them + into either another vector-oriented format or one of several rasterfile + formats. Currently, its HPGL parser recognizes a subset of the HP 7550A + command set. Some high-level functions are missing. Also, only some of the + fixed space vector fonts and none of the variable space arc fonts are + supported. Beside these limitations, hp2xx has proven to work with many + HP-GL sources without any trouble. + --- hp2xx-3.4.4.orig/debian/copyright +++ hp2xx-3.4.4/debian/copyright @@ -0,0 +1,17 @@ +This package was debianized by Christian T. Steigies on +Wed, 10 Nov 1999 22:27:18 +0100. + +It was downloaded from ftp.gnu.org:/pub/gnu/hp2xx/hp2xx-3.4.4.tar.gz + +Upstream Author: + Martin Kroeker OR + +Original Author: Heinz W. Werntges + +Copyright 1991-1994 (V3.20) Heinz W. Werntges +Copyright 1999-2003 Martin Kroeker + +GNU General Public License Version 2 +On Debian GNU/Linux systems, the complete text of the GNU General Public +License is found in `/usr/share/common-licenses/GPL'. + --- hp2xx-3.4.4.orig/debian/dirs +++ hp2xx-3.4.4/debian/dirs @@ -0,0 +1,4 @@ +usr/bin +usr/share/doc/hp2xx/hp-tests +usr/share/info +usr/share/man/man1 --- hp2xx-3.4.4.orig/debian/docs +++ hp2xx-3.4.4/debian/docs @@ -0,0 +1,4 @@ +README +TODO +doc/hp_cmds.lst + --- hp2xx-3.4.4.orig/debian/patches/001_manpage.diff +++ hp2xx-3.4.4/debian/patches/001_manpage.diff @@ -0,0 +1,20 @@ +--- hp2xx-3.4.4.orig/doc/hp2xx.1 ++++ hp2xx-3.4.4/doc/hp2xx.1 +@@ -155,7 +155,7 @@ + Use option + .I -m mode + to select the program mode, i.e. the output format. Currently supported: +-mode = "mf" (Metafont), "em" (emTeX \special{} commands), "epic" ++mode = "mf" (Metafont), "em" (emTeX \\special{} commands), "epic" + (line drawing using TeX macros within epic.sty), "eps" (PostScript), + "dxf" (Autocad), "emf/emp" (MS Enhanced Metafile / Printing - available + in Windows-built executables only), "svg" (Scalable Vector Graphics), +@@ -260,7 +260,7 @@ + create. Edit the metafont source, e.g., to change the letter "Z" for + another, or to change the line thickness, which is set to 0.4pt by default. + The other TeX-related modes ("cad" for TeXcad compatible code, "em" for +-employing \special{em:line} macros, and "epic" for drawing lines with ++employing \\special{em:line} macros, and "epic" for drawing lines with + macros from "epic.sty") address different compromises to cope with TeX's + poor line drawing capability and are generally not recommended nor fully + supported. Feel free to experiment with them -- they generate ASCII output --- hp2xx-3.4.4.orig/debian/patches/002_trigraph.diff +++ hp2xx-3.4.4/debian/patches/002_trigraph.diff @@ -0,0 +1,11 @@ +--- hp2xx-3.4.4.orig/sources/Makefile ++++ hp2xx-3.4.4/sources/Makefile +@@ -46,7 +46,7 @@ + # For non-gcc compilers, simply set CFLAGS = -O (to start with) + # + CC = gcc +-CFLAGS = -O2 -g -I/usr/X11R6/include $(DEFINES) $(EX_DEFS) -Wall -pedantic -Wuninitialized -Wunused -Wreturn-type -Wmissing-prototypes -Wstrict-prototypes ++CFLAGS = -O2 -g -I/usr/X11R6/include $(DEFINES) $(EX_DEFS) -Wall -pedantic -Wuninitialized -Wunused -Wreturn-type -Wmissing-prototypes -Wstrict-prototypes -trigraphs + LINT = splint + LINTFLAGS = -weak -initallelements +posixlib -I/usr/X11R6/include $(DEFINES) $(EX_DEFS) + --- hp2xx-3.4.4.orig/debian/patches/003_segfault.diff +++ hp2xx-3.4.4/debian/patches/003_segfault.diff @@ -0,0 +1,34 @@ +diff -u hp2xx-3.4.4/sources/hp2xx.c hp2xx-3.4.4/sources/hp2xx.c +--- hp2xx-3.4.4/sources/hp2xx.c 2003-06-21 21:13:52.000000000 +0300 ++++ hp2xx-3.4.4/sources/hp2xx.c 2006-11-19 18:32:02.000000000 +0200 +@@ -464,7 +464,8 @@ + po->dpi_y = 0; + po->vga_mode = 18; /* 0x12: VGA 640x480, 16 colors */ + po->picbuf = NULL; +- po->outfile = ""; ++ po->outfile = malloc(128 * sizeof(char)); ++ po->outfile[0] = '\0'; + po->zengage = -1.; + po->zretract = 1.; + +@@ -552,7 +553,7 @@ + len = (int) strlen(in_name); + + if (len == 0) { /* If input from stdin: *//* then supply a default file name */ +- *outfile = "hp2xx.out"; ++ strcpy(*outfile, "hp2xx.out"); + return; + } + +diff -u hp2xx-3.4.4/sources/std_main.c hp2xx-3.4.4/sources/std_main.c +--- hp2xx-3.4.4/sources/std_main.c 2003-06-21 18:31:51.000000000 +0300 ++++ hp2xx-3.4.4/sources/std_main.c 2006-11-19 19:25:04.000000000 +0200 +@@ -605,7 +605,7 @@ + if (strlen(Po.outfile) > 0) + strcpy(outname, Po.outfile); /* store fixed outfile name if present */ + else { +- Po.outfile = malloc(1 * sizeof(char)); ++ Po.outfile = realloc(Po.outfile, 2 * sizeof(char)); + strcpy(Po.outfile, ""); + } + /** --- hp2xx-3.4.4.orig/debian/patches/004_nostrip.diff +++ hp2xx-3.4.4/debian/patches/004_nostrip.diff @@ -0,0 +1,18 @@ +--- sources/Makefile~ 2007-08-18 19:57:33.000000000 +0200 ++++ sources/Makefile 2007-08-18 19:57:33.000000000 +0200 +@@ -31,7 +31,6 @@ + CP = cp + MKINFO = makeinfo + RMCMD = rm -f +-STRIP = strip + + # Installation sites (GNU conventions): + # +@@ -330,7 +329,6 @@ + install: install-bin install-info install-man + + install-bin: $(PROGRAM) +- -$(STRIP) $(PROGRAM) + -$(CP) $(PROGRAM) $(bindir) + -$(CHMOD) 755 $(bindir)/$(PROGRAM) + --- hp2xx-3.4.4.orig/debian/patches/005_hpgl.c.diff +++ hp2xx-3.4.4/debian/patches/005_hpgl.c.diff @@ -0,0 +1,42 @@ +--- sources/hpgl.c~ 2003-06-21 19:54:45.000000000 +0200 ++++ sources/hpgl.c 2010-02-10 14:22:10.585264000 +0100 +@@ -2622,9 +2622,6 @@ + fprintf(stderr, + "only fixed fonts available\n"); + break; +- case 3: /* font pitch */ +- case 4: /* font height */ +- case 5: /* posture */ + case 6: /* stroke weight */ + if (read_float(&ftmp, hd)) + par_err_exit(2, cmd, hd); +@@ -2636,6 +2633,9 @@ + tp->astrokewidth = 0.11 + ftmp / 70.; /* 0.01 ... 0.21 mm */ + } + break; ++ case 3: /* font pitch */ ++ case 4: /* font height */ ++ case 5: /* posture */ + case 7: /* typeface */ + if (read_float(&csfont, hd)) + par_err_exit(2, cmd, hd); +@@ -3720,9 +3720,6 @@ + fprintf(stderr, + "only fixed fonts available\n"); + break; +- case 3: /* font pitch */ +- case 4: /* font height */ +- case 5: /* posture */ + case 6: /* stroke weight */ + if (read_float(&ftmp, hd)) + par_err_exit(2, cmd, hd); +@@ -3734,6 +3731,9 @@ + tp->sstrokewidth = 0.11 + ftmp / 70.; /* 0.01 ... 0.21 mm */ + } + break; ++ case 3: /* font pitch */ ++ case 4: /* font height */ ++ case 5: /* posture */ + case 7: /* typeface */ + if (read_float(&csfont, hd)) + par_err_exit(2, cmd, hd); --- hp2xx-3.4.4.orig/debian/rules +++ hp2xx-3.4.4/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/makefile.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +# Add here any variable or target overrides you need. + +# Build problems +# That will avoid passing CFLAGS. But note that this breaks the automatic implementation of DEB_BUILD_OPTIONS +DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) make -C $(DEB_BUILDDIR) + +DEB_MAKE_CLEAN_TARGET = clean +DEB_MAKE_BUILD_TARGET = all +DEB_MAKE_INSTALL_TARGET = install \ + bindir=$(CURDIR)/debian/hp2xx/usr/bin \ + mandir=$(CURDIR)/debian/hp2xx/usr/share/man \ + infodir=$(CURDIR)/debian/hp2xx/usr/share/info + +# no check for this software +DEB_MAKE_CHECK_TARGET = + +install/hp2xx:: + cp doc/changes debian/hp2xx/usr/share/doc/hp2xx/changelog_old + cp hp-tests/* debian/hp2xx/usr/share/doc/hp2xx/hp-tests/ + + --- hp2xx-3.4.4.orig/debian/watch +++ hp2xx-3.4.4/debian/watch @@ -0,0 +1,5 @@ +# format version number, currently 2; this line is compulsory! +version=2 + +# Site Directory Pattern Version Script +ftp://ftp.gnu.org/pub/gnu/hp2xx/hp2xx-([\d\.]+)\.tar\.gz debian uupdate --- hp2xx-3.4.4.orig/doc/hp2xxinf.tex +++ hp2xx-3.4.4/doc/hp2xxinf.tex @@ -9,6 +9,8 @@ @c @cropmarks @c %**end of header +@dircategory Utilities + @finalout @syncodeindex ky cp