diff mbox

builddeb: generate a changes file from the build

Message ID 1431606908-20880-1-git-send-email-corsac@debian.org (mailing list archive)
State New, archived
Headers show

Commit Message

Yves-Alexis Perez May 14, 2015, 12:35 p.m. UTC
A changes file (also called Debian upload control file) contains
information about binary packages, including the changelog entry, the
maintainer, the package list and the checksums.

It can be used by various Debian tools like dput and dcmd to execute
action on all the build packages at once, for example uploading the
packages to an dedicated Debian repository.
---
 scripts/package/builddeb | 3 +++
 1 file changed, 3 insertions(+)

Comments

Yves-Alexis Perez May 16, 2015, 9:43 a.m. UTC | #1
On jeu., 2015-05-14 at 14:35 +0200, Yves-Alexis Perez wrote:

> +# Generate a change file
> +(cd $KBUILD_OUTPUT; dpkg-genchanges -b > ../linux_${packageversion}_${debarch}.changes)
> +

Actually cwd during the build is KBUILD_OUTPUT already, so the cd part
is unnecessary (I can resend a v2 if really needed).

Regards,
Riku Voipio May 28, 2015, 9:50 a.m. UTC | #2
Hi,

On 14 May 2015 at 15:35, Yves-Alexis Perez <corsac@debian.org> wrote:
> A changes file (also called Debian upload control file) contains
> information about binary packages, including the changelog entry, the
> maintainer, the package list and the checksums.
>
> It can be used by various Debian tools like dput and dcmd to execute
> action on all the build packages at once, for example uploading the
> packages to an dedicated Debian repository.

This change is also part for my "add source package" patch:

http://article.gmane.org/gmane.linux.kbuild.devel/13336

> ---
>  scripts/package/builddeb | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index 88dbf23..46c2838 100755
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -383,4 +383,7 @@ EOF
>         create_package "$dbg_packagename" "$dbg_dir"
>  fi
>
> +# Generate a change file
> +(cd $KBUILD_OUTPUT; dpkg-genchanges -b > ../linux_${packageversion}_${debarch}.changes)
> +
>  exit 0
> --
> 2.1.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Yves-Alexis Perez May 28, 2015, 11:26 a.m. UTC | #3
On jeu., 2015-05-28 at 12:50 +0300, Riku Voipio wrote:
> This change is also part for my "add source package" patch:
> 
> http://article.gmane.org/gmane.linux.kbuild.devel/13336

I wasn't aware of that patchset, thanks! Will try it.

Regards,
diff mbox

Patch

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 88dbf23..46c2838 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -383,4 +383,7 @@  EOF
 	create_package "$dbg_packagename" "$dbg_dir"
 fi
 
+# Generate a change file
+(cd $KBUILD_OUTPUT; dpkg-genchanges -b > ../linux_${packageversion}_${debarch}.changes)
+
 exit 0