pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ffmpeg* openssl/gnutls options?



In ffmpeg* there are options for either openssl or gnutls.  It appears,
however, that one may enable both at the same time (if "gnutls" is
enabled, both "gnutls" and "openssl" appear in the output of 'make
show-options').

In ffmpeg* prior to ffmpeg4 this situation seems to have been dealt with
in the configure script or some such manner.  Looking at the output
following 'make configure' in ffmpeg3 seems to indicate both are enabled.
"External libraries:" includes both "gnutls" and "openssl".  "Enabled
protocols:" shows "tls_gnutls".

In ffmpeg4 it is now explicitly an error to have both "gnutls" and
"openssl" enabled at the same time.  If one has:

PKG_OPTIONS.ffmpeg4+=gnutls

it will fail during the configure phase with:

===> Configuring for ffmpeg4-4.0.2nb1
mkdir /tmp/pkgsrc/multimedia/ffmpeg4/work/ffmpeg-4.0.2/tmp
=> Generating pkg-config file for builtin expat package.
=> Generating pkg-config files for builtin xz package.
=> Replacing Perl interpreter in doc/texi2pod.pl.
=> Replacing sh interpreter in configure ffbuild/version.sh.
INFO: [replace-interpreter] Nothing changed in configure.
INFO: [replace-interpreter] Nothing changed in ffbuild/version.sh.
tput: unknown terminal "rxvt-unicode-256color"
tput: unknown terminal "rxvt-unicode-256color"
GnuTLS and OpenSSL must not be enabled at the same time.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user%ffmpeg.org@localhost mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
*** Error code 1

Stop.
make[1]: stopped in /x/pkgsrc/multimedia/ffmpeg4
*** Error code 1

Stop.
make: stopped in /x/pkgsrc/multimedia/ffmpeg4


Thus, if one wishes to use "gnutls" on ffmpeg4 one must also explictly
disable OpenSSL with "-openssl".

I know there are packages with "radio-button" type options where the
enabling of one option implies the disabling of others (OPTIONS_GROUP?)
Perhaps ffmpeg4 could be changed to have this arrangement for the
selection of "openssl" (default) vs "gnutls"?

Although the earlier ffmpeg* packages don't complain, is having both
openssl and gnutls enabled simultaneously really appropriate for them?

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index