Autopkgtest/build fails, because example gpg key is expired
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
simplestreams (Ubuntu) |
Fix Released
|
Undecided
|
Dominik Viererbe | ||
Bionic |
Won't Fix
|
Undecided
|
Unassigned | ||
Focal |
Fix Committed
|
Undecided
|
Unassigned | ||
Jammy |
Fix Committed
|
Undecided
|
Unassigned | ||
Kinetic |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Simplestreams package fails to build on Bionic, Focal and Jammy.
That issue is caused by the expired test gpg keys.
The fix is to generate a new keys to avoid this problem.
[Test Plan]
Type in:
1. git ubuntu clone simplestreams
2. pull-lp-source -d simplestreams <release-name>
3. cd simplestreams
4. git checkout ubuntu/
5. dpkg-buildpackage -S -I -i -nc -d -uc -us
6. cd ..
7. sbuild -d <release-
*where <release-name> equals bionic, focal and jammy
Example of failed output:
make[1]: Entering directory '/build/
./tools/
creating GNUPGHOME dir in /build/
pubkey '/build/
secret '/build/
pubkeys: /build/
imported secret key /build/
imported pubkey /build/
./tools/tenv ./tools/
Traceback (most recent call last):
File "/build/
main()
File "/build/
signjson_
File "/build/
util.
File "/build/
return subp(get_
File "/build/
raise subprocess.
subprocess.
Makefile:39: recipe for target 'examples-sign' failed
make[1]: *** [examples-sign] Error 1
make[1]: Leaving directory '/build/
dh_auto_test: make -j1 test returned exit code 2
debian/rules:7: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
-------
Example of successful output:
The package builds without any issues.
[Where problems could occur]
The regression possibilities here are really low.
It is unlikely but possible that users could hardcode valid gpg keys into a file. In that case if the same user wants to install simplestreams, there is a high risk that a warning message will appear and there is a necessity to unify the keys by removing it and installing the package again.
-------
Running the autopkgtest fails to build the package. During the build process the example gpg key (examples/
How to verify:
1. Checkout the source tree
2. import examples/
3. see details about key: gpg --list-keys 198E8D3C2722789
Should display something like this:
pub rsa1024 2013-02-26 [SCEA] [expired: 2023-02-24]
198E8D3C2
uid [ expired] Simple Streams Test User (Test Usage Only. Do Not Import.) <email address hidden>
4. Note that the key expired at 24.02.2023
5. (optional) remove key: gpg --delete-keys 198E8D3C2722789
How to fix this:
Generate a new key upstream or do the key generation dynamically to avoid this problem entirely.
Related branches
- git-ubuntu bot: Approve
- Lucas Kanashiro (community): Approve
- Canonical Server Reporter: Pending requested
-
Diff: 112 lines (+92/-0)3 files modifieddebian/changelog (+9/-0)
debian/patches/lp2013081-build-fails-gpg-key-expired-jammy.patch (+82/-0)
debian/patches/series (+1/-0)
- git-ubuntu bot: Approve
- Lucas Kanashiro (community): Approve
- Canonical Server Reporter: Pending requested
-
Diff: 112 lines (+92/-0)3 files modifieddebian/changelog (+9/-0)
debian/patches/lp2013081-build-fails-gpg-key-expired-focal.patch (+82/-0)
debian/patches/series (+1/-0)
- Lucas Kanashiro (community): Approve
- Sergio Durigan Junior (community): Needs Fixing
- Canonical Server Reporter: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 112 lines (+92/-0)3 files modifieddebian/changelog (+9/-0)
debian/patches/lp2013081-build-fails-gpg-key-expired.patch (+82/-0)
debian/patches/series (+1/-0)
- Paride Legovini: Approve
- Server Team CI bot: Needs Fixing (continuous-integration)
- Robie Basak: Needs Fixing
-
Diff: 73 lines (+28/-28)2 files modifiedexamples/keys/example.pub (+10/-10)
examples/keys/example.sec (+18/-18)
Changed in simplestreams (Ubuntu): | |
assignee: | nobody → Dominik Viererbe (dviererbe) |
status: | New → In Progress |
Changed in simplestreams (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in simplestreams (Ubuntu Bionic): | |
status: | Triaged → In Progress |
Changed in simplestreams (Ubuntu Focal): | |
status: | Triaged → In Progress |
Changed in simplestreams (Ubuntu Jammy): | |
status: | Triaged → In Progress |
description: | updated |
description: | updated |
tags: | added: server-todo |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Your changelog missed a bug reference, this is actually released
simplestreams | 0.1.0-48- gb936edd4- 0ubuntu2 | lunar/universe | all gb936edd4- 0ubuntu2 | mantic/universe | all
simplestreams | 0.1.0-48-