[kteam-tools][PATCH 0/4] git-build-kernel: source pkg features

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

[kteam-tools][PATCH 0/4] git-build-kernel: source pkg features

Kamal Mostafa-2
Fixes and features relating to construction of source packages via the
'git push remote commit-ish:source' method.

New (optional) feature: "SOURCE_PACKAGE_CHROOT=series" can be specified in
debian.env to force a particular chroot for source package contstruction.
We will be able to use this to implement our policy that source packages
should be built using the previous LTS, or override that if required.

New behavior: The source package _source.changes file is now built with
the suitable 'dpkg-genchanges -vversion' relative to -updates as determined
by rmadison.

Fixed: The push :source method now works for arbitrary source package names,
not just "linux".

 -Kamal

----

Kamal Mostafa (4):
  git-build-kernel: extract the correct source package name
  git-build-kernel: improve results summary for source pkgs
  git-build-kernel: support SOURCE_PACKAGE_CHROOT=series via debian.env
  git-build-kernel: debuild source packages with suitable -vversion

 git-build-kernel/git-build-kernel | 41 ++++++++++++++++++++++++++++++++-------
 1 file changed, 34 insertions(+), 7 deletions(-)

--
2.7.4


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

[kteam-tools][PATCH 1/4] git-build-kernel: extract the correct source package name

Kamal Mostafa-2
And use it to find the correct .orig tarball when building source packages.

Signed-off-by: Kamal Mostafa <[hidden email]>
---
 git-build-kernel/git-build-kernel | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/git-build-kernel/git-build-kernel b/git-build-kernel/git-build-kernel
index df95e12..44e38c8 100755
--- a/git-build-kernel/git-build-kernel
+++ b/git-build-kernel/git-build-kernel
@@ -80,6 +80,7 @@ DISTRO=$(
     do [ "$DISTRO" != "UNRELEASED" ] && { echo $DISTRO; break; }
     done
     )
+SRCPKG=$(git show $GITBRANCH:$DEBIAN/changelog | sed 's/^\(.*\) (.*/\1/;q')
 CHROOT="$DISTRO"
 CHROOT="${CHROOT%-proposed}"
 if [ "$CHROOT" = "UNRELEASED" -o -z "$CHROOT" ]
