Tool/software: Linux
Hi,
We are currently using Krogoth build (Yocto). We have to update openssl from 1.0.2h to 1.0.2o. For this, we have copied the recipe for openssl-1.0.2o from Rocko build (Yocto). When we are trying to compile we are getting the error/s as described below.
$ bitbake openssl
NOTE: Started PRServer with DBfile: /home/einfochips/project/tms/SEM3_UCM/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 45721, PID: 13109
Loading cache: 100% |####################################################################################################################################| ETA: 00:00:00
Loaded 2859 entries from dependency cache.
WARNING: /home/einfochips/project/tms/SEM3_UCM/sources/oe-core/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb: Exception during build_dependencies for do_install-:--:--
WARNING: /home/einfochips/project/tms/SEM3_UCM/sources/oe-core/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb: Error during finalise of /home/einfochips/project/tms/SEM3_UCM/sources/oe-core/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb
ERROR: ExpansionError during parsing /home/einfochips/project/tms/SEM3_UCM/sources/oe-core/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb: Failure expanding variable do_install, expression was # Create /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image//usr to fix parallel issues
mkdir -p /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image//usr/
oe_runmake INSTALL_PREFIX="/home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image" MANDIR="/usr/share/man" install
oe_libinstall -so libcrypto /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/lib
oe_libinstall -so libssl /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/lib
install -d /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/include
cp --dereference -R include/openssl /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/include
install -Dm 0755 /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/openssl-c_rehash.sh /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/bin/c_rehash
sed -i -e 's,/etc/openssl,/etc/ssl,g' /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/bin/c_rehash
oe_multilib_header openssl/opensslconf.h
if [ "${@bb.utils.filter('PACKAGECONFIG', 'perl', d)}" ]; then
sed -i -e '1s,.*,#!/usr/bin/env perl,' /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/lib/ssl/misc/CA.pl
sed -i -e '1s,.*,#!/usr/bin/env perl,' /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/lib/ssl/misc/tsget
else
rm -f /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/lib/ssl/misc/CA.pl /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/lib/ssl/misc/tsget
fi
# Create SSL structure
install -d /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/etc/ssl/
mv /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/lib/ssl/openssl.cnf \
/home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/lib/ssl/certs \
/home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/lib/ssl/private \
\
/home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/etc/ssl/
ln -sf /etc/ssl/certs /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/lib/ssl/certs
ln -sf /etc/ssl/private /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/lib/ssl/private
ln -sf /etc/ssl/openssl.cnf /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/lib/ssl/openssl.cnf
# Rename man pages to prefix openssl10-*
for f in `find /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/share/man -type f`; do
mv $f $(dirname $f)/openssl10-$(basename $f)
done
for f in `find /home/einfochips/project/tms/SEM3_UCM/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2o-r0.arago0.arago0/image/usr/share/man -type l`; do
ln_f=`readlink $f`
rm -f $f
ln -s openssl10-$ln_f $(dirname $f)/openssl10-$(basename $f)
done
which triggered exception AttributeError: 'module' object has no attribute 'filter'
Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
We have followed this link as a reference for updating to openssl-1.0.2o version and resolving its relevant dependencies. Please help.
Regards,
Sunny.