[kteam-tools][PATCH v2 6/7] git-build-kernel: special case no-orig-tarball src packages

Kamal Mostafa kamal at canonical.com
Mon Aug 6 16:53:29 UTC 2018


On Mon, Aug 06, 2018 at 04:51:48PM +0100, Andy Whitcroft wrote:
> On Thu, Aug 02, 2018 at 03:40:34PM -0700, Kamal Mostafa wrote:
> > The "meta" and "signed" source packages do not use an orig tarball, so
> > do not try to symlink to one, and do use --no-tgz-check to inhibit checking
> > for one (the latter is explicitly required just for "signed" since its
> > non-Debian-native version number implies that there will be a orig tarball).
> > 
> > Signed-off-by: Kamal Mostafa <kamal at canonical.com>
> > ---
> >  git-build-kernel/git-build-kernel | 21 +++++++++++++++++----
> >  1 file changed, 17 insertions(+), 4 deletions(-)
> > 
> > diff --git a/git-build-kernel/git-build-kernel b/git-build-kernel/git-build-kernel
> > index 3c19587..02994db 100755
> > --- a/git-build-kernel/git-build-kernel
> > +++ b/git-build-kernel/git-build-kernel
> > @@ -142,10 +142,23 @@ touch "$WORKDIR/building"
> >  trap "rm -rf $WORKDIR/building $BUILDDIR" 0
> >  
> >  [ $do_source_pkg = 1 ] && {
> > -    orig_tarball="${SRCPKG}_${VERSION%%-*}.orig.tar.gz"
> > -    # Careful: $ORIG_TARBALLS_DIR must be accessible from within the chroot.
> > -    # (Alternately, use "cp -p" instead of "ln -s" if that's not an option)
> > -    ln -s $ORIG_TARBALLS_DIR/$orig_tarball $WORKDIR/
> > +    ### Special case for linux-signed and linux-meta packages, which
> > +    ### have no .orig tarball
> > +    [ ${SRCPKG/-signed} != $SRCPKG ] && no_orig_tarball=1
> > +    [ ${SRCPKG/-meta} != $SRCPKG ] && no_orig_tarball=1
> 
> This feels like it is going to become a problem.  For example in devel
> we don't always have an orig as there isn't one yet as upstream has not
> yet released the thing.  I think we need to think of a better way to
> make this determination.

I'll look into using debian/source/format to determine this instead,
which I will submit as a follow-up patch.

 -Kamal




More information about the kernel-team mailing list