@@ -116,7 +117,7 @@ touch "$WORKDIR/building"
 trap "rm -rf $WORKDIR/building $BUILDDIR" 0
 
 [ $do_source_pkg = 1 ] && {
-    orig_tarball="linux_${VERSION%%-*}.orig.tar.gz"
+    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/
--
2.7.4


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

[kteam-tools][PATCH 2/4] git-build-kernel: improve results summary for source pkgs

Kamal Mostafa-2
In reply to this post by Kamal Mostafa-2
Add a 'debsign -r' cut-n-paste fragment.  Be more explicit about which
chroot is used.

Signed-off-by: Kamal Mostafa <[hidden email]>
---
 git-build-kernel/git-build-kernel | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/git-build-kernel/git-build-kernel b/git-build-kernel/git-build-kernel
index 44e38c8..6dd0792 100755
--- a/git-build-kernel/git-build-kernel
+++ b/git-build-kernel/git-build-kernel
@@ -131,10 +131,11 @@ trap "rm -rf $WORKDIR/building $BUILDDIR" 0
 ###     run the standard debian/rules invocations like a pkgbuilder would
 ###
 
-echo "git-build-kernel ($CHROOT)"
-echo "      version: $DISTRO ($VERSION)"
+echo "git-build-kernel"
+echo "      package: $SRCPKG ($VERSION) $DISTRO"
 echo "      targets: $TARGETS"
 echo "         arch: $ARCH"
+echo "       chroot: $CHROOT"
 echo "  starting build in $HOSTNAME:$WORKDIR ..."
 
 function show_elapsed
@@ -214,10 +215,17 @@ echo "      $HOSTNAME:$LOG"
 
 # cat $LOG
 
-if [ $STATUS = 0 ]
+[ $STATUS != 0 ] && exit $STATUS
+
+if [ $do_source_pkg = 1 ]
 then
+    changesfile=$(ls "$WORKDIR"/*_source.changes)
+    echo "  source package files:"
+    echo "      $HOSTNAME:${WORKDIR}"
+    echo "  ready for debsign and upload:"
+    echo "      debsign -r $HOSTNAME ${changesfile}"
+else
     echo "  binary packages:"
     echo "      $HOSTNAME:$WORKDIR/"
 fi
 
-exit $STATUS
--
2.7.4


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

[kteam-tools][PATCH 3/4] git-build-kernel: support SOURCE_PACKAGE_CHROOT=series via debian.env

Kamal Mostafa-2
In reply to this post by Kamal Mostafa-2
When building a source package via the "git push commit-ish:source"
method...

If debian/debian.env contains a "SOURCE_PACKAGE_CHROOT=series" line
(where series is a distro series like 'xenial') then git-build-kernel
will build the source package in a chroot of that specified series.

If no SOURCE_PACKAGE_CHROOT line exists, then git-build-kernel will use
a chroot of the series indicated by debian/changelog.

The SOURCE_PACKAGE_CHROOT feature applies only to *source* package
builds; binary packages are always built in a chroot of the series
indicated by debian/changelog.

Signed-off-by: Kamal Mostafa <[hidden email]>
---
 git-build-kernel/git-build-kernel | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/git-build-kernel/git-build-kernel b/git-build-kernel/git-build-kernel
index 6dd0792..cfad062 100755
--- a/git-build-kernel/git-build-kernel
+++ b/git-build-kernel/git-build-kernel
@@ -83,6 +83,10 @@ DISTRO=$(
 SRCPKG=$(git show $GITBRANCH:$DEBIAN/changelog | sed 's/^\(.*\) (.*/\1/;q')
 CHROOT="$DISTRO"
 CHROOT="${CHROOT%-proposed}"
+[ $do_source_pkg = 1 ] && {
+    eval `git show $GITBRANCH:debian/debian.env | grep SOURCE_PACKAGE_CHROOT=`
+    [ -z "$SOURCE_PACKAGE_CHROOT" ] || CHROOT="$SOURCE_PACKAGE_CHROOT"
+}
 if [ "$CHROOT" = "UNRELEASED" -o -z "$CHROOT" ]
 then
     GITREPOBASE="${GITREPO%/*}" # e.g. /home/kamal/src/linux
--
2.7.4


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

[kteam-tools][PATCH 4/4] git-build-kernel: debuild source packages with suitable -vversion

Kamal Mostafa-2
In reply to this post by Kamal Mostafa-2
Determine latest released package version in <series>-updates and supply
it to dpkg-genchanges via debuild -vversion.

Signed-off-by: Kamal Mostafa <[hidden email]>
---
 git-build-kernel/git-build-kernel | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/git-build-kernel/git-build-kernel b/git-build-kernel/git-build-kernel
index cfad062..0d5414a 100755
--- a/git-build-kernel/git-build-kernel
+++ b/git-build-kernel/git-build-kernel
@@ -95,6 +95,15 @@ then
     CHROOT="${CHROOT%.git}"
 fi
 
+### Find the appropriate -v{version} value for dpkg-genchanges
+[ $do_source_pkg = 1 ] && {
+    updates_version=$(rmadison -s ${DISTRO}-updates $SRCPKG | grep 'source$' | awk '{print $3}')
+    if [ -n "$updates_version" ]
+    then srcpkg_debopts="-v$updates_version"
+    else echo "warning: cannot determine current release for ${DISTRO}-updates $SRCPKG"
+    fi
+}
+
 ### Compile amd64 and i386 in a native chroot.
 ### Cross-compile ARM in an amd64 chroot (for dramatically better performance).
 if [ "$ARCH" = "amd64" -o "$ARCH" = "i386" ]
@@ -138,7 +147,12 @@ trap "rm -rf $WORKDIR/building $BUILDDIR" 0
 echo "git-build-kernel"
 echo "      package: $SRCPKG ($VERSION) $DISTRO"
 echo "      targets: $TARGETS"
-echo "         arch: $ARCH"
+if [ $do_source_pkg = 1 ]
+then
+    echo "    changes-v: $updates_version"
+else
+    echo "         arch: $ARCH"
+fi
 echo "       chroot: $CHROOT"
 echo "  starting build in $HOSTNAME:$WORKDIR ..."
 
@@ -180,7 +194,7 @@ show_elapsed &
  fakeroot debian/rules clean
  if [ $do_source_pkg = 1 ]
  then
-    debuild -S -I -i -uc -us
+    debuild -S -I -i -uc -us $srcpkg_debopts
  else
     debian/rules build
     fakeroot debian/rules $TARGETS
--
2.7.4


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

[kteam-tools][PATCH 5/6] git-build-kernel: squelch output noise when there is no debian/debian.env

Kamal Mostafa-2
In reply to this post by Kamal Mostafa-2
Signed-off-by: Kamal Mostafa <[hidden email]>
---
 git-build-kernel/git-build-kernel | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/git-build-kernel/git-build-kernel b/git-build-kernel/git-build-kernel
index 0d5414a..5b17c48 100755
--- a/git-build-kernel/git-build-kernel
+++ b/git-build-kernel/git-build-kernel
@@ -68,7 +68,7 @@ GITSHASHORT="`git log -1 --pretty=%h ${GITBRANCH%%refs/heads/} --`"
 }
 
 ### Get the var "DEBIAN=debian.master" from debian/debian.env
-eval `git show $GITBRANCH:debian/debian.env | grep DEBIAN=`
+eval `git show $GITBRANCH:debian/debian.env 2>&- | grep DEBIAN=`
 [ -z "$DEBIAN" ] && DEBIAN=debian
 
 
@@ -84,7 +84,7 @@ SRCPKG=$(git show $GITBRANCH:$DEBIAN/changelog | sed 's/^\(.*\) (.*/\1/;q')
 CHROOT="$DISTRO"
 CHROOT="${CHROOT%-proposed}"
 [ $do_source_pkg = 1 ] && {
-    eval `git show $GITBRANCH:debian/debian.env | grep SOURCE_PACKAGE_CHROOT=`
+    eval `git show $GITBRANCH:debian/debian.env 2>&- | grep SOURCE_PACKAGE_CHROOT=`
     [ -z "$SOURCE_PACKAGE_CHROOT" ] || CHROOT="$SOURCE_PACKAGE_CHROOT"
 }
 if [ "$CHROOT" = "UNRELEASED" -o -z "$CHROOT" ]
--
2.7.4


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

[kteam-tools][PATCH 6/6] git-build-kernel: special case no .orig tarball for "-signed" src packages

Kamal Mostafa-2
Signed-off-by: Kamal Mostafa <[hidden email]>
---
 git-build-kernel/git-build-kernel | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/git-build-kernel/git-build-kernel b/git-build-kernel/git-build-kernel
index 5b17c48..62d2714 100755
--- a/git-build-kernel/git-build-kernel
+++ b/git-build-kernel/git-build-kernel
@@ -130,10 +130,16 @@ 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/
+    ### HACK Special case for linux-signed, which has no .orig tarball
+    if [ ${SRCPKG/-signed} != $SRCPKG ]
+    then
+ srcpkg_debopts="--no-tgz-check $srcpkg_debopts"
+    else
+ 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/
+    fi
 }
 
 ###
