Commit Graph

160 Commits

Author SHA1 Message Date
Alyssa Ross
3df6bb2c85
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/applications/blockchains/polkadot/default.nix
2024-06-09 22:47:12 +01:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Sigmanificient
d48a9bb622 treewide: remove unused fetchpatch arguments 2024-06-04 12:40:25 +02:00
Thomas Mühlbacher
70f855d67d util-linux: add hd symlink for hexdump --canonical
As mentioned in the man page, `hd` is a shorthand for `hexdump
--canonical`. Shell completion (at least in bash) works without any
additional modifications.

In nixpkgs, hd is offered by busybox but not util-linux so far. Other
distros, such as Debian make hd available through a similar
implementation[1].

[1]: 4ccecb3e6d/debian/bsdextrautils.links
2024-05-27 17:32:11 +02:00
Vladimír Čunát
9ffb5583b1
util-linux: 2.39.3 -> 2.39.4
https://github.com/util-linux/util-linux/blob/v2.39.4/Documentation/releases/v2.39.4-ReleaseNotes
2024-05-24 11:01:09 +02:00
Alyssa Ross
0dbb16a003
Revert "util-linux: 2.39.3 -> 2.40.1"
This reverts commit 57bdbabed5.

Too many issues with 2.40 for now — we're reverting to 2.39.

Fixes: https://github.com/NixOS/nixpkgs/pull/311988
2024-05-22 18:30:08 +02:00
Alyssa Ross
7a870b7464
Revert "util-linux: try to fix parallel build failures"
This reverts commit cb8fa2b758.

Too many issues with 2.40 for now — we're reverting to 2.39.
2024-05-22 18:29:02 +02:00
Alyssa Ross
125b5dcfb5
Revert "util-linux: 2.40.1 -> 2.39.4 (except 64-bit linux for now)"
This reverts commit fa8ec6702a.

Too many issues with 2.40 for now — we're reverting to 2.39.
2024-05-22 18:28:56 +02:00
Alyssa Ross
d2b0bf5658
Revert "util-linux: also downgrade static builds already"
This reverts commit 15d8d27bd6.

Too many issues with 2.40 for now — we're reverting to 2.39.
2024-05-22 18:28:24 +02:00
Vladimír Čunát
15d8d27bd6
util-linux: also downgrade static builds already
We need this now to fix nixStatic build:
https://hydra.nixos.org/build/259722977
/cc PR #309805
2024-05-20 11:49:07 +02:00
Vladimír Čunát
fa8ec6702a
util-linux: 2.40.1 -> 2.39.4 (except 64-bit linux for now)
We're running into multiple issues, so let's be conservative.
In particular, this commit should fix *-darwin builds.
/cc PR #309805 as this is kind-of reverting it (partially for now)
2024-05-20 08:39:09 +02:00
Vladimír Čunát
cb8fa2b758
util-linux: try to fix parallel build failures
Difficult to know if these actually fix it, since it only happens
sometimes.

Link: https://github.com/NixOS/nixpkgs/pull/309805#issuecomment-2109348209
Link: https://lore.kernel.org/util-linux/87le4c1zm4.fsf@alyssa.is/

vcunat edit: only apply on some platforms for now,
balancing fixes and the amount of rebuild work on Hydra.
The rest is picked from PR #311988
2024-05-17 17:44:00 +02:00
Alyssa Ross
57bdbabed5
util-linux: 2.39.3 -> 2.40.1
Fixes: CVE-2024-28085
2024-05-07 09:50:26 +02:00
Sergei Trofimovich
02f7cdc1e4 util-linux: 2.39.2 -> 2.39.3
Changes: https://github.com/util-linux/util-linux/compare/v2.39.2...v2.39.3
2023-12-05 19:04:41 +00:00
Daniel Hill
d6bf8b47ec bcachefs: 2023-06-28 -> 2023-09-29
Includes prep work for mainline bcachefs release.
2023-10-03 22:00:26 +01:00
Sergei Trofimovich
a74411e309 util-linux: 2.39.1 -> 2.39.2
While at it added trivial updater.

