Commit Graph

12433 Commits

Author SHA1 Message Date
github-actions[bot]
50de8aa60e
Merge master into staging-next 2022-07-29 18:01:27 +00:00
Josh Holland
8a156b259a julia-bin: add meta.mainProgram 2022-07-29 12:00:02 +01:00
github-actions[bot]
dc9426f3b8
Merge staging-next into staging 2022-07-29 06:01:59 +00:00
R. Ryantm
fc630be0e4 gleam: 0.21.0 -> 0.22.1 2022-07-29 00:20:09 -04:00
github-actions[bot]
a2df1eb5b9
Merge staging-next into staging 2022-07-29 00:03:05 +00:00
Mario Rodas
7a2d461bf2
Merge pull request #183271 from r-ryantm/auto-update/cmdstan
cmdstan: 2.30.0 -> 2.30.1
2022-07-28 14:15:45 -05:00
Robert Hensing
61a510bdcb
Merge pull request #177232 from asbachb/remove/oldjdk
oraclejdk14: Removed as it's end of life since 09/2020
2022-07-28 20:10:47 +02:00
Bernardo Meurer
88c63ca65a
Merge pull request #182513 from trofi/strip-for-host-and-target
gcc: enable stripping for cross-compilers
2022-07-28 00:30:49 -07:00
github-actions[bot]
c5298a170d
Merge staging-next into staging 2022-07-27 18:02:13 +00:00
github-actions[bot]
f6895f13b0
Merge master into staging-next 2022-07-27 18:01:33 +00:00
github-actions[bot]
c419834223
Merge master into haskell-updates 2022-07-27 00:16:24 +00:00
github-actions[bot]
54f2dacce1
Merge staging-next into staging 2022-07-27 00:03:09 +00:00
github-actions[bot]
f110f87498
Merge master into staging-next 2022-07-27 00:02:31 +00:00
Sandro
7366559383
Merge pull request #182124 from willcohen/emscripten-3.1.16
emscripten: 3.1.15 -> 3.1.17
2022-07-26 21:30:31 +02:00
sternenseemann
078346d55e haskell.compiler.ghc941: init at 9.4.0.20220721 2022-07-26 21:09:03 +02:00
Austin Seipp
4cd955979c bluespec: set mainProgram=bsc
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2022-07-26 13:25:23 -05:00
github-actions[bot]
b21eff1a41
Merge staging-next into staging 2022-07-26 18:02:15 +00:00
github-actions[bot]
1071ab374f
Merge master into staging-next 2022-07-26 18:01:32 +00:00
Sandro
3bbb296d9a
Merge pull request #178973 from r-ryantm/auto-update/closure-compiler
closurecompiler: 20220502 -> 20220601
2022-07-26 17:40:41 +02:00
Will Cohen
3a46b467ac emscripten: 3.1.15 -> 3.1.17 2022-07-26 09:30:36 -04:00
Florian Klink
4d1e04c00f go_1_18: backport CL417615
Upstream reverted cmd/compile: revert "fix missing dict pass for type
assertions", as it's causing compilation errors in programs like gopass
- see https://github.com/gopasspw/gopass/issues/2280 and
https://github.com/NixOS/nixpkgs/issues/182440.

The revert has already been cherry-picked to HEAD, but there's no
backport release yet. This can be reverted once there's a new release
with that commit.
2022-07-26 09:24:40 +10:00
Sergei Trofimovich
eece5d0dc0 gcc: enable stripping for cross-compilers
With explicit support for distinction between Host and Target strip paths
we can now safely strip ELF binaries with their according strip tools
without fear of damaging binaries due to architecture mismatch.

Closure size change for `pkgsCross.mingwW64.gcc12Stdenv.cc.cc`:

    # before:
    $ nix path-info -Sh $(nix-build -A pkgsCross.mingwW64.gcc12Stdenv.cc.cc) | unnix
    /<<NIX>>/x86_64-w64-mingw32-stage-final-gcc-debug-12.1.0           2.5G

    # after:
    $ nix path-info -Sh $(nix-build -A pkgsCross.mingwW64.gcc12Stdenv.cc.cc) | unnix
    /<<NIX>>/x86_64-w64-mingw32-stage-final-gcc-12.1.0         1.5G
2022-07-25 11:06:58 +01:00
github-actions[bot]
3a848d77a3
Merge staging-next into staging 2022-07-24 18:02:10 +00:00
Sergei Trofimovich
c7062b9769
Merge pull request #181994 from trofi/gcc-drop-outdated-sed
gcc: drop outdated sed for system headers clobber
2022-07-24 15:01:22 +01:00
Sergei Trofimovich
f315837ee4
Merge pull request #182377 from trofi/fix-sbcl-on-aarch64-darwin
sbcl_2_1_10, sbcl_2_1_11: fix build on arm64-darwin (-fno-common fall…
2022-07-24 14:48:21 +01:00
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
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
github-actions[bot]
c3b55bb331
Merge master into staging-next 2022-07-22 18:01:23 +00:00
Brian Leung
62ab1e3d0b kaitai-struct-compiler: 0.9 -> 0.10 2022-07-22 08:41:27 -07:00
Sergei Trofimovich
26326511ef sbcl_2_1_10, sbcl_2_1_11: fix build on arm64-darwin (-fno-common fallout)
Withut this upstream backport build on arm64-drwin fails as:

    duplicate symbol '_os_vm_page_size' in:
        os-common.o
        arm64-bsd-os.o
2022-07-21 22:08:27 +01:00
github-actions[bot]
9dbe8733d5
Merge staging-next into staging 2022-07-21 06:02:02 +00:00
Anderson Torres
b73f704a2f
Merge pull request #178567 from Artturin/pkgconfignew
makePkgconfigItem: init new function to generate pc files
2022-07-20 23:31:58 -03:00
Bernardo Meurer
63e4402739 gnu-cobol: refactor
This is a major refactoring of the gnu-cobol package, which gives us:

1. Split outputs, allowing for small container images for COBOL
   applications.
2. Tests running (for Linux)
3. Parallel building
4. Documentation building
5. XML and JSON support

Co-authored-by: Chad Crawford <chad@cacrawford.org>
2022-07-20 15:14:32 -07:00
Vladimír Čunát
cd58423b4c
Merge #181798: llvm14: Skip broken tests on riscv
...into staging
2022-07-20 20:56:21 +02:00
github-actions[bot]
659bbdd994
Merge staging-next into staging 2022-07-20 18:02:16 +00:00
Sergei Trofimovich
cb63ee9ff8
Merge pull request #181999 from trofi/gcc-clean-up-configureFlags
gcc: turn configureFlags into a sigle list, not nested list
2022-07-20 15:46:36 +01:00
github-actions[bot]
9c32c81a99
Merge staging-next into staging 2022-07-20 06:02:01 +00:00
Mario Rodas
a71cc944ad
Merge pull request #180648 from r-ryantm/auto-update/cmdstan
cmdstan: 2.29.2 -> 2.30.0
2022-07-19 23:18:47 -05:00
Artturin
c6a9d069e9 tinycc: use makePkgconfigItem 2022-07-20 06:24:20 +03:00
Anderson Torres
5342fc6fb5
Merge pull request #182030 from AndersonTorres/tcc
tinycc: 2022-01-11 -> 2022-07-15
2022-07-19 23:53:52 -03:00
zowoq
8bf97d639d
rustc: 1.62.0 -> 1.62.1 (#182140)
https://github.com/rust-lang/rust/releases/tag/1.62.1
2022-07-20 12:34:37 +10:00
AndersonTorres
7fda0dfa9a tinycc: 2022-01-11 -> 2022-07-15 2022-07-18 23:38:03 -03:00
github-actions[bot]
d64d75f2f3
Merge master into staging-next 2022-07-19 00:02:21 +00:00
Marek Fajkus
d5765d5150
elmPackages.elm-json: 0.2.10 -> 0.2.12 2022-07-18 22:26:48 +02:00
Sergei Trofimovich
69da37a8fd gcc: turn configureFlags into a sigle list, not nested list
Before the change:

    $ nix repl pkgs/stdenv/linux/make-bootstrap-tools-cross.nix
    nix-repl> :p powerpc64le.bootGCC.configureFlags
    [ ... "--enable-targets=powerpcle-linux" [ "--with-long-double-128" ] "--target=powerpc64le-unknown-linux-gnu" ]

After the change:

    nix-repl> :p powerpc64le.bootGCC.configureFlags
    [ ... "--enable-targets=powerpcle-linux" "--with-long-double-128" "--target=powerpc64le-unknown-linux-gnu" ]
2022-07-18 19:10:22 +01:00
Sergei Trofimovich
769956d65b gcc: drop outdated sed for system headers clobber
When reviewing https://github.com/NixOS/nixpkgs/pull/181802#issuecomment-1186834504
I noticed outdated code that attempted to override /usr/include.

    sed -i \
        -e "s,glibc_header_dir=/usr/include,glibc_header_dir=$libc_dev/include", \
        gcc/configure

`glibc_header_dir` was removed from `gcc-4.6` and later in
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=6961669f48aa18168b2d7daa7e2235fbec7cb636
(Dec 2010, "(gcc_cv_ld_eh_frame_hdr): Only check GNU ld for  --eh-frame-hdr.").

Since then gcc got `--with-native-system-header-dir=` which `nixpkgs` uses
for all packaged `gcc` versions.

The change should be a no-op.
2022-07-18 18:55:58 +01:00
github-actions[bot]
71fe747e70
Merge master into staging-next 2022-07-18 12:01:55 +00:00