Commit Graph

245 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Alyssa Ross
caa96fda2c coreutils: disable acl and attr when unavailable
Fixes building for microblaze.
2024-08-12 17:52:57 +02:00
Travis A. Everett
8f413d8a44 binlore: migrate override lore to package passthru
Lore overrides have been included with binlore's source up to now, but
this hasn't worked very well. (It isn't as easy to self-service for
people working in nixpkgs, and its use of partial pnames for matching
breaks down around some edge cases like version numbers appearing
early in perl pnames, or multiple packages having identical pnames.)
2024-07-04 11:15:05 -05:00
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
f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00
Audrey Dutcher
52fd0f93df coreutils: enable single-binary build on FreeBSD 2024-05-22 14:25:27 -07:00
Audrey Dutcher
4cb9ec8a1e coreutils: make autoreconfHook dependency conditional 2024-05-20 19:18:29 +02:00
Audrey Dutcher
d0e553dafe coreutils: disable single-binary on native FreeBSD
Upstream bug report:
https://lists.gnu.org/archive/html/bug-coreutils/2024-05/msg00033.html
2024-05-20 19:18:29 +02:00
Vladimír Čunát
0af966f241
Merge #304323: coreutils: Skip df/total-verify test
...into staging
2024-05-05 08:47:08 +02:00
Thomas Gerbet
ea1b621f86 coreutils: fix test failure when using musl
https://lists.gnu.org/archive/html/bug-coreutils/2024-03/msg00089.html
2024-04-17 19:50:53 +02:00
Gavin John
61aef5404e
coreutils: Skip df/total-verify test 2024-04-15 12:00:48 -05:00
Janne Heß
34836ba568
coreutils: 9.4 -> 9.5
Announcement with changelog: https://lists.gnu.org/archive/html/info-gnu/2024-03/msg00006.html
2024-03-30 19:59:51 +01:00
Robert Scott
1cae11c0fc coreutils: disable trivialautovarinit hardening flag 2024-02-24 12:00:11 +00:00
Alyssa Ross
26a9e8a0c6 Revert "pkgsMusl.coreutils: fix build on aarch64"
This reverts commit 661dfd8347.

