Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvchecker rebuild required #36

Open
denydias opened this issue Nov 24, 2024 · 1 comment
Open

nvchecker rebuild required #36

denydias opened this issue Nov 24, 2024 · 1 comment

Comments

@denydias
Copy link

denydias commented Nov 24, 2024

After Slackware -current Fri Nov 22 22:08:18 UTC 2024 updated python3-3.12.7, nvchecker don't run anymore:

$> nvchecker --version
Traceback (most recent call last):
  File "/usr/bin/nvchecker", line 5, in <module>
    from nvchecker.__main__ import main
ModuleNotFoundError: No module named 'nvchecker'

A rebuild is required as well as its dependencies:

python-tornado
python-structlog
python-httpx
python-platformdirs
@denydias
Copy link
Author

denydias commented Nov 26, 2024

FYI all the nvchecker dependencies builds fine on -current python3-3.12.7:

python-tornado
python-hatch-fancy-pypi-readme
python-structlog
python-httpx
python-h11
python-hstspreload
python-sniffio
python-rfc3986
python-h2
python-hpack
python-hyperframe
python-platformdirs

nvchecker itself requires a simple patch:

--- nvchecker.SlackBuild        2024-11-26 05:16:56.526599145 -0300
+++ nvchecker.SlackBuild.new    2024-11-26 05:52:20.638194034 -0300
@@ -90,15 +90,15 @@
 sed '/invalid version/s/warning/debug/' -i nvchecker_source/pypi.py
 
 unshare -n python3 -m build --wheel --no-isolation
-make -C docs man
+#make -C docs man
 python3 -m installer --destdir "$PKG" dist/*.whl
 
 find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs -r strip --strip-unneeded 2> /dev/null || true
 find $PKG | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs -r strip -g 2> /dev/null || true
 
 # bash completion scripts & man
-install -Dm644 scripts/nvtake.bash_completion "$PKG"/usr/share/bash-completion/completions/nvtake
-install -Dm644 docs/_build/man/nvchecker.1 -t "$PKG"/usr/man/man1/
+#install -Dm644 scripts/nvtake.bash_completion "$PKG"/usr/share/bash-completion/completions/nvtake
+#install -Dm644 docs/_build/man/nvchecker.1 -t "$PKG"/usr/man/man1/
 
 if [ -d $PKG/usr/man ]; then
   find $PKG/usr/man -type f -exec chmod 644 {} \; -exec gzip -9 {} \;

Other than that it runs fine here with updated python.

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

No branches or pull requests

1 participant