--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: xterm: FTBFS (all platforms) debian/rules confused by user's ~/.quiltrc
- From: Jari Aalto <jari.aalto@cante.net>
- Date: Fri, 02 Jun 2006 10:37:28 +0300
- Message-id: <20060602073728.23414.39984.reportbug@cante>
Package: xterm
Version: 210-3
Severity: important
Tags: patch fixed
Justification: fails to build from source
The debian/rules uses quilt(1) for batch management. Unfortunately
quilt by design always reads ~/.quiltrc which, makes the build process
not to work. User propbaly has defaults that are not suitable for the
build, like:
QUILT_PATCHES="debian/quilt"
This causes target patch to fail:
.PHONY: patch
patch: $(STAMP_DIR)/patch
$(STAMP_DIR)/patch: $(STAMP_DIR)/prepare
.. push -a -v ...
The error log says "no series file" (due to QUILT_PATCHES pointing
elsewhere).
The fix is simple. Make quilt use debian/quiltrc so that it is not
dependent on the user's environment. Attached files in patch:
1. debian/quiltrc (new file)
2. debian/rules (modified; fix included)
-----------------------------------------------------------------------
=== added file 'debian/quiltrc'
--- /dev/null
+++ debian/quiltrc
@@ -0,0 +1,1 @@
+QUILT_PATCHES="debian/patches"
\ No newline at end of file
=== modified file 'debian/rules'
--- debian/rules
+++ debian/rules
@@ -10,6 +10,10 @@
# debhelper
export DH_OPTIONS
+
+DEBQUILTRC = debian/quiltrc
+QUILTOPT = --quiltrc $(DEBQUILTRC)
+QUILT = quilt $(QUILTOPT)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
@@ -36,7 +40,8 @@
STAMP_DIR:=stampdir
-DEBINSTALLTREE:=$(CURDIR)/debian/tmp
+DEBINSTALLTREE := $(CURDIR)/debian/tmp
+DEBRESIZE := $(CURDIR)/debian/resize
# Set up the $(STAMP_DIR) directory.
.PHONY: stampdir
@@ -60,7 +65,7 @@
patch: $(STAMP_DIR)/patch
$(STAMP_DIR)/patch: $(STAMP_DIR)/prepare
@echo -n "Applying patches... "
- @if quilt push -a -v > $(STAMP_DIR)/log/patch 2>&1; then \
+ @if $(QUILT) push -a -v > $(STAMP_DIR)/log/patch 2>&1; then \
echo "successful."; \
else \
echo "failed! (Check $(STAMP_DIR)/log/patch for details)"; \
@@ -74,7 +79,7 @@
unpatch:
@if [ -e $(STAMP_DIR)/patches/applied-patches ]; then \
echo -n "Unapplying patches... "; \
- if quilt pop -a > $(STAMP_DIR)/log/unpatch 2>&1; then \
+ if $(QUILT) pop -a > $(STAMP_DIR)/log/unpatch 2>&1; then \
echo " successful."; \
else \
echo " failed! (Check $(STAMP_DIR)/log/unpatch for details)"; \
@@ -116,7 +121,7 @@
dh_installdirs
# General installation
$(MAKE) install mandir=/usr/share/man/man1 libdir=/etc manext=1x DESTDIR=$(DEBINSTALLTREE)
-
+
## Install lxterm command and manual page.
install -m 755 debian/local/lxterm $(DEBINSTALLTREE)/usr/bin
install -m 755 debian/local/lxterm.1x $(DEBINSTALLTREE)/usr/share/man/man1
@@ -138,6 +143,15 @@
# Lintian overrides.
cp debian/xterm.overrides $(CURDIR)/debian/xterm/usr/share/lintian/overrides/xterm
+ # Make resize separate package
+
+ install -d -m 755 $(DEBRESIZE)/usr/bin
+
+ (cd $(DEBINSTALLTREE) && \
+ tar -cf - $(find . -name "*resize*") | \
+ tar -C $(DEBRESIZE) -xf - )
+
+
# Generate plain text XTerm FAQ from HTML.
debian/local/xterm.faq.gz: debian/local/xterm.faq.html
$(HTML2TEXT) $< >debian/local/xterm.faq
@@ -170,17 +184,17 @@
patch-audit: prepare unpatch
touch stampdir/log/patch; \
FUZZY=no; \
- while [ -n "`quilt next`" ]; do \
- RESULT=`quilt push -v | tee -a stampdir/log/patch | grep ^Hunk | sed 's/^Hunk.*\(succeeded\|FAILED\).*/\1/'`;\
+ while [ -n "`$(QUILT) next`" ]; do \
+ RESULT=`$(QUILT) push -v | tee -a stampdir/log/patch | grep ^Hunk | sed 's/^Hunk.*\(succeeded\|FAILED\).*/\1/'`;\
case "$$RESULT" in \
succeeded) \
- echo "The patch is fuzzy: `quilt top`"; \
- echo "The patch is fuzzy: `quilt top`" > stampdir/log/`quilt top`; \
+ echo "The patch is fuzzy: `$(QUILT) top`"; \
+ echo "The patch is fuzzy: `$(QUILT) top`" > stampdir/log/`$(QUILT) top`; \
FUZZY=yes; \
;; \
FAILED) \
- echo "The patch is broken: `quilt next`"; \
- echo "The patch is fuzzy: `quilt next`" > stampdir/log/`quilt next`; \
+ echo "The patch is broken: `$(QUILT) next`"; \
+ echo "The patch is fuzzy: `$(QUILT) next`" > stampdir/log/`$(QUILT) next`; \
exit 1; \
;; \
esac; \
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)
Versions of packages xterm depends on:
ii libc6 2.3.6-11 GNU C Library: Shared libraries
ii libfontconfig1 2.3.2-5.1 generic font configuration library
ii libice6 1:1.0.0-3 X11 Inter-Client Exchange library
ii libncurses5 5.5-2 Shared libraries for terminal hand
ii libsm6 1:1.0.0-4 X11 Session Management library
ii libx11-6 2:1.0.0-6 X11 client-side library
ii libxaw7 1:1.0.1-5 X11 Athena Widget library
ii libxext6 1:1.0.0-4 X11 miscellaneous extension librar
ii libxft2 2.1.8.2-8 FreeType-based font drawing librar
ii libxmu6 1:1.0.1-3 X11 miscellaneous utility library
ii libxt6 1:1.0.0-5 X11 toolkit intrinsics library
ii xbitmaps 1.0.1-2 Base X bitmaps
Versions of packages xterm recommends:
ii xutils 1:7.0.0-3 X Window System utility programs
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: xterm
Source-Version: 228-1
We believe that the bug you reported is fixed in the latest version of
xterm, which is due to be installed in the Debian FTP archive:
xterm_228-1.diff.gz
to pool/main/x/xterm/xterm_228-1.diff.gz
xterm_228-1.dsc
to pool/main/x/xterm/xterm_228-1.dsc
xterm_228-1_i386.deb
to pool/main/x/xterm/xterm_228-1_i386.deb
xterm_228.orig.tar.gz
to pool/main/x/xterm/xterm_228.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 369920@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Julien Cristau <jcristau@debian.org> (supplier of updated xterm package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Mon, 23 Jul 2007 03:43:32 +0200
Source: xterm
Binary: xterm
Architecture: source i386
Version: 228-1
Distribution: unstable
Urgency: low
Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Changed-By: Julien Cristau <jcristau@debian.org>
Description:
xterm - X terminal emulator
Closes: 369920 403360 430121
Changes:
xterm (228-1) unstable; urgency=low
.
[ Julien Cristau ]
* New upstream release
+ fix missing assignment for UTF-8 parsing in widget initialization
(closes: #403360).
+ correct index expression used to set line-wrapping flag, making
selection from scrollback work consistently (closes: #430121).
* Refresh 901_xterm_manpage.diff.
.
[ Brice Goglin ]
* Fix debian/rules to not be confused by ~/.quiltrc or QUILT_PATCHES,
closes: #369920.
Files:
f67ca444d3555233b1215f3802d1d448 825 x11 optional xterm_228-1.dsc
35e0b1bfc9351519b3705d102cf24241 841482 x11 optional xterm_228.orig.tar.gz
03b70a6e8e3502662b424f32a2118411 61896 x11 optional xterm_228-1.diff.gz
b50d47b20ce665cf093959c408800f11 454298 x11 optional xterm_228-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGpAnpmEvTgKxfcAwRArmrAKDcrKsdw3cwhakRFagblUqKceqccwCgnnAy
5bQ997pNlS9cJLclL+4+c9E=
=HP3b
-----END PGP SIGNATURE-----
--- End Message ---