Subject: Nedit build failures
Package: nedit
Version: 1:5.6~cvs20081118-7
Severity: normal

*** Please type your report below this line ***

1) If I run "dpkg-buildpackage -uc -us -tc" the build process fails after 
creating the deb-packages:

...
dh_md5sums
dh_builddeb
dpkg-deb: Paket »nedit« wird in »../nedit_5.6~cvs20081118-7_amd64.deb« 
gebaut.
dpkg-deb: Paket »nedit-dbg« wird in 
»../nedit-dbg_5.6~cvs20081118-7_amd64.deb« gebaut.
 dpkg-genchanges  >../nedit_5.6~cvs20081118-7_amd64.changes
dpkg-genchanges: Originalquellen beim Hochladen nicht hinzufügen
 fakeroot debian/rules clean
dpatch  deapply-all  
reverting patch 80_Update_version_description from ./ ... failed.
make: *** [unpatch] Fehler 1
dpkg-buildpackage: Fehler: Fehler-Exitstatus von fakeroot debian/rules 
clean war 2


2) A second try fails immediately, again it is the patch 
80_Update_version_description which fails. 

The patch alters an intermediate file in the source tree: 
source/help_data.h. This is not really a source file. It will be 
(re-)created from make in the doc directory. 

You may look at my diff file to see how I have rearranged the build process 
to let it work.




Package: nedit
Version: 1:5.6~cvs20081118-9
Severity: normal



-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash

Versions of packages nedit depends on:
ii  lesstif2                      1:0.95.2-1 
OSF/Motif 2.1 implementation relea
ii  libc6                         2.11.2-10  
Embedded GNU C Library: Shared lib
ii  libx11-6                      2:1.3.3-4  X11 
client-side library
ii  libxt6                        1:1.0.7-1  X11 
toolkit intrinsics library


    
diff -Nbur nedit-5.6~cvs20081118~/debian/changelog nedit-5.6~cvs20081118-8/debian/changelog
--- nedit-5.6~cvs20081118~/debian/changelog	2012-11-27 23:24:21.000000000 +0100
+++ nedit-5.6~cvs20081118-8/debian/changelog	2012-11-28 12:20:51.000000000 +0100
@@ -1,3 +1,11 @@
+nedit (1:5.6~cvs20081118-8) unstable; urgency=low
+
+  * Remove 80_Update_version_description.dpatch which modified an
+    intermediate file causing a build failure. The version setting is
+    now done in debian/rules.
+
+ -- Markus <markus@deb-60-build-64>  Wed, 28 Nov 2012 08:38:29 +0100
+
 nedit (1:5.6~cvs20081118-7) unstable; urgency=low
 
   * Fixed the debian/rules to really create the debugging package
diff -Nbur nedit-5.6~cvs20081118~/debian/patches/00list nedit-5.6~cvs20081118-8/debian/patches/00list
--- nedit-5.6~cvs20081118~/debian/patches/00list	2012-11-27 23:24:21.000000000 +0100
+++ nedit-5.6~cvs20081118-8/debian/patches/00list	2012-11-28 08:40:37.000000000 +0100
@@ -4,4 +4,3 @@
 40_Pointer_to_Integer
 50_ChangeNCinMan
 70_EditVersionText
-80_Update_version_description
diff -Nbur nedit-5.6~cvs20081118~/debian/patches/80_Update_version_description.dpatch nedit-5.6~cvs20081118-8/debian/patches/80_Update_version_description.dpatch
--- nedit-5.6~cvs20081118~/debian/patches/80_Update_version_description.dpatch	2012-11-27 23:24:21.000000000 +0100
+++ nedit-5.6~cvs20081118-8/debian/patches/80_Update_version_description.dpatch	1970-01-01 01:00:00.000000000 +0100
@@ -1,15 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-# Description: Create a version string which is reconizable as Debian.
-# Author: Paul Gevers <p...@climbing.nl>
-# Upstream: not-needed
-
-@DPATCH@
-diff -urNad nedit-5.6~cvs20081118~/source/help_data.h nedit-5.6~cvs20081118/source/help_data.h
---- nedit-5.6~cvs20081118~/source/help_data.h	2008-01-04 23:11:03.000000000 +0100
-+++ nedit-5.6~cvs20081118/source/help_data.h	2009-09-04 19:38:44.000000000 +0200
-@@ -5671,4 +5671,4 @@
-     {NULL,    14799, HELP_PREFERENCES, "Autoload Files"}
- };
- 
--static const char * NEditVersion = "NEdit release of Aug 20, 2004\n";
-+static const char * NEditVersion = "NEdit 5.6 CVS checkout release by Debian on Nov 18, 2008\n";
diff -Nbur nedit-5.6~cvs20081118~/debian/rules nedit-5.6~cvs20081118-8/debian/rules
--- nedit-5.6~cvs20081118~/debian/rules	2012-11-27 23:24:21.000000000 +0100
+++ nedit-5.6~cvs20081118-8/debian/rules	2012-11-28 13:05:59.000000000 +0100
@@ -14,6 +14,7 @@
 CFLAGS += -O2
 endif
 
+VERSION=$(shell head -1 debian/changelog | sed 's/.*(\(.*\)).*/\1/')
 
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 	INSTALL_PROGRAM += -s
@@ -22,8 +23,13 @@
 build: build-stamp
 build-stamp: patch-stamp
 	dh_testdir
-	$(MAKE) CFLAGSD="$(CFLAGS)" linux
+
+	# make docs before build: it creates header files needed for build step
 	(cd doc; $(MAKE) VERSION="NEdit $(VERSION)" all)
+
+	# Connect stdin to /dev/null to prevent stall with "HIT ENTER TO CONTINUE"
+	$(MAKE) -j$(shell /usr/bin/getconf _NPROCESSORS_ONLN) CFLAGSD="$(CFLAGS)" linux < /dev/null
+
 	mv doc/nc.man doc/nedit-nc.1
 	mv doc/nedit.man doc/nedit.1
 	touch build-stamp
@@ -35,6 +41,7 @@
 	rm -f build-stamp
 	dh_clean
 	(cd doc; $(MAKE) clean)
+	rm -f source/help_data.h source/help_topic.h doc/.version
 	$(MAKE) clean
 	find util -type l | xargs rm -f
 	find source -type l | xargs rm -f
diff -Nbur nedit-5.6~cvs20081118~/util/motif.c nedit-5.6~cvs20081118-8/util/motif.c
--- nedit-5.6~cvs20081118~/util/motif.c	2007-08-02 16:13:03.000000000 +0200
+++ nedit-5.6~cvs20081118-8/util/motif.c	2012-11-28 09:02:12.000000000 +0100
@@ -96,6 +96,8 @@
     "0.93.95b",   /* SF bug 1087192 */
     "0.94.4",     /* Alt-H, ESC => crash */
     "0.95.0",     /* same as above */
+    "0.95.2",     /* above seems to be solved, but keep it as knownBad to leave
+                     the warning in NEdit version info (Alt-H, V) */
     NULL
 };
 

Reply via email to