Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] constraints disabled in openntpd after the switch to openssl
@ 2021-03-09 12:20 4ricci
  2021-03-10 11:34 ` leahneukirchen
  0 siblings, 1 reply; 2+ messages in thread
From: 4ricci @ 2021-03-09 12:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2567 bytes --]

New issue by 4ricci on void-packages repository

https://github.com/void-linux/void-packages/issues/29347

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:
  Void 5.10.20_1 x86_64 GenuineIntel uptodate rrFFFFFF
* package:
  openntpd-6.2p3_8 and #27053

### Expected behavior
If constraints are enabled in `/etc/ntpd.conf`, then `ntpctl -s status` should print something like:
```
4/4 peers valid, constraint offset 0s, clock synced, stratum 3
```
`xbps-query -x openntpd` should print:
```
ca-certificates>=0
glibc>=2.32_1
libtls>=3.2.4_1
```

### Actual behavior
`ntpctl -s status` says nothing about constraints:
```
4/4 peers valid, clock synced, stratum 3
```
and the package does not depend on libtls at runtime.



I was able to link openntpd against libtls (and enable contraints support) by adding opennssl-devel to makedepends. I think that the configure script relies on some part of openssl/libressl that is not included in our standalone libtls to detect the latter, but I'm not sure about the correct way to fix that.

This is the build log with the actual template:
```
[...]
=> openntpd-6.2p3_8: installing target dependencies: libtls-devel-3.2.4_2 ...
[...]
checking for library containing tls_config_set_ca_mem... no
checking for tls_config_set_ca_mem... no
checking if tls_write takes 3 arguments... no
[...]
  CC       ntpd-constraint-disabled.o
[...]
=> openntpd-6.2p3_8: running pre-pkg hook: 04-generate-runtime-deps ...
   SONAME: libm.so.6 <-> glibc>=2.32_1
   SONAME: libc.so.6 <-> glibc>=2.32_1
[...]
=> openntpd-6.2p3_8: running pre-pkg hook: 999-collected-rdeps ...
   ca-certificates>=0 glibc>=2.32_1
[...]
```
and this is with makedepends including openssl-devel:
```
[...]
=> openntpd-6.2p3_8: installing target dependencies: libtls-devel-3.2.4_2 openssl-devel-1.1.1j_2 ...
[...]
checking for library containing tls_config_set_ca_mem... -ltls
checking for tls_config_set_ca_mem... yes
checking if tls_write takes 3 arguments... yes
[...]
  CC       ntpd-constraint.o
[...]
=> openntpd-6.2p3_8: running pre-pkg hook: 04-generate-runtime-deps ...
   SONAME: libm.so.6 <-> glibc>=2.32_1
   SONAME: libtls.so.20 <-> libtls>=3.2.4_1
   SONAME: libc.so.6 <-> glibc>=2.32_1
[...]
=> openntpd-6.2p3_8: running pre-pkg hook: 999-collected-rdeps ...
   ca-certificates>=0 glibc>=2.32_1 libtls>=3.2.4_1
[...]
```

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: constraints disabled in openntpd after the switch to openssl
  2021-03-09 12:20 [ISSUE] constraints disabled in openntpd after the switch to openssl 4ricci
@ 2021-03-10 11:34 ` leahneukirchen
  0 siblings, 0 replies; 2+ messages in thread
From: leahneukirchen @ 2021-03-10 11:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]

New comment by leahneukirchen on void-packages repository

https://github.com/void-linux/void-packages/issues/29347#issuecomment-795288180

Comment:
"for no reason" -> this only works since LibreSSL 3.2. ;)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-10 11:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09 12:20 [ISSUE] constraints disabled in openntpd after the switch to openssl 4ricci
2021-03-10 11:34 ` leahneukirchen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).