Commit Graph

69 Commits

Author SHA1 Message Date
Jonathan Ringer
a128e443c4
linuxPackages_5_13.perf: fix build
Also add optional libcap and zstd
2021-06-29 23:42:10 -07:00
Jonathan Ringer
2a45e01bb8
linuxPackages.perf: mark broken for kernels<5 2021-05-25 00:49:35 -07:00
Jonathan Ringer
9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00
Ben Siraphob
16d91ee628 pkgs/os-specific: stdenv.lib -> lib 2021-01-17 23:26:08 +07:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Jörg Thalheim
0fc20ed4fb
perf: fix build on 5.5 2020-01-30 12:11:16 +00:00
Robin Gloster
f9f46dc327
treewide: NIX_*_FLAGS -> string 2019-12-31 00:15:46 +01:00
Frederik Rietdijk
6d059becd3 Merge gcc-9 into staging (#68029) 2019-12-30 16:38:38 +01:00
Robin Gloster
2157dcd141
treewide: installFlags is a list 2019-12-30 13:22:43 +01:00
Franz Pletz
77b6c3cd06
Merge remote-tracking branch 'origin/master' into gcc-9 2019-12-26 14:17:36 +01:00
Jörg Thalheim
b7f504812b perf: build with python3 2019-12-01 18:53:03 +01:00
Franz Pletz
d98aee819f
linuxPackages.perf: fix build with gcc9 2019-11-05 01:55:45 +01:00
Austin Seipp
c8cb015ff6
linuxPackages.perf: add libopcodes as a buildInput
Newer versions of perf in Linux 5.1+ support disassembling and
annotating eBPF programs inside the kernel. In order to do this, it uses
libbfd's support for bpf disassembly. There are two parts: libopcodes
and libbfd.

The 'perf' build system seems to expect libopcodes/libbfd to go "hand in
hand" -- always together, if one or the other is installed. If the build
system detects libbfd is available, then an import of <dis-asm.h> is
performed, but this fails since it wasn't in the buildInput. Fixing this
should be an easy, backwards-compatible change.

Fixes #60891, allowing linuxPackages_testing.perf to build again
(currently kernel version 5.1.0-rc7).

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-05-03 15:10:46 -05:00
Matthew Bauer
76999cc40e treewide: remove aliases in nixpkgs
This makes the command ‘nix-env -qa -f. --arg config '{skipAliases =
true;}'’ work in Nixpkgs.

Misc...

- qtikz: use libsForQt5.callPackage

  This ensures we get the right poppler.

- rewrites:

  docbook5_xsl -> docbook_xsl_ns
  docbook_xml_xslt -> docbook_xsl

diffpdf: fixup
2018-07-18 23:25:20 -04:00
Jan Malakhovski
edc59b4715 linuxPackages.perf: disable format hardening, else tests will fail 2018-05-29 07:35:31 +00:00
Jan Malakhovski
7438083a4d tree-wide: disable doCheck and doInstallCheck where it fails (the trivial part) 2018-04-25 04:18:46 +00:00
Jörg Thalheim
f28bf68bc4 linuxPackages.perf: remove unused TIPDIR macro 2018-04-10 17:48:07 +01:00
Jörg Thalheim
0e2b222c24 linuxPackages.perf: use prefix instead of DESTDIR
Otherwise the build system computes incorrect references and looks for
perf-core in /libexec. DESTDIR for normal buildsystems is never the
right choice for nixpkgs.
2018-04-10 14:41:04 +01:00
Austin Seipp
2fa6cd257d perf: separateDebugInfo = true
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2018-02-20 22:17:24 -06:00
Austin Seipp
cbf6fa3cc7 perf: fix some hardcoded paths with newer, more exciting hardcoded NixOS paths!
In the long run it looks like we may actually need a small set of patches to
Perf if that's more maintainable, in which case we would much rather check
NIX_DEBUG_INFO_DIRS.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2018-02-20 22:17:12 -06:00
Austin Seipp
f0fe7bae99 linuxPackages.perf: fix tips.txt lookup, few extra deps
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2018-02-20 07:00:21 -06:00
Tuomas Tynkkynen
d9aebebaf5 Revert "perf: apply patch to fix build of 4.9"
This reverts commit 44dc31bad1.

The patch has been applied in 4.9.78, so no need to have this in
nixpkgs anymore.
2018-01-23 23:17:24 +02:00
Ben Wolsieffer
94276da9e9 perf: inherit makeFlags from kernel 2018-01-21 13:54:39 +02:00
Ben Wolsieffer
44dc31bad1 perf: apply patch to fix build of 4.9 2018-01-21 13:54:39 +02:00
Will Dietz
4ca9b43f12 perf: fix cross evaluation 2018-01-18 10:47:40 -06:00
Will Dietz
fc4535b6e8 Revert "perf: inherit makeFlags from kernel"
https://github.com/NixOS/nixpkgs/issues/34013