Changes: https://github.com/util-linux/util-linux/compare/v2.39.1...v2.39.2
2023-08-18 10:39:04 +01:00
Sergei Trofimovich
6883e8826a util-linux: 2.39 -> 2.39.1
Changes: https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.39/v2.39.1-ChangeLog
2023-08-14 14:40:21 +01:00
sternenseemann
c995eb0c5e util-linux: add meta.pkgConfigModules annotation 2023-08-08 11:52:07 +02:00
Andrew Marshall
3d774b4453 util-linux: Fix build on non-Linux
Build logs show:

> configure: WARNING: non-linux system; not building mount
> configure: WARNING: non-linux system; not building swapon

So skip these on non-Linux

Using getOutput prevents eval failures on other platforms.
Things should stay eval'able with NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1

Co-authored-by: Artturin <Artturin@artturin.com>
2023-07-20 22:03:15 +03:00
Linus Heckemann
4eca45085d util-linux: fix linking login and swap tools to bin output 2023-07-10 13:56:48 +00:00
Linus Heckemann
eb0b0131ce util-linux: split mount, login and swap utils into their own outputs 2023-06-12 10:26:04 +02:00
Alois Wohlschlager
de643091d7
util-linux: backport bcache checksum patches
In util-linux 2.39, blkid was improved to verify the checksums for
several types of block devices. In the bcache case, this calculation was
incorrect, leading to a regression where valid bcache cache devices
would not be detected any more. In some cases, this can even break the
boot because a required bcache device does not come up any more.

In https://github.com/util-linux/util-linux/pull/2293, a fix was
introduced upstream. Include these patches to make bcache detection work
properly again.
2023-06-03 20:59:06 +02:00
K900
01e06549c6 util-linux: backport patches fixing mount on older kernels 2023-06-01 11:13:35 +03:00
Elias Naur
b1a49db914 util-linux: add darwin support 2023-05-22 10:28:03 +03:00
Elias Naur
7b61a60758 util-linux: 2.38.1 -> 2.39 2023-05-21 19:11:53 -06:00
laalsaas
7d9ab620de util-linux: install completion 2023-02-07 16:19:56 +01:00
Adam Joseph
42815b4a0c treewide: systemdSupport: use lib.meta.availableOn
Many packages have some kind of flag indicating whether or not to build with
systemd support.  Most of these default to `stdenv.isLinux`, but systemd does
not build on (and is marked `broken` for) `isStatic`.  Only a few packages have
the needed `&& !isStatic` in the default value for their parameter.

This commit moves the logic for the default value of these flags into
`systemd.meta.{platforms,badPlatforms}` and evaluates those conditions using
`lib.meta.availableOn`.

This provides three benefits:

1. The default values are set correctly (i.e. including `&& isStatic`)

2. The default values are set consistently

3. The way is paved for any future non-Linux systemd platforms (FreeBSD is
   reported to have experimental systemd support)
