On Fri, Nov 05, 2021 at 10:50:43AM +0000, Laurence Tratt wrote:
> With a set of snapshot packages as of yesterday, quodlibet failed to load,
> printing this error:
>
> E: 1.065: util.importhelper.load_dir_modules: feedparser.py:93:<module>:
> AttributeError: module 'base64' has no attribute 'decodestring'
> E: 2.074: errorreport.main.errorhook: feedparser.py:93:<module>:
> AttributeError: module 'base64' has no attribute 'decodestring'
>
> Updating py3-feedparser from 5.2.1p5 to 6.0.8p0 from ports fixed this issue.
> I wonder if we need to add the diff at this end of the email (or something
> similar) to the quodlibet port to force feedparser to be updated at the same
> time?
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/audio/quodlibet/Makefile,v
> retrieving revision 1.38
> diff -u -p -u -r1.38 Makefile
> --- Makefile 2 Nov 2021 00:00:14 -0000 1.38
> +++ Makefile 5 Nov 2021 10:48:00 -0000
> @@ -22,7 +22,7 @@ RUN_DEPENDS= audio/py-musicbrainzngs${MO
> audio/py-mutagen${MODPY_FLAVOR} \
> devel/py-gobject3${MODPY_FLAVOR} \
> graphics/py-cairo${MODPY_FLAVOR} \
> - textproc/py-feedparser${MODPY_FLAVOR} \
> + textproc/py-feedparser${MODPY_FLAVOR}>=6.0.8p0 \
> x11/dbus-python${MODPY_FLAVOR}
>
> # others
>
All you need to do here is bump quodlibet's REVISION since you are
changing the pacakge's contents.
That should be enough for the next `pkg_add -u' to update both
py-feedbarser and quodlibet.
You can test this: install an old py-feedbarser version,
have an up-to-date ports tree, apply the diff build the quodlibet
package and update to it.