Bug#756975: dpkg-genchanges option to only include arch:all debs

2014-08-09 Thread Joey Hess
Guillem Jover wrote:
> But, this has a nice side-effect, you can also do something like:
> 
>   $ dpkg-buildpackage --changes-option=-g
> 
> which will perform a normal full build, but filter the generated
> .changes file to only include source+arch-indep packages. Which I
> think is what you'd be looking for?

Yes, this is perfect, aside from being a handful to type for the current
DAK case.

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#756975: dpkg-genchanges option to only include arch:all debs

2014-08-09 Thread Joey Hess
Raphael Hertzog wrote:
> Funnily this can already be done with “dpkg-buildpackage
> --changes-option=-S” but it will generate a _.changes file
> that list only the source package (that's because the filename
> is decided by dpkg-buildpackage while the content comes from
> dpkg-genchanges).

Hmm, so it can. The name of the change file
does not matter, at least according to <87zjfl46kd@deep-thought.43-1.org>

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#756975: dpkg-genchanges option to only include arch:all debs

2014-08-09 Thread Guillem Jover
Hi!

On Sat, 2014-08-09 at 12:00:41 -0400, Joey Hess wrote:
> Guillem Jover wrote:
> > Hmm, I had already pondered about this when I saw the announcement. So,
> > while I agree such option would make life easier for people that want
> > to do “almost-source-only uploads” right now (because TBH the other
> > alternatives are very annoying), on first thought this seemed to be a
> > very non-generic and DAK specific option, and less useful if this is
> > going to be a short temporary situation.
> > 
> > But then there's (AFAICS) only two missing combinations in the tools,
> > source+arch-dep and source+arch-indep, so I guess if I add both, then
> > it keeps being quite generic. :)
> > 
> > I'll try to include this for 1.17.11, which I'm planning to release
> > RSN.

> An added wrinkle is that -S doesn't build arch specific debs at all, of
> course, but a responsible user of this new DAK feature will want to
> build debs, lintian and test the locally, but not upload them.

Sure.

> I think this calls for more than a generic filling in of the complements
> to -S. It's fine to add those options to dpkg-genchanges, but
> dpkg-buildpackage would be improved by an option that built everything,
> and then told dpkg-genchanges to only put source and arch:all in the
> changes.

I've added the options to both dpkg-buildpackage and dpkg-genchanges, -g
and -G, for source+arch-indep and source+arch-dep respectively (although
I'm not entirely happy with the names, but that's the best that I could
find that matches the current pattern, I'll probably add either long
options or a build-type selector option in the future). And
dpkg-buildpackage will pass those down to dpkg-genchanges. It will also
fail if the build ends up not producing the requested artifacts in the
same way as -b, -A or -B would.

But, this has a nice side-effect, you can also do something like:

  $ dpkg-buildpackage --changes-option=-g

which will perform a normal full build, but filter the generated
.changes file to only include source+arch-indep packages. Which I
think is what you'd be looking for?

Thanks,
Guillem


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#756975: dpkg-genchanges option to only include arch:all debs

2014-08-09 Thread Raphael Hertzog
Hi,

On Sat, 09 Aug 2014, Joey Hess wrote:
> An added wrinkle is that -S doesn't build arch specific debs at all, of
> course, but a responsible user of this new DAK feature will want to
> build debs, lintian and test the locally, but not upload them.
> 
> I think this calls for more than a generic filling in of the complements
> to -S. It's fine to add those options to dpkg-genchanges, but
> dpkg-buildpackage would be improved by an option that built everything,
> and then told dpkg-genchanges to only put source and arch:all in the
> changes.

Funnily this can already be done with “dpkg-buildpackage
--changes-option=-S” but it will generate a _.changes file
that list only the source package (that's because the filename
is decided by dpkg-buildpackage while the content comes from
dpkg-genchanges).

So it's definitely not the good answer to your request. In fact,
this would require a separate option for an extra dpkg-genchanges
call.

Something like --extra-changes="-S"...

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Discover the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#756975: dpkg-genchanges option to only include arch:all debs

2014-08-09 Thread Joey Hess
Guillem Jover wrote:
> Hmm, I had already pondered about this when I saw the announcement. So,
> while I agree such option would make life easier for people that want
> to do “almost-source-only uploads” right now (because TBH the other
> alternatives are very annoying), on first thought this seemed to be a
> very non-generic and DAK specific option, and less useful if this is
> going to be a short temporary situation.
> 
> But then there's (AFAICS) only two missing combinations in the tools,
> source+arch-dep and source+arch-indep, so I guess if I add both, then
> it keeps being quite generic. :)
> 
> I'll try to include this for 1.17.11, which I'm planning to release
> RSN.

An added wrinkle is that -S doesn't build arch specific debs at all, of
course, but a responsible user of this new DAK feature will want to
build debs, lintian and test the locally, but not upload them.

I think this calls for more than a generic filling in of the complements
to -S. It's fine to add those options to dpkg-genchanges, but
dpkg-buildpackage would be improved by an option that built everything,
and then told dpkg-genchanges to only put source and arch:all in the
changes.

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#756975: dpkg-genchanges option to only include arch:all debs

2014-08-04 Thread Guillem Jover
Hi!

On Mon, 2014-08-04 at 01:41:22 -0400, Joey Hess wrote:
> Package: dpkg-dev
> Version: 1.17.10
> Severity: wishlist
> 
> Now that the archive supports source-only uploads, with the exception
> that arch:all debs have to still be uploaded (as no autobuilder is
> responsible for them), dpkg-genchanges -S is useful, but not quite
> right.
> 
> It would be good to have an option that is like -S but includes arch:all
> debs, until such a time as the archive stops needing them. Perhaps
> --minimal?

Hmm, I had already pondered about this when I saw the announcement. So,
while I agree such option would make life easier for people that want
to do “almost-source-only uploads” right now (because TBH the other
alternatives are very annoying), on first thought this seemed to be a
very non-generic and DAK specific option, and less useful if this is
going to be a short temporary situation.

But then there's (AFAICS) only two missing combinations in the tools,
source+arch-dep and source+arch-indep, so I guess if I add both, then
it keeps being quite generic. :)

I'll try to include this for 1.17.11, which I'm planning to release
RSN.

Thanks,
Guillem


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#756975: dpkg-genchanges option to only include arch:all debs

2014-08-03 Thread Joey Hess
Package: dpkg-dev
Version: 1.17.10
Severity: wishlist

Now that the archive supports source-only uploads, with the exception
that arch:all debs have to still be uploaded (as no autobuilder is
responsible for them), dpkg-genchanges -S is useful, but not quite
right.

It would be good to have an option that is like -S but includes arch:all
debs, until such a time as the archive stops needing them. Perhaps
--minimal?

-- 
see shy jo


signature.asc
Description: Digital signature