Details
-
Type:
Bug
-
Status: Closed
-
Resolution: Not a Bug
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:
Description
Trying to build a deb package fails with a warning and gives a return code != 0. This makes automating the packaging difficult.
How to repeat:
cd $PACKAGING_WORK
bakery/preheat.sh
cd bakery_
bakery/tarbake51.sh last:1 $MARIA_WORK
bakery/autobake-deb.sh mariadb-{version_num}-maria-beta-ourdelta{number}
.tar.gz
...
...
...
dpkg-genchanges >../mariadb-5.1_5.1.38-ourdelta83_amd64.changes
dpkg-genchanges: including full source code in upload
dpkg-buildpackage: full upload; Debian-native package (full source is included)
dpkg-buildpackage: warning: Failed to sign .dsc and .changes file
real 15m56.539s
user 12m17.670s
sys 2m1.516s
hakan@lu0012:~/work/monty_program/ourdelta-mariadb51-2/bakery-83$ echo $?
1
Details about the build procedure can be found here:
http://askmonty.org/wiki/index.php/BuildingMariaDB#Ubuntu_.deb_packages
Suggested fix:
hakan@lu0012:~/work/monty_program/ourdelta-mariadb51-2/bakery-83$ bzr diff
=== modified file 'bakery/autobake-deb.sh'
— bakery/autobake-deb.sh 2009-10-18 09:07:53 +0000
+++ bakery/autobake-deb.sh 2009-10-23 15:12:47 +0000
@@ -139,7 +139,9 @@
- Build the package.
#
-fakeroot dpkg-buildpackage
+# -us Do not sign the source package.
+# -uc Do not sign the .changes file.
+fakeroot dpkg-buildpackage -us -uc
- Check if the local mirror deb-pool exists and move the results there.
- we have ourdelta, ourdelta-sail, and mariadb-ourdelta
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Re: deb package fails with dpkg-buildpackage: warning: Failed to sign .dsc and .changes file
Hakan, for the OurDelta build environment this is not relevant, since it has the key.
For elsewhere, it's ok to use the flags you've suggested, but it's important that they only get used there.
But perhaps it'd be best for your automated test environment to also have a (dummy) key, since that would more accurately reflect the environment it's trying to test.