@@ -194,7 +200,7 @@ show_elapsed &
  fakeroot debian/rules clean
  if [ $do_source_pkg = 1 ]
  then
-    debuild -S -I -i -uc -us $srcpkg_debopts
+    debuild $srcpkg_debopts -S -I -i -uc -us
  else
     debian/rules build
     fakeroot debian/rules $TARGETS
--
2.7.4


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

Re: [kteam-tools][PATCH 4/4] git-build-kernel: debuild source packages with suitable -vversion

Kleber Souza
In reply to this post by Kamal Mostafa-2
On 07/19/18 21:50, Kamal Mostafa wrote:

> Determine latest released package version in <series>-updates and supply
> it to dpkg-genchanges via debuild -vversion.
>
> Signed-off-by: Kamal Mostafa <[hidden email]>
> ---
>  git-build-kernel/git-build-kernel | 18 ++++++++++++++++--
>  1 file changed, 16 insertions(+), 2 deletions(-)
>
> diff --git a/git-build-kernel/git-build-kernel b/git-build-kernel/git-build-kernel
> index cfad062..0d5414a 100755
> --- a/git-build-kernel/git-build-kernel
> +++ b/git-build-kernel/git-build-kernel
> @@ -95,6 +95,15 @@ then
>      CHROOT="${CHROOT%.git}"
>  fi
>  
> +### Find the appropriate -v{version} value for dpkg-genchanges
> +[ $do_source_pkg = 1 ] && {
> +    updates_version=$(rmadison -s ${DISTRO}-updates $SRCPKG | grep 'source$' | awk '{print $3}')
> +    if [ -n "$updates_version" ]
> +    then srcpkg_debopts="-v$updates_version"

There's a catch here with the backport packages. When the
update-from-*-master script is run, it syncs the changelog of the
backport tree with the master tree and adds the
"~<target-series>.<build-number>" prefix to the current version number.
That means we end up losing the previous  backported versions on the
changelog. So when using the output from rmadision with backport
packages, dpkg-genchanges will add more entries than we really want.

The fix would be to remove everything that comes after "~" with
something like:

srcpkg_debopts="-v${updates_version%~*}"

> +    else echo "warning: cannot determine current release for ${DISTRO}-updates $SRCPKG"
> +    fi
> +}
> +
>  ### Compile amd64 and i386 in a native chroot.
>  ### Cross-compile ARM in an amd64 chroot (for dramatically better performance).
>  if [ "$ARCH" = "amd64" -o "$ARCH" = "i386" ]
> @@ -138,7 +147,12 @@ trap "rm -rf $WORKDIR/building $BUILDDIR" 0
>  echo "git-build-kernel"
>  echo "      package: $SRCPKG ($VERSION) $DISTRO"
>  echo "      targets: $TARGETS"
> -echo "         arch: $ARCH"
> +if [ $do_source_pkg = 1 ]
> +then
> +    echo "    changes-v: $updates_version"
> +else
> +    echo "         arch: $ARCH"
> +fi
>  echo "       chroot: $CHROOT"
>  echo "  starting build in $HOSTNAME:$WORKDIR ..."
>  
> @@ -180,7 +194,7 @@ show_elapsed &
>   fakeroot debian/rules clean
>   if [ $do_source_pkg = 1 ]
>   then
> -    debuild -S -I -i -uc -us
> +    debuild -S -I -i -uc -us $srcpkg_debopts
>   else
>      debian/rules build
>      fakeroot debian/rules $TARGETS
>


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

