Problems building ntpsec on Arch (AUR)

Gregory Boyce gregory at smoltech.us
Thu May 29 23:14:16 UTC 2025


Hello,

I've been maintaining the ntpsec package in the Arch User Repository, and
I've been encountering a couple of issues with the new 1.2.4 package.

The first issue is the endianness check causing a failure, but only when
building with makepkg.

Here are the commands I use in the build:
  ./waf configure --prefix /usr --sbindir=/usr/bin --refclock=all
--enable-leap-smear --enable-doc --htmldir=/usr/share/doc/ntpsec -v
  ./waf build
  ./waf install --destdir="$pkgdir/"

I get the following output in the failure:
--- Configuring main ---
Checking for endianness                   : 20:21:04 runner
['/usr/bin/gcc', '-std=c99', '-D_GNU_SOURCE', '-march=x86-64',
'-mtune=generic', '-O2', '-pipe', '-fno-plt', '-fexceptions',
'-Wp,-D_FORTIFY_SOURCE=3', '-Wformat', '-Werror=format-security',
'-fstack-clash-protection', '-fcf-protection', '-fno-omit-frame-pointer',
'-mno-omit-leaf-frame-pointer', '-flto=auto', '-DNTPSEC_VERSION="1.2.4"',
'-DNTPSEC_VERSION_EXTENDED="1.2.4"', '../../test.c', '-c',
'-o/home/gboyce/repo/ntpsec/src/ntpsec-1.2.4/build/.conf_check_c56fba856afc73ffddcea3140594c3eb/testbuild/main/test.c.1.o']
20:21:04 runner ['/usr/bin/ar', 'rcs', 'libtestprog.a', 'test.c.1.o']
no
The configuration failed
(complete log in /home/gboyce/repo/ntpsec/src/ntpsec-1.2.4/build/config.log)
==> ERROR: A failure occurred in build().
    Aborting...

I've attached config.log as well.

Oddly, if I add CFLAGS="-O2" before the waf configure line, it succeeds.

The second issue that I experienced is that 1.2.4 does not seem to
respect --sbindir anymore.  Specifying --prefix /usr --sbindir /usr/bin
results with ntpd in /usr/sbin.  Specifying --sbindir /usr/bin without
--prefix /usr results in ntpd being delivered to /usr/local/sbin/ntpd.

I've been poking around waf a bit to try to better understand either issue,
but so far I'm a bit stumped.

Do you have any suggestions?

--
Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/users/attachments/20250529/ee6c9793/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 21939 bytes
Desc: not available
URL: <https://lists.ntpsec.org/pipermail/users/attachments/20250529/ee6c9793/attachment-0001.bin>


More information about the users mailing list