Commit Graph

63 Commits

Author SHA1 Message Date
eljamm
d967abbd4f linuxPackages.lttng-modules: 2.13.22 -> 2.14.3
Changelog: https://github.com/lttng/lttng-modules/blob/v2.14.3/ChangeLog
Diff: db1de02175..0be94330d9
2026-05-15 21:57:18 -04:00
Samuel Dionne-Riel
45b07a1e25 linuxPackages.lttng-modules: Drop unneeded NIX_CFLAGS_COMPILE
Added wayyyy back in 2676cf9525, this
NIX_CFLAGS_COMPILE usage is now unneeded.

It *necessarily* had to be unneeded, as using kernelModuleMakeFlags and
the kernel's out-of-tree build tooling forces the unwrapped `cc` to be
used.

See here: f86e9fe549/pkgs/os-specific/linux/kernel/common-flags.nix (L10-L11)
2026-01-28 16:11:55 -05:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Ben Siraphob
3ebad1ce69 lttng-modules: 2.13.15 -> 2.13.22 2025-11-16 21:36:43 -05:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
Maximilian Bosch
5645cd22d4 linux: expose make flags for modules in linuxKernel.packages.linux_X_Y
Closes #376820

The issue with providing `moduleMakeFlags` via `passthru` of the kernel
package is that when this package gets overriden[1], the `moduleMakeFlags`
list still references the kernel without the overrides.

This broke e.g. kernel modules of linux-rpi4 which can be reproduced
with

    nix-build --argstr system aarch64-linux -A linuxKernel.packages.linux_rpi4.zfs_2_3

This used to break with

    Error: modDirVersion 6.6.51 specified in the Nix expression is wrong, it should be: 6.6.51-v8

since KBUILD_OUTPUT referenced the kernel without the changes from
`overrideDerivation` that also changes the `modDirVersion`.

The new approach is to add the build flags right into
`linuxKernel.packages.linux_X_Y`: that way we don't need any hacks to
update `moduleMakeFlags` when the derivation with the passthru gets
overridden.

By using the fixpoint of the package-set, the `kernelModuleMakeFlags`
list is correctly updated. E.g. given

    with import ./. {};

    linuxKernel.packages.linux_6_6.extend (self: super: {
      kernel = super.kernel.overrideAttrs (_: {
        name = "linux-snens";
      });
    })

the `makeFlags` is correctly updated:

    $ nix-instantiate snenskek.nix -A zfs_2_3.makeFlags --eval --strict
    [ "ARCH=x86_64" "CROSS_COMPILE=" "KBUILD_OUTPUT=/nix/store/gsp68549k1aqbwxwczpgw67w5jjn4shw-linux-snens-dev/lib/modules/6.6.74/build" ]

