#1003405 consider devendoring pmw module

#1003405#5
Date:
2022-01-09 16:59:49 UTC
From:
To:
bkchem requires the pmw module. But it ships neither a dependency on
python3-pmw, nor has python3-pmw been uploaded to the archive yet.

There is a working module though:
https://pypi.org/project/Pmw-py3/

Regards, Daniel

- -- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.0-2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEvu1N7VVEpMA+KD3HS80FZ8KW0F0FAmHbFIQACgkQS80FZ8KW
0F2tNA/9Fzmqc73T5VYN11Nt6Le+DG/+XH6JiH6q5oKNiw6NglO3ZI2h47NcfKVn
c7R6LwINax/Dzb721IQJAeK6yQpnsMA+twAu0WCKbTsM7R1AgqP5qjE+8CBBwpby
zCRo/RhA0nJZO+nbzdCVF/we2+X318oR3j9BA9zjavWCFBwyz6WTySPvRCjm4KPX
vzhWJigbak32CF3D2eKFUUlLph/UcuIFLKMJtKrC3jWC/PpJX6hV/rUqRZzLjV3q
Zz5jPqidtHovGoq/UGq3bKoxVkuj+dfnsbjT0pLUb2zDn7ct8sGWnBJqyPnU53Cb
GD8mN1UWS2cLiiFzuySWns4O/z+bt44RJpakTd7vr1JZMKbzNP9WOE9AwsYMk3Aa
8YEzMwQ7736hINQnXBRdTHAUxR00SxOvzBLrXPeOVo7h99IZdZ7bmPD9A3bcXVoN
Ub9hu47LiUIODjyeu5zbmhR1asVA3BMGbE3KYcasFwTlVapRjGscyau1XEUuDGN9
D5wGT+EdHvoB8eGZJ8mDA6TaHz+VlRjFBuyG772oboCiYIYsFmucwPIe6CdR8rfn
2cR/gtvhDvxTdMrC+7AuOMRgSvHwg5yxct6Eh2OS3fVPIoUdgTL3hPHkXp+PCTnG
7m1hq/ciZPMm/7uPFe7puqgImVz5zPB0kNHgNoM3rx57s0gtmIE=
=qWAi
-----END PGP SIGNATURE-----

#1003405#12
Date:
2022-01-10 01:08:15 UTC
From:
To:
The bkchem package is functional without a separate python3-pmw package as it
is carrying its own vendored version of pmw:

$ dpkg -L bkchem|grep -i pmw
/usr/share/bkchem/bkchem/Pmw.py
/usr/share/bkchem/bkchem/PmwBlt.py
/usr/share/bkchem/bkchem/PmwColor.py

Bundling pmw into the application is one of the intended modes of use of this
module, with the pmw sources including a "bundlepmw.py" script that generates
the files included in bkchem.

For bkchem we can then either:

1. carefully check through the quite large divergence between pmw upstream and
 bkchem's vendored version of pmw (some 41 commits in bkchem git)
2. package python3-pmw
3. wait for it to go through NEW
4. devendor pmw (note that is not just a matter of deleting the files)
5. depend on the python3-pmw package instead

or

1. do nothing to bkchem. (that doesn't preclude updating python3-pmw for
#886617 anyway, just that bkchem wouldn't use it)


There is one other potential user of a python3-pmw package in Debian and that
is the auto-07p package. Like bkchem, the auto-07p git history shows
modification of the bundled pmw making devendoring hard.

regards
Stuart