Debian Bug report logs -
#476457
Improve dpatch(1) example of modifying debian/rules
Reported by: Emilio Pozuelo Monfort <pochu@ubuntu.com>
Date: Wed, 16 Apr 2008 19:21:01 UTC
Severity: minor
Tags: patch
Found in version dpatch/2.0.29
Done: Gergely Nagy <algernon@madhouse-project.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Dpatch Maintainers <dpatch-maintainers@lists.alioth.debian.org>:
Bug#476457; Package dpatch.
(full text, mbox, link).
Acknowledgement sent to Emilio Pozuelo Monfort <pochu@ubuntu.com>:
New Bug report received and forwarded. Copy sent to Dpatch Maintainers <dpatch-maintainers@lists.alioth.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: dpatch
Version: 2.0.29
Severity: minor
Tags: patch
Hello,
I've been told dpatch(1) has an example of how to change debian/rules. I learnt
it from my sponsor, and I've noticed it's more hackish than necessary.
This patch adds another option to the example using
/usr/share/dpatch/dpatch.make. I've added it before the other example as I think
people should use that one so that future improvements/fixes to the
patch/unpatch targets in dpatch.make are automatically taken by the packages
using it. Feel free to disagree with me and put it as a second example if you want.
Best,
Emilio
[dpatch_manpage_add_example.patch (text/x-patch, inline)]
--- dpatch.1 2008-04-16 20:47:54.000000000 +0200
+++ dpatch.1.new2 2008-04-16 20:58:49.000000000 +0200
@@ -363,6 +363,26 @@ After dpatchifying, this would look like
.RS
.sp
.nf
+include /usr/share/dpatch/dpatch.make
+config.status: patch configure
+ ./configure \-\-prefix=/usr \-\-mandir=/usr/share
+build: config.status
+ ${MAKE}
+clean: unpatch
+ $(testdir)
+ $(testroot)
+ ${MAKE} distclean
+ rm \-rf debian/imaginary\-package debian/files debian/substvars
+
+.fi
+.sp
+.RE
+
+Another option would be:
+
+.RS
+.sp
+.nf
config.status: patch configure
./configure \-\-prefix=/usr \-\-mandir=/usr/share
build: config.status
[signature.asc (application/pgp-signature, attachment)]
Information forwarded to debian-bugs-dist@lists.debian.org, Dpatch Maintainers <dpatch-maintainers@lists.alioth.debian.org>:
Bug#476457; Package dpatch.
(full text, mbox, link).
Acknowledgement sent to Junichi Uekawa <dancer@netfort.gr.jp>:
Extra info received and forwarded to list. Copy sent to Dpatch Maintainers <dpatch-maintainers@lists.alioth.debian.org>.
(full text, mbox, link).
Message #10 received at 476457@bugs.debian.org (full text, mbox, reply):
Hi,
> I've been told dpatch(1) has an example of how to change debian/rules. I learnt
> it from my sponsor, and I've noticed it's more hackish than necessary.
>
> This patch adds another option to the example using
> /usr/share/dpatch/dpatch.make. I've added it before the other example as I think
> people should use that one so that future improvements/fixes to the
> patch/unpatch targets in dpatch.make are automatically taken by the packages
> using it. Feel free to disagree with me and put it as a second example if you want.
The original maintainers of dpatch decided against using make and
using shell script for dpatch interface. I can only guess their
reasonings but there are a few caveats with the make snippets:
1. it's harder to try from command-line.
2. It's harder to get those .PHONY targets invoked the right number of
times.
But I agree having them implemented in makefiles feel much simpler.
regards,
junichi
--
dancer@{debian.org,netfort.gr.jp} Debian Project
Information forwarded
to debian-bugs-dist@lists.debian.org, Dpatch Maintainers <dpatch-maintainers@lists.alioth.debian.org>:
Bug#476457; Package dpatch.
(Mon, 05 Jan 2009 03:45:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Emilio Pozuelo Monfort <pochu@ubuntu.com>:
Extra info received and forwarded to list. Copy sent to Dpatch Maintainers <dpatch-maintainers@lists.alioth.debian.org>.
(Mon, 05 Jan 2009 03:45:03 GMT) (full text, mbox, link).
Message #15 received at 476457@bugs.debian.org (full text, mbox, reply):
Junichi Uekawa wrote:
> But I agree having them implemented in makefiles feel much simpler.
And dpatch.make(7) already has an example a bit similar to the one I'm proposing.
Cheers,
Emilio
Reply sent
to Gergely Nagy <algernon@madhouse-project.org>:
You have taken responsibility.
(Sat, 13 Aug 2011 09:57:13 GMT) (full text, mbox, link).
Notification sent
to Emilio Pozuelo Monfort <pochu@ubuntu.com>:
Bug acknowledged by developer.
(Sat, 13 Aug 2011 09:57:19 GMT) (full text, mbox, link).
Message #20 received at 476457-done@bugs.debian.org (full text, mbox, reply):
As mentioned already in the bug report, dpatch.make(7) (which is
referenced by dpatch(1)) already shows an example very similar to the
one proposed.
The dpatch(1) manual page is meant to document the dpatch command
itself, and only that. That's the reason dpatch.make(7) even exists.
Since an example is already provided, at a place where the original
author and (soon to be) current maintainer intended it to be, I'm
closing this bug report.
--
|8]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 11 Sep 2011 07:34:24 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Jan 10 21:25:20 2018;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.