Bug 262203 - net/nsscache: Depends on DEPRECATED py-bsddb3
Summary: net/nsscache: Depends on DEPRECATED py-bsddb3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kevin Bowling
URL:
Keywords:
Depends on:
Blocks: 262136
  Show dependency treegraph
 
Reported: 2022-02-26 05:29 UTC by Muhammad Moinur Rahman
Modified: 2022-08-26 06:30 UTC (History)
2 users (show)

See Also:


Attachments
Update DEPS to py-berkeleydb (1.52 KB, patch)
2022-05-04 13:49 UTC, Muhammad Moinur Rahman
bofh: maintainer-approval? (kbowling)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Muhammad Moinur Rahman freebsd_committer freebsd_triage 2022-02-26 05:29:39 UTC
db5 has been marked DEPRECATED and in terms databases/py-bsddb3 has also been marked DEPRECATED. Currently this port depends on py-bsddb3. In this state there are two options which can be checked. Whether if this port builds/runs with databases/py-berkeleydb or in other terms chase upstream to support for databases/py-berkeleydb which is the next generation implementation of py-bsddb3. For reference please see here: https://www.jcea.es/programacion/pybsddb.htm.

If none of the options are viable please mark the port DEPRECATED with the following:

DEPRECATED=	Requires upstream py-bsddb3 which requires upstream EOLd db5
EXPIRATION_DATE=	2022-06-30
Comment 1 Kevin Bowling freebsd_committer freebsd_triage 2022-02-27 01:46:17 UTC
https://github.com/google/nsscache/issues/135
Comment 2 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2022-02-28 23:46:48 UTC
(In reply to Kevin Bowling from comment #1)
Thanks.
Comment 3 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2022-05-04 13:49:58 UTC
Created attachment 233720 [details]
Update DEPS to py-berkeleydb

Updated dependency and changed some sources to use berkeleydb instead of bsddb3. At least the commandline script generates some viable output.

root@MAIN-default:~ # nsscache help
nsscache synchronises a local NSS cache against a remote data source.

Usage: nsscache [global options] command [command options]

commands:
  update                update the cache.
  verify                verify the cache and configuration.
  help                  show per-command help.
  repair                repair the cache.
  status                show current cache status.

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -v, --verbose         enable verbose output
  -d, --debug           enable debugging output
  -c FILE, --config-file=FILE
                        read configuration from FILE


And here the buildlogs:
https://pdr.bofh.network/data/latest-per-pkg/nsscache/0.44_1/
Comment 4 Kevin Bowling freebsd_committer freebsd_triage 2022-05-06 00:20:56 UTC
(In reply to Muhammad Moinur Rahman from comment #3)
Hi Moin,

Unfortunately this isn't sufficient for BDB, although I may be wrong and some more test output showing a non-BDB backend working may sway me.

I tried similarly before filing the upstream bug and gave up when I realized the API for py-berkeleydb had changed a bit and I don't have any near term priority to work on this.

I think there are two viable paths forward for your consideration:
1) Optionalize BDB support within nsscache and we fully disable it on FreeBSD.  This is likely the easiest and IMO sufficient (one would have to pair nsscache with sysutils/nss_ndb to use the result on FreeBSD and you might as well use net/libnss-cache)
2) Update nsscache to use the new py-berkeleydb APIs.  This will require a bit more thinking but there is a test suite and I did run it to realize I didn't have time to digest everything before opening the upstream bug.

I would guess upstream will act when Debian follows a similar upgrade fate so a third option would be some variant of waiting.
Comment 5 commit-hook freebsd_committer freebsd_triage 2022-08-26 06:29:01 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=827afb1759885006e4b8cf0fff60f37d8a366ff8

commit 827afb1759885006e4b8cf0fff60f37d8a366ff8
Author:     Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2022-08-26 06:23:50 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2022-08-26 06:27:59 +0000

    net/nsscache: Update to 0.47

    Drops BDB support, so remove expiry

    PR:     262203

 net/nsscache/Makefile                  |  6 +-----
 net/nsscache/distinfo                  |  6 +++---
 net/nsscache/files/patch-nsscache.conf | 13 ++-----------
 3 files changed, 6 insertions(+), 19 deletions(-)