From nobody Wed Jun 08 13:07:41 2022 X-Original-To: python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DAD7B83EAFB for ; Wed, 8 Jun 2022 13:07:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LJ6vx4XRJz3plY for ; Wed, 8 Jun 2022 13:07:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7BD1210890 for ; Wed, 8 Jun 2022 13:07:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 258D7f9O087090 for ; Wed, 8 Jun 2022 13:07:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 258D7ffn087089 for python@FreeBSD.org; Wed, 8 Jun 2022 13:07:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 264529] science/gramps: Remove dependency on py-bsddb3 Date: Wed, 08 Jun 2022 13:07:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: nimaje+fbz@bureaucracy.de X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654693661; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HuKraPtQz0d9O9tbFjJUWAmGvG0OZmAmKPAf+glR6Tk=; b=cSbto8GMQR81a39aaz/SQ8l8s8jxSjwoWR9IVi/nZOK7Iqdw99mKHpofHXN6blaka6VzJ1 xl3ky4jUgzUPXHsNaTmjlCbyuADxacaGC5RDFOQfz3u+Kl5WkA1Q/ACoiNHBIQ0PuNevbu 4Pe75xy5r6S/m6vgWYY+RtqGXdX84AxZXBX9WFzZE4nNy52U1BKafA9OSJH8ragqUl7VEp M+0XBzAFYJe05GC8DmP9D07EbXP7x+5Z+iRCrzDzUnWxXs2VUfwGMXuIZg4OnXc1/rPOy1 VOOs4rr5Yw7WXqGl7ekrx1bDaBNuyP2Nt4yUQbj6DTFRQheFzvHgnC4BHlM81w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654693661; a=rsa-sha256; cv=none; b=APW0M9U0RJ9OlWUtPMQ8av4YLzZ0gBQKC7PVQI799CXA794Ne3WY5JP0HaxyXCnrcvF9w1 tlIymyHWA70LeAvKyoFgKT+B5WY5SuuostV98FefYbtg6PaA9ycvadxLfXqUUfpjDcJRDm sRuBLUCKzFaqyMIFkFjRQfoTocLEuQnxNLpX8SJFcqMk9/Te1mnw/7CN8vLfuH/GfruTP3 kLHxnlo10qtVUdvmgg2Wgy37KoayPIJxncaN58AdyYBKQ7dsEmkhJZMh5TFiaEjCqD5Hy1 cxbd6zSAeNQo21BUaWCQ/ak5oW+CJqLzB78sFuoI1LgqqR/Hu0tWUE2m5oA6CQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264529 Benjamin Takacs changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #234533|0 |1 is obsolete| | --- Comment #2 from Benjamin Takacs --- 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 on the CC list for the bug.=