Re: pylibfdt breakage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, Feb 03, 2023 at 09:01:33PM +1100, David Gibson wrote:
> On Thu, Feb 02, 2023 at 09:00:05AM -0600, Rob Herring wrote:
> > On Thu, Feb 2, 2023 at 8:15 AM Rob Herring <robh@xxxxxxxxxx> wrote:
> > >
> > > On Wed, Oct 19, 2022 at 3:09 AM David Gibson
> > > <david@xxxxxxxxxxxxxxxxxxxxx> wrote:
> > > >
> > > > Hi Simon,
> > > >
> > > > I probably should have contacted you sooner about this.  For some
> > > > time, I've been unable to compile and test the pylibfdt components on
> > > > my system (Fedora 36).  I get this error:
> > > >
> > > > $ make
> > > >         CHK version_gen.h
> > > > make[1]: Entering directory '/home/dwg/src/dtc'
> > > >         CHK version_gen.h
> > > >          PYMOD pylibfdt/_libfdt.so
> > > > /usr/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
> > > >   warnings.warn(
> > > > /home/dwg/src/dtc/.eggs/setuptools_scm-7.0.5-py3.10.egg/setuptools_scm/version.py:84: UserWarning: tag 'path-ref-fixup-staging' no version found
> > >
> > > I think the problem is you have a git tag 'path-ref-fixup-staging'
> > > which doesn't match any version pattern (e.g. v1.0.0). The default
> > > pattern is:
> 
> Hrm.  I don't have a tag called 'path-ref-fixup-staging'.  I do have
> one called 'path-ref-fixup-v1' (generated by git publish).  I'm not
> sure why setuptools would be looking at tags unrelated to my current
> branch anyway.
> 
> > > DEFAULT_TAG_REGEX =
> > > r"^(?:[\w-]+-)?(?P<version>[vV]?\d+(?:\.\d+){0,2}[^\+]*)(?:\+.*)?$"
> > >
> > > https://github.com/pypa/setuptools_scm/blob/main/src/setuptools_scm/config.py#L28
> > 
> > I tried adding non-version tags and still don't reproduce this.
> > 
> > What does this give you: python setup.py --version
> 
> So... that alone is enough to crash..

[snip]

So, I tried re-cloning from the upstream repo, and now it works.  So
*something* was bogus in my git state, though I'm not at all sure what.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux