Hi all,
I downloaded the opensaf-5.21.06 source code, placed it on a VM running RHEL8
and found that the 'make rpm' is failing with respect to python.
With RHEL 8, python3 is now the default version and I encountered the following
error:
mkdir -p `pwd`/rpms
mkdir -p `pwd`/rpms/{BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp}
cp ./opensaf.spec `pwd`/rpms/SPECS
cp ./opensaf-5.21.06.tar.gz `pwd`/rpms/SOURCES
rpmbuild -bb --clean --rmspec --rmsource \
--define "_topdir `pwd`/rpms" --define "_tmppath `pwd`/rpms/tmp" \
`pwd`/rpms/SPECS/opensaf.spec
error: attempt to use unversioned python, define %__python to /usr/bin/python2
or /usr/bin/python3 explicitly
error: line 1556: %{python_sitelib}/pyosaf/*.py
make[1]: *** [Makefile:26843: rpm] Error 1
make[1]: Leaving directory '/root/osaf-build/opensaf-5.21.06'
make: *** [makefile:8: all] Error 2
Does this version of OpenSAF not support python3?
Here's some of the output from the ./configure command:
# ./configure --enable-python --with-rpm-release=1
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
...
OpenSAF Build Configuration Summary
=======================================================
Version: 5.21.06
Release: 1
Installation Directories:
prefix: /usr/local
exec_prefix: ${prefix}
bindir: ${exec_prefix}/bin
sbindir: ${exec_prefix}/sbin
datadir: ${datarootdir}
sysconfdir: /etc
docdir: ${datarootdir}/doc/${PACKAGE_TARNAME}
localstatedir: /var
includedir: ${prefix}/include
libdir: ${exec_prefix}/lib
Compiling Options:
C Compiler: gcc
C++ Compiler: g++
CPPFLAGS:
CFLAGS: -g -O2
CXXFLAGS: -g -O2
OSAF_HARDEN_FLAGS: -D_FORTIFY_SOURCE=2 -fstack-protector --param
ssp-buffer-size=4 -fPIE -pie -zrelro -znow
LDFLAGS:
Enable RPATH: yes
Using VPATH: no
Dependencies Options:
XML2_CFLAGS: -I/usr/include/libxml2
XML2_LIBS: -lxml2
OpenSAF Options:
Enable Python AIS Bindings: yes
Enable Java AIS Mapping: no
Enable AM4J: no
Enable PLM support: no
Enable TIPC transport: no
Enable systemd: yes
=======================================================
Here's the full output from the make rpm:
# make rpm
make dist-gzip am__post_remove_distdir='@:'
make[1]: Entering directory '/root/osaf-build/opensaf-5.21.06'
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
echo '#define PREFIX "/usr/local"'; \
echo '#define EXEC_PREFIX "/usr/local"'; \
echo '#define BINDIR "/usr/local/bin"'; \
echo '#define SBINDIR "/usr/local/sbin"'; \
echo '#define LIBEXECDIR "/usr/local/libexec"'; \
echo '#define DATAROOTDIR "/usr/local/share"'; \
echo '#define DATADIR "/usr/local/share"'; \
echo '#define SYSCONFDIR "/etc"'; \
echo '#define SHAREDSTATEDIR "/usr/local/com"'; \
echo '#define LOCALSTATEDIR "/var"'; \
echo '#define INCLUDEDIR "/usr/local/include"'; \
echo '#define OLDINCLUDEDIR "/usr/include"'; \
echo '#define DOCDIR "/usr/local/share/doc/opensaf-5.21.06"'; \
echo '#define INFODIR "/usr/local/share/info"'; \
echo '#define HTMLDIR "/usr/local/share/doc/opensaf-5.21.06"'; \
echo '#define DVIDIR "/usr/local/share/doc/opensaf-5.21.06"'; \
echo '#define PDFDIR "/usr/local/share/doc/opensaf-5.21.06"'; \
echo '#define PSDIR "/usr/local/share/doc/opensaf-5.21.06"'; \
echo '#define LIBDIR "/usr/local/lib"'; \
echo '#define LISPDIR ""'; \
echo '#define LOCALEDIR "/usr/local/share/locale"'; \
echo '#define MANDIR "/usr/local/share/man"'; \
echo '#define MANEXT ""'; \
echo '#define PKGDATADIR "/usr/local/share/opensaf"'; \
echo '#define PKGINCLUDEDIR "/usr/local/include/opensaf"'; \
echo '#define PKGLIBDIR "/usr/local/lib/opensaf"'; \
echo '#define PKGLIBEXECDIR "/usr/local/libexec/opensaf"'; \
echo '#define PKGSYSCONFDIR "/etc/opensaf"'; \
echo '#define PKGLOCALSTATEDIR "/var/lib/opensaf"'; \
echo '#define PKGPIDDIR "/var/run/opensaf"'; \
echo '#define PKGLOGDIR "/var/log/opensaf"'; \
echo '#define PKGCONFDIR "/usr/local/lib/pkgconfig"'; \
echo '#define PKGIMMXMLDIR "/usr/local/share/opensaf/immxml"'; \
echo '#define PKGIMMXMLSVCDIR "/usr/local/share/opensaf/immxml/services"'; \
echo '#define PKGCLCCLIDIR "/usr/local/lib/opensaf/clc-cli"'; \
echo '#define PKGCLMSCRIPTDIR "/usr/local/lib/opensaf/clm-scripts"'; \
echo '#define JAVADIR "/usr/local/share/java"'; \
echo '#define JAVADOCDIR "/usr/local/share/javadoc"'; \
echo '#define LSBINITDIR "/etc/init.d"'; \
echo '#define LOCKDIR "/var/lock/subsys"'; \
} | sed '/""/d' > src/osaf/configmake.h-t
mv src/osaf/configmake.h-t src/osaf/configmake.h
sed -e 's/\(.*\)/\L\1/' osafdir.conf-t > osafdir.conf
mv src/osaf/ssl_libs.cc-t src/osaf/ssl_libs.cc
make distdir-am
make[2]: Entering directory '/root/osaf-build/opensaf-5.21.06'
if test -d "opensaf-5.21.06"; then find "opensaf-5.21.06" -type d ! -perm -200
-exec chmod u+w {} ';' && rm -rf "opensaf-5.21.06" || { sleep 5 && rm -rf
"opensaf-5.21.06"; }; else :; fi
test -d "opensaf-5.21.06" || mkdir "opensaf-5.21.06"
test -n "" \
|| find "opensaf-5.21.06" -type d ! -perm -755 \
-exec chmod u+rwx,go+rx {} \; -o \
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
! -type d ! -perm -444 -exec /bin/sh
/root/osaf-build/opensaf-5.21.06/install-sh -c -m a+r {} {} \; \
|| chmod -R a+r "opensaf-5.21.06"
make[2]: Leaving directory '/root/osaf-build/opensaf-5.21.06'
tardir=opensaf-5.21.06 && ${TAR-tar} chof - "$tardir" | eval GZIP= gzip --best
-c >opensaf-5.21.06.tar.gz
make[1]: Leaving directory '/root/osaf-build/opensaf-5.21.06'
if test -d "opensaf-5.21.06"; then find "opensaf-5.21.06" -type d ! -perm -200
-exec chmod u+w {} ';' && rm -rf "opensaf-5.21.06" || { sleep 5 && rm -rf
"opensaf-5.21.06"; }; else :; fi
mkdir -p `pwd`/rpms
mkdir -p `pwd`/rpms/{BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp}
cp ./opensaf.spec `pwd`/rpms/SPECS
cp ./opensaf-5.21.06.tar.gz `pwd`/rpms/SOURCES
rpmbuild -bb --clean --rmspec --rmsource \
--define "_topdir `pwd`/rpms" --define "_tmppath `pwd`/rpms/tmp" \
`pwd`/rpms/SPECS/opensaf.spec
/bin/sh: rpmbuild: command not found
make: *** [Makefile:26843: rpm] Error 127
#
Regards,
David
Notice: This e-mail together with any attachments may contain information of
Ribbon Communications Inc. and its Affiliates that is confidential and/or
proprietary for the sole use of the intended recipient. Any review, disclosure,
reliance or distribution by others or forwarding without express permission is
strictly prohibited. If you are not the intended recipient, please notify the
sender immediately and then delete all copies, including any attachments.
_______________________________________________
Opensaf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-users