Skip to content

Commit

Permalink
Merge pull request iovisor#174 from iovisor/bblanco_dev
Browse files Browse the repository at this point in the history
Update tag to v0.1.6, include finall llvm 3.7.0 release
  • Loading branch information
yonghong-song committed Sep 2, 2015
2 parents 49408b4 + c234344 commit fb18027
Show file tree
Hide file tree
Showing 16 changed files with 93 additions and 39 deletions.
8 changes: 4 additions & 4 deletions SPECS/Dockerfile.el6
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ WORKDIR /root
RUN mkdir -p {BUILD,RPMS,SOURCES,SPECS,SRPMS}
RUN cd SOURCES && wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
RUN cd SOURCES && wget https://ftp.gnu.org/gnu/gcc/gcc-5.1.0/gcc-5.1.0.tar.gz
RUN cd SOURCES && wget http://llvm.org/pre-releases/3.7.0/rc3/llvm-3.7.0rc3.src.tar.xz
RUN cd SOURCES && wget http://llvm.org/pre-releases/3.7.0/rc3/cfe-3.7.0rc3.src.tar.xz
RUN cd SOURCES && wget https://github.com/iovisor/bcc/archive/v0.1.5.tar.gz
RUN cd SOURCES && wget http://llvm.org/releases/3.7.0/llvm-3.7.0.src.tar.xz
RUN cd SOURCES && wget http://llvm.org/releases/3.7.0/cfe-3.7.0.src.tar.xz
RUN cd SOURCES && wget https://github.com/iovisor/bcc/archive/v0.1.6.tar.gz

RUN cd SPECS && wget https://raw.githubusercontent.com/iovisor/bcc/v0.1.5/SPECS/bcc.el6.spec
RUN cd SPECS && wget https://raw.githubusercontent.com/iovisor/bcc/v0.1.6/SPECS/bcc.el6.spec
#COPY SPECS/bcc.el6.spec SPECS/

RUN rpmbuild --define "_topdir `pwd`" -ba SPECS/bcc.el6.spec
4 changes: 2 additions & 2 deletions SPECS/Dockerfile.el6.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ WORKDIR /root
RUN mkdir -p {BUILD,RPMS,SOURCES,SPECS,SRPMS}
RUN cd SOURCES && wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
RUN cd SOURCES && wget https://ftp.gnu.org/gnu/gcc/gcc-5.1.0/gcc-5.1.0.tar.gz
RUN cd SOURCES && wget http://llvm.org/pre-releases/3.7.0/rc3/llvm-3.7.0rc3.src.tar.xz
RUN cd SOURCES && wget http://llvm.org/pre-releases/3.7.0/rc3/cfe-3.7.0rc3.src.tar.xz
RUN cd SOURCES && wget http://llvm.org/releases/3.7.0/llvm-3.7.0.src.tar.xz
RUN cd SOURCES && wget http://llvm.org/releases/3.7.0/cfe-3.7.0.src.tar.xz
RUN cd SOURCES && wget https://github.com/iovisor/bcc/archive/v@[email protected]

RUN cd SPECS && wget https://raw.githubusercontent.com/iovisor/bcc/v@REVISION_LAST@/SPECS/bcc.el6.spec
Expand Down
8 changes: 4 additions & 4 deletions SPECS/Dockerfile.el7
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ RUN yum -y install bison cmake flex gcc gcc-c++ make python2-devel rpm-build wge

WORKDIR /root
RUN mkdir -p {BUILD,RPMS,SOURCES,SPECS,SRPMS}
RUN cd SOURCES && wget http://llvm.org/pre-releases/3.7.0/rc3/llvm-3.7.0rc3.src.tar.xz
RUN cd SOURCES && wget http://llvm.org/pre-releases/3.7.0/rc3/cfe-3.7.0rc3.src.tar.xz
RUN cd SOURCES && wget https://github.com/iovisor/bcc/archive/v0.1.5.tar.gz
RUN cd SOURCES && wget http://llvm.org/releases/3.7.0/llvm-3.7.0.src.tar.xz
RUN cd SOURCES && wget http://llvm.org/releases/3.7.0/cfe-3.7.0.src.tar.xz
RUN cd SOURCES && wget https://github.com/iovisor/bcc/archive/v0.1.6.tar.gz

RUN cd SPECS && wget https://raw.githubusercontent.com/iovisor/bcc/v0.1.5/SPECS/bcc.el7.spec
RUN cd SPECS && wget https://raw.githubusercontent.com/iovisor/bcc/v0.1.6/SPECS/bcc.el7.spec
#COPY SPECS/bcc.el7.spec SPECS/

RUN rpmbuild --define "_topdir `pwd`" -ba SPECS/bcc.el7.spec
4 changes: 2 additions & 2 deletions SPECS/Dockerfile.el7.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ RUN yum -y install bison cmake flex gcc gcc-c++ make python2-devel rpm-build wge

WORKDIR /root
RUN mkdir -p {BUILD,RPMS,SOURCES,SPECS,SRPMS}
RUN cd SOURCES && wget http://llvm.org/pre-releases/3.7.0/rc3/llvm-3.7.0rc3.src.tar.xz
RUN cd SOURCES && wget http://llvm.org/pre-releases/3.7.0/rc3/cfe-3.7.0rc3.src.tar.xz
RUN cd SOURCES && wget http://llvm.org/releases/3.7.0/llvm-3.7.0.src.tar.xz
RUN cd SOURCES && wget http://llvm.org/releases/3.7.0/cfe-3.7.0.src.tar.xz
RUN cd SOURCES && wget https://github.com/iovisor/bcc/archive/v@[email protected]

RUN cd SPECS && wget https://raw.githubusercontent.com/iovisor/bcc/v@REVISION_LAST@/SPECS/bcc.el7.spec
Expand Down
8 changes: 4 additions & 4 deletions SPECS/Dockerfile.f22
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
WORKDIR /root
RUN mkdir -p {BUILD,RPMS,SOURCES,SPECS,SRPMS}

RUN cd SOURCES && wget http://llvm.org/pre-releases/3.7.0/rc3/llvm-3.7.0rc3.src.tar.xz
RUN cd SOURCES && wget http://llvm.org/pre-releases/3.7.0/rc3/cfe-3.7.0rc3.src.tar.xz
RUN cd SOURCES && wget https://github.com/iovisor/bcc/archive/v0.1.5.tar.gz
RUN cd SOURCES && wget http://llvm.org/releases/3.7.0/llvm-3.7.0.src.tar.xz
RUN cd SOURCES && wget http://llvm.org/releases/3.7.0/cfe-3.7.0.src.tar.xz
RUN cd SOURCES && wget https://github.com/iovisor/bcc/archive/v0.1.6.tar.gz

RUN cd SPECS && wget https://raw.githubusercontent.com/iovisor/bcc/v0.1.5/SPECS/bcc.f22.spec
RUN cd SPECS && wget https://raw.githubusercontent.com/iovisor/bcc/v0.1.6/SPECS/bcc.f22.spec
#COPY SPECS/bcc.f22.spec SPECS/

RUN rpmbuild --define "_topdir `pwd`" -ba SPECS/bcc.f22.spec
4 changes: 2 additions & 2 deletions SPECS/Dockerfile.f22.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ RUN dnf -y install bison cmake flex gcc gcc-c++ libstdc++-static make python2-de
WORKDIR /root
RUN mkdir -p {BUILD,RPMS,SOURCES,SPECS,SRPMS}

RUN cd SOURCES && wget http://llvm.org/pre-releases/3.7.0/rc3/llvm-3.7.0rc3.src.tar.xz
RUN cd SOURCES && wget http://llvm.org/pre-releases/3.7.0/rc3/cfe-3.7.0rc3.src.tar.xz
RUN cd SOURCES && wget http://llvm.org/releases/3.7.0/llvm-3.7.0.src.tar.xz
RUN cd SOURCES && wget http://llvm.org/releases/3.7.0/cfe-3.7.0.src.tar.xz
RUN cd SOURCES && wget https://github.com/iovisor/bcc/archive/v@[email protected]

RUN cd SPECS && wget https://raw.githubusercontent.com/iovisor/bcc/v@REVISION_LAST@/SPECS/bcc.f22.spec
Expand Down
8 changes: 4 additions & 4 deletions SPECS/bcc.el6.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# Licensed under the Apache License, Version 2.0 (the "License")

%define debug_package %{nil}
%define llvmver 3.7.0rc3
%define llvmver 3.7.0
%define gccver 5.1.0
%define pythonver 2.7.10

Name: bcc
Version: 0.1.5
Version: 0.1.6
Release: 1%{?dist}
Summary: BPF Compiler Collection (BCC)

Expand All @@ -17,8 +17,8 @@ URL: https://github.com/iovisor/bcc
Source0: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz
Source1: https://ftp.gnu.org/gnu/gcc/gcc-%{gccver}/gcc-%{gccver}.tar.gz
Source2: https://www.python.org/ftp/python/%{pythonver}/Python-%{pythonver}.tgz
Source3: http://llvm.org/pre-releases/3.7.0/rc3/llvm-%{llvmver}.src.tar.xz
Source4: http://llvm.org/pre-releases/3.7.0/rc3/cfe-%{llvmver}.src.tar.xz
Source3: http://llvm.org/releases/3.7.0/llvm-%{llvmver}.src.tar.xz
Source4: http://llvm.org/releases/3.7.0/cfe-%{llvmver}.src.tar.xz

BuildArch: x86_64
BuildRequires: bison, bzip2, cmake >= 2.8.7, file, flex, gcc, gcc-c++, git, glibc-devel, glibc-utils, python2-devel, rpm-build, svn, tar, texinfo-tex, wget, zip, zlib-devel
Expand Down
6 changes: 3 additions & 3 deletions SPECS/bcc.el6.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Licensed under the Apache License, Version 2.0 (the "License")

%define debug_package %{nil}
%define llvmver 3.7.0rc3
%define llvmver 3.7.0
%define gccver 5.1.0
%define pythonver 2.7.10

Expand All @@ -17,8 +17,8 @@ URL: https://github.com/iovisor/bcc
Source0: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz
Source1: https://ftp.gnu.org/gnu/gcc/gcc-%{gccver}/gcc-%{gccver}.tar.gz
Source2: https://www.python.org/ftp/python/%{pythonver}/Python-%{pythonver}.tgz
Source3: http://llvm.org/pre-releases/3.7.0/rc3/llvm-%{llvmver}.src.tar.xz
Source4: http://llvm.org/pre-releases/3.7.0/rc3/cfe-%{llvmver}.src.tar.xz
Source3: http://llvm.org/releases/3.7.0/llvm-%{llvmver}.src.tar.xz
Source4: http://llvm.org/releases/3.7.0/cfe-%{llvmver}.src.tar.xz

BuildArch: x86_64
BuildRequires: bison, bzip2, cmake >= 2.8.7, file, flex, gcc, gcc-c++, git, glibc-devel, glibc-utils, python2-devel, rpm-build, svn, tar, texinfo-tex, wget, zip, zlib-devel
Expand Down
8 changes: 4 additions & 4 deletions SPECS/bcc.el7.spec
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
%define debug_package %{nil}
%define llvmver 3.7.0rc3
%define llvmver 3.7.0

Name: bcc
Version: 0.1.5
Version: 0.1.6
Release: 1%{?dist}
Summary: BPF Compiler Collection (BCC)

Group: Development/Languages
License: ASL 2.0
URL: https://github.com/iovisor/bcc
Source0: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz
Source1: http://llvm.org/pre-releases/3.7.0/rc3/llvm-%{llvmver}.src.tar.xz
Source2: http://llvm.org/pre-releases/3.7.0/rc3/cfe-%{llvmver}.src.tar.xz
Source1: http://llvm.org/releases/3.7.0/llvm-%{llvmver}.src.tar.xz
Source2: http://llvm.org/releases/3.7.0/cfe-%{llvmver}.src.tar.xz

BuildArch: x86_64
BuildRequires: bison, cmake >= 2.8.7, flex, gcc, gcc-c++, python2-devel
Expand Down
6 changes: 3 additions & 3 deletions SPECS/bcc.el7.spec.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%define debug_package %{nil}
%define llvmver 3.7.0rc3
%define llvmver 3.7.0

Name: bcc
Version: @REVISION_LAST@
Expand All @@ -10,8 +10,8 @@ Group: Development/Languages
License: ASL 2.0
URL: https://github.com/iovisor/bcc
Source0: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz
Source1: http://llvm.org/pre-releases/3.7.0/rc3/llvm-%{llvmver}.src.tar.xz
Source2: http://llvm.org/pre-releases/3.7.0/rc3/cfe-%{llvmver}.src.tar.xz
Source1: http://llvm.org/releases/3.7.0/llvm-%{llvmver}.src.tar.xz
Source2: http://llvm.org/releases/3.7.0/cfe-%{llvmver}.src.tar.xz

