From nobody Wed Jun 8 13:07:41 2022 X-Original-To: ports-bugs@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 DAD5183EC78 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 4LJ6vx4Lvmz3pnw 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 6AF021088F 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 258D7fQ7087086 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 258D7feb087085 for ports-bugs@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: ports-bugs@FreeBSD.org Subject: [Bug 264529] science/gramps: Remove dependency on py-bsddb3 Date: Wed, 08 Jun 2022 13:07:41 +0000 X-Bugzilla-Reason: AssignedTo 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@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=2K5fETetcUVHpI0tEaS3//T9WJIMJvgk4xzn4fxcvbE=; b=LxAnvs7G+oeNZGGw4HI6Um/Cs7kynX1IU2iKSHvvHG9P+iYdcJ9b0EWWRi3kFAJKMQzTHb t7x8uhMktr3dnI7en7mL9Tm3pqUesR6RSd7FMaJFJCOnMhEqeBmPeVKhhgQSHJwKvS3C9i IbZJKfC9ih7HMm7BDTOXrHKttH1Y+KrSQF3zIvvhIO2e8CkHvatWi2VD2yzfv0y2noSX0y OqEZOXYjvuqQWaO/S2u0pO9WlKg1NM343Wg6l1h9TwJcPaX2mg4mzw74SJccsnLtI3qSPy pCCF4nwO+CjLCDLdTKFJPB7EUzF0xvnaRh/JwXk8yJROIafAzyPR2r2nFVxIiQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654693661; a=rsa-sha256; cv=none; b=Yyvt48ncvjPo06G8e+JdK9QzulrPA7OGr3Rnh5AsoIlnFg+QLJ80ADJ5qEefvFYm1sf0ga HEfdl4cObTeDpH1x3jgwEcIk32S01NAjRXf+p4Oy0F4Z+DBQSmUtaftvUE8YpM9k67YGsa WHN40EHMVxuhg3uwbrBq4L1+xCVXOJ5dynpqf+sweBcEwrDBBhsGRtMYwheFegnWxAb8cp EQK0MIuzRKYUmsEqV/rpJ+ZTJrmKxrYB+/duL8q67UHwjSQwNwHEtFV26NV3wSjTvfKTHZ nck9uwq0KSM35cfqvPqHdEYREYDHDL3oW+hZnmRmpJSPGn/VIUqAN65QdewKiQ== 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 the assignee for the bug.=