Misbuilds on focal: virtual packages are not provided

Bug #1920567 reported by Arnold Czémán
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ply (Ubuntu)
Fix Released
Undecided
Unassigned
Focal
Fix Released
Undecided
Unassigned

Bug Description

[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.

Revision history for this message
Stefano Rivera (stefanor) wrote :

The virtual packages are provided, as built, on Ubuntu 20.04:

# apt show python3-ply
Package: python3-ply
Version: 3.11-3build1
Priority: optional
Section: python
Source: ply
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: JCF Ploemen (jcfp) <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 256 kB
Provides: python3-ply-lex-3.10, python3-ply-yacc-3.10
Depends: python3:any
Suggests: python-ply-doc, python3-pkg-resources
Homepage: https://www.dabeaz.com/ply/
Task: dns-server, ubuntustudio-desktop-core, ubuntustudio-desktop
Download-Size: 46.4 kB
APT-Sources: http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
Description: Lex and Yacc implementation for Python3

But not when rebuilt from source.

summary: - virtual packages are not provided
+ Misbuilds on focal: virtual packages are not provided
Changed in ply (Ubuntu):
status: New → Fix Released
description: updated
Revision history for this message
Stefano Rivera (stefanor) wrote :
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Arnold, or anyone else affected,

Accepted ply into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ply/3.11-3ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in ply (Ubuntu Focal):
status: New → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (ply/3.11-3ubuntu0.1)

All autopkgtests for the newly accepted ply (3.11-3ubuntu0.1) for focal have finished running.
The following regressions have been reported in tests triggered by the package:

astropy/4.0-4ubuntu1 (armhf)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/focal/update_excuses.html#ply

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Stefano Rivera (stefanor) wrote :

Autopkgtest failure was a networking glitch. Retried and it succeeded.

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
Stefano Rivera (stefanor) wrote :

Build looks good to me, it has the Provides line. Marking as verified.

Revision history for this message
Arnold Czémán (cemiarni) wrote :

Build looks good to me, too. Thank you.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ply - 3.11-3ubuntu0.1

---------------
ply (3.11-3ubuntu0.1) focal; urgency=medium

  * Use python2.7 in debian/rules, to generate Provides. (LP: #1920567)

 -- Stefano Rivera <email address hidden> Tue, 01 Jun 2021 11:05:04 -0400

Changed in ply (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for ply has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.