Closed PJungkamp closed 1 week ago
I can work on this tomorrow, but I'd rather follow what Debian does:
override_dh_auto_configure:
dh_auto_configure -- --with-pgm --with-libsodium --with-norm=yes \
--with-libgssapi_krb5=yes --disable-Werror
Certainly we need to enable the flag to use libsodium
. About CurveZMQ, I'd say the best option is to provide an input flag as false
that can be overridden by those who prefer it.
About CurveZMQ, I'd say the best option is to provide an input flag as false that can be overridden by those who prefer it.
Since we depend on libsodium
anyway I don't think there is any harm in enabling CurveZMQ by default - even without a flag. Are there negative side effects when enabling CurveZMQ?
override_dh_auto_configure: dh_auto_configure -- --with-pgm --with-libsodium --with-norm=yes \ --with-libgssapi_krb5=yes --disable-Werror
Is OpenPGM or NORM even present in nixpkgs
? I don't think that we can enable these.
About CurveZMQ, I'd say the best option is to provide an input flag as false that can be overridden by those who prefer it.
Since we depend on
libsodium
anyway I don't think there is any harm in enabling CurveZMQ by default - even without a flag. Are there negative side effects when enabling CurveZMQ?
Sorry, I was confusing the CurveCP protocol, which is supported by enabling libsodium
,
with CurveZMQ, which is a CurveCP implementation but its a whole different library that depends on libzmq
.
There is no flag related to CurveZMQ on ZeroMQ. But we do need to enable the flag to build with CurveCP support.
override_dh_auto_configure: dh_auto_configure -- --with-pgm --with-libsodium --with-norm=yes \ --with-libgssapi_krb5=yes --disable-Werror
Is OpenPGM or NORM even present in
nixpkgs
? I don't think that we can enable these.
Yes, sure, if the flag doesn't apply to Nix then it will not be considered.
Closed by #338064.
(Why it wasn't closed automatically if it was linked?)
Describe the bug
The
zeromq
package providinglibzmq
is missing several features that other distributions enable by default.Some examples:
Features like
ENABLE_CURVE
andWITH_LIBSODIUM
should probably be enabled by default. I was expecting curve support from the package and even sawlibsodium
in the package's inputs, yet I ran into anENOTSUP
onzmq_curve_keypair
.libsodium
input: https://github.com/NixOS/nixpkgs/blob/31fb372aa93926f3e05401c7474cc560e197c765/pkgs/development/libraries/zeromq/4.x.nix#L7Expected behavior
An we should probably provide build options similar to the upstream RHEL packaging. See https://github.com/zeromq/libzmq/blob/1f4dd54f94009cb57bb68bfc856edc1c0bd3df06/packaging/redhat/zeromq.spec#L184-L193
Most should probably be enabled by default.
Notify maintainers
@fpletz
Add a :+1: reaction to issues you find important.