Skip to contentSkip to conversation

builddeb: generate a changes file from the build

PATCH In review Yves-Alexis Perez 2 participants 4 messages May 14, 2015 – May 28, 2015 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 builddeb: generate a changes file from the build

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(+)
scripts/package/builddeb +3 -0
index 88dbf23..46c2838 100755
@@ -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
Signature · 1 line
2.1.4
#1 lore raw

scripts/package/builddeb EOF · line 388

Quoted 3 lines · Yves-Alexis Perez
scripts/package/builddeb +3 -0
+# 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,

Signature · 1 line
Yves-Alexis
#2 lore raw
In reply to Yves-Alexis Perez

Hi,

Quoted 7 lines · Yves-Alexis Perez

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

Quoted 23 lines
---
 scripts/package/builddeb | 3 +++
 1 file changed, 3 insertions(+)
scripts/package/builddeb +3 -1
index 88dbf23..46c2838 100755
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html