[debhelper-devel] Bug#703201: Add an option to process per-arch/per-os *and* normal install files

Lisandro Damián Nicanor Pérez Meyer perezmeyer at gmail.com
Tue Sep 1 17:31:51 UTC 2015


On Tuesday 01 September 2015 19:49:06 Dmitry Shachnev wrote:
> Hi Gergely,
> 
> On Tue, 01 Sep 2015 10:56:17 +0200, Gergely Nagy wrote:
> > This can easily be done with dh-exec now, with much nicer syntax than
> > what I proposed two years ago:
> > 
> > Instead of foo.install-common, foo.install.$os, foo.install.$arch, one
> 
> > can use a single executable foo.install file, with some special markup:
> Yes, we (the Qt maintainers) have already been thinking about using dh-exec.
> We don't want to change existing packages as our current code works fine,
> but we will definitely look at it if we need it in our next packages.
> > Since I have a little bit of free time, how about this:
> > 
> > If foo.install.common exists, auto-include foo.install.$arch and
> > foo.install.$os (if they exist), provided that foo.install is executable
> > and uses dh-exec.
> > 
> > Alternatively, an executable foo.install, and executable
> > foo.install.$arch/$os could also be a trigger, so foo.install.common
> > wouldn't be required, and could be rolled into foo.install.
> 
> I don't think this is needed. A single file with architecture- or
> OS-specific lines is much simplier to use and maintain.

Just for the record: we are currently using a hacked -common -arch approach, 
but having a special syntax in .install files would be just awesome.

Having the possibility to add negations like [!linux] would also be just cool. 
Ie, much in the current way we can manage build dependencies.


-- 

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20150901/f5338f00/attachment-0003.sig>


More information about the debhelper-devel mailing list