Bug#660193: developers-reference: please suggest debian/rules target name for preparing source
- To: submit@bugs.debian.org
- Subject: Bug#660193: developers-reference: please suggest debian/rules target name for preparing source
- From: Carsten Hey <carsten@debian.org>
- Date: Fri, 17 Feb 2012 11:14:00 +0100
- Message-id: <[🔎] 20120217101400.GB19680@furrball.stateful.de>
- Mail-followup-to: Carsten Hey <carsten@debian.org>, submit@bugs.debian.org
- Reply-to: Carsten Hey <carsten@debian.org>, 660193@bugs.debian.org
- In-reply-to: <87vcn5hml3.fsf@windlord.stanford.edu>
- References: <87zkcqrw2w.fsf@windlord.stanford.edu> <20120211185237.GA10129@virgil.dodds.net> <874nutncef.fsf_-_@windlord.stanford.edu> <20120214140138.GA23158@gaara.hadrons.org> <874nur62jd.fsf@windlord.stanford.edu> <87pqdeobyu.fsf@windlord.stanford.edu> <20120216224340.GB8930@furrball.stateful.de> <87d39eie26.fsf@windlord.stanford.edu> <20120217082256.GA19680@furrball.stateful.de> <87vcn5hml3.fsf@windlord.stanford.edu>
Package: developers-reference
Severity: wishlist
Maintainers might decide to add a special make target to prepare the
source tree for building, i.e., that make target is run by the
maintainer after a VCS checkout and possibly before releasing new
versions. Possible reasons for this include reducing build dependencies
and ensuring that specific files are equal on different architectures.
Due to multi-arch, implementing such a target becomes more interesting.
Although I do not expect this to be used widely, I think the developers
reference should suggest a name for this target to archive consistency.
The package debianutils already uses such a target and uses 'prebuild'
as name. The developers reference could adopt this name.
I'm not sure if it should be added as "6.1.4. Additional make targets in
debian/rules" or be incorporated into "6.7.5. Architecture-independent
data" (since the other mentioned use case, reducing build dependencies,
is primarily interesting for essential packages). The "proper
dependency" part in the quote below could be addressed too.
* Russ Allbery [2012-02-17 00:48 -0800]:
> Carsten Hey <carsten@debian.org> writes:
> > debianutils uses a special make target 'prebuild' in debian/rules to
> > update build system related files and PO files before the actual source
> > package is built.
>
> > This basic idea also could be used to build problematic documentation
> > files on the maintainers computer before he/she builds the package. The
> > other targets would then install the prebuilt documentation into the
> > package without the need to build it first. A proper dependency on
> > debian/$prebuilt_doc could ensure that maintainers do not forget to run
> > debian/rules prebuild.
>
> > If maintainers choose to use such a target, suggesting a common name for
> > it in the developers reference could be reasonable.
>
> That's an interesting idea. That's very similar to what I already do as
> upstream (I build POD-generated man pages from my autogen script, and in
> Debian packaging don't bother to regenerate them).
Reply to: