Skip to content

Commit

Permalink
Add Systemtap v4.6 (#9269)
Browse files Browse the repository at this point in the history
* Add Systemtap build script

* Add linebreak to end of file

Co-authored-by: Mosè Giordano <[email protected]>

---------

Co-authored-by: Mosè Giordano <[email protected]>
  • Loading branch information
Mellich and giordano authored Aug 17, 2024
1 parent 13f7a59 commit 05e7972
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions S/systemtap/build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using BinaryBuilder

name = "systemtap"
version = v"4.6"
sources = [
GitSource("https://github.com/cdkey/systemtap.git", "cbb34b7244ba60cb0904d61dc9167290855106aa")
]

script = raw"""
apk add gettext
cd ${WORKSPACE}/srcdir/systemtap
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target}
make -j all
make install
"""

platforms = supported_platforms()
platforms = expand_cxxstring_abis(platforms)
filter!(Sys.islinux, platforms)
filter!(p -> libc(p) == "glibc", platforms)


products = [
ExecutableProduct("stap", :stap),
ExecutableProduct("stap-merge", :stapmerge),
ExecutableProduct("stap-report", :stapreport),
ExecutableProduct("stapbpf", :stapbpf),
ExecutableProduct("staprun", :staprun),
ExecutableProduct("stapsh", :stapsh),
ExecutableProduct("dtrace", :dtrace),
]


dependencies = [
Dependency("Elfutils_jll")
]

build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6", preferred_gcc_version=v"5")

0 comments on commit 05e7972

Please sign in to comment.