oprofile: Upgrade to 1.4.0 release
PATCH 1/1 oprofile: Upgrade to 1.4.0 release
Drop upstreamed patches
Backport musl fix and deterministic build patches from master
Release notes - https://oprofile.sourceforge.io/release-notes/oprofile-1.4.0
Signed-off-by Khem Raj <[email protected]>
---
.../oprofile/0001-Fix-build-with-musl.patch | 55 +++++++++++++
.../0001-Use-new-bfd-APIs-from-2.34.patch | 79 -------------------
...ix-configure-when-bin-sh-is-not-bash.patch | 40 ++++++++++
...processor-variable-to-improve-reprod.patch | 30 +++++++
...UILD_DATE-to-improve-reproducibility.patch | 63 +++++++++++++++
...b-definition-for-NIOS2-architecture.patch} | 11 +--
...ce-sym_iterator-0-with-sym_iterator.patch} | 8 +-
...-want-GNU-levels-of-automake-strictn.patch | 23 ++++++
...include-linux-limits.h-for-MAX_INPUT.patch | 30 +++++++
...heck-tests-on-host-if-cross-compili.patch} | 31 ++++++--
...e-the-root-home-directory-dynamical.patch} | 44 ++++++-----
.../oprofile/oprofile/automake-foreign.patch | 12 ---
.../oprofile/oprofile/include_limits.patch | 17 ----
.../oprofile/oprofile/musl.patch | 46 -----------
.../recipes-kernel/oprofile/oprofile_1.3.0.bb | 13 ---
.../{oprofile.inc => oprofile_1.4.0.bb} | 36 +++++----
16 files changed, 319 insertions(+), 219 deletions(-)
create mode 100644 meta-oe/recipes-kernel/oprofile/oprofile/0001-Fix-build-with-musl.patch
delete mode 100644 meta-oe/recipes-kernel/oprofile/oprofile/0001-Use-new-bfd-APIs-from-2.34.patch
create mode 100644 meta-oe/recipes-kernel/oprofile/oprofile/0002-Fix-configure-when-bin-sh-is-not-bash.patch
create mode 100644 meta-oe/recipes-kernel/oprofile/oprofile/0003-Define-the-C-preprocessor-variable-to-improve-reprod.patch
create mode 100644 meta-oe/recipes-kernel/oprofile/oprofile/0004-Use-BUILD_DATE-to-improve-reproducibility.patch
rename meta-oe/recipes-kernel/oprofile/oprofile/{0001-Add-rmb-definition-for-NIOS2-architecture.patch => 0005-Add-rmb-definition-for-NIOS2-architecture.patch} (71%)
rename meta-oe/recipes-kernel/oprofile/oprofile/{0001-replace-sym_iterator-0-with-sym_iterator.patch => 0006-replace-sym_iterator-0-with-sym_iterator.patch} (96%)
create mode 100644 meta-oe/recipes-kernel/oprofile/oprofile/0007-oprofile-doesn-t-want-GNU-levels-of-automake-strictn.patch
create mode 100644 meta-oe/recipes-kernel/oprofile/oprofile/0008-include-linux-limits.h-for-MAX_INPUT.patch
rename meta-oe/recipes-kernel/oprofile/oprofile/{oprofile-cross-compile-tests.patch => 0009-Prevent-running-check-tests-on-host-if-cross-compili.patch} (79%)
rename meta-oe/recipes-kernel/oprofile/oprofile/{root-home-dir.patch => 0010-oprofile-Determine-the-root-home-directory-dynamical.patch} (76%)
delete mode 100644 meta-oe/recipes-kernel/oprofile/oprofile/automake-foreign.patch
delete mode 100644 meta-oe/recipes-kernel/oprofile/oprofile/include_limits.patch
delete mode 100644 meta-oe/recipes-kernel/oprofile/oprofile/musl.patch
delete mode 100644 meta-oe/recipes-kernel/oprofile/oprofile_1.3.0.bb
rename meta-oe/recipes-kernel/oprofile/{oprofile.inc => oprofile_1.4.0.bb} (67%)meta-oe/recipes-kernel/oprofile/oprofile/0001-Fix-build-with-musl.patch new file +55 -0
@@ -0,0 +1,55 @@ +From 5ed9bda8baf7465172a99ff86ed7f46397b06c7f Mon Sep 17 00:00:00 2001 +From: Andrew Savchenko <[email protected]> +Date: Sat, 5 Sep 2020 14:41:30 +0300 +Subject: [PATCH 01/10] Fix build with musl + +--Signature=_Sat__5_Sep_2020_14_41_30_+0300_B.qpPPwu83bbA.32 +Content-Type: text/plain; charset=US-ASCII +Content-Disposition: inline +Content-Transfer-Encoding: quoted-printable + +When musl is used instead of glibc, oprofile build fails because it +uses glibc-specific FTW extension: FTW_ACTIONRETVAL for custom +__delete_old_previous_sample_data return codes and FTW_STOP, +FTW_CONTINUE for such return codes. Musl supports only POSIX ftw, so +build fails. + +However, this extension is not really needed by oprofile, because +FTW_SKIP_* are not used and {FTW_STOP,FTW_CONTINUE} can be handled +by standard return codes {1,0} (more precisely standard defines +{!0,0}, but in glibc FTW_STOP = 1, so I keep this value). + +Upstream-Status: Backport [https://sourceforge.net/p/oprofile/oprofile/ci/5ed9bda8baf7465172a99ff86ed7f46397b06c7f/] +Signed-off-by: Andrew Savchenko <[email protected]> +--- + pe_profiling/operf.cpp | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/pe_profiling/operf.cpp b/pe_profiling/operf.cpp +index 06a0ea3c..00834409 100644 +--- a/pe_profiling/operf.cpp ++++ b/pe_profiling/operf.cpp +@@ -860,9 +860,9 @@ static int __delete_old_previous_sample_data(const char *fpath, + { + if (remove(fpath)) { + perror("sample data removal error"); +- return FTW_STOP; ++ return 1; + } else { +- return FTW_CONTINUE; ++ return 0; + } + } + +@@ -897,7 +897,7 @@ static void convert_sample_data(void) + return; + + if (!operf_options::append) { +- int flags = FTW_DEPTH | FTW_ACTIONRETVAL; ++ int flags = FTW_DEPTH; + errno = 0; + if (nftw(previous_sampledir.c_str(), __delete_old_previous_sample_data, 32, flags) !=0 && + errno != ENOENT) { +-- +2.31.0 +
meta-oe/recipes-kernel/oprofile/oprofile/0001-Use-new-bfd-APIs-from-2.34.patch deleted +0 -79
79 lines not on this page · raw message
meta-oe/recipes-kernel/oprofile/oprofile/0002-Fix-configure-when-bin-sh-is-not-bash.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 91bedd280b8a3fb4665db627559abba960be4212 Mon Sep 17 00:00:00 2001 +From: Andrew Savchenko <[email protected]> +Date: Sat, 5 Sep 2020 14:40:07 +0300 +Subject: [PATCH 02/10] Fix configure when /bin/sh is not bash + +--Signature=_Sat__5_Sep_2020_14_40_08_+0300_w+XY/NnD8_G.Kd1s +Content-Type: text/plain; charset=US-ASCII +Content-Disposition: inline +Content-Transfer-Encoding: quoted-printable + +When /bin/sh used by autoconf is not bash, e.g. dash, configure +fails because it uses bash-specific equality operator "==". + +Fix this problem by replacing "==" with POSIX "=" which is +sufficient for test where it is being used. + +Upstream-Status: Backport [https://sourceforge.net/p/oprofile/oprofile/ci/91bedd280b8a3fb4665db627559abba960be4212/] +Signed-off-by: Andrew Savchenko <[email protected]> +--- + configure.ac | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 05609f6e..f5fcd17d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -466,8 +466,8 @@ AX_COPY_IF_CHANGE(doc/xsl/catalog-1.xml, doc/xsl/catalog.xml) + + if ! test "x$enable_account_check" = "xyes"; then + : +-elif test "`getent passwd oprofile 2>/dev/null`" == "" || \ +- test "`getent group oprofile 2>/dev/null`" == ""; then ++elif test "`getent passwd oprofile 2>/dev/null`" = "" || \ ++ test "`getent group oprofile 2>/dev/null`" = ""; then + if test `id -u` != "0"; then + echo "Warning: The user account 'oprofile:oprofile' does not exist on the system." + echo " To profile JITed code, this special user account must exist." +-- +2.31.0 +
meta-oe/recipes-kernel/oprofile/oprofile/0003-Define-the-C-preprocessor-variable-to-improve-reprod.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 864e02eab12cdc523b2dcd3f7b87a27abc16eefc Mon Sep 17 00:00:00 2001 +From: Viktor Kleinik <[email protected]> +Date: Sun, 7 Mar 2021 17:07:44 +0000 +Subject: [PATCH 03/10] Define the C preprocessor variable to improve reproducibility + +Define the C preprocessor variable BUILD_DATE, which can be used +as source for reproducible build date in case when +SOURCE_DATE_EPOCH environment variable is set. + +Upstream-Status: Backport [https://sourceforge.net/p/oprofile/oprofile/ci/864e02eab12cdc523b2dcd3f7b87a27abc16eefc/] +Signed-off-by: Viktor Kleinik <[email protected]> +--- + configure.ac | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/configure.ac b/configure.ac +index f5fcd17d..dc447f89 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -31,6 +31,7 @@ if test -n "$SOURCE_DATE_EPOCH" ; then + fi + dnl for the man page + DATE="`date $dateopt '+%a %d %B %Y'`" ++AC_DEFINE_UNQUOTED([BUILD_DATE], ["$DATE"], [Use reproducible build date]) + AC_SUBST(DATE) + + # Since we should not permanently alter user environment variables, we'll +-- +2.31.0 +
meta-oe/recipes-kernel/oprofile/oprofile/0004-Use-BUILD_DATE-to-improve-reproducibility.patch new file +63 -0
63 lines not on this page · raw message
meta-oe/recipes-kernel/oprofile/oprofile/0005-Add-rmb-definition-for-NIOS2-architecture.patch renamed from meta-oe/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-NIOS2-architecture.patch +6 -5
@@ -1,19 +1,20 @@ -From 34b0d9b1a32fb404a30327a7ae8931c7c75583bf Mon Sep 17 00:00:00 2001 +From 3539d2ab392d3a3eecffeddac989016063b23713 Mon Sep 17 00:00:00 2001 From: Marek Vasut <[email protected]> Date: Tue, 9 Feb 2016 02:00:29 +0100 -Subject: [PATCH] Add rmb() definition for NIOS2 architecture +Subject: [PATCH 05/10] Add rmb() definition for NIOS2 architecture Signed-off-by: Marek Vasut <[email protected]> Upstream-Status: Submitted [ http://marc.info/?l=oprofile-list&m=145501915931874&w=2 ] +Signed-off-by: Khem Raj <[email protected]> --- libperf_events/operf_utils.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libperf_events/operf_utils.h b/libperf_events/operf_utils.h -index 32954cc..8270e53 100644 +index 8afdbc22..8e17213e 100644 --- a/libperf_events/operf_utils.h +++ b/libperf_events/operf_utils.h -@@ -178,6 +178,11 @@ void op_release_resources(void); +@@ -173,6 +173,11 @@ void op_release_resources(void); #define cpu_relax() asm volatile("" ::: "memory") #endif
@@ -26,5 +27,5 @@ index 32954cc..8270e53 100644 #include <asm/unistd.h> #define rmb() __insn_mf() -- -2.7.0 +2.31.0
meta-oe/recipes-kernel/oprofile/oprofile/0006-replace-sym_iterator-0-with-sym_iterator.patch renamed from meta-oe/recipes-kernel/oprofile/oprofile/0001-replace-sym_iterator-0-with-sym_iterator.patch +4 -4
@@ -1,7 +1,7 @@ -From b7c1a2e2b0f4657fe291324ca409224f3321c9ff Mon Sep 17 00:00:00 2001 +From b126134f68f4a5bd826141be68337ac15a7c2c04 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Tue, 12 Feb 2019 11:58:34 -0800 -Subject: [PATCH] replace (sym_iterator)0 with sym_iterator() +Subject: [PATCH 06/10] replace (sym_iterator)0 with sym_iterator() clang/libc++ find this error
@@ -20,7 +20,7 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/libpp/xml_utils.cpp b/libpp/xml_utils.cpp -index 3de41e5..f45d3ae 100644 +index 3de41e58..f45d3ae2 100644 --- a/libpp/xml_utils.cpp +++ b/libpp/xml_utils.cpp @@ -73,7 +73,7 @@ void dump_symbol(string const & prefix, sym_iterator it, bool want_nl = true)
@@ -127,5 +127,5 @@ index 3de41e5..f45d3ae 100644 string module = get_image_name((*it)->image_name, image_name_storage::int_filename, extra_found_images); -- -2.20.1 +2.31.0
meta-oe/recipes-kernel/oprofile/oprofile/0007-oprofile-doesn-t-want-GNU-levels-of-automake-strictn.patch new file +23 -0
@@ -0,0 +1,23 @@ +From fd35c343e67ca47f76d0769fce2881d5f7a027a9 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 18 Mar 2021 00:48:34 -0700 +Subject: [PATCH 07/10] oprofile doesn't want GNU-levels of automake strictness + so tell it to be "foreign". + +Upstream-Status: Pending +Signed-off-by: Ross Burton <[email protected]> +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/configure.ac ++++ b/configure.ac +@@ -13,7 +13,7 @@ AC_PREREQ(2.13) + + AC_INIT([OProfile], [1.4.0]) + AC_CONFIG_SRCDIR([libop/op_config.h]) +-AM_INIT_AUTOMAKE ++AM_INIT_AUTOMAKE([foreign]) + AC_CONFIG_HEADERS(config.h) + + AC_CHECK_DECLS([basename], [], [], [[#include <libgen.h>]])
meta-oe/recipes-kernel/oprofile/oprofile/0008-include-linux-limits.h-for-MAX_INPUT.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 33e945f31fee2d74a392eb79025c9477e12b590d Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 18 Mar 2021 00:49:48 -0700 +Subject: [PATCH 08/10] include linux/limits.h for MAX_INPUT + +Fixes +op_pe_utils.cpp:533:19: error: 'MAX_INPUT' was not declared in this scope + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + libpe_utils/op_pe_utils.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libpe_utils/op_pe_utils.cpp b/libpe_utils/op_pe_utils.cpp +index 1ca4ce3a..c5d16a56 100644 +--- a/libpe_utils/op_pe_utils.cpp ++++ b/libpe_utils/op_pe_utils.cpp +@@ -11,6 +11,7 @@ + * + */ + ++#include <linux/limits.h> + #include <linux/perf_event.h> + #include <dirent.h> + #include <stdio.h> +-- +2.31.0 +
meta-oe/recipes-kernel/oprofile/oprofile/0009-Prevent-running-check-tests-on-host-if-cross-compili.patch renamed from meta-oe/recipes-kernel/oprofile/oprofile/oprofile-cross-compile-tests.patch +23 -8
@@ -1,4 +1,7 @@ -Prevent running check tests on host if cross compiling +From 3a942cfd7d2e92667313e189930f7d1733cf40d4 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 18 Mar 2021 00:59:20 -0700 +Subject: [PATCH 09/10] Prevent running check tests on host if cross compiling This patch enables running the 'make check' tests on the target in a cross-compiled environment. If not cross-compiling, then 'make
@@ -18,12 +21,21 @@ from an expression based on the host path 'topdir'. Upstream-Status: Pending Signed-off-by: Dave Lerner <[email protected]> +Signed-off-by: Khem Raj <[email protected]> +--- + configure.ac | 1 + + libdb/tests/Makefile.am | 2 ++ + libop/tests/Makefile.am | 2 ++ + libregex/tests/Makefile.am | 2 ++ + libutil++/tests/Makefile.am | 4 ++++ + libutil/tests/Makefile.am | 2 ++ + 6 files changed, 13 insertions(+) diff --git a/configure.ac b/configure.ac -index 41ece64..ce5a16f 100644 +index 520b18ed..108a84e4 100644 --- a/configure.ac +++ b/configure.ac -@@ -392,6 +392,7 @@ AC_ARG_ENABLE(account-check, +@@ -386,6 +386,7 @@ AC_ARG_ENABLE(account-check, enable_account_check=$enableval, enable_account_check=yes) AM_CONDITIONAL(CHECK_ACCOUNT, test "x$enable_account_check" = "xyes")
@@ -32,7 +44,7 @@ index 41ece64..ce5a16f 100644 AC_SUBST(OP_CFLAGS) AC_SUBST(OP_CXXFLAGS) diff --git a/libdb/tests/Makefile.am b/libdb/tests/Makefile.am -index 8a69003..d820090 100644 +index 8a69003f..c933baf6 100644 --- a/libdb/tests/Makefile.am +++ b/libdb/tests/Makefile.am @@ -13,4 +13,6 @@ check_PROGRAMS = db_test
@@ -43,7 +55,7 @@ index 8a69003..d820090 100644 TESTS = ${check_PROGRAMS} +endif diff --git a/libop/tests/Makefile.am b/libop/tests/Makefile.am -index 8a79eb5..6d417c4 100644 +index 8a79eb5d..6b90e997 100644 --- a/libop/tests/Makefile.am +++ b/libop/tests/Makefile.am @@ -33,4 +33,6 @@ load_events_files_tests_LDADD = ${COMMON_LIBS}
@@ -54,7 +66,7 @@ index 8a79eb5..6d417c4 100644 TESTS = ${check_PROGRAMS} utf8_checker.sh +endif diff --git a/libregex/tests/Makefile.am b/libregex/tests/Makefile.am -index 6f19838..1d176f9 100644 +index 6f19838f..43e84946 100644 --- a/libregex/tests/Makefile.am +++ b/libregex/tests/Makefile.am @@ -18,4 +18,6 @@ java_test_LDADD = \
@@ -65,7 +77,7 @@ index 6f19838..1d176f9 100644 TESTS = ${check_PROGRAMS} +endif diff --git a/libutil++/tests/Makefile.am b/libutil++/tests/Makefile.am -index 51af031..a01ea2d 100644 +index 51af0313..dd63fbe2 100644 --- a/libutil++/tests/Makefile.am +++ b/libutil++/tests/Makefile.am @@ -1,7 +1,9 @@
@@ -86,7 +98,7 @@ index 51af031..a01ea2d 100644 TESTS = ${check_PROGRAMS} +endif diff --git a/libutil/tests/Makefile.am b/libutil/tests/Makefile.am -index dfcd6ec..e8831b5 100644 +index dfcd6eca..d8b51892 100644 --- a/libutil/tests/Makefile.am +++ b/libutil/tests/Makefile.am @@ -12,4 +12,6 @@ file_tests_LDADD = ../libutil.a
@@ -96,3 +108,6 @@ index dfcd6ec..e8831b5 100644 +if ! CROSS_COMPILE TESTS = ${check_PROGRAMS} +endif +-- +2.31.0 +
meta-oe/recipes-kernel/oprofile/oprofile/0010-oprofile-Determine-the-root-home-directory-dynamical.patch renamed from meta-oe/recipes-kernel/oprofile/oprofile/root-home-dir.patch +23 -21
57 lines not on this page · raw message
meta-oe/recipes-kernel/oprofile/oprofile/automake-foreign.patch deleted +0 -12
@@ -1,12 +0,0 @@ -oprofile doesn't want GNU-levels of automake strictness so tell it to be "foreign". - -Upstream-Status: Pending -Signed-off-by: Ross Burton <[email protected]> - -diff --git a/configure.ac b/configure.ac -index 5740585..cf6c316 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -16 +16 @@ AC_CONFIG_SRCDIR([libop/op_config.h]) --AM_INIT_AUTOMAKE -+AM_INIT_AUTOMAKE([foreign])
meta-oe/recipes-kernel/oprofile/oprofile/include_limits.patch deleted +0 -17
@@ -1,17 +0,0 @@ -include linux/limits.h for MAX_INPUT - -Fixes -op_pe_utils.cpp:533:19: error: 'MAX_INPUT' was not declared in this scope - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> ---- a/libpe_utils/op_pe_utils.cpp -+++ b/libpe_utils/op_pe_utils.cpp -@@ -11,6 +11,7 @@ - * - */ - -+#include <linux/limits.h> - #include <linux/perf_event.h> - #include <dirent.h> - #include <stdio.h>
meta-oe/recipes-kernel/oprofile/oprofile/musl.patch deleted +0 -46
46 lines not on this page · raw message
meta-oe/recipes-kernel/oprofile/oprofile_1.3.0.bb deleted +0 -13
@@ -1,13 +0,0 @@ -require oprofile.inc - -COMPATIBLE_HOST_riscv64 = "null" -COMPATIBLE_HOST_riscv32 = "null" - -DEPENDS_append_powerpc64 = " libpfm4" -DEPENDS_append_powerpc64le = " libpfm4" - -SRC_URI[md5sum] = "bd998df5521ebedae31e71cd3fb6200b" -SRC_URI[sha256sum] = "95ded8bde1ec39922f0af015981a67aec63e025a501e4dc04cd65d38f73647e6" - -S = "${WORKDIR}/oprofile-${PV}" -
meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb renamed from meta-oe/recipes-kernel/oprofile/oprofile.inc +22 -14
@@ -11,29 +11,31 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ SECTION = "devel" DEPENDS = "popt binutils" -RDEPENDS_${PN} = "binutils-symlinks" +DEPENDS_append_powerpc64 = " libpfm4" +DEPENDS_append_powerpc64le = " libpfm4" -FILES_${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}" -FILES_${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la" -FILES_${PN}-staticdev += "${libdir}/${BPN}/lib*.a" +COMPATIBLE_HOST_riscv64 = "null" +COMPATIBLE_HOST_riscv32 = "null" SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ file://acinclude.m4 \ - file://automake-foreign.patch \ - file://oprofile-cross-compile-tests.patch \ file://run-ptest \ - file://root-home-dir.patch \ - file://0001-Add-rmb-definition-for-NIOS2-architecture.patch \ - file://0001-replace-sym_iterator-0-with-sym_iterator.patch \ - file://0001-Use-new-bfd-APIs-from-2.34.patch \ - file://include_limits.patch \ + file://0001-Fix-build-with-musl.patch \ + file://0002-Fix-configure-when-bin-sh-is-not-bash.patch \ + file://0003-Define-the-C-preprocessor-variable-to-improve-reprod.patch \ + file://0004-Use-BUILD_DATE-to-improve-reproducibility.patch \ + file://0005-Add-rmb-definition-for-NIOS2-architecture.patch \ + file://0006-replace-sym_iterator-0-with-sym_iterator.patch \ + file://0007-oprofile-doesn-t-want-GNU-levels-of-automake-strictn.patch \ + file://0008-include-linux-limits.h-for-MAX_INPUT.patch \ + file://0009-Prevent-running-check-tests-on-host-if-cross-compili.patch \ + file://0010-oprofile-Determine-the-root-home-directory-dynamical.patch \ " +SRC_URI[sha256sum] = "7ba06f99d7c188389d20d1d5e53ee690c7733f87aa9af62bd664fa0ca235a412" + UPSTREAM_CHECK_REGEX = "oprofile-(?P<pver>\d+(\.\d+)+)/" UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/oprofile/files/oprofile/" -SRC_URI_append_libc-musl = " file://musl.patch \ -" - inherit autotools pkgconfig ptest EXTRA_OECONF = "--with-kernel=${STAGING_DIR_HOST}${prefix} --without-x ac_cv_prog_XSLTPROC="
@@ -65,3 +67,9 @@ do_install_ptest() { cp ${S}/libutil++/tests/file_manip_tests.cpp \ libutil++/tests/file_manip_tests.o ${D}${PTEST_PATH}/libutil++/tests } + +RDEPENDS_${PN} = "binutils-symlinks" + +FILES_${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}" +FILES_${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la" +FILES_${PN}-staticdev += "${libdir}/${BPN}/lib*.a"
Signature · 1 line
2.31.0