Skip to content

Conversation

@DanielG
Copy link
Contributor

@DanielG DanielG commented Jul 9, 2025

Hi Michael!

Users report the removal of the libept dependency caused loss of the "quick filter" bar which, reportedly, has better usability than Edit>Search feature for some users due to better relevancy of results.

(Eg. try "apt" Search will return aapt as the first result whereas quick filter will return "apt" as first result as expected)

It seems libept was hastily removed from Debian because of overall deprecation of debbugs, however here in synaptic none of the debbugs parts of libept were really used only the transitive dependency on libxapian-dev and two trivial API functions for xapian database handling where relevant.

This commit refactors the code to depend on libxapian-dev directly and pulls in the trivial code to find the apt-xapain-index database file.

See commit 21790e0 ("Build without libept")

Closes: Debian#1103351

Thanks <3
--Daniel

Users report the removal of the libept dependency caused loss of the "quick
filter" bar which, reportedly, has better usability than Edit>Search
feature for some users due to better relevancy of results.

(Eg. try "apt" Search will return aapt as the first result whereas quick
filter will return "apt" as first result as expected)

It seems libept was hastily removed from Debian because of overall
deprecation of debbugs, however here in synaptic none of the debbugs parts
of libept were really used only the transitive dependency on libxapian-dev
and two trivial API functions for xapian database handling where relevant.

This commit refactors the code to depend on libxapian-dev directly and
pulls in the trivial code to find the apt-xapain-index database file.

See commit 21790e0 ("Build without libept")

Closes: #1103351
Copy link
Owner

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this, this is super nice!

There is one small complication (unless I miss something of course) - the code in synaptic relies on "/usr/sbin/update-apt-xapian-index" which used to be a package (apt-xapian-index) but that is also removed now. So we would have to revive the functionality of that (its probably easy-ish as its also a thin wrapper around xapian (iirc)) but right now that part seems to be missing(?)

@DanielG
Copy link
Contributor Author

DanielG commented Jul 10, 2025

A revived`apt-xapian-index is already in NEW, I just forgot to mention it :-).

Copy link
Owner

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it, thank you!

@mvo5 mvo5 merged commit 1b7a816 into mvo5:master Jul 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants