Commit Graph
358163 Commits
Author SHA1 Message Date
Maximilian Bosch 1b8aa881ea glibc: revert /bin/bash usage
Rather than `$BASH`, `glibc` now hardcodes `/bin/bash` as
interpreter[1] in several scripts (including `ldd`).

This is a problem because relevant programs such as `ldd(1)` won't work
properly without this since we set `BASH` to `/bin/sh` to avoid
dependencies to the bootstrap tools for `bash` as runtime-dependency (since
NixOS doesn't have `/bin/bash`).

Considering that this was only done as an "improvement" to their
build-system and not because they wanted to use some bashisms here (the
variable was always called `BASH` and we still used `/bin/sh` anyways),
I'd consider this to be relatively safe.

[1] 5188a9d0265cc6f7235a8af1d31ab02e4a24853d
2022-02-27 10:25:35 +01:00
Maximilian Bosch f363b7c5df boost1{69,70,72}: fix build w/glibc-2.34
To quote the release-notes[1]:

> When _DYNAMIC_STACK_SIZE_SOURCE or _GNU_SOURCE are defined,
> PTHREAD_STACK_MIN is no longer constant and is redefined to
> sysconf(_SC_THREAD_STACK_MIN).  This supports dynamic sized register
> sets for modern architectural features like Arm SVE.

This basically means that if the above applies, `#if PTHREAD_STACK_MIN > 0`
won't compile anymore because `PTHREAD_STACK_MIN` isn't a hard-coded
number, but `__sysconf (__SC_THREAD_STACK_MIN_VALUE)`[2].

The issue (for 1.69, 1.70, 1.72 - the other versions seem OK) was
reported upstream, but only for Solaris[3], however the corresponding
patches[4] seem to work as well for us.

Failing Hydra build: https://hydra.nixos.org/build/150926294

[1] https://sourceware.org/pipermail/libc-alpha/2021-August/129718.html
[2] See `${pkgs.glibc.dev}/include/bits/pthread_stack_min-dynamic.h`
[3] https://github.com/boostorg/thread/issues/283
[4] https://github.com/conan-io/conan-center-index/pull/361
2022-02-27 10:25:35 +01:00
Maximilian Bosch 9fe34ccfbe glibc: also create backwards-compat symlinks for libdl and libutil
This fixes at least the openssl build.
2022-02-27 10:25:34 +01:00
Maximilian Bosch 49028fb110 findutils: fix build w/glibc-2.34
This "-D__nonnull\\(params\\)=" leads to a compilation failure in e.g.
the configure phase:

    configure:21131: gcc -c -D__nonnull\(params\)=  conftest.c >&5
    <command-line>: warning: ISO C99 requires whitespace after the macro name
    <command-line>: error: stray '\' in program
    <command-line>: error: expected ',' or ';' before '(' token
    <command-line>: error: stray '\' in program

According to the commit this isn't even needed on Linux.

I confirmed that this is an (expectable) glibc-2.34 thing by checking
that

* the issue doesn't occur with gcc 10/11 on a recent glibc-2.33 staging.
* the issue DOES occur in a docker container with Fedora rawhide (which
  has glibc 2.34 and gcc 11).
2022-02-27 10:25:34 +01:00
Maximilian Bosch 7bc32b3e5c glibc: symlink libpthread.so -> libpthread.so.0 (same for -lrt) for backwards compatibility
Linking via `-lpthread` (or `-pthread`) is not needed anymore since
`glibc-2.34` since all the functionality is part of `libc.so.6` and
`libpthread.so.6` only exists for backwards-compatibility.

However, e.g. `gcc` (`libgomp` to be precise) expects a `libpthread.so`
to link against, otherwise the configure script will fail. As already
stated in the glibc release-notes itself, it is to expect that a lot
more applications will have issues with this, so I decided to re-add
`libpthread.so` as well.

For `librt.so.1`, the same thing is needed to make sure that Perl still
compiles:

    /nix/store/d6y5r7m93x14bmgn2p75fannz39jz66f-binutils-2.35.1/bin/ld: cannot find -lrt
    collect2: error: ld returned 1 exit status
    make[1]: *** [Makefile:490: ../../lib/auto/Time/HiRes/HiRes.so] Error 1
    make[1]: Leaving directory '/build/perl-5.34.0/dist/Time-HiRes'
2022-02-27 10:25:34 +01:00
Maximilian Bosch 7459a4021c stdenv-bootstrap: force using new libc from stage2
This fix is needed to work around linker-errors such as

    undefined reference to `__libc_csu_fini'

which I got in almost every derivation which is part of stage2. The
reasoning behind this is that the startup-code was simplified[1] and
thus `__libc_csu_fini` doesn't exist anymore.

A workable solution is to use a newer libc which properly links in
stage3. And actually this seems expected given the rationale for stage3:

    # Construct a third stdenv identical to the 2nd, except that this
    # one uses the rebuilt Glibc from stage2.  It still uses the recent
    # binutils and rest of the bootstrap tools, including GCC.

So this patch basically overrides the libraries inside `gcc-unwrapped` -
which is basically the bootstrap tools and thus also contains the libc
used in stage3 - with the shared objects from the freshly built libc
from stage2.

[1] https://sourceware.org/pipermail/libc-alpha/2021-March/123079.html
2022-02-27 10:25:33 +01:00
Maximilian Bosch 97acaf6d65 glibc: 2.33-108 -> 2.34-115
Announcement: https://sourceware.org/pipermail/libc-alpha/2021-August/129718.html
2022-02-27 10:25:33 +01:00
Jan Tojnar 1316edc465 Merge branch 'staging-next' into staging 2022-02-27 09:24:31 +01:00
github-actions[bot]andGitHub d8e4025066 Merge master into staging-next 2022-02-27 06:01:19 +00:00
Bobby RongandGitHub f23d45dcfd Merge pull request #161991 from totoroot/update/qownnotes-22.2.9
qownnotes: 22.2.7 -> 22.2.9
2022-02-27 13:22:11 +08:00
ArtturiandGitHub 22dc22f8ce Merge pull request #162019 from Kranzes/nextcloud-client
nextcloud-client: add xdg-utils
2022-02-27 06:46:11 +02:00
ArtturiandGitHub 3743b4979b Merge pull request #162022 from martinetd/logrotate
logrotate/systemd: add 'minsize = 1M' to wtmp/btmp rotation
2022-02-27 06:44:14 +02:00
ArtturiandGitHub 7c50d01349 Merge pull request #162031 from wentasah/libtracefs-1.3.0
libtracefs: 1.2.5 -> 1.3.0
2022-02-27 06:40:14 +02:00
ArtturiandGitHub f328c4f361 Merge pull request #162037 from veprbl/pr/broken_randtype
randtype: mark as broken on darwin
2022-02-27 06:38:16 +02:00
ArtturiandGitHub 3f6ab5a550 Merge pull request #161417 from mweinelt/cyrus-sasl
cyrus_sasl: 2.1.27 -> 2.1.28
2022-02-27 06:30:24 +02:00
Robert ScottandGitHub dc23e69491 python3Packages.tensorflow: 2.7.0 -> 2.7.1 (#161589) 2022-02-26 21:18:14 -05:00
AndersonTorres 4db2ee6278 fixup patches reference on wxwidgets 2022-02-26 22:39:56 -03:00
Dmitry Kalinkin 23380df7de randtype: mark as broken on darwin 2022-02-26 20:37:04 -05:00
AndersonTorres e204eefe86 Merge branch 'master' into staging-next 2022-02-26 22:33:42 -03:00
ArtturiandGitHub 0b22100473 Merge pull request #157299 from magnetophon/zrythm 2022-02-27 02:45:33 +02:00
AndersonTorres ed2b1b4b90 Merge branch 'master' into staging-next 2022-02-26 21:04:25 -03:00
Michal Sojka fe73c8276a libtracefs: 1.2.5 -> 1.3.0 2022-02-27 00:36:46 +01:00
Thiago Kenji OkadaandGitHub 6f21ff94fc Merge pull request #162025 from bryanasdev000/pkg-velero-180
velero: 1.7.1 -> 1.8.0
2022-02-26 23:17:00 +00:00
RenaudandGitHub 2970b27faf Merge pull request #161916 from jyooru/update/ghorg
ghorg: 1.5.1 -> 1.7.8
2022-02-26 23:57:10 +01:00
Bryan A. S d1418cce93 velero: 1.7.1 -> 1.8.0 2022-02-26 19:44:37 -03:00
piegamesandGitHub 4c7d3f9854 Merge pull request #159983: coreboot-toolchain: 4.15 -> 4.16 2022-02-26 23:41:29 +01:00
Dominique Martinet 0dadec45d8 logrotate/systemd: add 'minsize = 1M' to wtmp/btmp rotation
align with upstream logrotate which added the minsize rule at some point.
This avoids needlessly rotating the files too often as brought up in
https://github.com/NixOS/nixpkgs/pull/159187#issuecomment-1052426774
2022-02-27 07:20:26 +09:00
RenaudandGitHub a178e05ae8 Merge pull request #162020 from lucasew/fix/bpycv
python3Packages.zcs: patch to fix the test
2022-02-26 23:07:44 +01:00
Felix Singer 953c9a5d6e coreboot-toolchain: 4.15 -> 4.16
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2022-02-26 23:02:27 +01:00
R. RyantmandDmitry Kalinkin 005a18f6bd hepmc3: 3.2.4 -> 3.2.5 2022-02-26 16:52:12 -05:00
Martin WeineltandGitHub 308403c329 Merge pull request #161663 from felixsinger/update/pkgs/mumble 2022-02-26 22:38:26 +01:00
Robert ScottandGitHub f1cf74f0c4 Merge pull request #161860 from r-ryantm/auto-update/pjsip
pjsip: 2.11.1 -> 2.12
2022-02-26 21:08:44 +00:00
Felix Singer c267e9ce37 mumble,murmur: 1.3.4 -> 1.4.231
Update version to 1.4.231.

Build 231 points to a specific commit from the 1.4.x branch adding many
fixes and improvements. Since this version is an unofficial release, add
an unstable prefix to the version string in Nixpkgs.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
Signed-off-by: Franz Pletz <fpletz@fnordicwalking.de>
2022-02-26 22:08:22 +01:00
Robert ScottandGitHub 25babb40a5 Merge pull request #161693 from wahjava/update-fossil
fossil: 2.17 -> 2.18
2022-02-26 21:04:16 +00:00
Martin WeineltandGitHub 4888dd78c5 Merge pull request #162017 from risicle/ris-mlflow-1.23.1 2022-02-26 21:56:47 +01:00
lucasew b438b68cb4 python3Packages.zcs: patch to fix the test
Signed-off-by: lucasew <lucas59356@gmail.com>
2022-02-26 17:10:45 -03:00
Mario RodasandGitHub 80dc2f98dc Merge pull request #161990 from r-ryantm/auto-update/shadowsocks-rust
shadowsocks-rust: 1.13.3 -> 1.13.5
2022-02-26 15:01:50 -05:00
Ilan Joselevich f29438562f nextcloud-client: add xdg-utils 2022-02-26 21:26:50 +02:00
Robert ScottandGitHub 1617337b74 Merge pull request #161905 from r-ryantm/auto-update/bosh-cli
bosh-cli: 6.4.16 -> 6.4.17
2022-02-26 19:08:35 +00:00
Michael WeissandGitHub 6d6c998f99 Merge pull request #162008 from primeos/chromiumBeta
chromiumBeta: 99.0.4844.35 -> 99.0.4844.45
2022-02-26 19:57:46 +01:00
Michael WeissandGitHub cf7cb652d2 Merge pull request #162009 from primeos/chromiumDev
chromiumDev: 100.0.4892.0 -> 100.0.4896.12
2022-02-26 19:57:36 +01:00
Michael WeissandGitHub 4b967d7feb Merge pull request #162004 from primeos/mesa
mesa: Limit the devDoesNotDependOnLLVM test to Linux
2022-02-26 19:56:55 +01:00
Robert ScottandGitHub 2ef8085858 Merge pull request #161909 from r-ryantm/auto-update/python3.10-zict
python310Packages.zict: 2.0.0 -> 2.1.0
2022-02-26 18:51:28 +00:00
Robert Scott cc0b1fddcd python3Packages.mlflow: 1.22.0 -> 1.23.1 2022-02-26 18:49:13 +00:00
Anderson TorresandGitHub bc5cf3afe9 Merge pull request #159476 from r-ryantm/auto-update/live555
live555: 2022.01.21 -> 2022.02.07
2022-02-26 15:15:26 -03:00
github-actions[bot]andGitHub 116e4c22ed Merge staging-next into staging 2022-02-26 18:01:43 +00:00
Michael Weiss 154e13a556 chromiumDev: 100.0.4892.0 -> 100.0.4896.12 2022-02-26 18:56:05 +01:00
Michael Weiss 05b2b4e3cb chromiumBeta: 99.0.4844.35 -> 99.0.4844.45 2022-02-26 18:55:34 +01:00
Michael Weiss 6431bebc93 mesa: Limit the devDoesNotDependOnLLVM test to Linux
The required modifications in the postInstall phase are only applied on
Linux and the test currently fails on Darwin:
https://github.com/NixOS/nixpkgs/runs/5344236204
> building '/nix/store/45s58pv9j6a19wr9izx49s6i0i4qshxs-mesa-dev-does-not-depend-on-llvm.drv'...
> error: output '/nix/store/czmszfcwdx87vx2wf80lhp3h9skqqcfs-mesa-dev-does-not-depend-on-llvm' is not allowed to refer to the following paths:
>          /nix/store/cwb5g57al7iizw456ah9rk49cxb47wi3-mesa-21.3.7-drivers
2022-02-26 18:48:17 +01:00
Michael WeissandGitHub f68dbdc7c3 Merge pull request #161954 from primeos/mesa
mesa: 21.3.6 -> 21.3.7
2022-02-26 18:12:17 +01:00