Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 753785 - net-misc/ntpsec-1.1.9: No module named 'ntp'
Summary: net-misc/ntpsec-1.1.9: No module named 'ntp'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-10 04:45 UTC by crabbed halo ablution
Modified: 2021-01-26 03:26 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ntpsec-1.1.9-python-multiscript.patch (ntpsec-1.1.9-python-multiscript.patch,663 bytes, patch)
2020-11-10 09:23 UTC, crabbed halo ablution
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description crabbed halo ablution 2020-11-10 04:45:47 UTC
running ntpq -c rv yields:
# ntpq -c rv
ntpq: can't find Python NTP library -- check PYTHONPATH.
No module named 'ntp'

Looking at the "equery files ntpsec" output, it looks like the python modules have been slotted, but the scripts haven't. If I "eselect python set python3.7" (the version the modules have been compiled for), the ntpq command completes successfully.

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-11-10 05:06:05 UTC
python-single-r1 might be a better match here, actually.
Comment 2 crabbed halo ablution 2020-11-10 09:23:42 UTC
Created attachment 670673 [details, diff]
ntpsec-1.1.9-python-multiscript.patch

This patch to the ebuild fixes the issue for me.
I'm not entirely convinced we need to run src_configure and src_install once for each python implementation, but that's for later.
Comment 3 Larry the Git Cow gentoo-dev 2021-01-26 03:25:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ba93e6469bc705f8acd83634a29a411fede044b

commit 9ba93e6469bc705f8acd83634a29a411fede044b
Author:     Steve Arnold <nerdboy@gentoo.org>
AuthorDate: 2021-01-26 03:25:12 +0000
Commit:     Steve Arnold <nerdboy@gentoo.org>
CommitDate: 2021-01-26 03:25:12 +0000

    net-misc/ntpsec: add latest release (with missing py extension)
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=751982
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=753785
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Steve Arnold <nerdboy@gentoo.org>

 net-misc/ntpsec/Manifest            |   1 +
 net-misc/ntpsec/ntpsec-1.2.0.ebuild | 163 ++++++++++++++++++++++++++++++++++++
 2 files changed, 164 insertions(+)
Comment 4 Steve Arnold archtester gentoo-dev 2021-01-26 03:26:34 UTC
Give 1.2.0 (works again here).