Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 778011

Summary: net-misc/ntpsec-1.2.0 ntpq: can't find Python NTP library -- check PYTHONPATH.
Product: Gentoo Linux Reporter: Alessandro Barbieri <lssndrbarbieri>
Component: Current packagesAssignee: Steve Arnold <nerdboy>
Status: RESOLVED FIXED    
Severity: normal CC: blueness
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ntpsec.info

Description Alessandro Barbieri 2021-03-24 19:24:58 UTC
sudo eselect python list
Available Python interpreters, in order of preference:
  [1]   pypy3
  [2]   python3.9
  [3]   python3.8
  [4]   python3.7

but ntpsec has PYTHON_TARGETS="python3_8 -python3_7 -python3_9"

I think you need to use the fix shebang thing of the python eclass because ntpq still has #! /usr/bin/env python as shebang
Comment 1 Alessandro Barbieri 2021-03-24 19:26:12 UTC
Created attachment 693354 [details]
ntpsec.info

emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2021-04-11 01:09:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57a79f77b3ba9751622666956c52a558ec72de51

commit 57a79f77b3ba9751622666956c52a558ec72de51
Author:     Steve Arnold <nerdboy@gentoo.org>
AuthorDate: 2021-04-11 01:08:33 +0000
Commit:     Steve Arnold <nerdboy@gentoo.org>
CommitDate: 2021-04-11 01:08:33 +0000

    net-misc/ntpsec: switch to distutils-r1, fix shebangs
    
    Should also fix bug 779880
    
    Closes: https://bugs.gentoo.org/778011
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Steve Arnold <nerdboy@gentoo.org>

 net-misc/ntpsec/{ntpsec-1.2.0.ebuild => ntpsec-1.2.0-r1.ebuild} | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)