Commit c6495e5f authored by Colin Ian King's avatar Colin Ian King Committed by yonghong-song

snapcraft: use new snapcraft rules to clean up wrapping of executables (#2056)

Snapcraft has an improved mechanism for wrapping python executables.
Remove all the older snapcraft legacy cruft and update for the new
snapcraft tooling.
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
parent 166fba57
...@@ -29,7 +29,7 @@ all: set_version ...@@ -29,7 +29,7 @@ all: set_version
snapcraft snapcraft
set_version: set_version:
cat snapcraft.yaml | sed 's/version: .*/version: $(V)/' > snapcraft-tmp.yaml cat snapcraft.yaml | sed 's/^version: .*/version: $(V)/' > snapcraft-tmp.yaml
mv snapcraft-tmp.yaml snapcraft.yaml mv snapcraft-tmp.yaml snapcraft.yaml
install: install:
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# #
name: bcc name: bcc
version: 0.3.0-20170401-1747-c5f48c9 version: 0.7.0-20181122-2831-166fba57
summary: BPF Compiler Collection (BCC) summary: BPF Compiler Collection (BCC)
description: A toolkit for creating efficient kernel tracing and manipulation programs description: A toolkit for creating efficient kernel tracing and manipulation programs
confinement: strict confinement: strict
...@@ -26,349 +26,248 @@ plugs: ...@@ -26,349 +26,248 @@ plugs:
system-observe: null system-observe: null
system-trace: null system-trace: null
assumes: [snapd2.23] assumes: [snapd2.23]
parts:
bcc:
plugin: cmake
configflags:
- '-DCMAKE_INSTALL_PREFIX=/usr'
source: ..
source-type: git
build-packages:
- bison
- build-essential
- cmake
- flex
- libedit-dev
- libllvm4.0
- llvm-4.0-dev
- libclang-4.0-dev
- python
- zlib1g-dev
- libelf-dev
- iperf
stage-packages:
- libc6
prime:
- usr/share/bcc/tools
- usr/lib/*/lib*.so*
- usr/lib/python2.7
- -usr/share/bcc/tools/doc
python-deps:
plugin: python
python-version: python2
stage-packages:
- libc6
apps: apps:
argdist: argdist:
command: wrapper argdist command: usr/share/bcc/tools/argdist
aliases: [argdist]
bashreadline: bashreadline:
command: wrapper bashreadline command: usr/share/bcc/tools/bashreadline
aliases: [bashreadline]
biolatency: biolatency:
command: wrapper biolatency command: usr/share/bcc/tools/biolatency
aliases: [biolatency]
biosnoop: biosnoop:
command: wrapper biosnoop command: usr/share/bcc/tools/biosnoop
aliases: [biosnoop]
biotop: biotop:
command: wrapper biotop command: usr/share/bcc/tools/biotop
aliases: [biotop]
bitesize: bitesize:
command: wrapper bitesize command: usr/share/bcc/tools/bitesize
aliases: [bitesize]
bpflist: bpflist:
command: wrapper bpflist command: usr/share/bcc/tools/bpflist
aliases: [bpflist]
btrfsdist: btrfsdist:
command: wrapper btrfsdist command: usr/share/bcc/tools/btrfsdist
aliases: [btrfsdist]
btrfsslower: btrfsslower:
command: wrapper btrfsslower command: usr/share/bcc/tools/btrfsslower
aliases: [btrfsslower]
cachestat: cachestat:
command: wrapper cachestat command: usr/share/bcc/tools/cachestat
aliases: [cachestat]
cachetop: cachetop:
command: wrapper cachetop command: usr/share/bcc/tools/cachetop
aliases: [cachetop]
capable: capable:
command: wrapper capable command: usr/share/bcc/tools/capable
aliases: [capable]
cobjnew: cobjnew:
command: wrapper cobjnew command: usr/share/bcc/tools/cobjnew
aliases: [cobjnew]
cpudist: cpudist:
command: wrapper cpudist command: usr/share/bcc/tools/cpudist
aliases: [cpudist]
cpuunclaimed: cpuunclaimed:
command: wrapper cpuunclaimed command: usr/share/bcc/tools/cpuunclaimed
aliases: [cpuunclaimed]
dbslower: dbslower:
command: wrapper dbslower command: usr/share/bcc/tools/dbslower
aliases: [dbslower]
dbstat: dbstat:
command: wrapper dbstat command: usr/share/bcc/tools/dbstat
aliases: [dbstat]
dcsnoop: dcsnoop:
command: wrapper dcsnoop command: usr/share/bcc/tools/dcsnoop
aliases: [dcsnoop]
dcstat: dcstat:
command: wrapper dcstat command: usr/share/bcc/tools/dcstat
aliases: [dcstat]
deadlock-detector: deadlock-detector:
command: wrapper deadlock_detector command: usr/share/bcc/tools/deadlock_detector
aliases: [deadlock-detector]
execsnoop: execsnoop:
command: wrapper execsnoop command: usr/share/bcc/tools/execsnoop
aliases: [execsnoop]
ext4dist: ext4dist:
command: wrapper ext4dist command: usr/share/bcc/tools/ext4dist
aliases: [ext4dist]
ext4slower: ext4slower:
command: wrapper ext4slower command: usr/share/bcc/tools/ext4slower
aliases: [ext4slower]
filelife: filelife:
command: wrapper filelife command: usr/share/bcc/tools/filelife
aliases: [filelife]
fileslower: fileslower:
command: wrapper fileslower command: usr/share/bcc/tools/fileslower
aliases: [fileslower]
filetop: filetop:
command: wrapper filetop command: usr/share/bcc/tools/filetop
aliases: [filetop]
funccount: funccount:
command: wrapper funccount command: usr/share/bcc/tools/funccount
aliases: [funccount]
funclatency: funclatency:
command: wrapper funclatency command: usr/share/bcc/tools/funclatency
aliases: [funclatency]
funcslower: funcslower:
command: wrapper funcslower command: usr/share/bcc/tools/funcslower
aliases: [funcslower]
gethostlatency: gethostlatency:
command: wrapper gethostlatency command: usr/share/bcc/tools/gethostlatency
aliases: [gethostlatency]
hardirqs: hardirqs:
command: wrapper hardirqs command: usr/share/bcc/tools/hardirqs
aliases: [hardirqs]
javacalls: javacalls:
command: wrapper javacalls command: usr/share/bcc/tools/javacalls
aliases: [javacalls]
javaflow: javaflow:
command: wrapper javaflow command: usr/share/bcc/tools/javaflow
aliases: [javaflow]
javagc: javagc:
command: wrapper javagc command: usr/share/bcc/tools/javagc
aliases: [javagc]
javaobjnew: javaobjnew:
command: wrapper javaobjnew command: usr/share/bcc/tools/javaobjnew
aliases: [javaobjnew]
javastat: javastat:
command: wrapper javastat command: usr/share/bcc/tools/javastat
aliases: [javastat]
javathreads: javathreads:
command: wrapper javathreads command: usr/share/bcc/tools/javathreads
aliases: [javathreads]
killsnoop: killsnoop:
command: wrapper killsnoop command: usr/share/bcc/tools/killsnoop
aliases: [killsnoop]
llcstat: llcstat:
command: wrapper llcstat command: usr/share/bcc/tools/llcstat
aliases: [llcstat]
mdflush: mdflush:
command: wrapper mdflush command: usr/share/bcc/tools/mdflush
aliases: [mdflush]
memleak: memleak:
command: wrapper memleak command: usr/share/bcc/tools/memleak
aliases: [memleak]
mountsnoop: mountsnoop:
command: wrapper mountsnoop command: usr/share/bcc/tools/mountsnoop
aliases: [mountsnoop]
mysqld-qslower: mysqld-qslower:
command: wrapper mysqld_qslower command: usr/share/bcc/tools/mysqld_qslower
aliases: [mysqld-qslower]
nfsdist: nfsdist:
command: wrapper nfsdist command: usr/share/bcc/tools/nfsdist
aliases: [nfsdist]
nfsslower: nfsslower:
command: wrapper nfsslower command: usr/share/bcc/tools/nfsslower
aliases: [nfsslower]
nodegc: nodegc:
command: wrapper nodegc command: usr/share/bcc/tools/nodegc
aliases: [nodegc]
nodestat: nodestat:
command: wrapper nodestat command: usr/share/bcc/tools/nodestat
aliases: [nodestat]
offcputime: offcputime:
command: wrapper offcputime command: usr/share/bcc/tools/offcputime
aliases: [offcputime]
offwaketime: offwaketime:
command: wrapper offwaketime command: usr/share/bcc/tools/offwaketime
aliases: [offwaketime]
oomkill: oomkill:
command: wrapper oomkill command: usr/share/bcc/tools/oomkill
aliases: [oomkill]
opensnoop: opensnoop:
command: wrapper opensnoop command: usr/share/bcc/tools/opensnoop
aliases: [opensnoop]
perlcalls: perlcalls:
command: wrapper perlcalls command: usr/share/bcc/tools/perlcalls
aliases: [perlcalls]
perlflow: perlflow:
command: wrapper perlflow command: usr/share/bcc/tools/perlflow
aliases: [perlflow]
perlstat: perlstat:
command: wrapper perlstat command: usr/share/bcc/tools/perlstat
aliases: [perlstat]
shmsnoop: shmsnoop:
command: wrapper shmsnoop command: usr/share/bcc/tools/shmsnoop
aliases: [shmsnoop]
sofdsnoop: sofdsnoop:
command: wrapper sofdsnoop command: usr/share/bcc/tools/sofdsnoop
aliases: [sofdsnoop]
phpcalls: phpcalls:
command: wrapper phpcalls command: usr/share/bcc/tools/phpcalls
aliases: [phpcalls]
phpflow: phpflow:
command: wrapper phpflow command: usr/share/bcc/tools/phpflow
aliases: [phpflow]
phpstat: phpstat:
command: wrapper phpstat command: usr/share/bcc/tools/phpstat
aliases: [phpstat]
pidpersec: pidpersec:
command: wrapper pidpersec command: usr/share/bcc/tools/pidpersec
aliases: [pidpersec]
profile: profile:
command: wrapper profile command: usr/share/bcc/tools/profile
aliases: [profile]
pythoncalls: pythoncalls:
command: wrapper pythoncalls command: usr/share/bcc/tools/pythoncalls
aliases: [pythoncalls]
pythonflow: pythonflow:
command: wrapper pythonflow command: usr/share/bcc/tools/pythonflow
aliases: [pythonflow]
pythongc: pythongc:
command: wrapper pythongc command: usr/share/bcc/tools/pythongc
aliases: [pythongc]
pythonstat: pythonstat:
command: wrapper pythonstat command: usr/share/bcc/tools/pythonstat
aliases: [pythonstat]
rubycalls: rubycalls:
command: wrapper rubycalls command: usr/share/bcc/tools/rubycalls
aliases: [rubycalls]
rubyflow: rubyflow:
command: wrapper rubyflow command: usr/share/bcc/tools/rubyflow
aliases: [rubyflow]
rubygc: rubygc:
command: wrapper rubygc command: usr/share/bcc/tools/rubygc
aliases: [rubygc]
rubyobjnew: rubyobjnew:
command: wrapper rubyobjnew command: usr/share/bcc/tools/rubyobjnew
aliases: [rubyobjnew]
rubystat: rubystat:
command: wrapper rubystat command: usr/share/bcc/tools/rubystat
aliases: [rubystat]
runqlat: runqlat:
command: wrapper runqlat command: usr/share/bcc/tools/runqlat
aliases: [runqlat]
runqlen: runqlen:
command: wrapper runqlen command: usr/share/bcc/tools/runqlen
aliases: [runqlen]
slabratetop: slabratetop:
command: wrapper slabratetop command: usr/share/bcc/tools/slabratetop
aliases: [slabratetop]
softirqs: softirqs:
command: wrapper softirqs command: usr/share/bcc/tools/softirqs
aliases: [softirqs]
solisten: solisten:
command: wrapper solisten command: usr/share/bcc/tools/solisten
aliases: [solisten]
sslsniff: sslsniff:
command: wrapper sslsniff command: usr/share/bcc/tools/sslsniff
aliases: [sslsniff]
stackcount: stackcount:
command: wrapper stackcount command: usr/share/bcc/tools/stackcount
aliases: [stackcount]
stacksnoop:
command: wrapper stacksnoop
aliases: [stacksnoop]
statsnoop: statsnoop:
command: wrapper statsnoop command: usr/share/bcc/tools/statsnoop
aliases: [statsnoop]
syncsnoop: syncsnoop:
command: wrapper syncsnoop command: usr/share/bcc/tools/syncsnoop
aliases: [syncsnoop]
syscount: syscount:
command: wrapper syscount command: usr/share/bcc/tools/syscount
aliases: [syscount]
tcpaccept: tcpaccept:
command: wrapper tcpaccept command: usr/share/bcc/tools/tcpaccept
aliases: [tcpaccept]
tcpconnect: tcpconnect:
command: wrapper tcpconnect command: usr/share/bcc/tools/tcpconnect
aliases: [tcpconnect]
tcpconnlat: tcpconnlat:
command: wrapper tcpconnlat command: usr/share/bcc/tools/tcpconnlat
aliases: [tcpconnlat]
tcplife: tcplife:
command: wrapper tcplife command: usr/share/bcc/tools/tcplife
aliases: [tcplife]
tcpretrans: tcpretrans:
command: wrapper tcpretrans command: usr/share/bcc/tools/tcpretrans
aliases: [tcpretrans]
tcptop: tcptop:
command: wrapper tcptop command: usr/share/bcc/tools/tcptop
aliases: [tcptop]
tcptracer: tcptracer:
command: wrapper tcptracer command: usr/share/bcc/tools/tcptracer
aliases: [tcptracer]
tplist: tplist:
command: wrapper tplist command: usr/share/bcc/tools/tplist
aliases: [tplist]
trace: trace:
command: wrapper trace command: usr/share/bcc/tools/trace
aliases: [trace]
ttysnoop: ttysnoop:
command: wrapper ttysnoop command: usr/share/bcc/tools/ttysnoop
aliases: [ttysnoop]
ucalls: ucalls:
command: wrapper lib/ucalls command: usr/share/bcc/tools/lib/ucalls
aliases: [ucalls]
uflow: uflow:
command: wrapper lib/uflow command: usr/share/bcc/tools/lib/uflow
aliases: [uflow]
ugc: ugc:
command: wrapper lib/ugc command: usr/share/bcc/tools/lib/ugc
aliases: [ugc]
uobjnew: uobjnew:
command: wrapper lib/uobjnew command: usr/share/bcc/tools/lib/uobjnew
aliases: [uobjnew]
ustat: ustat:
command: wrapper lib/ustat command: usr/share/bcc/tools/lib/ustat
aliases: [ustat]
uthreads: uthreads:
command: wrapper lib/uthreads command: usr/share/bcc/tools/lib/uthreads
aliases: [uthreads]
vfscount: vfscount:
command: wrapper vfscount command: usr/share/bcc/tools/vfscount
aliases: [vfscount]
vfsstat: vfsstat:
command: wrapper vfsstat command: usr/share/bcc/tools/vfsstat
aliases: [vfsstat]
wakeuptime: wakeuptime:
command: wrapper wakeuptime command: usr/share/bcc/tools/wakeuptime
aliases: [wakeuptime]
xfsdist: xfsdist:
command: wrapper xfsdist command: usr/share/bcc/tools/xfsdist
aliases: [xfsdist]
xfsslower: xfsslower:
command: wrapper xfsslower command: usr/share/bcc/tools/xfsslower
aliases: [xfsslower]
zfsdist: zfsdist:
command: wrapper zfsdist command: usr/share/bcc/tools/zfsdist
aliases: [zfsdist]
zfsslower: zfsslower:
command: wrapper zfsslower command: usr/share/bcc/tools/zfsslower
aliases: [zfsslower]
parts:
bcc:
plugin: cmake
configflags:
- -DCMAKE_INSTALL_PREFIX=/usr
source: ..
build-packages:
- bison
- build-essential
- cmake
- flex
- libedit-dev
- libllvm4.0
- llvm-4.0-dev
- libclang-4.0-dev
- python
- zlib1g-dev
- libelf-dev
stage-packages:
- python
snap:
- usr/bin/python*
- usr/share/bcc/tools
- usr/lib/*/lib*.so*
- usr/lib/python2.7
- -usr/share/bcc/tools/doc
wrapper:
source: .
plugin: copy
files:
wrapper: bin/wrapper
# vim: set ai et sts=4 tabstop=4 sw=4: # vim: set ai et sts=4 tabstop=4 sw=4:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment