Commit Graph

358175 Commits

Author SHA1 Message Date
Maximilian Bosch
8e16dcc4aa
openjdk11: fix build w/glibc-2.34
Failing Hydra build: https://hydra.nixos.org/build/154132196
2022-02-27 10:25:39 +01:00
Maximilian Bosch
917b7e5fd2
ocaml: fix build w/glibc-2.34
ChangeLog: https://hydra.nixos.org/build/154122673
2022-02-27 10:25:39 +01:00
Maximilian Bosch
1470227ef4
postfix: fix build w/glibc-2.34
Failing Hydra build: https://hydra.nixos.org/build/154082134
2022-02-27 10:25:38 +01:00
Maximilian Bosch
48d7135742
emacs: fix build w/glibc-2.34
Failing Hydra build: https://hydra.nixos.org/build/153252802
2022-02-27 10:25:38 +01:00
Maximilian Bosch
96418eb0e7
rcs: fix build w/glibc-2.34
Failing Hydra build: https://hydra.nixos.org/build/153235059
2022-02-27 10:25:38 +01:00
Maximilian Bosch
0caf7e5f0c
qt514.qtwebengine: fix build w/glibc-2.34
Same problem here as with QT 5.15.

Failing Hydra build: https://hydra.nixos.org/build/153224604
2022-02-27 10:25:37 +01:00
Maximilian Bosch
b9078e581b
qt515.qtwebengine: fix build w/glibc-2.34
Derived from Fedora 35: d122c01163
Failing Hydra build: https://hydra.nixos.org/build/153232768
2022-02-27 10:25:37 +01:00
Maximilian Bosch
f81f59dfce
autofs: fix build w/glibc-2.34
This build was also broken by a libc const that isn't a number anymore
and thus can't be used at places where a constant value is needed:

    automount.c:86:37: error: initializer element is not constant

Failing Hydra build: https://hydra.nixos.org/build/153253104
2022-02-27 10:25:37 +01:00
Maximilian Bosch
486f248ce4
catch: fix build w/glibc-2.34
The issue was that `SIGSTKSZ` isn't an actual const anymore and thus
can't be used to define sizes of static variables such as

    static char foo[SIGSTKSZ];

since this results in compiler errors such as

    error: array bound is not an integer constant before ']' token

Fedora worked around this by hard-coding the value in `catch`. Since
this is mainly a testing-framework and there's no other fix for v1 - we
should eventually remove it entirely in favor of v2 anyways - I guess
this is a good-enough fix.

Failing Hydra build: https://hydra.nixos.org/build/152455108
2022-02-27 10:25:36 +01:00
Maximilian Bosch
8631ba18ee
fuse: fix build w/glibc-2.34
`closefrom` is now a part of `glibc-2.34`[1]:

> * The function closefrom has been added.  It closes all file descriptors
>   greater than or equal to a given integer.  This function is a GNU extension,
>   although it is also present in other systems.

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

[1] https://sourceware.org/pipermail/libc-alpha/2021-August/129718.html
2022-02-27 10:25:36 +01:00
Maximilian Bosch
3aa6c49ab4
libressl: fix build w/glibc-2.34
Failing Hydra build: https://hydra.nixos.org/build/151984996
2022-02-27 10:25:36 +01:00
Maximilian Bosch
2357e828f5
gdb: fix build w/glibc-2.34
This is a problem that seems to be related to the most recent `gdb`
update in staging from 10.2 to 11.1[1] where `gdb` started to fail
during build with the following message:

    checking for stdlib.h... In file included from /nix/store/vf96x4h90fm7bwf5zvfx8zb82fm1p21j-glibc-2.34-5-dev/include/signal.h:328,
                     from ../../gnulib/import/signal.h:52,
                     from targ-map.c:7:
    targ-map.c:412:17: error: initializer element is not constant
      412 |   { "SIGSTKSZ", SIGSTKSZ, TARGET_SIGSTKSZ },
          |                 ^~~~~~~~
    targ-map.c:412:17: note: (near initialization for 'cb_init_signal_map[18].host_val')

Since I couldn't find any patches in the upstream repo or for other
repos - according to Repology we seem to be the only distro trying to
ship `gdb-11` with `glibc-2.34` - so I found the culprit while bisecting
`gdb` which seems to be commit `a0e674c1`[2].

It seems as if the entire `sim/`-subtree is now built by default if
`--enable-targets=all` is set (which we do for cross debugging). However
it also generates a file called `targ-map.c` referencing `SIGSTKSZ`
assuming that it's const, although this is not the case anymore with
`glibc-2.34`[3].

Since I don't really understand, what precisely is going on in there and
there are no patches available I decided to switch back to the 10.2
behavior here and disable the feature by specifying `--disable-sim` as
configure flag.

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

[1] 43b96f66ef
[2] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=a0e674c1ce2c877426f8a861c5294c535c5d49e6
[3] see https://sourceware.org/pipermail/libc-alpha/2021-August/129718.html
2022-02-27 10:25:35 +01:00
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]
d8e4025066
Merge master into staging-next 2022-02-27 06:01:19 +00:00
Bobby Rong
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
Artturi
22dc22f8ce
Merge pull request #162019 from Kranzes/nextcloud-client
nextcloud-client: add xdg-utils
2022-02-27 06:46:11 +02:00
Artturi
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
Artturi
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
Artturi
f328c4f361
Merge pull request #162037 from veprbl/pr/broken_randtype
randtype: mark as broken on darwin
2022-02-27 06:38:16 +02:00
Artturi
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 Scott
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
Artturi
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 Okada
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
Renaud
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
piegames
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
Renaud
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. Ryantm
005a18f6bd hepmc3: 3.2.4 -> 3.2.5 2022-02-26 16:52:12 -05:00
Martin Weinelt
308403c329
Merge pull request #161663 from felixsinger/update/pkgs/mumble 2022-02-26 22:38:26 +01:00
Robert Scott
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 Scott
25babb40a5
Merge pull request #161693 from wahjava/update-fossil
fossil: 2.17 -> 2.18
2022-02-26 21:04:16 +00:00
Martin Weinelt
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 Rodas
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