[Bug 1920567] Re: virtual packages are not provided

Stefano Rivera 1920567 at bugs.launchpad.net
Tue Jun 1 15:01:27 UTC 2021


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 <ubuntu-devel-discuss at lists.ubuntu.com>
Original-Maintainer: JCF Ploemen (jcfp) <linux at jcf.pm>
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 changed:

- virtual packages are not provided
+ Misbuilds on focal: virtual packages are not provided

** Also affects: ply (Ubuntu Focal)
   Importance: Undecided
       Status: New

** Changed in: ply (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ply in Ubuntu.
https://bugs.launchpad.net/bugs/1920567

Title:
  Misbuilds on focal: virtual packages are not provided

Status in ply package in Ubuntu:
  Fix Released
Status in ply source package in Focal:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ply/+bug/1920567/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list