[1] E.g. `linux-rpi4`.
2025-01-27 16:09:50 +01:00
K900
aa3e94fe7c treewide: kernel.makeFlags -> kernel.moduleMakeFlags 2025-01-23 14:00:43 +03:00
John Chadwick
be42da7a28 linuxPackages.lttng-modules: 2.13.13 -> 2.13.15
Fixes the build for linuxPackages_latest.lttng-modules.
2024-10-16 19:23:13 +02:00
John Chadwick
9f9ef912d6 linuxPackages.lttng-modules: reformat with RFC style 2024-10-16 19:23:13 +02:00
Jonas Meurer
827cef3a17 linuxPackages.lttng-modules: 2.13.10 -> 2.13.13 2024-05-28 19:03:15 +02:00
Nick Cao
a64809bb5f linuxPackages.lttng-modules: 2.13.8 -> 2.13.10
Diff: https://github.com/lttng/lttng-modules/compare/v2.13.8...v2.13.10
2023-07-22 10:12:51 +08:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
superherointj
5cc9837bb5 linuxPackages.lttng-modules: 2.13.4 -> 2.13.8 2023-02-02 18:31:02 -03:00
superherointj
f175291ce8 linuxPackages.lttng-modules: mark broken for 5.10 2022-09-01 07:29:22 +02:00
fortuneteller2k
282052f1dd linuxPackages.lttng-modules: 2.13.2 -> 2.13.4 2022-08-04 11:33:01 +02:00
Alyssa Ross
5b5c1f8cd1 linuxPackages.lttng-modules: mark broken on Linux 5.18 2022-05-25 12:29:13 +00:00
Alyssa Ross
75501aff5a linuxPackages.lttng-modules: 2.13.1 -> 2.13.2
Fixes the build with Linux 5.17.
2022-03-21 08:03:08 +01:00
Nick Cao
c35ec1c031 lttng-modules: prepend kernel.makeFlags to makeFlags, move moduleBuildDependencies to nativeBuildInputs 2022-03-07 12:23:46 +08:00
Alyssa Ross
1febc39a5a linuxPackages.lttng-modules: 2.13.0 -> 2.13.1
This release adds Linux 5.16 compatibility.
2022-01-10 03:08:34 +00:00
Alyssa Ross
9908972055 linuxPackages.lttng-modules: 2.12.6 -> 2.13.0
Fixes build with linuxPackages_5_14.
2021-08-30 10:11:22 +00:00
fortuneteller2k
b06a0d409e linuxPackages.lttng-modules: 2.10.5 -> 2.12.6 2021-06-11 20:04:44 -07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Robin Gloster
f9f46dc327 treewide: NIX_*_FLAGS -> string 2019-12-31 00:15:46 +01:00
Bjørn Forsman
7dbd9a6378 lttng-modules: use kernel.moduleBuildDependencies
Instead of explicitly depending on libelf, use
kernel.moduleBuildDependencies which was introduced in 1e77d0b975
("kernel 4.14 require libelf to compile modules.").
2018-06-08 18:25:39 +02:00
Bjørn Forsman
0f8594170a lttng-modules: add 'libelf' to fix build against linux 4.14
Fixes this:

$ nix-build -A linuxPackages.lttng-modules
[...]
/nix/store/...-linux-4.14.48-dev/lib/modules/4.14.48/source/Makefile:948: \
  *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfu

(Linux 4.16+ has other issues, so mark as broken.)
2018-06-07 22:29:35 +02:00
Ryan Mulligan
b189247ba0 treewide: use more HTTPS URLs
Uses the HTTPS url for cases where the existing URL has a permanent
redirect. For each domain, at least one fixed derivation URL was
downloaded to test the domain is properly serving downloads.

Also fixes jbake source URL, which was broken.
2018-03-24 22:04:25 -07:00
Bjørn Forsman
f08e330ed4 lttng-modules: 2.10.0 -> 2.10.5
Fixes build failure against newer linux kernels.
2018-02-01 08:04:09 +01:00
Joachim Fasting
7d69e5a18f linuxPackages.lttng-modules: broken on kernels >4.11 2017-09-17 09:44:04 +02:00
Joachim Fasting
9e395545e8 linuxPackages.lttng-modules: 2.9.3 -> 2.10.0 2017-09-17 09:44:04 +02:00
Jörg Thalheim
44f93731d6 linux_chromiumos_3_18: remove kernel due lack of maintainer/breakage
There is no maintainer for this package, probably not many users.
It requires effort to fix all third-party modules for this old kernel
versions. It might contain unpatched security holes.

For Pixel chromebooks, we have the samus-kernel.
Apart from that https://github.com/GalliumOS/linux might be a good choice.
2017-09-05 14:42:23 +02:00
Jörg Thalheim
a087e5a53a lttng-modules: 2.9.1 -> 2.9.3 2017-06-24 10:26:19 +01:00
Joachim Fasting
e6c65ecb12 tree-wide: remove uses of features.grsecurity 2017-05-14 15:08:51 +02:00
Nikolay Amiantov
fd29b10606 linuxPackages.lttng-modules: 2.8.3 -> 2.9.1 2017-02-23 13:04:23 +03:00
Joachim Fasting
ae5d404509 lttng-modules: 2.8.0 -> 2.8.3
Fixes build against linux >=4.8

