FS#76100 - [python-pycparser] test fail prevents package update

Attached to Project: Arch Linux
Opened by Panos (frostedpenguin) - Monday, 03 October 2022, 09:39 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 05 October 2022, 23:53 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

when arch runs the test I get the following output

```
----------------------------------------------------------------------
Ran 130 tests in 1.790s

FAILED (failures=1)
==> ERROR: A failure occurred in check().
Aborting...
-> error making: python2-pycparser
```

when I tried to run the tests from the repo directly they were all passing so it clearly
has to do with the package

Steps to reproduce:

Try to update the package
This task depends upon

Closed by  Toolybird (Toolybird)
Wednesday, 05 October 2022, 23:53 GMT
Reason for closing:  Not a bug
Comment by Toolybird (Toolybird) - Tuesday, 04 October 2022, 07:03 GMT
This builds fine for me. i.e. cannot repro. Are you building in a clean chroot [1]? This is how official Arch pkgs are built.

> python2-pycparser

Where is the reference to python2 coming from?

[1] https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot
Comment by Panos (frostedpenguin) - Wednesday, 05 October 2022, 08:07 GMT
Thanks for the answer.
I managed to fix the problem by changing python2 to python in the PKGBUILD. I think this is the right way since this is how the examples are run in this [blogpost]: https://eli.thegreenplace.net/2015/on-parsing-c-type-declarations-and-fake-headers . I made a branch with the changes named `python2-to-python`. Does it work on your machine with those changes??
Comment by Toolybird (Toolybird) - Wednesday, 05 October 2022, 23:53 GMT
> I managed to fix the problem by changing python2 to python in the PKGBUILD

There is no reference to "python2" in the current PKGBUILD. No bug here.

Loading...