summaryrefslogtreecommitdiff
path: root/dev-util
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/dtrace-utils/Manifest5
-rw-r--r--dev-util/dtrace-utils/dtrace-utils-1.2.1.ebuild38
-rw-r--r--dev-util/dtrace-utils/dtrace-utils-2.0.0.ebuild115
-rw-r--r--dev-util/dtrace-utils/files/fix-double-declaration-of-yylineno.patch30
-rw-r--r--dev-util/gitlab-runner/Manifest2
-rw-r--r--dev-util/gitlab-runner/gitlab-runner-13.4.0.ebuild (renamed from dev-util/gitlab-runner/gitlab-runner-13.2.1.ebuild)0
-rw-r--r--dev-util/scons/scons-4.0.1.ebuild2
7 files changed, 190 insertions, 2 deletions
diff --git a/dev-util/dtrace-utils/Manifest b/dev-util/dtrace-utils/Manifest
new file mode 100644
index 000000000000..e79216bc49a0
--- /dev/null
+++ b/dev-util/dtrace-utils/Manifest
@@ -0,0 +1,5 @@
+AUX fix-double-declaration-of-yylineno.patch 943 BLAKE2B 2df1e4e89654b8b9670e8ac45e4db89c382787d25a2dcf5476e72624f76ae1a4d43b049872e356c28d78d9120abde118fbb3d344a5a94b4b11edc58547b51690 SHA512 c2ea8c8b5c10e4a013b2072d915379dd18bfa2825018f25b2b87a7e0ddd6fa9f8f32a7172d1e9ef2371cf232c4e95b7f93d0fc0fb951aac0042e9c0aff7cd05b
+DIST 1.2.1-1.tar.gz 765847 BLAKE2B 26eec3ecdec4acbdaa8875c68c70ed179f913c2730be31ea18a68514e9c892b4988f790f4f49a7509cd584cb104a86334e1043af861b140db17f649f2b7d101f SHA512 86721beb91253de11683a6bb3605f3d00ccc59443013719bf319ace191e19f3a1d0a844d0746db6472ab425229074cb9a0dda06911afe9645cd709529613a770
+DIST 2.0.0-1.2.tar.gz 995469 BLAKE2B 9ded2e28a9759884decadad0bc9f9288e49030aacfc548f1155de7781cafb5c8f231e34b15f0825cf8f109bfa65859643c583a2458a2deadb9e67c0c82d17e3c SHA512 9ee75ddc28ea1d678463a2f4533bc6437a25e07e3b6da1b4f9d11ce44f3882aac746266774282156a05a7ccf0a59492fbc8c5482859e81f44d64c45f9780db9d
+EBUILD dtrace-utils-1.2.1.ebuild 807 BLAKE2B f795a22124506324538cf2ebc38898998f75fbf4bf607f1c7f5b37a2897e20f06d1265c9e771f985f264119211ce998b74174abfd405f359d7646ed2f89f674a SHA512 6853642fbc36e94a7ed31dffcad3a4fc5c51e89604e7c8815fc6b5e41a985d414665a7861ea0496a843163a05a73a9460280211172499cd786cf5163fdf9371f
+EBUILD dtrace-utils-2.0.0.ebuild 2888 BLAKE2B b2b970652196044f73adac7aa8c68ad9a0b87ff5502e41c141a3c86b35fbafbcab253bddb6865fac17e2ee8dbf16f8b55ea794fd5c1d9a21800650d1a4d36a1c SHA512 82f281fbcf331be04d74330ab173decbedfd257fb7606bb40e7b44c8fc4cd939cc25a0059dcd9c050206cc63de7f2ff046897cb4b39e1fa54a599ff1eff759b0
diff --git a/dev-util/dtrace-utils/dtrace-utils-1.2.1.ebuild b/dev-util/dtrace-utils/dtrace-utils-1.2.1.ebuild
new file mode 100644
index 000000000000..793534a84ed4
--- /dev/null
+++ b/dev-util/dtrace-utils/dtrace-utils-1.2.1.ebuild
@@ -0,0 +1,38 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+HOMEPAGE="https://github.com/oracle/dtrace-utils"
+DESCRIPTION="DTrace userspace utilities"
+
+LICENSE="GPL-2"
+KEYWORDS="x86 amd64"
+
+SLOT="0"
+
+IUSE="test"
+
+RDEPEND="
+ dev-libs/elfutils
+ dev-libs/libdtrace-ctf
+ sys-libs/zlib
+"
+
+DEPEND="
+ sys-devel/bison
+ sys-kernel/debian-sources[dtrace]
+ sys-devel/flex
+ virtual/os-headers
+"
+
+DTRACE_UTILS_VER="1.2.1"
+DTRACE_UTILS_REV="1"
+DTRACE_UTILS_ARCHIVE="${DTRACE_UTILS_VER}-${DTRACE_UTILS_REV}.tar.gz"
+
+SRC_URI="https://github.com/oracle/dtrace-utils/archive/${DTRACE_UTILS_ARCHIVE}"
+
+
+src_unpack() {
+
+ unpack ${DTRACE_UTILS_ARCHIVE} && mv ${WORKDIR}/${PN}-${DTRACE_UTILS_VER}-${DTRACE_UTILS_REV} ${WORKDIR}/${PN}-${DTRACE_UTILS_VER} || die "failed to unpack archive"
+} \ No newline at end of file
diff --git a/dev-util/dtrace-utils/dtrace-utils-2.0.0.ebuild b/dev-util/dtrace-utils/dtrace-utils-2.0.0.ebuild
new file mode 100644
index 000000000000..421620d83cc3
--- /dev/null
+++ b/dev-util/dtrace-utils/dtrace-utils-2.0.0.ebuild
@@ -0,0 +1,115 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+HOMEPAGE="https://github.com/oracle/dtrace-utils"
+DESCRIPTION="DTrace userspace utilities"
+
+LICENSE="GPL-2"
+KEYWORDS="x86 amd64"
+
+SLOT="0"
+
+IUSE="test"
+
+RDEPEND="
+ dev-libs/elfutils
+ dev-libs/libdtrace-ctf
+ sys-libs/zlib
+"
+
+DEPEND="
+ sys-devel/bison
+ sys-devel/binutils[multitarget]
+ sys-devel/clang
+ sys-devel/flex
+ dev-libs/libbpf
+ net-libs/libpcap
+ virtual/os-headers
+"
+
+DTRACE_UTILS_VER="2.0.0"
+DTRACE_UTILS_REV="1.2"
+DTRACE_UTILS_ARCHIVE="${DTRACE_UTILS_VER}-${DTRACE_UTILS_REV}.tar.gz"
+
+SRC_URI="https://github.com/oracle/dtrace-utils/archive/${DTRACE_UTILS_ARCHIVE}"
+
+BPF_HEADERS=(
+ bpf.h
+ bpf_core_read.h
+ bpf_endian.h
+ bpf_helper_defs.h
+ bpf_helpers.h
+ bpf_tracing.h
+ btf.h
+ libbpf.h
+ libbpf_common.h
+ libbpf_util.h
+ xsk.h
+)
+
+pkg_setup() {
+
+ for files_to_symlink in ${BPF_HEADERS[*]} ; do
+ if [[ ! -h "${EROOT}"/usr/include/"${files_to_symlink}" ]]; then
+ ln -s ${EROOT}/usr/include/bpf/"${files_to_symlink}" ${EROOT}/usr/include/"${files_to_symlink}"
+ fi
+ done
+}
+
+src_unpack() {
+
+ # unpack sources
+ unpack ${DTRACE_UTILS_ARCHIVE} && mv ${WORKDIR}/${PN}-${DTRACE_UTILS_VER}-${DTRACE_UTILS_REV} ${WORKDIR}/${PN}-${DTRACE_UTILS_VER} || die "failed to unpack archive"
+}
+
+src_prepare() {
+
+ # punt unless USE=test
+ if ! use test; then
+ rm -rf test
+ fi
+
+ eapply ${FILESDIR}/fix-double-declaration-of-yylineno.patch || die "patch failed"
+
+ # upstream depends on bpf-helpers.h from gcc... which isn't very portable (and is scheduled for removal).
+ # libbpf ships bpf_helpers.h etc... so we sed that change across the source files.
+ find . -type f -exec sed -i -e 's/bpf-helpers.h/bpf_helpers.h/g' {} \; || die "bpf-helpers.h sed failed"
+
+ # apply any user patches
+ eapply_user
+}
+
+src_configure() {
+
+ # create the build directory
+ mkdir "${WORKDIR}"/build
+
+ # DTrace-utils requires a bpf target enabled compiler.
+ # Both gcc and clang support this, however gcc requires it be setup as an additional cross-compiler...
+ # whereas clang supports this natively, with no additional cross-compilers required.
+ #
+ # I can't really be bothered to create minimal gcc-bpf and binutils-bpf packages,
+ # nor do I think it is a good idea to depend on crossdev for this dependency.
+ # So for now we shall use clang...
+ MAKEARGS=(
+ BPFC="${CHOST}-clang"
+ BPFLD="$(tc-getLD)"
+ )
+}
+
+src_compile() {
+
+ emake O="${WORKDIR}"/build "${MAKEARGS[@]}" all || "build failed"
+}
+
+pkg_postrm() {
+
+ for symlinks_to_remove in ${BPF_HEADERS[*]} ; do
+ if [[ -h "${EROOT}"/usr/include/"${symlinks_to_remove}" ]]; then
+ rm -rf "${EROOT}"/usr/include/"${symlinks_to_remove}"
+ fi
+ done
+}
diff --git a/dev-util/dtrace-utils/files/fix-double-declaration-of-yylineno.patch b/dev-util/dtrace-utils/files/fix-double-declaration-of-yylineno.patch
new file mode 100644
index 000000000000..7ad4d85a5244
--- /dev/null
+++ b/dev-util/dtrace-utils/files/fix-double-declaration-of-yylineno.patch
@@ -0,0 +1,30 @@
+From 470176a657a40d48b3947ee174d50f8d1655b768 Mon Sep 17 00:00:00 2001
+From: Kris Van Hees <kris.van.hees@oracle.com>
+Date: Wed, 26 Aug 2020 21:35:39 -0400
+Subject: [PATCH] Fix double declaration of yylineno
+
+The yylineno variable was declared in dt_cc.c *and* in dt_lex.c (which
+is generated from dt_lex.l). This poses a compilation issue with some
+newer compilers. The declaration in dt_cc,c has been changed into an
+extern declaration, while the one in dt_lex.c is kept as the actual
+variable declaration.
+
+Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
+---
+ libdtrace/dt_cc.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libdtrace/dt_cc.c b/libdtrace/dt_cc.c
+index f29a21f0..f1ac0776 100644
+--- a/libdtrace/dt_cc.c
++++ b/libdtrace/dt_cc.c
+@@ -91,7 +91,7 @@
+ #include <dt_bpf.h>
+ #include <bpf_asm.h>
+
+-int yylineno;
++extern int yylineno;
+
+ #ifdef FIXME
+ static const dtrace_diftype_t dt_void_rtype = {
+
diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest
index feff66e41a9b..811cb36cdc84 100644
--- a/dev-util/gitlab-runner/Manifest
+++ b/dev-util/gitlab-runner/Manifest
@@ -1,3 +1,3 @@
-DIST gitlab-runner-13.2.1.tar.bz2 5090372 BLAKE2B 24c3a9815fbd2383a4d9973a5766007dbfc29eec41f6e94bf6d85df3aa8228578a74eecf9b494387394b29d54e30850f5cf903f16a033c8e3cc78d6430b4e7e0 SHA512 e79649fc758214cd691c26f1de3cc4171e4ace0f81aef9abbfccbdfd4ad89d883e18d84270c357a05bafd248aa4e8cc7711c34f9f42679d2236d5189bc632541
DIST gitlab-runner-13.3.0.tar.bz2 5253394 BLAKE2B 0af017f3b4871b2340a4823b23d5e3b2f163f65befbab35e6c480a86eacb293583b4d5163cc47a10bab8fa33dfa975d7fd37cd58a59f938135d8be53aae5b9a7 SHA512 f1a195a26ac9ed6fc23f4c8e781398c96f4117c6b83a84ebbe8d0a59233203d33fdcd6a65aa2972015b36905224663595295419f3cc228b172e40d9553382372
+DIST gitlab-runner-13.4.0.tar.bz2 5601382 BLAKE2B a6a3154b69152a8bc7e4b0252ae211f4a62dfe65fc3592d8c4e61bcc33fdeff82c499587b38f0f3b14ba154d781e066f12b86c603d117a0992b810adbc6c9be9 SHA512 0347535be6c6701e7d8df66a698783a3e66c40b188b7d1a2c05b273625dbe210c418aa4d6320430a65fb63619a2de1c3492a711765d905f4c971ae3ee07cbbc7
DIST prebuilt-x86_64.tar.xz 11854360 BLAKE2B 98cfd7e706880acf9d1fc91f6fe5ff77d26d30c1dc126f5f11870c2d8a46ca6862545ad57acc0883cf6312e85c988a80dc82bff587b8d3901d6f848addd7ab7e SHA512 692e0ae4c7ced8c8a55970f3426824e14b3e251df85342c615db8d86eb9e22e0e7378d6c4958296f87721f86058216ac2ab9e32e8e0cccfd03579cd8f215b82d
diff --git a/dev-util/gitlab-runner/gitlab-runner-13.2.1.ebuild b/dev-util/gitlab-runner/gitlab-runner-13.4.0.ebuild
index d8391a781ac7..d8391a781ac7 100644
--- a/dev-util/gitlab-runner/gitlab-runner-13.2.1.ebuild
+++ b/dev-util/gitlab-runner/gitlab-runner-13.4.0.ebuild
diff --git a/dev-util/scons/scons-4.0.1.ebuild b/dev-util/scons/scons-4.0.1.ebuild
index 5c313aa16961..019f5a91d96d 100644
--- a/dev-util/scons/scons-4.0.1.ebuild
+++ b/dev-util/scons/scons-4.0.1.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm arm64 hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE="doc test"
RESTRICT="!test? ( test )"