summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2024-11-17 20:55:03 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2024-11-17 20:55:41 +0100
commit2d91cfaa37dac4c168de5a625a71540dbd554522 (patch)
tree204349251a955e8cc8e9cd676917b7ba78c6b5b4 /dev-util/oprofile
parentsys-fs/lvm2: add merge request url to patch (diff)
downloadgentoo-2d91cfaa37dac4c168de5a625a71540dbd554522.tar.gz
gentoo-2d91cfaa37dac4c168de5a625a71540dbd554522.tar.bz2
gentoo-2d91cfaa37dac4c168de5a625a71540dbd554522.zip
dev-util/oprofile: fix implicit declarations in configure
Closes: https://bugs.gentoo.org/875086 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'dev-util/oprofile')
-rw-r--r--dev-util/oprofile/files/config-implicit.patch11
-rw-r--r--dev-util/oprofile/oprofile-1.4.0.ebuild1
2 files changed, 12 insertions, 0 deletions
diff --git a/dev-util/oprofile/files/config-implicit.patch b/dev-util/oprofile/files/config-implicit.patch
new file mode 100644
index 000000000000..5ac20ef44e9f
--- /dev/null
+++ b/dev-util/oprofile/files/config-implicit.patch
@@ -0,0 +1,11 @@
+diff '--color=auto' -ruN oprofile-1.4.0.orig/configure.ac oprofile-1.4.0/configure.ac
+--- oprofile-1.4.0.orig/configure.ac 2024-11-17 20:45:17.223265547 +0100
++++ oprofile-1.4.0/configure.ac 2024-11-17 20:52:05.146394249 +0100
+@@ -118,6 +118,7 @@
+ #include <asm/unistd.h>
+ #include <sys/types.h>
+ #include <string.h>
++ #include <unistd.h>
+ ]],
+ [[struct perf_event_attr attr;
+ pid_t pid;
diff --git a/dev-util/oprofile/oprofile-1.4.0.ebuild b/dev-util/oprofile/oprofile-1.4.0.ebuild
index 60a651a71e68..e4667ded8841 100644
--- a/dev-util/oprofile/oprofile-1.4.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.4.0.ebuild
@@ -48,6 +48,7 @@ pkg_setup() {
src_prepare() {
eapply "${FILESDIR}/musl.patch"
eapply "${FILESDIR}/gcc12.patch"
+ eapply "${FILESDIR}/config-implicit.patch"
# bug 723092
sed -i 's/==/=/g' configure.ac || die