aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lttng-tools/APKBUILD
blob: 95693e82126e334ee0f2d9d205a024671953bbde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Contributor: Michael Jeanson <mjeanson@efficios.com>
# Maintainer: Michael Jeanson <mjeanson@efficios.com>
pkgname=lttng-tools
pkgver=2.8.0
pkgrel=0
pkgdesc="LTTng 2.0 control and utility programs"
url="https://lttng.org"
arch="all"
license="GPL2"
depends="babeltrace"
depends_dev="popt-dev libxml2-dev userspace-rcu-dev lttng-ust-dev kmod-dev
	util-linux-dev"
makedepends="$depends_dev bash grep coreutils automake autoconf"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://lttng.org/files/$pkgname/$pkgname-$pkgver.tar.bz2
	0000-add-missing-test-script.patch
	0001-Tests-Make-warn_processes.sh-more-portable.patch
	0002-Fix-snapshot-del-output-with-name-on-musl.patch
	0003-Fix-error.h-common-error.h.patch
	0004-Fix-strerror_r-behavior-is-glibc-specific.patch
	0005-Fix-Define-MANPATH-in-config.h.patch
	0006-Fix-do-not-link-against-libtool-.o-objects.patch
	0007-Fix-do-not-refer-to-objects-as-.o.patch
	0008-Fix-missing-include-ctype.h-for-isdigit.patch
	0009-Fix-location-of-various-standard-header-includes.patch
	0010-Set-thread-stack-size-to-ulimit-soft-value.patch"

builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	chmod +x tests/utils/warn_processes.sh
}

build() {
	cd "$builddir"

	unset LDFLAGS
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		|| return 1
	make V=1 || return 1
	make -j1 check || return 1
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir" install || return 1
	mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
	mv "$pkgdir"/usr/share/doc/$pkgname/LICENSE \
		"$pkgdir"/usr/share/licenses/$pkgname/
}

md5sums="0adcf00a70db9b99e0dc43475adba801  lttng-tools-2.8.0.tar.bz2
24f81942141ffccf798735e767e0e6f7  0000-add-missing-test-script.patch
2f22d7a37569c84995d03db863a09446  0001-Tests-Make-warn_processes.sh-more-portable.patch
f592a8ca1e4e5125a2c7bebe8725ecbe  0002-Fix-snapshot-del-output-with-name-on-musl.patch
f10946cbfeadd54035ea6088cfceb7f1  0003-Fix-error.h-common-error.h.patch
80c64f3e33d46f68372578afc11e254f  0004-Fix-strerror_r-behavior-is-glibc-specific.patch
836180b4c95d9c4e3d5f871bc35ec539  0005-Fix-Define-MANPATH-in-config.h.patch
cd9ff76c15931858986e8e14756e115f  0006-Fix-do-not-link-against-libtool-.o-objects.patch
361e8f88c9aa600c7be4c551410a6927  0007-Fix-do-not-refer-to-objects-as-.o.patch
caf2e21365cad8940f984affc83da5ad  0008-Fix-missing-include-ctype.h-for-isdigit.patch
54a29190c3e2e7165b1c615973f2dee1  0009-Fix-location-of-various-standard-header-includes.patch
51a51e03cd4fabd812168bac4fc235dc  0010-Set-thread-stack-size-to-ulimit-soft-value.patch"
sha256sums="2651a6c30bf26ebbdc218fdf75772b834ee42cccf0d6e14d7dac4c575fd02bd5  lttng-tools-2.8.0.tar.bz2
0421b7364003e4d3e5e3ba2862861f6600d930dffaab1810ebae84e9d657a365  0000-add-missing-test-script.patch
e712ada9ce912f946afff6e21c8b280cd6a061507102947794c5ad28fd00a3d2  0001-Tests-Make-warn_processes.sh-more-portable.patch
117f3876419a78ab1d9638bce63afd75dbd1cfcbfd15d52542f34c2c5591b983  0002-Fix-snapshot-del-output-with-name-on-musl.patch
11380dafa6f4a02225a754518ae9792d31e4e0a2a30895b9544dc30b423f0edd  0003-Fix-error.h-common-error.h.patch
1a8777ab9d724bdef7b76619777b733522d1bb3bed6df96887ef4820d17a6f72  0004-Fix-strerror_r-behavior-is-glibc-specific.patch
ba451104f357f69fd67de683372d657ee05b6df36b83593074d26da36e5a1347  0005-Fix-Define-MANPATH-in-config.h.patch
cd12a16fb1612259349c877f87154e2cee6c7cd884b4a994a15fc02ee8b381c9  0006-Fix-do-not-link-against-libtool-.o-objects.patch
cd0848da6a74512b8c5372b813b130307f2f4f98df14cddef14eda55d9626eda  0007-Fix-do-not-refer-to-objects-as-.o.patch
ee57eebe3baef7f784a3b45f2cab47af40205cb279fe57586dc1ef0384441e5e  0008-Fix-missing-include-ctype.h-for-isdigit.patch
a14dc45efdd9a978c4fdae06d400b11c9ee770710596551e9212e6ac966ec89d  0009-Fix-location-of-various-standard-header-includes.patch
759ef937508d3dfa3f58f2b31793277139575b09743f857705c8e6947d50f28b  0010-Set-thread-stack-size-to-ulimit-soft-value.patch"
sha512sums="2a49b9f83b2a53dda653d8bf7cf35cbc67173912a38d9d52e2eb9313deb8a64ec9b5f7751055dc56cd972aaf412694088a7cc63297338448418872da5791d7a2  lttng-tools-2.8.0.tar.bz2
fd1ea9c3968141e0d97783e51574eab253bb7571e43bff09c8c6f4533a70e03b18c3645457a5e2d9fceb21e409d5ae574130a9041fbd811422bbc43268c7b54a  0000-add-missing-test-script.patch
f02219c09028abec55d05a82bab3c575014f255d8838078446b9fd564737e6d7103477c3b1d556633093ca4f63708a9d5a4a0b8ebfa72274e5a76d46e969e569  0001-Tests-Make-warn_processes.sh-more-portable.patch
9ed87e171a286126d3c09eb53104084b1baf7417baf1aaa998a523bb0cc1388d783e1a3c47218b5dfae17792e3587808594423224cecbc198f133eba3a5487b6  0002-Fix-snapshot-del-output-with-name-on-musl.patch
3dec5721b6c89fd101b873b8c862963279c395e155b1dc5ae3461bf97943b269c29a814f3a1d2650a07687dff2c34f383aadd884f6c0e84fbc928dd43c17cb87  0003-Fix-error.h-common-error.h.patch
b996a0b21add39b3a9bd6850ff89946b8203f4b6a39e014fe7a65171205d97f93fad388d0636edce4381481d739773ebfc26c98a6d22f70eea7245e845727355  0004-Fix-strerror_r-behavior-is-glibc-specific.patch
cfc336d8ca7cea7c38ff673a221645698b0d47e86f2d8b7eefcfe4f043986b6701d494cb8afb62b733fc82d614e838d17ac8255447538b3a230d7b4f2795127e  0005-Fix-Define-MANPATH-in-config.h.patch
be60e37f2923217723ff638bfbf59ed5c7199e2498916a131f9ec21ca402c064e8fad1b32727f809d928a384b49bc4b356dfdd86615680804a5d8151ed049895  0006-Fix-do-not-link-against-libtool-.o-objects.patch
27ff95f140c2ce5772e2fee2258ff0fa25b5fea6afef3f8c3e06ebe92a2152203c40109e502a20d08d72b497c9cc55f6e635fe085889a95564b74f65e7831805  0007-Fix-do-not-refer-to-objects-as-.o.patch
57c424f7ae28283c2d8b43c08afdb23c5aeeee3fdd6db41450b6117116b28cd0f2fa3708f3d431b1565c097ec3d14e8e4cca3427f9f04ef198fe4c9847286aac  0008-Fix-missing-include-ctype.h-for-isdigit.patch
96386508a157b2c8bf68c026f50e50b76a1b2d25c8556b904ec3acee6160c79dbfa8e22c0d5eeef7b37187152d4abc300ad2518acb2bcf3e3736c0057d8addbe  0009-Fix-location-of-various-standard-header-includes.patch
13dda11c7d882bc1ec67219457fee90f55668a1ec945bcc8e15a2a520856d9daf2e28721ebb096134e169e0c4fbd1281ecb0e503d3c74c8099d0ab0a4b73c573  0010-Set-thread-stack-size-to-ulimit-soft-value.patch"