diff --git a/0001-add-StructType-suffix.patch b/0001-add-StructType-suffix.patch new file mode 100644 index 0000000000000000000000000000000000000000..69da5e752c92ee60b9f2bbe7bed0dc47e76ef3c4 --- /dev/null +++ b/0001-add-StructType-suffix.patch @@ -0,0 +1,34 @@ +From 811b53374c66c4ebfcc007d2c0d4ce180729f981 Mon Sep 17 00:00:00 2001 +From: tanyulong2021 +Date: Fri, 17 Jun 2022 14:54:39 +0800 +Subject: [PATCH] add StructType suffix + +--- + src/libs/bcc/src/cc/frontends/b/codegen_llvm.cc | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/libs/bcc/src/cc/frontends/b/codegen_llvm.cc b/src/libs/bcc/src/cc/frontends/b/codegen_llvm.cc +index 4ec94c7..96521b9 100644 +--- a/src/libs/bcc/src/cc/frontends/b/codegen_llvm.cc ++++ b/src/libs/bcc/src/cc/frontends/b/codegen_llvm.cc +@@ -1119,7 +1119,7 @@ StatusTuple CodegenLLVM::visit_table_decl_stmt_node(TableDeclStmtNode *n) { + StructType *key_stype, *leaf_stype; + TRY2(lookup_struct_type(n->key_type_, &key_stype)); + TRY2(lookup_struct_type(n->leaf_type_, &leaf_stype)); +- StructType *decl_struct = mod_->getTypeByName("_struct." + n->id_->name_); ++ llvm::StructType *decl_struct = StructType::mod_->getTypeByName("_struct." + n->id_->name_); + if (!decl_struct) + decl_struct = StructType::create(ctx(), "_struct." + n->id_->name_); + if (decl_struct->isOpaque()) +@@ -1182,7 +1182,7 @@ StatusTuple CodegenLLVM::visit_func_decl_stmt_node(FuncDeclStmtNode *n) { + StructType *stype; + //TRY2(lookup_struct_type(formal, &stype)); + auto var = (StructVariableDeclStmtNode *)formal; +- stype = mod_->getTypeByName("_struct." + var->struct_id_->name_); ++ llvm::stype = mod_->getTypeByName("_struct." + var->struct_id_->name_); + if (!stype) return mkstatus_(n, "could not find type %s", var->struct_id_->c_str()); + formals.push_back(PointerType::getUnqual(stype)); + } else { +-- +2.33.0 + diff --git a/polycube.spec b/polycube.spec index d669c1dfaee41f78633a743936e3d08a323d6dbe..33c4d81adf35c6e454997584f5680b5946d52759 100644 --- a/polycube.spec +++ b/polycube.spec @@ -2,7 +2,7 @@ Name: polycube Version: 0.9.0 -Release: 1 +Release: 2 Summary: eBPF/XDP-based software framework for fast network services running in the Linux kernel. License: Apache 2.0 URL: https://github.com/polycube-network/polycube.git @@ -10,7 +10,7 @@ URL: https://github.com/polycube-network/polycube.git # provides compiler and other compilation tools BuildRequires: cmake #  yum groupinstall "Development Tools" -BuildRequires: asciidoc byacc ctags diffstat gcc-gfortran gdb +BuildRequires: asciidoc byacc ctags diffstat gcc-gfortran BuildRequires: intltool ltrace patchutils perl-Fedora-VSP BuildRequires: pesign source-highlight systemtap valgrind-devel BuildRequires: openEuler-rpm-config perl-generators @@ -57,6 +57,7 @@ BuildRequires: libtins pistache libyang Source0: https://github.com/polycube-network/polycube/archive/%{name}-%{version}.tar.gz Patch0: 0001-Bcc-static-linked-at-compile-time-for-Polycubed-alre.patch +Patch1: 0001-add-StructType-suffix.patch %description %{summary} @@ -165,6 +166,12 @@ mkdir -p %{buildroot}%{_var}/log/polycube %{_prefix}/local/include/* %changelog +* Fri Jun 17 2022 tanyulong - 0.9.0-2 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:Delete unnecessary gdb from BuildRequires + * TUE Oct 20 2020 liuxin - 0.9.0-1 - Type:bugfix - ID:NA