Date: Wed, 08 Jun 2022 13:07:41 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 264529] science/gramps: Remove dependency on py-bsddb3 Message-ID: <bug-264529-7788-ZIHOQBKfed@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-264529-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-264529-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264529 Benjamin Takacs <nimaje+fbz@bureaucracy.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #234533|0 |1 is obsolete| | --- Comment #2 from Benjamin Takacs <nimaje+fbz@bureaucracy.de> --- Created attachment 234555 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D234555&action= =3Dedit science/gramps: Make py-bsddb3 dependency an OPTION You are right keeping the py-bsddb3 dependency as an OPTION until py-bsddb3= is removed from the portstree seems better. As Berkeley DB support depends on sqlite and a build without DB support doe= sn't seem desirable I decided not to create a SQLITE option, but I can if you th= ink it is useful. When runtime testing with the py-bsddb3 dependency gramps wouldn't start wi= th: ``` Traceback (most recent call last): [=E2=80=A6] File "/usr/local/lib/python3.8/site-packages/gramps/gen/utils/grampslocale.py", = line 529, in __init_first_instance locale.textdomain(self.localedomain) AttributeError: module 'locale' has no attribute 'textdomain' ``` So I added a patch using `textdomain` and `bindtextdomain` from gettext ins= tead as the locale docs[0] suggest, it seems like `locale` was used there as on linux gettext doesn't affect gtk for some reason[1]. It seems to work fine on freebsd, but I only looked at a few translations. Not sure why I didn't hit that AttributeError when py-bsddb3 wan't installe= d. For the UPDATING entry, maybe something like: ``` py-bsddb3 is deprecated and will be removed in the future, with that gramps will lose the ability to load family trees using Berkeley DB. So it is suggested to migrate all family trees using Berkeley DB by exporti= ng them to gramps xml and import that gramps xml into a family tree using sqli= te as database. ``` [0]: https://docs.python.org/3/library/locale.html#access-to-message-catalo= gs [1]: https://gramps-project.org/bugs/view.php?id=3D12278 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264529-7788-ZIHOQBKfed>