Python2-pycparser update error

Hello!

I tried updating all the AUR-packages, but got this error with a not that verbose description, so I dont know what to do about that… Help appreciated

Cloning python2-pycparser build files...
Generating python2-pycparser information...

Building python2-pycparser...
==> Making package: python2-pycparser 2.21-1 (Sat 10 Sep 2022 06:37:40 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading python2-pycparser-2.21.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  274k    0  274k    0     0  80246      0 --:--:--  0:00:03 --:--:--  130k
==> Validating source files with sha512sums...
    python2-pycparser-2.21.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting python2-pycparser-2.21.tar.gz with bsdtar
==> Starting build()...
running build
running build_py
creating build
creating build/lib
creating build/lib/pycparser
copying pycparser/_ast_gen.py -> build/lib/pycparser
copying pycparser/c_generator.py -> build/lib/pycparser
copying pycparser/plyparser.py -> build/lib/pycparser
copying pycparser/c_parser.py -> build/lib/pycparser
copying pycparser/c_lexer.py -> build/lib/pycparser
copying pycparser/c_ast.py -> build/lib/pycparser
copying pycparser/__init__.py -> build/lib/pycparser
copying pycparser/ast_transforms.py -> build/lib/pycparser
copying pycparser/_build_tables.py -> build/lib/pycparser
creating build/lib/pycparser/ply
copying pycparser/ply/lex.py -> build/lib/pycparser/ply
copying pycparser/ply/ygen.py -> build/lib/pycparser/ply
copying pycparser/ply/ctokens.py -> build/lib/pycparser/ply
copying pycparser/ply/__init__.py -> build/lib/pycparser/ply
copying pycparser/ply/yacc.py -> build/lib/pycparser/ply
copying pycparser/ply/cpp.py -> build/lib/pycparser/ply
copying pycparser/_c_ast.cfg -> build/lib/pycparser
==> Starting check()...
Generating LALR tables
WARNING: 79 shift/reduce conflicts
WARNING: 37 reduce/reduce conflicts
WARNING: reduce/reduce conflict in state 27 resolved using rule (type_specifier -> atomic_specifier)
WARNING: rejected rule (empty -> <empty>) in state 27
WARNING: reduce/reduce conflict in state 87 resolved using rule (type_specifier -> atomic_specifier)
WARNING: rejected rule (empty -> <empty>) in state 87
WARNING: reduce/reduce conflict in state 437 resolved using rule (statement -> pppragma_directive)
WARNING: rejected rule (empty -> <empty>) in state 437
F.................................................................................................................................
======================================================================
FAIL: test_all_examples (tests.test_examples.TestExamplesSucceed)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/pamac-build-max/python2-pycparser/src/pycparser-release_v2.21/tests/test_examples.py", line 29, in test_all_examples
    rc, 0, 'example "{}" failed with stdout =\n{}'.format(filename, stdout))
AssertionError: example "using_gcc_E_libc.py" failed with stdout =


----------------------------------------------------------------------
Ran 130 tests in 1.549s

FAILED (failures=1)
==> ERROR: A failure occurred in check().
    Aborting...
~ >>>                                                                                                                                                                                        [1]

I built it as a test and it worked for me

for the time being python2-ply needs to be rebuilt and installed
after that python2-pycparser can be rebuilt

==> Finished build: python2-pycparser 2.21-1 (Sat 10 Sep 2022 20:53:37 CEST)

Why do you even need python2-“anything”…

It says it is needed for IDLE, even though I’m using python 3.x…

Where does it say that? Definitely not when I query aur/idle.

Here it says so…

~ >>> pamac remove python2                                                                                                                                                                      
Preparing...
Checking dependencies...
Error: Failed to prepare transaction:
could not satisfy dependencies:
- removing python2 breaks dependency 'python2' required by idle-python3.7-assets
~ >>>

Perhaps write an exact package name then. Anyway, another out-of-date package. But ok, that’s all there is in AUR, so I guess you’re stuck with deprecated python2.

also re your other thread.

AUR “packages”

assess what you need them for

remove - for the time being
(to run the pacman update of the base system)
update system without them
then reinstall what you still need

rolling release
dependencies may change over time and AUR is not tracked

That package was flagged out of date over a year ago (2021-04-22), and in my opinion you don’t even need it, what it does “This package is just for installing desktop and icon assets for use on Arch Linux.” you can do yourself, it’s easy to make to your own desktop entry for idle.