Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #872037

Bug#515856: debhelper: please implement dh get-orig-source

From Simon McVittie <smcv@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.policy
Subject Bug#515856: debhelper: please implement dh get-orig-source
Date 2017-12-30 02:00 +0100
Message-ID <v2dFf-7tv-1@gated-at.bofh.it> (permalink)
References (7 earlier) <v28cy-3Y1-15@gated-at.bofh.it> <c6IXf-70Q-1@gated-at.bofh.it> <v298C-4B9-11@gated-at.bofh.it> <c6IXf-70Q-1@gated-at.bofh.it> <v298C-4B9-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


On Fri, 29 Dec 2017 at 21:06:05 +0100, Bill Allombert wrote:
> It would be more useful to kept it but to add a note toward migrating to
> uscan if possible.

If this is reinstated, please can we discard the requirement that
get-orig-source be invokable with an arbitrary working directory?
Many packages don't do that (because it's much more difficult to achieve
than it looks), so clearly nobody is actually able to rely on it.

We seem to have three categories of get-orig-source, that I've seen:

- ignore that requirement, rely on dpkg's default.mk, get-orig-source
  will just fail when invoked from some other directory (very common),
  technically a Policy violation (example: gnome-shell-extension-caffeine)

- obey that requirement by duplicating information that exists elsewhere
  in the source package, meaning maintainers can't copy the same
  get-orig-source implementation into multiple packages with similar
  upstream patterns (example: iortcw)

- obey that requirement by doing "clever" (non-obvious, fragile) things
  with $(MAKEFILE_LIST), usually triggering Lintian warnings for having
  used dpkg-parsechangelog instead of default.mk because default.mk
  can't work with that pattern (example: mpdris2)

The first seems the least bad to me, although I've tried all three.

In my own packages that have a get-orig-source (mostly those where I
have to use git snapshots or delete large non-free subtrees or both),
I usually end up implementing a maintainer-get-orig-source target that
wraps get-orig-source to make it work the way I want it to.

    smcv

Back to linux.debian.bugs.dist | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Bug#515856: [debhelper-devel] Bug#515856: debhelper: please implement dh get-orig-source Sean Whitton <spwhitton@spwhitton.name> - 2017-12-29 20:10 +0100
  Bug#515856: [debhelper-devel] Bug#515856: debhelper: please implement dh get-orig-source Bill Allombert <ballombe@debian.org> - 2017-12-29 21:10 +0100
    Bug#515856: debhelper: please implement dh get-orig-source Simon McVittie <smcv@debian.org> - 2017-12-30 02:00 +0100
      Bug#515856: debhelper: please implement dh get-orig-source Russ Allbery <rra@debian.org> - 2017-12-30 02:30 +0100
    Bug#515856: [debhelper-devel] Bug#515856: debhelper: please implement dh get-orig-source Sean Whitton <spwhitton@spwhitton.name> - 2017-12-30 15:20 +0100
      Bug#515856: [debhelper-devel] Bug#515856: debhelper: please implement dh get-orig-source Alexandre Detiste <alexandre.detiste@gmail.com> - 2017-12-30 15:40 +0100
        Bug#515856: [debhelper-devel] Bug#515856: debhelper: please implement dh get-orig-source Sean Whitton <spwhitton@spwhitton.name> - 2017-12-30 17:10 +0100

csiph-web