Comments
Patch
@@ -106,7 +106,10 @@ do_configure () {
perl ./Configure ${EXTRA_OECONF} shared --prefix=$useprefix --openssldir=${libdir}/ssl $target
eval "${@base_contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "/_FILE_OFFSET_BITS/,/#endif/d" ${S}/crypto/bio/bss_file.c', d)}"
- eval "${@base_contains('DISTRO_FEATURES', 'ipv6', '', 'sed -i -e "/AF_INET6/,/break/d" ${S}/crypto/bio/bss_dgram.c', d)}"
+ # inject ipv6 specific code if ipv6 is enabled on host
+ if [ `lsmod | grep -q ipv6; echo $?` -eq 0 ]; then
+ eval "${@base_contains('DISTRO_FEATURES', 'ipv6', '', 'sed -i -e "/AF_INET6/,/break/d" ${S}/crypto/bio/bss_dgram.c', d)}"
+ fi
}
do_compile () {
This patch fixes an issue where some ipv6 code was injected into the bss_dgram.c regardless of the ipv6 availability of the host. The code is now injected only if the host is ipv6 enabled. Signed-off-by: Apelete Seketeli <apelete@seketeli.net> --- recipes/openssl/openssl.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)