This reverts commit 92083c3f40.
2018-01-18 10:47:26 -06:00
Ben Wolsieffer
7bb3a044be kernel: fix dependencies 2018-01-15 22:28:45 -05:00
Ben Wolsieffer
92083c3f40 perf: inherit makeFlags from kernel 2018-01-15 12:48:56 -05:00
Ben Gamari
7a9b6ac39a kernel: Enable cross compiling 2018-01-15 11:55:06 -05:00
John Ericson
e755a8a27d treewide: Use targetPrefix instead of prefix for platform name prefixes
Certain tools, e.g. compilers, are customarily prefixed with the name of
their target platform so that multiple builds can be used at once
without clobbering each other on the PATH. I was using identifiers named
`prefix` for this purpose, but that conflicts with the standard use of
`prefix` to mean the directory where something is installed. To avoid
conflict and confusion, I renamed those to `targetPrefix`.
2017-11-27 03:15:50 -05:00
John Ericson
f8a18cd4cf misc pkgs: Manual fixup pkgconfig nativeBuildInputs after sed
Importantly, this included regenerating pkgs/servers/x11/xorg, to
clobber the old sed.
2017-09-21 15:49:54 -04:00
John Ericson
531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00
Robin Gloster
05b8cae9ec
linux: remove unused kernel patches 2017-08-11 19:13:09 +02:00
Jörg Thalheim
887570883e perf: remove binutils patch by wrapper
starting with linux 4.12 our patch no longer applied. In order to
avoid having to maintain patches for different linux kernels it is
easier to use a wrapper instead.
2017-07-23 15:18:02 +01:00
Tim Steinbach
b04858db1b
linux: 4.9.37 -> 4.9.38
Remove temporary patches to perf as well
2017-07-15 19:22:07 -04:00
Tim Steinbach
954c66983d
perf: Apply patch for offline kernels
As per https://lkml.org/lkml/2017/7/13/314, perf is broken in 4.9.36 and 4.9.37
Patches in this commit are taken from
https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/commit/?id=39f4f2c018bd831c325e11983f8893caf72fd9eb

This will allow perf to build again and should be included in a future 4.9.x release,
allowing the custom patching to be removed again
2017-07-14 20:07:16 -04:00
hsloan
16781a3892 kernel perf: Don't use stdenv.cross 2017-06-28 20:23:09 -04:00
Eelco Dolstra
63e9d1c51e
perf: Fix perf annotate
This command requires objdump, so make sure it can find it.
2017-06-12 13:23:18 +02:00
Vladimír Čunát
73d798549f
protobuf, perf: fix my bad condition on gcc version 2017-02-04 20:58:47 +01:00
Vladimír Čunát
e7c968fbf2
linuxPackages*.perf: fix build with default gcc
Broken since 9842a107.
2017-02-03 12:38:18 +01:00
Robin Gloster
9842a107da
linuxPackages.perf: fix build with gcc6 2017-01-25 20:12:38 +01:00
Anders Papitto
aa44330963 perf: add dependency on libaudit
the `trace` subcommand of perf is only enabled when libaudit is
available at compile time
2016-10-05 17:59:44 -07:00
Kirill Boltaev
0f37287df5 treewide: explicitly specify gtk version 2016-09-13 21:09:24 +03:00
Robin Gloster
c26de11551 linuxPackages.perf: fix build with new glibc and remove hack
elfutils now adds a eu- prefix to avoid collisions
2016-08-24 19:19:02 +00:00
Lluís Batlle i Rossell
dd02b6f118 perf: depend on libiberty to get c++ demangling. 2016-07-21 17:27:15 +02:00
Joachim Fasting
89c6b3c11a perf: fix build
https://hydra.nixos.org/build/33553564/nixlog/1/raw
2016-03-26 18:18:40 +01:00
Eelco Dolstra
789504dadf perf: Fix libbfd dependency
This fixes C++ symbol demangling.
2015-11-10 22:12:38 +01:00
Tuomas Tynkkynen
710c4c3c9d linuxPackages_*.perf: Fix build after kernel 4.1
In 4.1, the build system changed, and it now wants to execute ld like this:

ld -r -o util/scripting-engines/libperf-in.o util/scripting-engines/trace-event-perl.o util/scripting-engines/trace-event-python.o

The actual problem seems to be that `buildInputs = [elfutils ...]`
causes 'ld' to point to elfutils in PATH instead of the usual binutils.

So remove elfutils from buildInputs and set NIX_CFLAGS_* manually. This
is a slight hack, but there is some precedent:
0761f81da7/pkgs/tools/package-management/rpm/default.nix (L13)

Fixes #9095.
2015-09-03 23:37:15 +03:00
Eelco Dolstra
fa3bcc4f1c perf: Use libunwind and libbfd
This gives better stack traces.
2015-03-11 18:15:48 +01:00
Vladimír Čunát
a68c1adc35 *: fix builds by disregarding warning from new glibc
Says: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
CC: #4803. There will likely appear more of these errors on Hydra in time.
2014-11-26 23:40:03 +01:00