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

Bug#494141: marked as done (no way to use get-orig-source with cdbs without breaking policy)



Your message dated Sun, 3 Aug 2025 15:49:47 +0200
with message-id <CADsTwjJYnx3OccKikMVKXzd59+jrMq=J0+5ei0mxRLLUY5RCtQ@mail.gmail.com>
and subject line get-orig-source is deprecated
has caused the Debian Bug report #494141,
regarding no way to use get-orig-source with cdbs without breaking policy
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
494141: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494141
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: cdbs
Version: 0.4.52
Severity: normal

>From section 4.9 of policy:

  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



--- End Message ---
--- Begin Message ---
get-orig-source was deprecated in Policy 4.1.4 published in 2018

https://www.debian.org/doc/debian-policy/upgrading-checklist.html#version-4-1-4

--- End Message ---

Reply to: