device-tree-compiler FTBFS in Kinetic

Bug #1992180 reported by Graham Inggs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
device-tree-compiler (Debian)
Fix Released
Unknown
device-tree-compiler (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I've copied what I hope is the relevant part of the log below.

python3 ./setup.py build_ext --build-lib=pylibfdt
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/./setup.py", line 40, in <module>
    setup(
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.10/distutils/core.py", line 108, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 459, in __init__
    _Distribution.__init__(
  File "/usr/lib/python3.10/distutils/dist.py", line 292, in __init__
    self.finalize_options()
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 837, in finalize_options
    ep(self)
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 858, in _finalize_setup_keywords
    ep.load()(self, ep.name, value)
  File "/usr/lib/python3/dist-packages/setuptools_scm/integration.py", line 90, in version_keyword
    _assign_version(dist, config)
  File "/usr/lib/python3/dist-packages/setuptools_scm/integration.py", line 62, in _assign_version
    _version_missing(config)
  File "/usr/lib/python3/dist-packages/setuptools_scm/__init__.py", line 109, in _version_missing
    raise LookupError(
LookupError: setuptools-scm was unable to detect version for /<<PKGBUILDDIR>>.

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj

Tags: ftbfs patch
Revision history for this message
Dave Jones (waveform) wrote :

I'm not sure how this ever built; the issue is that the override d/rules uses to tell setuptools-scm what the version should be is:

  export SETUPTOOLS_SCM_PRETEND_VERSION=$(DEB_VERSION_UPSTREAM)

However, DEB_VERSION_UPSTREAM is blank because pkg-info.mk hasn't been imported. I'll open a PR upstream in salsa but I'm attaching a patch here for us to workaround the issue in the meantime.

Revision history for this message
Dave Jones (waveform) wrote :
tags: added: patch
Changed in device-tree-compiler (Debian):
status: Unknown → New
Revision history for this message
Graham Inggs (ginggs) wrote :

I've sponsored this upload.

Changed in device-tree-compiler (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package device-tree-compiler - 1.6.1-2ubuntu1

---------------
device-tree-compiler (1.6.1-2ubuntu1) kinetic; urgency=medium

  * d/rules: Fix FTBFS by adding pkg-info.mk (LP: #1992180)

 -- Dave Jones <email address hidden> Fri, 07 Oct 2022 22:02:30 +0100

Changed in device-tree-compiler (Ubuntu):
status: Fix Committed → Fix Released
Changed in device-tree-compiler (Debian):
status: New → Fix Released
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.