Skip to content

fail2ban, setools: use python3-setuptools for pkg_resources#29043

Closed
ghost wants to merge 2 commits intomasterfrom
unknown repository
Closed

fail2ban, setools: use python3-setuptools for pkg_resources#29043
ghost wants to merge 2 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Apr 1, 2026

Summary

  • fail2ban: replace non-existent python3-pkg-resources runtime dependency with python3-setuptools (where pkg_resources actually ships)
  • setools: same fix, plus add missing libpython3 runtime dependency for the Python bindings

python3-pkg-resources is not defined anywhere in the packages feed. Both fail2ban and setools declared it as a runtime dependency, causing warnings during metadata generation. The correct package is python3-setuptools, which provides pkg_resources.

@ghost ghost force-pushed the python/fix-missing-dependencies branch from 5e1f71d to 8d718f1 Compare April 1, 2026 22:33
@BKPepe
Copy link
Copy Markdown
Member

BKPepe commented Apr 2, 2026

While looking at it, I see that onionshare_cli the latest version is 2.6.3 while we do have 2.3.1, looks like it is not maintained well in our repository.

bugjosh added 2 commits April 2, 2026 03:42
python3-pkg-resources does not exist as a separate OpenWrt
package; pkg_resources ships inside python3-setuptools.

Signed-off-by: Joshua Klinesmith <joshuaklinesmith@gmail.com>
python3-pkg-resources does not exist as a separate OpenWrt
package; pkg_resources ships inside python3-setuptools. Also
add missing libpython3 runtime dependency.

Signed-off-by: Joshua Klinesmith <joshuaklinesmith@gmail.com>
@ghost ghost force-pushed the python/fix-missing-dependencies branch from 8d718f1 to 22e5e3e Compare April 2, 2026 07:42
@ghost ghost changed the title python: fix missing dependencies and add python-pysocks, python-unidecode fail2ban, setools: use python3-setuptools for pkg_resources Apr 2, 2026
@ghost
Copy link
Copy Markdown
Author

ghost commented Apr 2, 2026

@BKPepe Thanks, I was aware those packages had been removed but wasn't sure how to handle onionshare-cli's broken dependencies, adding them back was the wrong call. I've rebased the PR to drop the python-pysocks and python-unidecode commits. It now only contains the fail2ban and setools fixes (python3-pkg-resources → python3-setuptools), which stand on their own.

As for onionshare-cli, it's sitting at 2.3.1 while upstream is at 2.6.3, and even the latest version still requires both pysocks and unidecode. Happy to look into updating or removing it in a separate PR if that would be helpful.

@ghost ghost closed this by deleting the head repository Apr 7, 2026
This pull request was closed.
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