[vlc-devel] [PATCH] Set GCRYPT_NO_DEPRECATED to suppress libgcrypt deprecation warnings

Maxim Bublis b at codemonkey.ru
Tue Dec 3 14:12:22 CET 2013


>
> Suppressing deprecated functions blindly is a bad idea, IMHO. If some
> future version of gcrypt deprecates a function VLC currently uses, this
> ends up breaking the build for no good reasons.
>
> >        have_libgcrypt="yes"
> >        GCRYPT_CFLAGS="`libgcrypt-config --cflags`"
> >        GCRYPT_LIBS="`libgcrypt-config --libs`"
>

Gcrypt deprecates functions by some reason, and VLC in that case should use
alternative functions, provided by libgcrypt.
They usually don't break ABI blindly until some time pass and surely they
provide alternative functions for deprecated one.
Currently there is no usage of deprecated libgcrypt functions in VLC core
and modules.
Note that future release of libgcrypt (1.6.0) will not be ABI compatible
with previous versions because of removal deprecated functions.

IMHO it is better to break during development process and fix usage of
deprecated functions early, then fixing it after real users note that
something gone wrong after updating libgcrypt library.

-- 
Maxim Bublis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20131203/b066595c/attachment.html>


More information about the vlc-devel mailing list