forked from pool/dwarves
Accepting request 906855 from home:michals
- Use system libbpf when available (bsc#1188420 bsc#1188419 jsc#SLE-17288 jsc#SLE-18805). OBS-URL: https://build.opensuse.org/request/show/906855 OBS-URL: https://build.opensuse.org/package/show/devel:tools/dwarves?expand=0&rev=71
This commit is contained in:
parent
14c520a143
commit
9546f2bd72
1
_service
1
_service
@ -5,6 +5,7 @@
|
||||
<param name="revision">master</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
<param name="versionformat">@PARENT_TAG@+git@TAG_OFFSET@.%h</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="filename">dwarves</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">git://git.kernel.org/pub/scm/devel/pahole/pahole</param>
|
||||
<param name="changesrevision">1ef87b26fd268b529b3568f3625d9eb10753a1a8</param></service></servicedata>
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 17 15:48:30 UTC 2021 - Michal Suchanek <msuchanek@suse.com>
|
||||
|
||||
- Use system libbpf when available (bsc#1188420 bsc#1188419 jsc#SLE-17288 jsc#SLE-18805).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 15 20:04:36 UTC 2021 - msuchanek@suse.com
|
||||
|
||||
|
15
dwarves.spec
15
dwarves.spec
@ -16,6 +16,10 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150300
|
||||
%define have_libbpf 1
|
||||
%endif
|
||||
|
||||
Name: dwarves
|
||||
Version: 1.21+git175.1ef87b2
|
||||
Release: 0
|
||||
@ -34,7 +38,9 @@ BuildRequires: cmake
|
||||
BuildRequires: libdw-devel >= 0.171
|
||||
BuildRequires: libelf-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(libbpf)
|
||||
%if 0%{?have_libbpf}
|
||||
BuildRequires: pkgconfig(libbpf) >= 0.4.0
|
||||
%endif
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
# Also known by its most prominent tool
|
||||
Provides: pahole = %version-%release
|
||||
@ -93,7 +99,12 @@ for processing DWARF, a debugging data format for ELF files.
|
||||
sv="$PWD/lib.v"
|
||||
ver=$(echo %version | cut -d+ -f1)
|
||||
echo "DWARVES_$ver{ global: *; };" >"$sv"
|
||||
%cmake -DCMAKE_SHARED_LINKER_FLAGS:STRING="-Wl,--version-script=$sv"
|
||||
%cmake -DCMAKE_SHARED_LINKER_FLAGS:STRING="-Wl,--version-script=$sv" \
|
||||
%if 0%{?have_libbpf}
|
||||
-DLIBBPF_EMBEDDED=OFF
|
||||
%else
|
||||
|
||||
%endif
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
|
Loading…
Reference in New Issue
Block a user