Hello community,

here is the log from the commit of package bcc for openSUSE:Factory checked in 
at 2017-03-03 17:55:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/bcc (Old)
 and      /work/SRC/openSUSE:Factory/.bcc.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bcc"

Fri Mar  3 17:55:01 2017 rev:4 rq:461872 version:0.2.0+git1488325605.4d0d430

Changes:
--------
--- /work/SRC/openSUSE:Factory/bcc/bcc.changes  2016-12-06 14:27:53.000000000 
+0100
+++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes     2017-03-03 
17:55:02.428090760 +0100
@@ -1,0 +2,56 @@
+Thu Mar  2 09:26:48 UTC 2017 - [email protected]
+
+- Add remove-isystem.patch to unconditionally removing -isystem,
+  looks like the gcc check is broken.
+- Add armv7.patch to disable __uint128_t usage which does not
+  exist on ARMv7.
+- Always use clang as C compiler, note that the build system will
+  always use clang++ ad CXX compiler if it finds it.
+
+-------------------------------------------------------------------
+Thu Mar  2 02:56:26 UTC 2017 - [email protected]
+
+- Update to 0.2.0+git1488325605.4d0d430
+  + Fix long running test_debuginfo and python3 fix
+  + Make perf ring buffer size configurable
+  + docs: Update eBPF features list
+  + Improve matching of file-backed memory mappings
+  + Fix symbol resolution by name (SymbolCache.resolve_name)
+  + cc: Resolve symbols from external debuginfo
+  + cc: Correctly treat PIE files as shared objects for symbols
+  + Migrate to new symbols resolution API
+  + Simplify BCC symbol resolution API
+  + trace, argdist: Treat small USDT arguments correctly
+  + Support base + index * scale addressing for USDT arguments
+  + cc: Fix SEGV when there is no build-id section
+  + syscount: Summarize syscall counts and latencies
+  + u* tools: PHP support
+  + bcc: add support for lpm trie map type
+  + cc: Support for __data_loc tracepoint fields
+  + Fix python2/3 incompatible percpu helpers
+  + fix iteration over CPUs
+  + Fixes for LLVM 4.0 and python3
+  + Update [virtual_]bpf.h to 4.10
+  + add bpf_obj_pin/bpf_obj_get to pin/get bpf objects
+  + uobjnew: Attach uprobe only to the requested process
+  + uflow: Trace method execution flow
+  + ustat: Activity stats from high-level languages
+  + ugc: Monitor GC events in high-level languages
+  + ucalls: Summarize method calls with USDT
+  + Example of using USDT
+  + Add USDT support to C++ API
+  + Improve linear histogram limit, and improve error message
+  + add runqlen tool
+  + docs: Update eBPF features list
+  + Improve C++ API perf buffer polling
+  + add support for bpf map flags
+  + Fix bug of missing to install simple_tc.py
+  + Add support for aarch64
+  + Avoid unexpected log message on BPF program load error
+  + Add lru_hash/lru_percpu_hash to python/lua
+  + bcc: add lru_hash and lru_percpu_hash map types
+- Remove the clang workaround since llvm 3.9.1 supports gcc c++11
+  abi tag. (bsc#935533) 
+- Enable PowerPC64 and PowerPC64le build
+
+-------------------------------------------------------------------

Old:
----
  bcc-v0.2.0+git1480569532.5647de0.tar.xz

New:
----
  armv7.patch
  bcc-v0.2.0+git1488325605.4d0d430.tar.xz
  remove-isystem.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ bcc.spec ++++++
--- /var/tmp/diff_new_pack.mIHFVL/_old  2017-03-03 17:55:03.167986251 +0100
+++ /var/tmp/diff_new_pack.mIHFVL/_new  2017-03-03 17:55:03.167986251 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package bcc
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,16 +17,23 @@
 
 
 %define libversion 0.2.0
+%ifarch ppc64 aarch64 ppc64le
+%{!?with_lua: %global with_lua 0}
+%else
+%{!?with_lua: %global with_lua 1}
+%endif
 
 Name:           bcc
-Version:        0.2.0+git1480569532.5647de0
+Version:        0.2.0+git1488325605.4d0d430
 Release:        0
 Summary:        BPF Compiler Collection (BCC)
 License:        Apache-2.0
 Group:          Development/Languages
 Url:            https://github.com/iovisor/bcc
 Source:         %{name}-v%{version}.tar.xz
-ExclusiveArch:  x86_64
+Patch1:         remove-isystem.patch
+Patch2:         armv7.patch
+ExclusiveArch:  armv7hl x86_64 ppc64 ppc64le
 BuildRequires:  bison
 BuildRequires:  cmake >= 2.8.7
 BuildRequires:  flex
@@ -35,11 +42,15 @@
 BuildRequires:  llvm-devel >= 3.7.0
 %if 0%{?suse_version} > 1320
 BuildRequires:  llvm-gold
+%if %{with_lua}
 BuildRequires:  lua51-luajit-devel
+%endif
 %else
 BuildRequires:  libstdc++-devel
+%if %{with_lua}
 BuildRequires:  luajit-devel
 %endif
+%endif
 BuildRequires:  pkg-config
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
@@ -87,6 +98,7 @@
 %description -n python3-bcc
 Python3 bindings for BPF Compiler Collection (BCC)
 
+%if %{with_lua}
 %package lua
 Summary:        Lua interpreter for BPF Compiler Collection
 Group:          Development/Languages
@@ -96,6 +108,7 @@
 
 %description lua
 Lua interpreter for BPF Compiler Collection (BCC)
+%endif
 
 %package examples
 Summary:        Examples for BPF Compiler Collection (BCC)
@@ -128,29 +141,28 @@
 
 %prep
 %setup -D -n %{name}-v%{version}
+%patch1 -p1
+%patch2 -p1
 
 %build
 # Prevent the cpp examples from installation
 sed -i "/add_subdirectory(cpp)/d" examples/CMakeLists.txt
 
-# Remove CXX_ISYSTEM_DIRS since we use clang++
-sed -i "s,-Wall \${CXX_ISYSTEM_DIRS},-Wall," CMakeLists.txt
-
 export LD_LIBRARY_PATH="%{_builddir}/usr/lib64"
 export PATH="%{_builddir}/usr/bin":$PATH
 
-# To work around the c++11 tag support (bsc#935533)
-export CC=/usr/bin/clang
-export CXX=/usr/bin/clang++
-
 mkdir build
 pushd build
 CFLAGS=$RPM_OPT_FLAGS CXXFLAGS=$RPM_OPT_FLAGS cmake \
+       -DCMAKE_C_COMPILER=/usr/bin/clang \
+       -DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
        -DREVISION_LAST=%{libversion} \
        -DREVISION=%{libversion} \
        -DCMAKE_INSTALL_PREFIX=/usr \
+%if %{with_lua}
        -DLUAJIT_INCLUDE_DIR=`pkg-config --variable=includedir luajit` \
        -DLUAJIT_LIBRARY=%{_libdir}/lib`pkg-config --variable=libname 
luajit`.so \
+%endif
        ..
 make %{?_smp_mflags} VERBOSE=1
 popd
@@ -186,8 +198,10 @@
 %files -n python3-bcc
 %{python3_sitelib}/bcc*
 
+%if %{with_lua}
 %files lua
 %{_bindir}/bcc-lua
+%endif
 
 %files examples
 %dir %{_datadir}/bcc/

++++++ armv7.patch ++++++
Index: bcc-v0.2.0+git1488325605.4d0d430/src/cc/frontends/b/type_helper.h
===================================================================
--- bcc-v0.2.0+git1488325605.4d0d430.orig/src/cc/frontends/b/type_helper.h
+++ bcc-v0.2.0+git1488325605.4d0d430/src/cc/frontends/b/type_helper.h
@@ -36,7 +36,9 @@ static inline size_t enum_to_size(const
     case UINT16_T: return sizeof(uint16_t);
     case UINT32_T: return sizeof(uint32_t);
     case UINT64_T: return sizeof(uint64_t);
+#ifndef __ARM_ARCH_7A__
     case UINT128_T: return sizeof(__uint128_t);
+#endif
     default:
       return 0;
   }
++++++ bcc-v0.2.0+git1480569532.5647de0.tar.xz -> 
bcc-v0.2.0+git1488325605.4d0d430.tar.xz ++++++
++++ 17705 lines of diff (skipped)

++++++ remove-isystem.patch ++++++
Index: bcc-v0.2.0+git1488325605.4d0d430/CMakeLists.txt
===================================================================
--- bcc-v0.2.0+git1488325605.4d0d430.orig/CMakeLists.txt
+++ bcc-v0.2.0+git1488325605.4d0d430/CMakeLists.txt
@@ -51,18 +51,6 @@ find_package(LibElf REQUIRED)
 
 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
 
-# As reported in issue #735, GCC 6 has some behavioral problems when
-# dealing with -isystem. Hence, skip the warning optimization
-# altogether on that compiler.
-execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion OUTPUT_VARIABLE 
GCC_VERSION)
-if (GCC_VERSION VERSION_LESS 6.0)
-  # iterate over all available directories in LLVM_INCLUDE_DIRS to
-  # generate a correctly tokenized list of parameters
-  foreach(ONE_LLVM_INCLUDE_DIR ${LLVM_INCLUDE_DIRS})
-    set(CXX_ISYSTEM_DIRS "${CXX_ISYSTEM_DIRS} -isystem 
${ONE_LLVM_INCLUDE_DIR}")
-  endforeach()
-endif()
-
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall ${CXX_ISYSTEM_DIRS}")
 endif()
 

Reply via email to