Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #50596

Re: [PATCH v3] deb-pkg: add source package

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.kernel
Subject Re: [PATCH v3] deb-pkg: add source package
Date 2015-08-21 11:10 +0200
Message-ID <pZQuL-7xY-27@gated-at.bofh.it> (permalink)
References <pA626-8vb-7@gated-at.bofh.it> <pZcdY-88J-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, 2015-08-19 at 15:36 +0200, Michal Marek wrote:
> On 2015-06-11 10:11, riku.voipio@linaro.org wrote:
> > From: Riku Voipio <riku.voipio@linaro.org>
> > 
> > Make deb-pkg build both source and binary package like make rpm-pkg does.
> > For people who only need binary kernel package, there is now bindeb-pkg
> > target, same target also used to build the .deb files if built from the
> > source package using dpkg-buildpackage.
> > 
> > Generated source package will build the same kernel .config than what
> > was available for make deb-pkg. The name of the source package can
> > be set with KDEB_SOURCENAME enviroment variable.
> > 
> > The source package is useful for gpl compliance, or for feeding to a
> > automated debian package builder.
> > 
> > Cc: Chris J Arges <chris.j.arges@canonical.com>
> > Cc: maximilian attems <maks@stro.at>
> > Cc: Ben Hutchings <ben@decadent.org.uk>
> > Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
> > ---
> > v3,
> >  * Allow setting source package name with KDEB_SOURCENAME
> >  * Fix issues noted by Ben: drop python and fix target in debian/rules
> >  * Merge "ensure $MAKE can use jobserver" oneliner from Chris J Arges
> 
> Ben,
> 
> are you OK with the v3 of this patch?

I've gone through this with Riku and found a couple of problems:

- The 'clean' rule in the generated debian/rules calls 'make clean',
  but scripts/package/Makefile includes debian/ in clean-dirs.
  Currently that directory does not get removed for some reason, but I
  think that's a bug and the clean rule in debian/rules should guard
  against removal.
- Building of the 'orig' tarball uses git, i.e. it depends on the
  kernel source being in a git repository and not simply unpacked from
  a tarball (or from other VCS).  The rpmpkg target doesn't have this 
  same restriction.

I leave it to you to decide whether these are important enough to block
it.

Ben.

-- 
Ben Hutchings
Theory and practice are closer in theory than in practice.
                                - John Levine, moderator of comp.compilers

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v3] deb-pkg: add source package Michal Marek <mmarek@suse.cz> - 2015-08-19 16:10 +0200
  Re: [PATCH v3] deb-pkg: add source package Ben Hutchings <ben@decadent.org.uk> - 2015-08-21 11:10 +0200
    Re: [PATCH v3] deb-pkg: add source package Michal Marek <mmarek@suse.cz> - 2015-08-21 15:00 +0200
      Re: [PATCH v3] deb-pkg: add source package Riku Voipio <riku.voipio@linaro.org> - 2015-08-21 17:00 +0200

csiph-web