aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Kiraly <laszlo.kiraly@est.tech>2022-04-06 16:25:32 +0200
committerDamjan Marion <dmarion@me.com>2022-04-08 16:16:19 +0000
commitbf91b48cbba65336de2043028f54b4b813325f3d (patch)
tree62d6c2c7cff9a8613ae7eabcccf4ce3f782c1f9d
parent1c8c6d302af494c963842de06910d3c1c8187e42 (diff)
build: opensuse: remove nasm, change to clang
Type: make Signed-off-by: Laszlo Kiraly <laszlo.kiraly@est.tech> Change-Id: I3951be5be95a7fb76f54c4ce0daab0748cb8419c
-rw-r--r--Makefile2
-rw-r--r--extras/rpm/opensuse/Dockerfile2
-rw-r--r--extras/rpm/opensuse/vpp.spec9
3 files changed, 6 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 87ab40f2207..affcc497512 100644
--- a/Makefile
+++ b/Makefile
@@ -157,7 +157,7 @@ RPM_DEPENDS_DEBUG += yum-plugin-auto-update-debug-info
RPM_SUSE_BUILDTOOLS_DEPS = autoconf automake ccache check-devel chrpath
RPM_SUSE_BUILDTOOLS_DEPS += clang cmake indent libtool make ninja python3-ply
-RPM_SUSE_DEVEL_DEPS = glibc-devel-static libnuma-devel libelf-devel
+RPM_SUSE_DEVEL_DEPS = glibc-devel-static libnuma-devel libelf-devel nasm
RPM_SUSE_DEVEL_DEPS += libopenssl-devel openssl-devel mbedtls-devel libuuid-devel
RPM_SUSE_PYTHON_DEPS = python-devel python3-devel python-pip python3-pip
diff --git a/extras/rpm/opensuse/Dockerfile b/extras/rpm/opensuse/Dockerfile
index 032c5d139ba..47ca27134a4 100644
--- a/extras/rpm/opensuse/Dockerfile
+++ b/extras/rpm/opensuse/Dockerfile
@@ -12,4 +12,4 @@ RUN UNATTENDED=y make install-dep
RUN ln -s /usr/bin/cmake /usr/bin/cmake3
RUN UNATTENDED=y make install-ext-deps
RUN make pkg-rpm
-CMD ["/bin/bash"] \ No newline at end of file
+CMD ["/bin/bash"]
diff --git a/extras/rpm/opensuse/vpp.spec b/extras/rpm/opensuse/vpp.spec
index 403d25bc051..b562eac67ba 100644
--- a/extras/rpm/opensuse/vpp.spec
+++ b/extras/rpm/opensuse/vpp.spec
@@ -3,6 +3,8 @@
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
+# Copyright (c) 2022 Nordix Foundation.
+#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
@@ -12,10 +14,6 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
-#
-
-
%define _vpp_build_dir %{buildroot}/../../BUILD/vpp-%{version}/build-root
%define _vpp_install_dir %{_vpp_build_dir}/install-vpp-native/
%define _vpp_plugins_lib_dir %{_vpp_install_dir}/vpp/lib64
@@ -34,6 +32,7 @@ BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: ccache
+BuildRequires: clang
BuildRequires: check-devel
BuildRequires: chrpath
BuildRequires: distribution-release
@@ -141,7 +140,7 @@ This package contains the python bindings for the vpp api
export VPP_BUILD_USER=suse
export VPP_BUILD_HOST=SUSE
-make -C build-root V=1 CC=gcc-7 CXX=g++-7 PLATFORM=vpp TAG=vpp install-packages
+make -C build-root V=1 PLATFORM=vpp TAG=vpp install-packages
cd %{_vpp_build_dir}/../src/vpp-api/python && %{py3_build}