2021-03-19 21:06:07 |
Arnold Czémán |
bug |
|
|
added bug |
2021-06-01 15:01:44 |
Stefano Rivera |
summary |
virtual packages are not provided |
Misbuilds on focal: virtual packages are not provided |
|
2021-06-01 15:01:50 |
Stefano Rivera |
nominated for series |
|
Ubuntu Focal |
|
2021-06-01 15:01:50 |
Stefano Rivera |
bug task added |
|
ply (Ubuntu Focal) |
|
2021-06-01 15:01:59 |
Stefano Rivera |
ply (Ubuntu): status |
New |
Fix Released |
|
2021-06-01 15:12:32 |
Stefano Rivera |
description |
Version: 3.11-3build1
Ubuntu release: 20.04
The python3-ply binary package should provide these virtual packages: python3-ply-lex-3.10, python3-ply-yacc-3.10, but it cannot provide them after a build in a fresh focal docker container.
This is because the provided virtual package names are generated by the 'debian/virtual-packages.py' script, which uses a shebang with '/usr/bin/python'. By default there is no 'python' binary on ubuntu focal.
One solution could be adding the 'python-is-python2' package as a build dependency. I have used this temporarily.
Or the shebang could be more specific: '/usr/bin/python2' or '/usr/bin/env python2'.
Or the script could be ported to python3 with a proper specific shebang.
It would also be useful to raise a build error, when the script fails. |
[Impact]
* If we (or a user) has to re-build ply, it misbuilds, silently.
[Test Plan]
Rebuild from source.
apt show python3-ply | grep Provides
Good:
Provides: python3-ply-lex-3.10, python3-ply-yacc-3.10
Bad:
Empty output.
[Where problems could occur]
* Pretty minimal risk, no library code changes.
Just getting things to build correctly, again.
[Other Info]
* The -4 upload included a port of the virtual package script to Python 3. Not backporting that, because it's a larger change.
[Original Bug Report]
Version: 3.11-3build1
Ubuntu release: 20.04
The python3-ply binary package should provide these virtual packages: python3-ply-lex-3.10, python3-ply-yacc-3.10, but it cannot provide them after a build in a fresh focal docker container.
This is because the provided virtual package names are generated by the 'debian/virtual-packages.py' script, which uses a shebang with '/usr/bin/python'. By default there is no 'python' binary on ubuntu focal.
One solution could be adding the 'python-is-python2' package as a build dependency. I have used this temporarily.
Or the shebang could be more specific: '/usr/bin/python2' or '/usr/bin/env python2'.
Or the script could be ported to python3 with a proper specific shebang.
It would also be useful to raise a build error, when the script fails. |
|
2021-06-01 15:20:20 |
Stefano Rivera |
attachment added |
|
ply_3.11-3ubuntu0.1.debdiff https://bugs.launchpad.net/ubuntu/+source/ply/+bug/1920567/+attachment/5501698/+files/ply_3.11-3ubuntu0.1.debdiff |
|
2021-06-01 15:25:32 |
Stefano Rivera |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2021-06-04 10:24:00 |
Timo Aaltonen |
ply (Ubuntu Focal): status |
New |
Fix Committed |
|
2021-06-04 10:24:02 |
Timo Aaltonen |
bug |
|
|
added subscriber SRU Verification |
2021-06-04 10:24:07 |
Timo Aaltonen |
tags |
|
verification-needed verification-needed-focal |
|
2021-06-05 20:47:15 |
Stefano Rivera |
tags |
verification-needed verification-needed-focal |
verification-done verification-done-focal |
|
2021-06-15 23:30:45 |
Launchpad Janitor |
ply (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|
2021-06-15 23:30:48 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|