Full changelog at
https://git.lttng.org/?p=lttng-tools.git;a=blob_plain;f=ChangeLog;hb=13dc409a5ea439b96b805c3c71886a3fcfad18e8

Tested with nix-build -A linuxPackages.lttng-modules -A linuxPackages_latest.lttng-modules
2016-11-06 13:57:34 +01:00
Domen Kožar
77a67189ef lttng-modules: broken on chromiumos
(cherry picked from commit 3f4d94a4c2)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-16 11:12:29 +02:00
obadz
b74793bd1c Merge branch 'master' into staging
Conflicts:
	pkgs/tools/system/facter/default.nix
2016-08-29 12:44:17 +01:00
Joachim Fasting
898edb0fbc lttng-modules: 2.6.3 -> 2.8.0
Full changelog at
https://git.lttng.org/?p=lttng-modules.git;a=blob_plain;f=ChangeLog;hb=4d484e547c486f902a60216dc421cb891b772431

Built against linux and linux_latest

cc @bjornfor
2016-08-29 11:39:44 +02:00
Robin Gloster
2676cf9525 linuxPackages.lttng-modules: fix build 2016-08-14 08:59:19 +00:00
Robin Gloster
f60c9df0ba Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-03-28 15:16:29 +00:00
Joachim Fasting
a452b43ee5 lttng-modules: mark as broken on kernel version <3.18
On linux 3.14, we get errors like
  error: 'struct snd_soc_codec' has no member named 'name'
     __string( name,  codec->CODEC_NAME_FIELD )
indicating that the module is incompatible with the linux API
in this kernel version.

See https://hydra.nixos.org/build/33102405/nixlog/1/raw
2016-03-27 20:13:21 +02:00
Joachim Fasting
1939256550 lttng-modules: mark as broken on grsec
All hydra builds against grsec kernels fail; seemingly because
the PaX hardening plugins are incompatible with lttng-modules
(the code writes to locations marked as read-only).
2016-03-27 01:39:07 +01:00
Franz Pletz
aff1f4ab94 Use general hardening flag toggle lists
The following parameters are now available:

  * hardeningDisable
    To disable specific hardening flags
  * hardeningEnable
    To enable specific hardening flags

Only the cc-wrapper supports this right now, but these may be reused by
other wrappers, builders or setup hooks.

cc-wrapper supports the following flags:

  * fortify
  * stackprotector
  * pie (disabled by default)
  * pic
  * strictoverflow
  * format
  * relro
  * bindnow
2016-03-05 18:55:26 +01:00
Robin Gloster
3acfaa6716 linuxPackages.lttng-modules: turn off pic hardening 2016-02-12 02:25:57 +00:00
Tomasz Kontusz
135fc6a769 lttng-modules: 2.6.2-1-g7a88f8b -> 2.6.3
This also drops the assertion about kernel.version - we don't have
anything older than 3.4 in nixpkgs anyway.
2015-09-14 21:45:37 +02:00
Luca Bruno
ffb8143cb1 lttng-modules: 2.6.0-5 -> 2.6.2-1, fixes build on kernel 3.18 2015-09-01 14:10:59 +02:00
Bjørn Forsman
ff9bc81946 lttng-modules: update to latest stable (fixes build)
Fixes build against linux 3.14.36+.

Also
* It works with linux 3.12 now, so remove that assert
* Remove unneeded patches (merged upstream)
2015-03-24 07:10:12 +01:00
Domen Kožar
ac80e36e4a lttng-modules: fix build on kernel 3.18 2014-12-10 12:55:05 +01:00
Bjørn Forsman
507e78fb94 lttng-modules: fix build on linux 3.14.x
By applying patch from upstream mailing list[1] (should be in the next
release).

[1]: http://lists.lttng.org/pipermail/lttng-dev/2014-December/023914.html
2014-12-09 19:34:41 +01:00