This problem has gone away now that aarch64-unknown-linux-musl has an
up-to-date bootstrap.
2024-01-25 21:29:35 +01:00
Sergei Trofimovich
c2c20bb22a
coreutils: 9.3 -> 9.4 (#264215)
Co-authored-by: Artturi <Artturin@artturin.com>
2023-11-19 23:24:45 +02:00
Janne Heß
65366c0602
coreutils: Re-enable hole seeking on Darwin
The bug appears to be resolved:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61386

See also here: https://github.com/openwrt/openwrt/pull/11960#issuecomment-1443787254

And here: https://github.com/openwrt/openwrt/pull/12233
2023-05-01 11:13:20 +02:00
Janne Heß
d7e6609505
coreutils: 9.1 -> 9.3
The changes are mostly minor; numerous bugs have been fixed and a few
new command-line options have been added.

Changelog: https://lists.gnu.org/archive/html/coreutils-announce/2023-03/msg00000.html
2023-05-01 11:13:20 +02:00
Artturin
6b2a05e190 treewide: manual fixups for
treewide: use toString on list NIX_CFLAGS_COMPILE
treewide: move NIX_CFLAGS_COMPILE to the env attrset
2023-02-22 21:23:04 +02: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
Artturin
6f6cc4a22d treewide: use toString on list NIX_CFLAGS_COMPILE
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
2023-02-22 21:23:04 +02:00
Josef Kemetmüller
a6c3003f34 coreutils: Skip another test that fails on btrfs 2022-09-08 01:39:30 +02:00
Janne Heß
012d5bbf96
Merge pull request #180173 from lopsided98/coreutils-uptime
coreutils: enable /proc/uptime support when cross-compiling
2022-07-06 21:49:04 +02:00
Ben Wolsieffer
03d159b493 coreutils: enable /proc/uptime support when cross-compiling
/proc/uptime support can't be detected automatically when cross-compiling, so
it is disabled by default. This causes extremely large uptime values (e.g.
19167 days) on systems without RTCs because the boot time is set to the
epoch.
2022-07-05 19:53:50 -04:00
Robert Scott
c9afe80ba5 coreutils: reintroduce patch disabling SEEK_HOLE in cp for darwin x86_64
partial revert of a891659902
2022-06-25 23:24:44 +01:00
AndersonTorres
312928f0bc coreutils: refactor the expression 2022-06-19 00:46:38 -03:00
AndersonTorres
40c7edc3ab coreutils: use SRI hash format 2022-06-16 12:27:11 -03:00
Janne Heß
a9468b99ef
coreutils: Get rid of the optionalAttrs 2022-05-26 13:28:14 +02:00
Janne Heß
5de817cd3f
coreutils: NixOS.org -> nixos.org
Capitalized URLs look weird
2022-05-26 12:18:42 +02:00
Janne Heß
a891659902
coreutils: 9.0 -> 9.1 2022-05-25 22:08:30 +02:00
Alyssa Ross
661dfd8347 pkgsMusl.coreutils: fix build on aarch64
I suspect this issue is caused by the very old version of diffutils we
have in the aarch64+musl bootstrap tools, so hopefully we can
re-enable the tests once we have newer bootstrap tools.
2022-04-22 17:26:43 +00:00
Alyssa Ross
e30f0f31e8 coreutils: add debug output 2022-03-28 22:22:39 +00:00
Dmitry Kalinkin
2ddda43924
Merge branch 'staging' into staging-next
Conflicts:
	pkgs/os-specific/linux/kernel/common-config.nix
2021-12-25 17:16:26 -05:00
Patrick Meyer
373d2348be coreutils: patch for uname to show the correct arch on arm macos
Until a recent patch in coreutils, gnus uname -p returned a different
arch on apple silicon macs, compared to the uname shipped with macos.
This causes config.guess to produce incorrect build system triplets
for various projects on these systems when in a nix-shell.[23][42]

As coreutils only releases every few months/years and no release is
planned at the moment, I'm introducing the patch here. We can drop it
once the next coreutils version is released.

I made a tiny adjustment to the patch from [23]. I removed the usage
of MAYBE_UNUSED, which currently only compiles against HEAD.

[23] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=52330
[42] https://github.com/NixOS/nixpkgs/issues/147914
2021-12-22 04:36:40 -05:00
Artturin
abc6924adf coreutils: add -full postfix when not minimal 2021-12-21 20:46:46 +02:00
Janne Heß
e165f73601
coreutils: Disable cut-huge-range.sh 2021-11-09 11:59:38 +01:00
Janne Heß
15c01ca722
coreutils: Enable more tests
These were tested on x86_64-linux with both the daemon and root mode and
on aarch64-linux in daemon mode.
2021-11-09 11:59:36 +01:00
Janne Heß
ea9de89376
coreutils: Remove outdated patches
The arm patch tries to modify files that are nowhere to be found in the
entire source tree. The cygwin patch also doesn't work so good anymore:

1 out of 1 hunk FAILED -- saving rejects to file ChangeLog.rej
1 out of 1 hunk ignored -- saving rejects to file configure.ac.rej
1 out of 1 hunk FAILED -- saving rejects to file lib/hash-triple.c.rej
2 out of 2 hunks ignored
2 out of 2 hunks FAILED -- saving rejects to file src/chroot.c.rej
1 out of 1 hunk FAILED -- saving rejects to file src/cksum.c.rej
6 out of 9 hunks FAILED -- saving rejects to file src/copy.c.rej
1 out of 4 hunks FAILED -- saving rejects to file src/dd.c.rej
1 out of 1 hunk ignored
1 out of 2 hunks FAILED -- saving rejects to file src/mv.c.rej
4 out of 7 hunks FAILED -- saving rejects to file src/stat.c.rej
2021-11-09 11:59:08 +01:00
happysalada
1f4911e267 coreutils: disable flaky test 2021-11-09 19:51:53 +09:00
github-actions[bot]
7516a2e172
Merge staging-next into staging 2021-11-04 00:02:12 +00:00
misuzu
34ceb8643c coreutils: drop upstreamed patch for armv7l 2021-11-03 22:06:48 +02:00
github-actions[bot]
858d551e40
Merge staging-next into staging 2021-10-31 12:01:52 +00:00
happysalada
441a141e72 coreutils: switch to version 9 for darwin 2021-10-31 16:46:50 +09:00
github-actions[bot]
37b1afa489
Merge staging-next into staging 2021-10-28 18:02:03 +00:00
Janne Heß
924ccbff80
coreutils: Disable SEEK_HOLE due to corruption
See https://github.com/openzfs/zfs/issues/11900 as an example. This only
happens on Coreutils 9.0. Reported here:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51433
2021-10-27 20:54:25 +02:00
github-actions[bot]
45203fdd86
Merge staging-next into staging 2021-10-25 18:02:02 +00:00
happysalada
d008d01cce coreutils: use version 8 for darwin 2021-10-25 22:26:03 +09:00
Sergei Trofimovich
df17077dba coreutils: enable parallel builds and tests
Tested on 16-core machine with 10 rebuilds:
    $ nix build -f. coreutils --repeat 10

No failures. Original failure is probably fixed upstream
with a69e54cfdf7 ("maint: fix dependency of man/arch.1".)
2021-10-17 21:30:55 +01:00
Janne Heß
b42fa98371
coreutils: Add myself as a maintainer 2021-09-30 21:23:57 +02:00
Janne Heß
a888c0d0e4
coreutils: 8.32 -> 9.0 2021-09-30 21:23:12 +02:00
Kranium Gikos Mendoza
17a9d5926c coreutils: disable tests on armv7l 2021-08-17 16:36:22 +10:00