No subject


Wed Jul 30 17:08:51 UTC 2008


  This target fetches the most recent version of the original source package
  from a canonical archive site (via FTP or WWW, for example), does any
  necessary rearrangement to turn it into the original source tar file format
  described below, and leaves it in the current directory.

  This target may be invoked in any directory, and should take care to clean
  up any temporary files it may have left.

  This target is optional, but providing it if possible is a good idea.

  - http://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules

Adding a get-orig-source target to a package using cdbs does not allow for
invoking the target from any directory as cdbs assumes that CURDIR is set to the
root of the package when assigning variables in buildvars.mk.

Sample errors you get trying to invoke get-orig-source from outside the root:

  egrep: debian/control: No such file or directory
  tail: cannot open `debian/changelog' for reading: No such file or directory
  dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
  tail: cannot open `debian/changelog' for reading: No such file or directory
  dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
  cannot read debian/control: No such file or directory

A possible solution for this would be to add a variable similar to:

  DEB_ROOT = $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../)

This grabs the debian package root and could be used in conjunction with the
non-target related operations taking place in buildvars.mk.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.20.3-bytemark-uml-2
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cdbs depends on:
ii  debhelper                     7.0.16     helper programs for debian/rules

Versions of packages cdbs recommends:
ii  autotools-dev                 20080123.2 Update infrastructure for config.{

Versions of packages cdbs suggests:
ii  devscripts                    2.10.35    scripts to make the life of a Debi
ii  doc-base                      0.8.16     utilities to manage online documen

-- no debconf information

-- 
Noah Slater, http://bytesexual.org/nslater





More information about the Build-common-hackers mailing list