1 |
commit: 5439a2db1028e8ae6a202bf2c6a723d83ed87b28 |
2 |
Author: brahmajit das <listout <AT> protonmail <DOT> com> |
3 |
AuthorDate: Thu Aug 18 18:53:27 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 18 19:16:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5439a2db |
7 |
|
8 |
dev-libs/libtracefs: add 1.4.2 |
9 |
|
10 |
Version bump and test fix. This is related to bug 855893. The issues on |
11 |
that bug is fixed upsteam, hence updating the package is another fix. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/855893 |
14 |
Signed-off-by: brahmajit das <listout <AT> protonmail.com> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/26890 |
16 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
17 |
|
18 |
dev-libs/libtracefs/Manifest | 1 + |
19 |
.../files/libtracefs-1.4.2-fix-test.patch | 11 +++++ |
20 |
dev-libs/libtracefs/libtracefs-1.4.2.ebuild | 57 ++++++++++++++++++++++ |
21 |
3 files changed, 69 insertions(+) |
22 |
|
23 |
diff --git a/dev-libs/libtracefs/Manifest b/dev-libs/libtracefs/Manifest |
24 |
index 2a637a33332c..d2acd5e5977d 100644 |
25 |
--- a/dev-libs/libtracefs/Manifest |
26 |
+++ b/dev-libs/libtracefs/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
DIST libtracefs-1.3.1.tar.gz 175453 BLAKE2B d9801c9f50513a8b2d2de57f768aec69c3e47b4c41ba1e887b28465d3a0a6bf10e5d2c60f81615615176bdb65e10ef7e2b7dee5cbb214705cc69e55bb923231c SHA512 1d8423ff1033a4ab601dd8e9fa4a801c27425234505070733641c8c9a4dd382cc6563d3fde89958f18e0bc95e2cbbdf65e69a2935fe208d5de9fd3ac26374ec1 |
29 |
+DIST libtracefs-1.4.2.tar.gz 178382 BLAKE2B a956423370077613417812ad18da284521e8798701d558f4e419af6c43bd8a06c489525bbab26e6bc5d5d5e8fd0e6a7322d34f976a4ea560670eb594818d07fc SHA512 4a66c3cf8050de5acc4c63996cbcfa2c014e26ad6011eb89b0cff47ffbd6343637009354edf6bb173b9fd08103012774376c33fd6f642741f7990f2d6de3ea0c |
30 |
|
31 |
diff --git a/dev-libs/libtracefs/files/libtracefs-1.4.2-fix-test.patch b/dev-libs/libtracefs/files/libtracefs-1.4.2-fix-test.patch |
32 |
new file mode 100644 |
33 |
index 000000000000..fb2bdb2f5995 |
34 |
--- /dev/null |
35 |
+++ b/dev-libs/libtracefs/files/libtracefs-1.4.2-fix-test.patch |
36 |
@@ -0,0 +1,11 @@ |
37 |
+# Fix PATH_MAX not defined due to missing limits.h |
38 |
+--- a/utest/tracefs-utest.c |
39 |
++++ b/utest/tracefs-utest.c |
40 |
+@@ -11,6 +11,7 @@ |
41 |
+ #include <time.h> |
42 |
+ #include <dirent.h> |
43 |
+ #include <ftw.h> |
44 |
++#include <limits.h> |
45 |
+ |
46 |
+ #include <CUnit/CUnit.h> |
47 |
+ #include <CUnit/Basic.h> |
48 |
|
49 |
diff --git a/dev-libs/libtracefs/libtracefs-1.4.2.ebuild b/dev-libs/libtracefs/libtracefs-1.4.2.ebuild |
50 |
new file mode 100644 |
51 |
index 000000000000..70e3e35683e6 |
52 |
--- /dev/null |
53 |
+++ b/dev-libs/libtracefs/libtracefs-1.4.2.ebuild |
54 |
@@ -0,0 +1,57 @@ |
55 |
+# Copyright 2019-2022 Gentoo Authors |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+EAPI=8 |
59 |
+ |
60 |
+inherit toolchain-funcs |
61 |
+ |
62 |
+DESCRIPTION="Linux kernel trace file system library" |
63 |
+HOMEPAGE="https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/" |
64 |
+ |
65 |
+if [[ ${PV} =~ [9]{4,} ]]; then |
66 |
+ EGIT_REPO_URI="git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/" |
67 |
+ inherit git-r3 |
68 |
+else |
69 |
+ SRC_URI="https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/${P}.tar.gz" |
70 |
+ KEYWORDS="~amd64 ~arm64 ~x86" |
71 |
+fi |
72 |
+ |
73 |
+LICENSE="LGPL-2.1" |
74 |
+SLOT="0" |
75 |
+IUSE="doc" |
76 |
+RDEPEND=" |
77 |
+ >=dev-libs/libtraceevent-1.3.0 |
78 |
+" |
79 |
+DEPEND="${RDEPEND}" |
80 |
+# source-highlight is needed, see bug https://bugs.gentoo.org/865469 |
81 |
+BDEPEND=" |
82 |
+ virtual/pkgconfig |
83 |
+ doc? ( app-text/xmlto app-text/asciidoc dev-util/source-highlight ) |
84 |
+" |
85 |
+ |
86 |
+PATCHES=( |
87 |
+ "${FILESDIR}"/${PN}-1.4.2-fix-test.patch |
88 |
+) |
89 |
+ |
90 |
+src_configure() { |
91 |
+ EMAKE_FLAGS=( |
92 |
+ "prefix=${EPREFIX}/usr" |
93 |
+ "libdir=${EPREFIX}/usr/$(get_libdir)" |
94 |
+ "CC=$(tc-getCC)" |
95 |
+ "AR=$(tc-getAR)" |
96 |
+ VERBOSE=1 |
97 |
+ ) |
98 |
+} |
99 |
+ |
100 |
+src_compile() { |
101 |
+ emake "${EMAKE_FLAGS[@]}" |
102 |
+ use doc && emake doc |
103 |
+} |
104 |
+ |
105 |
+src_install() { |
106 |
+ emake "${EMAKE_FLAGS[@]}" DESTDIR="${ED}" install |
107 |
+ # can't prevent installation of the static lib with parameters |
108 |
+ rm "${ED}/usr/$(get_libdir)/libtracefs.a" || die |
109 |
+ # install-doc is wrong target, see https://bugs.gentoo.org/865465 |
110 |
+ use doc && emake "${EMAKE_FLAGS[@]}" DESTDIR="${ED}" install_doc |
111 |
+} |