Re: [kteam-tools][PATCH 6/6] git-build-kernel: special case no .orig tarball for "-signed" src packages

Kleber Souza
In reply to this post by Kamal Mostafa-2
On 07/31/18 22:07, Kamal Mostafa wrote:

> Signed-off-by: Kamal Mostafa <[hidden email]>
> ---
>  git-build-kernel/git-build-kernel | 16 +++++++++++-----
>  1 file changed, 11 insertions(+), 5 deletions(-)
>
> diff --git a/git-build-kernel/git-build-kernel b/git-build-kernel/git-build-kernel
> index 5b17c48..62d2714 100755
> --- a/git-build-kernel/git-build-kernel
> +++ b/git-build-kernel/git-build-kernel
> @@ -130,10 +130,16 @@ 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/
> +    ### HACK Special case for linux-signed, which has no .orig tarball

The meta packages don't have .orig tarball as well.

> +    if [ ${SRCPKG/-signed} != $SRCPKG ]
> +    then
> + srcpkg_debopts="--no-tgz-check $srcpkg_debopts"
> +    else
> + 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/
> +    fi
>  }
>  
>  ###
> @@ -194,7 +200,7 @@ show_elapsed &
>   fakeroot debian/rules clean
>   if [ $do_source_pkg = 1 ]
>   then
> -    debuild -S -I -i -uc -us $srcpkg_debopts
> +    debuild $srcpkg_debopts -S -I -i -uc -us
>   else
>      debian/rules build
>      fakeroot debian/rules $TARGETS
>


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

Re: [kteam-tools][PATCH 6/6] git-build-kernel: special case no .orig tarball for "-signed" src packages

Kamal Mostafa-2
On Wed, Aug 01, 2018 at 07:41:32PM +0200, Kleber Souza wrote:

> On 07/31/18 22:07, Kamal Mostafa wrote:
> > Signed-off-by: Kamal Mostafa <[hidden email]>
> > ---
> >  git-build-kernel/git-build-kernel | 16 +++++++++++-----
> >  1 file changed, 11 insertions(+), 5 deletions(-)
> >
> > diff --git a/git-build-kernel/git-build-kernel b/git-build-kernel/git-build-kernel
> > index 5b17c48..62d2714 100755
> > --- a/git-build-kernel/git-build-kernel
> > +++ b/git-build-kernel/git-build-kernel
> > @@ -130,10 +130,16 @@ 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/
> > +    ### HACK Special case for linux-signed, which has no .orig tarball
>
> The meta packages don't have .orig tarball as well.

Ah yes, agreed.  The meta packages actually get built properly anyway,
despite not being special-cased here, because their x.y.z.a.b version
number implies a Debian-native package . . . So debuild doesn't end up
looking for any .orig tarball for meta packages, regardless.  But its
wrong that g-b-k tries to setup the symlink to the non-existent tarball
in any case.  I'll fix in in a [v2] of this patch set.

