libbpf-tools: don't override cflags
Needed to pass gating. Related: rhbz#1965385
This commit is contained in:
parent
51409dda40
commit
142c3b9630
25
bcc-0.20.0-libbpf-tool-don-t-override-CFLAGS.patch
Normal file
25
bcc-0.20.0-libbpf-tool-don-t-override-CFLAGS.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From cfa24faa693ce05e2c1bcfbadc938a047272b7f6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jerome Marchand <jmarchan@redhat.com>
|
||||||
|
Date: Wed, 2 Jun 2021 14:23:20 +0200
|
||||||
|
Subject: [PATCH] libbpf-tool: don't override CFLAGS
|
||||||
|
|
||||||
|
---
|
||||||
|
libbpf-tools/Makefile | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/libbpf-tools/Makefile b/libbpf-tools/Makefile
|
||||||
|
index 92dcf5a5..0bf68e50 100644
|
||||||
|
--- a/libbpf-tools/Makefile
|
||||||
|
+++ b/libbpf-tools/Makefile
|
||||||
|
@@ -6,7 +6,7 @@ BPFTOOL ?= bin/bpftool
|
||||||
|
LIBBPF_SRC := $(abspath ../src/cc/libbpf/src)
|
||||||
|
LIBBPF_OBJ := $(abspath $(OUTPUT)/libbpf.a)
|
||||||
|
INCLUDES := -I$(OUTPUT) -I../src/cc/libbpf/include/uapi
|
||||||
|
-CFLAGS := -g -O2 -Wall
|
||||||
|
+CFLAGS ?= -g -O2 -Wall
|
||||||
|
INSTALL ?= install
|
||||||
|
prefix ?= /usr/local
|
||||||
|
ARCH := $(shell uname -m | sed 's/x86_64/x86/' | sed 's/aarch64/arm64/' | sed 's/ppc64le/powerpc/' | sed 's/mips.*/mips/')
|
||||||
|
--
|
||||||
|
2.31.1
|
||||||
|
|
6
bcc.spec
6
bcc.spec
@ -27,13 +27,14 @@
|
|||||||
|
|
||||||
Name: bcc
|
Name: bcc
|
||||||
Version: 0.20.0
|
Version: 0.20.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: BPF Compiler Collection (BCC)
|
Summary: BPF Compiler Collection (BCC)
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://github.com/iovisor/bcc
|
URL: https://github.com/iovisor/bcc
|
||||||
# Upstream now provides a release with the git submodule embedded in it
|
# Upstream now provides a release with the git submodule embedded in it
|
||||||
Source0: %{url}/releases/download/v%{version}/%{name}-src-with-submodule.tar.gz
|
Source0: %{url}/releases/download/v%{version}/%{name}-src-with-submodule.tar.gz
|
||||||
#Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
#Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
Patch0: %{name}-%{version}-libbpf-tool-don-t-override-CFLAGS.patch
|
||||||
|
|
||||||
# Arches will be included as upstream support is added and dependencies are
|
# Arches will be included as upstream support is added and dependencies are
|
||||||
# satisfied in the respective arches
|
# satisfied in the respective arches
|
||||||
@ -226,6 +227,9 @@ install libbpf-tools/tmp-install/bin/* %{buildroot}/%{_sbindir}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 02 2021 Jerome Marchand <jmarchan@redhat.com> - 0.20.0-2
|
||||||
|
- Don't override cflags for libbpf-tools
|
||||||
|
|
||||||
* Thu May 27 2021 Jerome Marchand <jmarchan@redhat.com> - 0.20.0-1
|
* Thu May 27 2021 Jerome Marchand <jmarchan@redhat.com> - 0.20.0-1
|
||||||
- Rebase to bcc 0.20.0
|
- Rebase to bcc 0.20.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user