[pkg-ntp-maintainers] Bug#558145: ntp: init script uses dpkg-architecture from package dpkg-dev
Thilo Six
T.Six at gmx.de
Thu Nov 26 18:56:26 UTC 2009
Subject: ntp: init script uses dpkg-architecture from package dpkg-dev
Package: ntp
Version: 1:4.2.4p7+dfsg-3
Severity: normal
*** Please type your report below this line ***
Hello
i am reading unstable-changes with interest. Today i came across a
change in ntp unstable:
--- snip ---
* Running as user ntp does not work on kfreebsd because it doesn't support
capabilities. Adjust the init script to start as root.
--- snip ---
digging into the initscript i came across the fact that :
--- snip ---
HOST_OS=$(dpkg-architecture -qDEB_HOST_ARCH_OS)
RUNASUSER=ntp
if test "$HOST_OS" = "kfreebsd"; then
RUNASUSER=root
fi
--- snip ---
is beeing used for that.
I think this will not work because dpkg-architecture is from the package
dpkg-dev and isn't installed everywhere.
IMHO 'dpkg --print-architecture' is a better replacement?
PS. I am using Lenny not sid.
--
bye Thilo
4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6 7C18 89A4 A2A0 C70B 1A8F
More information about the pkg-ntp-maintainers
mailing list