Thanks!

 -Kamal

>
> > +    if [ ${SRCPKG/-signed} != $SRCPKG ]
> > +    then
> > + srcpkg_debopts="--no-tgz-check $srcpkg_debopts"
> > +    else
> > + 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/
> > +    fi
> >  }
> >  
> >  ###
> > @@ -194,7 +200,7 @@ show_elapsed &
> >   fakeroot debian/rules clean
> >   if [ $do_source_pkg = 1 ]
> >   then
> > -    debuild -S -I -i -uc -us $srcpkg_debopts
> > +    debuild $srcpkg_debopts -S -I -i -uc -us
> >   else
> >      debian/rules build
> >      fakeroot debian/rules $TARGETS
> >
>

--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

Re: [kteam-tools][PATCH 4/4] git-build-kernel: debuild source packages with suitable -vversion

Kamal Mostafa-2
In reply to this post by Kleber Souza
On Wed, Aug 01, 2018 at 06:03:25PM +0200, Kleber Souza wrote:

> On 07/19/18 21:50, Kamal Mostafa wrote:
> > Determine latest released package version in <series>-updates and supply
> > it to dpkg-genchanges via debuild -vversion.
> >
> > Signed-off-by: Kamal Mostafa <[hidden email]>
> > ---
> >  git-build-kernel/git-build-kernel | 18 ++++++++++++++++--
> >  1 file changed, 16 insertions(+), 2 deletions(-)
> >
> > diff --git a/git-build-kernel/git-build-kernel b/git-build-kernel/git-build-kernel
> > index cfad062..0d5414a 100755
> > --- a/git-build-kernel/git-build-kernel
> > +++ b/git-build-kernel/git-build-kernel
> > @@ -95,6 +95,15 @@ then
> >      CHROOT="${CHROOT%.git}"
> >  fi
> >  
> > +### Find the appropriate -v{version} value for dpkg-genchanges
> > +[ $do_source_pkg = 1 ] && {
> > +    updates_version=$(rmadison -s ${DISTRO}-updates $SRCPKG | grep 'source$' | awk '{print $3}')
> > +    if [ -n "$updates_version" ]
> > +    then srcpkg_debopts="-v$updates_version"
>
> There's a catch here with the backport packages. When the
> update-from-*-master script is run, it syncs the changelog of the
> backport tree with the master tree and adds the
> "~<target-series>.<build-number>" prefix to the current version number.
> That means we end up losing the previous  backported versions on the
> changelog. So when using the output from rmadision with backport
> packages, dpkg-genchanges will add more entries than we really want.
>
> The fix would be to remove everything that comes after "~" with
> something like:
>
> srcpkg_debopts="-v${updates_version%~*}"

Yup, I'll add a special-case for that in the [v2] submission.

Thanks!

 -Kamal

--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

NAK: [kteam-tools][PATCH 0/4] git-build-kernel: source pkg features

Kamal Mostafa-2
In reply to this post by Kamal Mostafa-2
Patch set [v2] forthcoming.

 -Kamal

On Thu, Jul 19, 2018 at 12:50:50PM -0700, Kamal Mostafa wrote:

> Fixes and features relating to construction of source packages via the
> 'git push remote commit-ish:source' method.
>
> New (optional) feature: "SOURCE_PACKAGE_CHROOT=series" can be specified in
> debian.env to force a particular chroot for source package contstruction.
> We will be able to use this to implement our policy that source packages
> should be built using the previous LTS, or override that if required.
>
> New behavior: The source package _source.changes file is now built with
> the suitable 'dpkg-genchanges -vversion' relative to -updates as determined
> by rmadison.
>
> Fixed: The push :source method now works for arbitrary source package names,
> not just "linux".
>
>  -Kamal
>
> ----
>
> Kamal Mostafa (4):
>   git-build-kernel: extract the correct source package name
>   git-build-kernel: improve results summary for source pkgs
>   git-build-kernel: support SOURCE_PACKAGE_CHROOT=series via debian.env
>   git-build-kernel: debuild source packages with suitable -vversion
>
>  git-build-kernel/git-build-kernel | 41 ++++++++++++++++++++++++++++++++-------
>  1 file changed, 34 insertions(+), 7 deletions(-)
>
> --
> 2.7.4
>
>
> --
> kernel-team mailing list
> [hidden email]
> https://lists.ubuntu.com/mailman/listinfo/kernel-team

--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team