Skip to content

Commit

Permalink
contrib/libabigail: new package (2.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekopsykose committed Jun 1, 2024
1 parent d503dd7 commit 0f0a256
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/libabigail-devel
1 change: 1 addition & 0 deletions contrib/libabigail-progs
11 changes: 11 additions & 0 deletions contrib/libabigail/patches/musl-fts.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/configure.ac
+++ b/configure.ac
@@ -261,6 +261,6 @@

-dnl On musl, we need to find fts-standalone
+dnl On musl, we need to find musl-fts
AS_CASE(
[${host_os}], [*-musl*], [
- PKG_CHECK_MODULES([FTS], [fts-standalone])
+ PKG_CHECK_MODULES([FTS], [musl-fts])
])
73 changes: 73 additions & 0 deletions contrib/libabigail/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
pkgname = "libabigail"
pkgver = "2.5"
pkgrel = 0
build_style = "gnu_configure"
configure_args = [
"--disable-apidoc",
"--disable-ctf",
"--disable-deb",
"--disable-fedabipkgdiff",
"--disable-rpm",
"--disable-rpm415",
"--enable-abidb",
"--enable-bash-completion",
"--enable-btf",
"--enable-manual",
"--enable-python3", # test stuff
"--enable-tar",
]
make_cmd = "gmake"
make_build_args = ["man"]
hostmakedepends = [
"automake",
"gmake",
"libtool",
"pkgconf",
"python",
"python-sphinx",
]
makedepends = [
"bash-completion",
"elfutils-devel",
"libbpf-devel",
"libxml2-devel",
"musl-fts-devel",
]
pkgdesc = "Library and tooling for ABI-related tasks"
maintainer = "psykose <alice@ayaya.dev>"
license = "Apache-2.0 WITH LLVM-exception"
url = "https://sourceware.org/libabigail"
source = f"https://mirrors.kernel.org/sourceware/libabigail/libabigail-{pkgver}.tar.xz"
sha256 = "7cfc4e9b00ae38d87fb0c63beabb32b9cbf9ce410e52ceeb5ad5b3c5beb111f3"
tool_flags = {
# see libbpf comment about bpf headers
"CFLAGS": ["-I/usr/include/bpf/uapi"],
"CXXFLAGS": ["-I/usr/include/bpf/uapi"],
}
# CFI: fails most tests
hardening = ["vis", "!cfi"]
# FIXME: fail due to abi diff in musl headers, some bashisms, ..
options = ["!check"]


def post_install(self):
self.do(
"gmake",
"-C",
f"{self.make_dir}/doc/manuals",
f"DESTDIR={self.chroot_destdir}",
"install-man-and-info-doc",
)
for comp in ["abicompat", "abidiff", "abidw", "abilint", "abipkgdiff"]:
self.install_completion(f"bash-completion/{comp}", "bash", name=comp)
self.install_license("LICENSE.txt")


@subpackage("libabigail-devel")
def _devel(self):
return self.default_devel()


@subpackage("libabigail-progs")
def _progs(self):
return self.default_progs()

0 comments on commit 0f0a256

Please sign in to comment.