Commit Graph

394414 Commits

Author SHA1 Message Date
Sergei Trofimovich
ea8e124000 gcc: always enable inhibit_libc=true for --without-headers builds
It's a follow-up to the breakage caused by 21966e13d2
("gcc: pass --with-build-sysroot=/"). It caused `pkgsLLVM`
cross-toolchain bootstrap breakage:

    $ nix build --no-link -f. pkgsLLVM.hello
    ...
    failed: /nix/store/...-x86_64-unknown-linux-gnu-stage-static-gcc-13.0.0.drv:
    ...
    configure flags: ... --enable-languages=c --disable-multilib \
      --disable-shared --enable-plugin ... --disable-libssp --disable-nls \
      --without-headers --disable-threads --disable-libgomp --disable-libquadmath \
      --disable-shared --disable-libatomic --disable-decimal-float --disable-libmpx \
      --disable-bootstrap \
      \
      --build=x86_64-unknown-linux-gnu \
      --host=x86_64-unknown-linux-gnu \
      --target=x86_64-unknown-linux-gnu
    ...
    The directory that should contain system headers does not exist:
      /usr/include
    make[2]: *** [Makefile:3279: stmp-fixinc] Error 1 shuffle=1658621302
    rm gfdl.pod gcc.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod gpl.pod cpp.pod gcov.pod lto-dump.pod
    make[2]: Leaving directory '/build/build/gcc'

Note: it's a no-libc build. It's not expected to use any libc headers.
But in this case fixincludes tries to run and uses default /usr/include
location.

Fixinsludes is not normally expected to run during cross-compilation
on --without-headers. gcc/configure.ac:

    : ${inhibit_libc=false}
    if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
           test x$with_newlib = xyes ; } &&
         { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
           inhibit_libc=true
    fi

The change explicitly passes inhibit_libc=true to configure to disable
include fixing on such cases.

Fixed `nix build --no-link -f. pkgsLLVM.hello` toolchain bootstrap.
2022-07-24 09:54:49 +01:00
John Ericson
21966e13d2
Merge pull request #181943 from trofi/fix-cross-built-gcc
gcc: pass --with-build-sysroot=/
2022-07-23 23:52:07 -04:00
Artturi
79e8669003
Merge pull request #179603 from Artturin/subplacemultiple 2022-07-24 04:14:09 +03:00
Robert
649646d7b7
openssl: split runtime dependencies of static builds into a separate output (#182444) 2022-07-23 17:06:06 -04:00
Jan Tojnar
b29a70086f
Merge pull request #182588 from jtojnar/gnome-staging
GNOME staging updates
2022-07-23 21:40:41 +02:00
Sergei Trofimovich
34636efced gcc: pass --with-build-sysroot=/ for gcc builds
Without this change cross-built gcc fails to detect stack protector style:

    $ nix log -f pkgs/stdenv/linux/make-bootstrap-tools-cross.nix powerpc64le.bootGCC | fgrep __stack_chk_fail
    checking __stack_chk_fail in target C library... no
    checking __stack_chk_fail in target C library... no

It happens because gcc treats search paths differently:

    https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/configure.ac;h=446747311a6aec3c810ad6aa4190f7bd383b94f7;hb=HEAD#l2458

     if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
        test x$build != x$host || test "x$with_build_sysroot" != x; then
       ...
       if test "x$with_build_sysroot" != "x"; then
         target_header_dir="${with_build_sysroot}${native_system_header_dir}"
       elif test "x$with_sysroot" = x; then
         target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
       elif test "x$with_sysroot" = xyes; then
         target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
       else
         target_header_dir="${with_sysroot}${native_system_header_dir}"
       fi
     else
       target_header_dir=${native_system_header_dir}
     fi

By passing --with-build-sysroot=/ we trick cross-case to use
`target_header_dir="${with_sysroot}${native_system_header_dir}"`
which makes it equivalent to non-cross
`target_header_dir="${with_build_sysroot}${native_system_header_dir}"`

Tested the following setups:
- cross-compiler without libc headers (powerpc64le-static)
- cross-compiler with libc headers (powerpc64le-debug)
- cross-build compiler with libc headers (powerpc64le bootstrapTools)

Before the change only 2 of 3 compilers detected libc headers.
After the change all 3 compilers detected libc headers.

For darwin we silently ignore '-syslibroot //' argument as it does not
introduce impurities.

While at it dropped mingw special case for no-libc build. Before the change
we passed both '--without-headers --with-native-system-headers-dir' for
no-libc gcc-static builds. This tricked darwin builds to find sys/sdt.h
and fail inhibid_libc builds. Now all targets avoid passing native headers
for gcc-static builds.

While at it fixed correct headers passing to
--with-native-system-headers-dir= in host != target case: we were passing
host's headers where intention was to pass target's headers.
Noticed the mismatch as a build failure on pkgsCross.powernv.stdenv.cc
on darwin where `sys/sdt.h` is present in host's headers (libSystem)
but not target's headers (`glibc`).

Co-authored-by: Adam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com>
2022-07-23 18:40:07 +01:00
Jan Tojnar
c8cbb6ff4e vala: 0.56.1 → 0.56.2
https://gitlab.gnome.org/GNOME/vala/-/compare/0.56.1...0.56.2
2022-07-23 17:21:35 +02:00
Jan Tojnar
58aa5efc72 python3.pkgs.pygobject3: 3.42.1 → 3.42.2
https://gitlab.gnome.org/GNOME/pygobject/-/compare/3.42.1...3.42.2
2022-07-23 17:21:35 +02:00
github-actions[bot]
b38a1818bc
Merge staging-next into staging 2022-07-23 12:02:12 +00:00
github-actions[bot]
6629a2339e
Merge master into staging-next 2022-07-23 12:01:31 +00:00
Bjørn Forsman
16108ff74a nixos/jenkins-job-builder: set serviceConfig.Type = "oneshot"
This change allows detecting configuration errors during
switch-to-configuration instead of them being reported asynchronously
*after* switch-to-configuration has exited.

(And update the NixOS test accordingly.)
2022-07-23 13:30:53 +02:00
Janne Heß
57d8154c4e
Merge pull request #182534 from pbsds/rainloop-cve-2022-29360
rainloop-{community,standard}: patch CVE-2022-29360
2022-07-23 13:04:55 +02:00
Thiago Kenji Okada
65321512a1
Merge pull request #182554 from delroth/osu-723
osu-lazer: 2022.719.0 -> 2022.723.0
2022-07-23 11:56:45 +01:00
Doron Behar
9d36bc482a
Merge pull request #182047 from foo-dogsquared/frog
gnome-frog: init at 1.1.3
2022-07-23 13:24:13 +03:00
Bobby Rong
bab5c2f390
Merge pull request #182532 from r-ryantm/auto-update/godns
godns: 2.8.4 -> 2.8.5
2022-07-23 16:52:48 +08:00
Alyssa Ross
8e4221a177 minijail: 17 -> 18 2022-07-23 08:44:44 +00:00
Alyssa Ross
c1184b1383 minijail: add meta.changelog
Minijail release notes live in annotated git tags.
2022-07-23 08:44:44 +00:00
Alyssa Ross
5df33d0216 crosvm: add support for virgl_renderer{,_next} 2022-07-23 08:42:31 +00:00
Pierre Bourdon
9bbadc1ee4
osu-lazer: 2022.719.0 -> 2022.723.0 2022-07-23 10:25:33 +02:00
K900
42ca9bef09
Merge pull request #182430 from NickCao/duktape
duktape: force link shared library against libm
2022-07-23 09:22:37 +03:00
github-actions[bot]
f036546286
Merge staging-next into staging 2022-07-23 06:02:03 +00:00
github-actions[bot]
1ce437589a
Merge master into staging-next 2022-07-23 06:01:20 +00:00
Artturi
981d9c0926
Merge pull request #182385 from Artturin/bintoolswrapper1
bintools-wrapper: symlink unsymlinked binaries from -unwrapped
2022-07-23 08:07:43 +03:00
Maximilian Bosch
52dd719bbd
Merge pull request #178832 from ShamrockLee/wine-mainprogram
wine64Packages: fix mainProgram
2022-07-23 06:19:34 +02:00
Peder Bergebakken Sundt
d23282a2f5 rainloop-{community,standard}: patch CVE-2022-29360 2022-07-23 05:45:24 +02:00
R. Ryantm
10385021e4 godns: 2.8.4 -> 2.8.5 2022-07-23 03:36:46 +00:00
Bobby Rong
924911b199
Merge pull request #182183 from kilianar/orchis-theme-2022-07-20
orchis-theme: 2022-05-29 -> 2022-07-20
2022-07-23 11:31:29 +08:00
Bernardo Meurer
c104d82dda
Merge pull request #182480 from PedroHLC/zen-kernels-5.18.13
zen-kernels: 5.18.12 -> 5.18.13
2022-07-22 19:17:13 -07:00
Mario Rodas
f6c8fe9492
Merge pull request #182517 from newAM/biodiff
biodiff: 1.0.1 -> 1.0.3
2022-07-22 21:13:20 -05:00
github-actions[bot]
5a5a4cd387
Merge staging-next into staging 2022-07-23 00:03:08 +00:00
github-actions[bot]
055dd8a26e
Merge master into staging-next 2022-07-23 00:02:26 +00:00
Alex Martens
0b696d8ad7 biodiff: 1.0.1 -> 1.0.3 2022-07-22 16:31:15 -07:00
Shamrock Lee
c25543b554 wineWowPackages: default mainProgram to "wine64" 2022-07-22 22:45:44 +00:00
Michael Weiss
bc01a2be50
Merge pull request #182512 from primeos/chromiumDev
chromiumDev: 105.0.5176.3 -> 105.0.5191.2
2022-07-23 00:27:51 +02:00
zowoq
f348f9e308 sqlite: 3.39.1 -> 3.39.2
https://www.sqlite.org/releaselog/3_39_2.html
2022-07-23 08:24:40 +10:00
kilianar
f861ecf285 fzf: 0.30.0 -> 0.31.0
https://github.com/junegunn/fzf/releases/tag/0.31.0
2022-07-23 08:22:39 +10:00
Shamrock Lee
c2dbbe706b wine64Packages: fix mainProgram 2022-07-22 22:19:21 +00:00
Michael Weiss
92bb481cd7
chromiumDev: 105.0.5176.3 -> 105.0.5191.2 2022-07-23 00:08:32 +02:00
maxine [they]
9bff958870
Merge pull request #182288 from r-ryantm/auto-update/atkmm
atkmm: 2.28.2 -> 2.28.3
2022-07-22 22:19:23 +02:00
maxine [they]
82f3f226ac
Merge pull request #182289 from r-ryantm/auto-update/atkmm_2_36
atkmm_2_36: 2.36.1 -> 2.36.2
2022-07-22 22:18:54 +02:00
Nathan Parsons
308b5776a2
cnijfilter2: 6.10 -> 6.40 (#180681)
* cnijfilter2: 6.10 -> 6.40

* Fix compilation error related to duplicate definitions of GET_PROTOCOL

- Resolves the compilation issue reported at https://github.com/NixOS/nixpkgs/pull/180681#issuecomment-1192304711
- An identical issue was previously reported in Gentoo: https://bugs.gentoo.org/723186
- This patch is taken from the solution of Alfredo Tupone (https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24688d64544b43f2c14be54531ad8764419dde09)

Co-authored-by: Nathan Parsons <nathan@parsons.digital>
2022-07-22 22:16:37 +02:00
Artturi
aeed5a4f93
Merge pull request #179584 from Artturin/fmtupdate 2022-07-22 21:24:12 +03:00
7c6f434c
8db8ada3d0
Merge pull request #182415 from smancill/visidata-2.9.1
visidata: 2.8 -> 2.9.1
2022-07-22 18:19:58 +00:00
github-actions[bot]
54571d16f3
Merge staging-next into staging 2022-07-22 18:02:08 +00:00
github-actions[bot]
c3b55bb331
Merge master into staging-next 2022-07-22 18:01:23 +00:00
Winter
6d1b077c1b
Merge pull request #182393 from not-my-segfault/master
maintainers: ihatethefrench -> not-my-segfault
2022-07-22 12:51:21 -04:00
Martin Weinelt
87cb1156a9
Merge pull request #181457 from r-ryantm/auto-update/netbox 2022-07-22 17:49:48 +02:00
Brian Leung
62ab1e3d0b kaitai-struct-compiler: 0.9 -> 0.10 2022-07-22 08:41:27 -07:00
Brian Leung
f0fd10edea pythonPackages.kaitaistruct: 0.9 -> 0.10 2022-07-22 08:41:27 -07:00
github-actions[bot]
b4832bac52
Merge staging-next into staging 2022-07-22 15:34:59 +00:00