Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 581746 - dev-utils/perf: add support for ppc64
Summary: dev-utils/perf: add support for ppc64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Naohiro Aota
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-01 18:01 UTC by Leno Hou
Modified: 2019-03-30 18:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leno Hou 2016-05-01 18:01:13 UTC
This problem is due to lack of headers in src_unpack. following is  workaround patch

diff --git a/dev-util/perf/perf-4.4.4.ebuild b/dev-util/perf/perf-4.4.4.ebuild
index 18dd89e..b10b788 100644
--- a/dev-util/perf/perf-4.4.4.ebuild
+++ b/dev-util/perf/perf-4.4.4.ebuild
@@ -76,7 +76,7 @@ pkg_setup() {
 src_unpack() {
        local paths=(
                tools/arch tools/build tools/include tools/lib tools/perf tools/scripts
-               include lib "arch/*/lib"
+               arch/powerpc/include/uapi/asm include lib "arch/*/lib"
        )


Reproducible: Always

Steps to Reproduce:
make[2]: *** Waiting for unfinished jobs....
  powerpc64le-unknown-linux-gnu-gcc -Wp,-MD,./.cpu.o.d,-MT,cpu.o -Wbad-function-cast -Wdeclaration-after-statement -Wformat-security -Wformat-y2k -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-system-headers -Wold-style-definition -Wpacked -Wredundant-decls -Wshadow -Wstrict-aliasing=3 -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wwrite-strings -Wformat -O2 -pipe -ggdb3 -Wall -Wextra -std=gnu99  -O6 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BUILD_STR(s)=#s"   -c -o cpu.o cpu.c
  powerpc64le-unknown-linux-gnu-gcc -Wp,-MD,fs/.fs.o.d,-MT,fs/fs.o -Wbad-function-cast -Wdeclaration-after-statement -Wformat-security -Wformat-y2k -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-system-headers -Wold-style-definition -Wpacked -Wredundant-decls -Wshadow -Wstrict-aliasing=3 -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wwrite-strings -Wformat -O2 -pipe -ggdb3 -Wall -Wextra -std=gnu99  -O6 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BUILD_STR(s)=#s"   -c -o fs/fs.o fs/fs.c
In file included from arch/../util/../perf.h:15:0,
                 from arch/../util/event.h:7,
                 from arch/../util/debug.h:7,
                 from arch/common.c:4:
arch/../util/../perf-sys.h:40:56: fatal error: ../../arch/powerpc/include/uapi/asm/unistd.h: No such file or directory
Actual Results:  
failed to emerge perf on ppc64le platform

Expected Results:  
emerge perf successfully
Comment 1 SpanKY gentoo-dev 2016-05-01 18:40:57 UTC
this package isn't keyworded on ppc64 yet, so it's not expected to work

we probably want to list all target's uapi headers, so like:
  "arch/*/include/uapi"
Comment 2 Vincent de Phily 2019-03-29 16:34:24 UTC
Package is keyworded now, can probably close this ? I guess it got missed because of typo in summary.