Followup-For: Bug #708500

Hi,

I just uploaded a NMU to DELAYED/5 that removes the install-info calls.
Please let me know if I should delay it longer.

A fixed trueprint package is required to be included in jessie since the
current wheezy package fails to remove after a wheezy->jessie upgrade.


Andreas
diff -u trueprint-5.3/debian/control trueprint-5.3/debian/control
--- trueprint-5.3/debian/control
+++ trueprint-5.3/debian/control
@@ -4,6 +4,7 @@
 Maintainer: Henrique Haas <mede...@gnoia.org>
 Standards-Version: 3.7.2
 Build-Depends: debhelper (>= 5.0.0), lpr, dpatch
+Homepage: http://www.gnu.org/software/trueprint/trueprint.html
 
 Package: trueprint
 Architecture: any
@@ -11,7 +12,7 @@
 Recommends: lpr
 Description: pretty printing of source code
  This program generates a pretty output of source codes in many 
- programming languages. The result could be printed or writed to
+ programming languages. The result could be printed or written to
  a Postscript file.
  .
  The following programming languages are supported:
@@ -26,2 +26,0 @@
- .
-  Homepage: http://www.gnu.org/software/trueprint/trueprint.html
diff -u trueprint-5.3/debian/rules trueprint-5.3/debian/rules
--- trueprint-5.3/debian/rules
+++ trueprint-5.3/debian/rules
@@ -26,6 +26,7 @@
 	dh_clean -k
 	dh_installdirs
 	$(MAKE) install DESTDIR=`pwd`/debian/trueprint/
+	$(RM) debian/trueprint/usr/share/info/dir
 
 binary-indep: build install
 
diff -u trueprint-5.3/debian/changelog trueprint-5.3/debian/changelog
--- trueprint-5.3/debian/changelog
+++ trueprint-5.3/debian/changelog
@@ -1,3 +1,13 @@
+trueprint (5.3-4.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Get rid of install-info calls in maintainer scripts.  (Closes: #708500)
+  * Forcefully truncate lines exceeding MAXLINELENGTH.  (Closes: #729278)
+  * Fix typo in description.  (Closes: #406654)
+  * Use Homepage field.  (Closes: #615335)
+
+ -- Andreas Beckmann <a...@debian.org>  Sat, 18 Jan 2014 23:15:04 +0100
+
 trueprint (5.3-4) unstable; urgency=low
 
   * New maintainer (Closes: #374128)
only in patch2:
unchanged:
--- trueprint-5.3.orig/debian/prerm
+++ trueprint-5.3/debian/prerm
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -e
+# dummy empty prerm to cope with upgrades after install-info disappeared
+
+#DEBHELPER#
only in patch2:
unchanged:
--- trueprint-5.3.orig/src/output.c
+++ trueprint-5.3/src/output.c
@@ -124,8 +124,11 @@
 add_char(short position,char character,char_status status,char *line,char_status line_status[])
 
 {
-  if (position >= MAXLINELENGTH)
+  if (position >= MAXLINELENGTH-1)
+  {
     fprintf(stderr, gettext(CMD_NAME ": line too long!  Are you sure this is a program listing?\n"));
+    return;
+  }
   line[position] = character;
   line_status[position] = status;
 }
@@ -206,6 +209,8 @@
   /*
    * put a null at the end of the line
    */
+  if (line_position >= MAXLINELENGTH-1)
+	  line_position = MAXLINELENGTH-1;
   input_line[line_position] = 0;
 
   return(retval);

Reply via email to