libsodium is missing xchacha20 support

Bug #1780563 reported by Pysiak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libsodium (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Ever since I tried I always found that Ubuntu libsodium-dev package is forcing --enable-minimal configure option. Sadly, this reduces the available library features, including support for xchacha20.

This forces people not to use the package and go for libsodium sources when you build such things like dnscrypt-wrapper [1]

I raised a question to libsodium developers [2] about the most sensible approach and the response was that other distributions are shipping without this configure option.

It very much makes sense for Ubuntu to keep a consistent feature set.

Therefore I'd like to request dropping --enable-minimal from libsodium.

Thank you,
Maciej

[1] https://github.com/Cofyc/dnscrypt-wrapper
[2] https://github.com/jedisct1/libsodium/issues/731

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
enable-minimal is not the default by upstreams configure
103 AC_ARG_ENABLE(minimal,
104 [AS_HELP_STRING(--enable-minimal,
105 [Only compile the minimum set of functions required for the high-level API])],
106 [
107 AS_IF([test "x$enableval" = "xyes"], [
108 enable_minimal="yes"
109 SODIUM_LIBRARY_MINIMAL_DEF="#define SODIUM_LIBRARY_MINIMAL 1"
110 AC_DEFINE([MINIMAL], [1], [Define for a minimal build, without deprecated functions and functions that high-level APIs depend on])
111 ], [
112 enable_minimal="no"
113 ])
114 ],
115 [
116 enable_minimal="no"
117 ])
118 AM_CONDITIONAL([MINIMAL], [test x$enable_minimal = xyes])
119 AC_SUBST(SODIUM_LIBRARY_MINIMAL_DEF

I wondered if /usr/lib/x86_64-linux-gnu/pkgconfig/libsodium.pc might carry something that you might have meant but it does not.

Nor do I find anything about minimal in the recent builds [1]
The same is true for all builds that I checked back until 16.04

I also checked the content of debian/* in Xenial->Disco and it is nowhere to be seen.

You said on [2] that you checked and we add this option, but right now I can't find that - sorry.
I beg your pardon, but could you outline where exactly we enable this in your opinion?

[1]: https://launchpadlibrarian.net/408070724/buildlog_ubuntu-disco-amd64.libsodium_1.0.17-1_BUILDING.txt.gz
[2]: https://github.com/jedisct1/libsodium/issues/731

Changed in libsodium (Ubuntu):
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.