[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#369920: xterm: FTBFS (all platforms) debian/rules confused by user's ~/.quiltrc



reopen 369920
thanks

| On Fri, Jun 02, 2006 at 10:37:28AM +0300, Jari Aalto wrote:
| > 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).
| 
| I don't know why the prepare target isn't being called for you. It works
| fine for me here. This target symlinks the patches dir in to the debian
| root dir so that quilt can find it without any environment variables. It
| works fine here, as I just built xterm in pbuilder without any problems. It
| also has worked just fine for every other X package. As such, I'm closing
| this bug.

Symlinking the .pc makes no difference (see the build log below). The
build fails there is file:

        ~/.quiltrc
        QUILT_PATCHES="some/dir"

This was explained in the bug report (with accompanying patch to fix it). Build
log attached. Please test with similar setup.

   Quilt version: 0.44

Jari

  /tmp/# ls -la | grep xterm
  drwxr-xr-x  7 root   root       2920 2006-06-04 23:37 xterm-210
  -rw-r--r--  1 root   root      60343 2006-06-04 23:37 xterm_210-3.diff.gz
  -rw-r--r--  1 root   root        530 2006-06-04 23:37 xterm_210-3.dsc
  -rw-r--r--  1 root   root        823 2006-06-04 23:37 xterm_210-3_i386.build
  -rw-r--r--  1 root   root     761944 2006-03-17 06:32 xterm_210.orig.tar.gz

  /tmp/# md5sum xterm_210.orig.tar.gz
  1528b95619b21740c01addd5c9fdb4f0  xterm_210.orig.tar.gz

  /tmp/xterm-210# debuild --lintian --linda -rfakeroot -uc -us
  debian/rules clean
  dh_testdir
  dh_testroot
  rm -f .pc patches
  rm -rf stampdir
  /usr/bin/make clean
  make[1]: Entering directory `/tmp/xterm-210'
  make[1]: *** No rule to make target `clean'.  Stop.
  make[1]: Leaving directory `/tmp/xterm-210'
  make: [clean] Error 2 (ignored)
  dh_clean debian/local/xterm.faq.gz
   dpkg-source -i(\.svn|\.bzr|\.hg|CVS|RCS) -b xterm-210
  dpkg-source: building xterm using existing xterm_210.orig.tar.gz
  dpkg-source: building xterm in xterm_210-3.diff.gz
  dpkg-source: building xterm in xterm_210-3.dsc
   debian/rules build
  mkdir stampdir
  >stampdir/stampdir
  mkdir stampdir/patches stampdir/log
  echo 2 >stampdir/patches/.version
  ln -s debian/patches patches
  ln -s stampdir/patches .pc
  >stampdir/prepare
  Applying patches... failed! (Check stampdir/log/patch for details)
  make: *** [stampdir/patch] Error 1
  debuild: fatal error at line 1224:
  debian/rules build failed



Reply to: