Re: The noudeb build profile and dh-only rules files

2019-08-01 Thread Steve McIntyre
Paul Wise wrote: >On Tue, Jul 9, 2019 at 7:42 AM Colin Watson wrote: > >>A memory-safe language with good testing support and a good testing >>culture would be great, though it does also need to work on every >>Debian architecture, which IIRC Rust doesn't quite; we've kicked >>

Re: The noudeb build profile and dh-only rules files

2019-07-10 Thread Andreas Metzler
Theodore Ts'o wrote: [...] > Thanks, that's really helpful. One of the really frustrating things > I've found about trying to use dh is that there is a real lack of > examples which are more complicated than: > #!/usr/bin/make -f > # > # See? dh is easy-peasy! > %: > dh $@ > Sure,

Re: The noudeb build profile and dh-only rules files

2019-07-10 Thread Ian Jackson
Theodore Ts'o writes ("Re: The noudeb build profile and dh-only rules files"): > Thanks, that's really helpful. One of the really frustrating things > I've found about trying to use dh is that there is a real lack of > examples which are more complicated than: ... > # S

Re: Could we generate d/control instead of working with "assembly level code" directly (was: Re: The noudeb build profile and dh-only rules files)

2019-07-09 Thread Theodore Ts'o
On Tue, Jul 09, 2019 at 12:24:40PM +0200, Simon Richter wrote: > Your proposal of generating some of the fields doesn't affect the API > itself, as long as the fields are populated at the right time. We don't > have a mechanism for updating the control file at build time, because any > part of the

Re: Could we generate d/control instead of working with "assembly level code" directly (was: Re: The noudeb build profile and dh-only rules files)

2019-07-09 Thread Raphael Hertzog
On Tue, 09 Jul 2019, Simon Richter wrote: > Your proposal of generating some of the fields doesn't affect the API > itself, as long as the fields are populated at the right time. We don't > have a mechanism for updating the control file at build time, because any > part of the build process that

Re: Could we generate d/control instead of working with "assembly level code" directly (was: Re: The noudeb build profile and dh-only rules files)

2019-07-09 Thread Simon Richter
Hi, On Tue, Jul 09, 2019 at 06:12:00AM +, Niels Thykier wrote: > Instead, I have been toying with the idea of treating d/control as > something we generate. While not entirely novel in itself, once you > start generating d/control, you can do interesting rewrites such as: I've started work

Could we generate d/control instead of working with "assembly level code" directly (was: Re: The noudeb build profile and dh-only rules files)

2019-07-09 Thread Niels Thykier
Simon McVittie: > On Mon, 08 Jul 2019 at 19:23:39 +0100, Colin Watson wrote: > [...] >> If the udeb stanzas in debian/control have "Build-Profiles: ", >> then debhelper will honour that when deciding which packages to build, >> so yes, anything built into debhelper should just work. > > Treating

Re: The noudeb build profile and dh-only rules files

2019-07-08 Thread Theodore Ts'o
On Mon, Jul 08, 2019 at 07:28:50PM +0100, Colin Watson wrote: > > Per my other reply, you may find that it isn't that painful after all > once you find the right approach. For instance, while a separate udeb > build pass does make >

Re: The noudeb build profile and dh-only rules files

2019-07-08 Thread Paul Wise
On Tue, Jul 9, 2019 at 7:42 AM Colin Watson wrote: >A memory-safe language with good testing support and a good testing >culture would be great, though it does also need to work on every >Debian architecture, which IIRC Rust doesn't quite; we've kicked >around the idea of maybe a

Re: The noudeb build profile and dh-only rules files

2019-07-08 Thread Michael Biebl
Am 08.07.19 um 22:04 schrieb Moritz Mühlenhoff: > Theodore Ts'o schrieb: >> Back in the days of boot/root installation floppies, saving every last >> byte was clearly important. > > It's probably worth discussing/investigating whether udebs in general still > make sense for d-i in 2019? > > It

Re: The noudeb build profile and dh-only rules files

2019-07-08 Thread Colin Watson
On Mon, Jul 08, 2019 at 10:04:06PM +0200, Moritz Mühlenhoff wrote: > Theodore Ts'o schrieb: > > Back in the days of boot/root installation floppies, saving every last > > byte was clearly important. > > It's probably worth discussing/investigating whether udebs in general still > make sense for

Re: The noudeb build profile and dh-only rules files

2019-07-08 Thread Simon McVittie
On Mon, 08 Jul 2019 at 19:23:39 +0100, Colin Watson wrote: > On Mon, Jul 08, 2019 at 01:25:32PM -0400, Theodore Ts'o wrote: > > How important is noudeb, and why is defined in the first place? > > I'm afraid memory has failed me in terms of why it was defined, other > than perhaps performance for

Re: The noudeb build profile and dh-only rules files

2019-07-08 Thread Samuel Thibault
Theodore Ts'o, le lun. 08 juil. 2019 14:10:13 -0400, a ecrit: > and it also avoids the double-compilation build time extension. (I > assume that's what you were referring to when you mentioned "avoid the > two-times-longer build time", right?) Yes. Samuel

Re: The noudeb build profile and dh-only rules files

2019-07-08 Thread Moritz Mühlenhoff
Theodore Ts'o schrieb: > Back in the days of boot/root installation floppies, saving every last > byte was clearly important. It's probably worth discussing/investigating whether udebs in general still make sense for d-i in 2019? It was a design choice made 15 years ago, but disk/network

Re: The noudeb build profile and dh-only rules files

2019-07-08 Thread Colin Watson
On Mon, Jul 08, 2019 at 07:28:50PM +0100, Colin Watson wrote: > On Mon, Jul 08, 2019 at 02:10:13PM -0400, Theodore Ts'o wrote: > > P.S. If anyone thinks that increasing the size of the debian > > installer by 145k is unacceptable, please let me know now > > This is something you'd need to

Re: The noudeb build profile and dh-only rules files

2019-07-08 Thread Colin Watson
On Mon, Jul 08, 2019 at 02:10:13PM -0400, Theodore Ts'o wrote: > On Mon, Jul 08, 2019 at 07:36:30PM +0200, Samuel Thibault wrote: > > Theodore Ts'o, le lun. 08 juil. 2019 13:25:32 -0400, a ecrit: > > > How important is noudeb, and why is defined in the first place? > > > > My usage of noudeb is

Re: The noudeb build profile and dh-only rules files

2019-07-08 Thread Colin Watson
On Mon, Jul 08, 2019 at 01:25:32PM -0400, Theodore Ts'o wrote: > I'm the middle of an effort to simplify the debian/rules file for > e2fsprogs so that someday, maybe, I'll be able to convert it to use > dh. One of the things which I noticed while trying to rip things out > of debian/rules to make

Re: The noudeb build profile and dh-only rules files

2019-07-08 Thread Theodore Ts'o
On Mon, Jul 08, 2019 at 07:36:30PM +0200, Samuel Thibault wrote: > Hello, > > Theodore Ts'o, le lun. 08 juil. 2019 13:25:32 -0400, a ecrit: > > How important is noudeb, and why is defined in the first place? > > My usage of noudeb is mostly to avoid the two-times-longer build time > It used to

Re: The noudeb build profile and dh-only rules files

2019-07-08 Thread Samuel Thibault
Hello, Theodore Ts'o, le lun. 08 juil. 2019 13:25:32 -0400, a ecrit: > How important is noudeb, and why is defined in the first place? My usage of noudeb is mostly to avoid the two-times-longer build time Samuel

The noudeb build profile and dh-only rules files

2019-07-08 Thread Theodore Ts'o
I'm the middle of an effort to simplify the debian/rules file for e2fsprogs so that someday, maybe, I'll be able to convert it to use dh. One of the things which I noticed while trying to rip things out of debian/rules to make the dh conversion easier (possible?) was the support for noudeb. How