[Bug 241952] devel/py-pycparser: 2.19 updates/recompiles c_ast.py after installation (at runtime)

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 08 Jun 2022 18:07:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241952

--- Comment #9 from Danny McGrath <danmcgrath.ca@gmail.com> ---
(In reply to Tatsuki Makino from comment #8)

Hi Tatsuki,

I did a quick test on a fresh install of 13.1 with 2022Q2 and it appeared to
work just fine:

  root@freebsd:/usr/ports/devel/py-pycparser # make reinstall
  ===>  Deinstalling for py38-pycparser
  ===>   Deinstalling py38-pycparser-2.21
  Updating database digests format: 100%
  Checking integrity... done (0 conflicting)
  Deinstallation has been requested for the following 1 packages (of 0 packages
in the universe):

  Installed packages to be REMOVED:
          py38-pycparser: 2.21

  Number of packages to be removed: 1

  The operation will free 1 MiB.
  [1/1] Deinstalling py38-pycparser-2.21...
  [1/1] Deleting files for py38-pycparser-2.21: 100%
  ===>  Installing for py38-pycparser-2.21
  ===>  Checking if py38-pycparser is already installed
  ===>   Registering installation for py38-pycparser-2.21
  Installing py38-pycparser-2.21...
  root@freebsd:/usr/ports/devel/py-pycparser # pkg check -v -s py38-pycparser
  [1/1] Checking py38-pycparser-2.21: checksums... done
  root@freebsd:/usr/ports/devel/py-pycparser # python3.8 -c 'import pycparser'
  root@freebsd:/usr/ports/devel/py-pycparser # pkg check -v -s py38-pycparser
  [1/1] Checking py38-pycparser-2.21: checksums... done
  root@freebsd:/usr/ports/devel/py-pycparser # python3.8 -c 'import pycparser'
  root@freebsd:/usr/ports/devel/py-pycparser # pkg check -v -s py38-pycparser
  [1/1] Checking py38-pycparser-2.21: checksums... done


Prior to the patch it was, of course, doing the old problem:

  root@freebsd:~ # pkg check -v -s py38-pycparser
  [1/1] Checking py38-pycparser-2.21: checksums... done
  root@freebsd:~ # python3.8 -c 'import pycparser'
  root@freebsd:~ # pkg check -v -s py38-pycparser
  [1/1] Checking py38-pycparser-2.21: checksums...py38-pycparser-2.21: checksum 
  mismatch for /usr/local/lib/python3.8/site- 
  packages/pycparser/__pycache__/c_ast.cpython-38.pyc
   done

Hope the feedback helps. Thanks!

-- 
You are receiving this mail because:
You are on the CC list for the bug.