BuildArch: x86_64
BuildRequires: bison, cmake >= 2.8.7, flex, gcc, gcc-c++, python2-devel
Expand Down
8 changes: 4 additions & 4 deletions SPECS/bcc.f22.spec
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
%define debug_package %{nil}
%define llvmver 3.7.0rc3
%define llvmver 3.7.0

Name: bcc
Version: 0.1.5
Version: 0.1.6
Release: 1%{?dist}
Summary: BPF Compiler Collection (BCC)

Group: Development/Languages
License: ASL 2.0
URL: https://github.com/iovisor/bcc
Source0: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz
Source1: http://llvm.org/pre-releases/3.7.0/rc3/llvm-%{llvmver}.src.tar.xz
Source2: http://llvm.org/pre-releases/3.7.0/rc3/cfe-%{llvmver}.src.tar.xz
Source1: http://llvm.org/releases/3.7.0/llvm-%{llvmver}.src.tar.xz
Source2: http://llvm.org/releases/3.7.0/cfe-%{llvmver}.src.tar.xz

BuildArch: x86_64
BuildRequires: bison, cmake >= 2.8.7, flex, gcc, gcc-c++, python2-devel
Expand Down
6 changes: 3 additions & 3 deletions SPECS/bcc.f22.spec.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%define debug_package %{nil}
%define llvmver 3.7.0rc3
%define llvmver 3.7.0

Name: bcc
Version: @REVISION_LAST@
Expand All @@ -10,8 +10,8 @@ Group: Development/Languages
License: ASL 2.0
URL: https://github.com/iovisor/bcc
Source0: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz
Source1: http://llvm.org/pre-releases/3.7.0/rc3/llvm-%{llvmver}.src.tar.xz
Source2: http://llvm.org/pre-releases/3.7.0/rc3/cfe-%{llvmver}.src.tar.xz
Source1: http://llvm.org/releases/3.7.0/llvm-%{llvmver}.src.tar.xz
Source2: http://llvm.org/releases/3.7.0/cfe-%{llvmver}.src.tar.xz

BuildArch: x86_64
BuildRequires: bison, cmake >= 2.8.7, flex, gcc, gcc-c++, python2-devel
Expand Down
9 changes: 9 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
bcc (0.1.6-1) unstable; urgency=low

* Stability fixes
* Improvements to python API
* Tracing features
* Support for kernel 4.2 features

-- Brenden Blanco <[email protected]> Wed, 02 Sep 2015 16:23:19 +0000

bcc (0.1.5-1) unstable; urgency=low

* Initial release
Expand Down
22 changes: 22 additions & 0 deletions scripts/build-deb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

set -x
set -e

PARALLEL=${PARALLEL:-1}
TMP=$(mktemp -d /tmp/debuild.XXXXXX)

function cleanup() {
[[ -d $TMP ]] && rm -rf $TMP
}
trap cleanup EXIT

mkdir $TMP/bcc
cp -a * $TMP/bcc
pushd $TMP
tar zcf bcc_0.1.6.orig.tar.gz bcc/
cd bcc
DEB_BUILD_OPTIONS="nocheck parallel=${PARALLEL}" debuild -us -uc
popd

cp $TMP/*.deb .
22 changes: 22 additions & 0 deletions scripts/build-deb.sh.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

set -x
set -e

PARALLEL=${PARALLEL:-1}
TMP=$(mktemp -d /tmp/debuild.XXXXXX)

function cleanup() {
[[ -d $TMP ]] && rm -rf $TMP
}
trap cleanup EXIT

mkdir $TMP/bcc
cp -a * $TMP/bcc
pushd $TMP
tar zcf bcc_@[email protected] bcc/
cd bcc
DEB_BUILD_OPTIONS="nocheck parallel=${PARALLEL}" debuild -us -uc
popd

cp $TMP/*.deb .
1 change: 1 addition & 0 deletions scripts/bump_version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ configure_file(SPECS/Dockerfile.f22.in SPECS/Dockerfile.f22 @ONLY)
configure_file(SPECS/bcc.el6.spec.in SPECS/bcc.el6.spec @ONLY)
configure_file(SPECS/bcc.el7.spec.in SPECS/bcc.el7.spec @ONLY)
configure_file(SPECS/bcc.f22.spec.in SPECS/bcc.f22.spec @ONLY)
configure_file(scripts/build-deb.sh.in scripts/build-deb.sh @ONLY)

0 comments on commit fb18027

Please sign in to comment.