2023-01-22 00:27:19 -08:00
Martin Weinelt
73ffee8978
util-linux: pass libxcrypt, so sulogin gets built
Util-linux does not fail when crypt() isn't available. It just doesn't
build sulogin, which in turn breaks the initrd-builder for the
systemd-stage-1 tests.
2022-10-09 18:14:35 +02:00
R. Ryantm
a73156c64c util-linux: 2.38 -> 2.38.1 2022-08-06 09:14:39 +00:00
Robert Schütz
9112270b93 util-linux: 2.37.4 -> 2.38
https://kernel.org/pub/linux/utils/util-linux/v2.38/v2.38-ReleaseNotes
2022-06-27 05:32:34 +00:00
Dmitry Bogatov
39773cc073 util-linux: make dependencies on pam and libcap optional
Introduce new boolean arguments "pamSupport" and "capabilitiesSupport" that
control whether "pam" and "libcap" are compiled in. These flags are true by
default, so this commit does not cause any rebuilds.
2022-05-22 07:34:02 -04:00
Guillaume Girol
b79ebdec9b util-linux: fix static build by disabling systemd support 2022-04-24 23:20:48 +02:00
Adam Joseph
dacbee2182
util-linux: remove ? null from inputs and convert to boolean flags
Prior to this commit, util-linux supported compilation without systemd
if systemd==null.  This commit preserves that behavior, and
additionally triggers it when the global systemdSupport attr is set to
false.  The systemdSupport argument is understood by many other
nixpkgs expressions and can be set globally in
~/.config/nixpkgs/config.nix.

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-04-12 14:34:35 +02:00
Felix Buehler
bcad3669e8 util-linuxMinimal: remove appendToName to have a consistent package name for repology 2022-03-02 11:07:45 -08:00
Martin Weinelt
05d293c2bf
util-linux: 2.37.3 -> 2.37.4
Fixes: CVE-2022-0563
2022-02-14 14:33:59 +01:00
Martin Weinelt
87f2bae5ee
util-linux: 2.37.2 -> 2.37.3 2022-01-24 16:40:27 +01:00
Dmitry Kalinkin
984f2b02ca
Merge pull request #149530 from alyssais/util-linux-static
[staging-next] Revert "util-linux: fix static build"
2021-12-19 12:26:26 -05:00
Alyssa Ross
4809bd5bd0
Revert "util-linux: fix static build"
This reverts commit 1f0ef842ca.  The
underlying issue was fixed in 2ebeb02a99 ("stdenv/setup: tell libtool
about library paths"), so we don't need a workaround in util-linux any
more.
2021-12-08 05:42:08 +00:00
Alyssa Ross
ebd4e0ee01
util-linux: add debug output 2021-12-08 04:40:37 +00:00
SCOTT-HAMILTON
1f0ef842ca util-linux: fix static build 2021-11-26 16:38:42 +01:00
R. Ryantm
92a74926fa util-linux: 2.36.2 -> 2.37.2 2021-11-09 22:22:56 +00:00
Alyssa Ross
6490cd06af
util-linux: remove redundant configureFlags
These programs are both still built even when we don't pass the
flags.  (It appears that this was not the case when they were added to
the expression.)
2021-11-05 15:08:22 +00:00
Alyssa Ross
5a963f1d97 util-linux: replace "minimal" opt with more outputs
The "minimal" argument just removed some files to reduce package
size.  Now that we have multiple output derivations in Nixpkgs (we
didn't when "minimal" was added), we can just throw more outputs at
this problem and get the same effect, with the advantage that those
files are actually there, available for download without a rebuild, if
they're ever needed.

I've tested that with this change, there's no difference in the
closure size of util-linuxMinimal.bin.

We have to set SYSCONFSTATICDIR to stop $bin/bin/agetty looking in
$out for issue or issue.d.  SYSCONFSTATICDIR is supposed to be for
configuration that comes with a package, but it's currently only used
for finding an issue, and util-linux doesn't come with any issue
files, so I'm not really sure what the point is...
2021-10-11 15:15:14 +00:00
Alyssa Ross
acb63e654e util-linux: disable locales properly
Removing the locales after they've been built and installed is a big
hack when util-linux gives us an option to disable them directly.
This way, the code in util-linux that deals with locales can be
disabled as well, leading to a (very small) size reduction.
2021-10-11 15:15:14 +00:00
Alyssa Ross
93aac5dac0 util-linux: fix uuidd runtime directory
Quoting uuidd(8), as generated prior to this commit:

> By default, the pid file is written to
> /nix/store/6ig1awrlxd‐nadna38kxgfvds9kfr6ny2-util-linux-2.36.2/var/run/uuidd/uuidd.pid.

That's not right...
2021-10-11 15:15:14 +00:00
Alyssa Ross
5bd56cc236
util-linux: remove unnecessary perl build input
This was probably needed for scriptrelay(1) before it was rewritten
from Perl to C in util-linux 2.14.  I've checked with Diffoscope that
after removing the build input, the result is bit-for-bit identical
except for the different prefix.
2021-10-05 13:11:01 +00:00
ajs124
79aa8089cc util-linux: adjust meta.license 2021-04-09 19:42:27 +00:00
uosis
4acadd5e6d util-linux: add missing libcap dependency 2021-04-09 19:42:27 +00:00
ajs124
d031d68892 util-linux: 2.36.1 -> 2.36.2 2021-04-09 19:42:27 +00: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