summary refs log tree commit diff
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-16 20:58:27 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-16 20:58:27 +0100
commit67548d607d6ae5cc1b716e5da12de63dc0d85f30 (patch)
treeaf0139c5fa9de65833c505be1cdceb9b584fa564
parent09091c7521e559542d0a720a9cccb363875d62e6 (diff)
downloadnixpkgs-67548d607d6ae5cc1b716e5da12de63dc0d85f30.tar
nixpkgs-67548d607d6ae5cc1b716e5da12de63dc0d85f30.tar.gz
nixpkgs-67548d607d6ae5cc1b716e5da12de63dc0d85f30.tar.bz2
nixpkgs-67548d607d6ae5cc1b716e5da12de63dc0d85f30.tar.lz
nixpkgs-67548d607d6ae5cc1b716e5da12de63dc0d85f30.tar.xz
nixpkgs-67548d607d6ae5cc1b716e5da12de63dc0d85f30.tar.zst
nixpkgs-67548d607d6ae5cc1b716e5da12de63dc0d85f30.zip
ocaml-ng.ocamlPackages_4_0[2-5].ocaml: unbreak on aarch64-linux
-rw-r--r--pkgs/development/compilers/ocaml/4.02.nix3
-rw-r--r--pkgs/development/compilers/ocaml/4.03.nix3
-rw-r--r--pkgs/development/compilers/ocaml/4.04.nix3
-rw-r--r--pkgs/development/compilers/ocaml/4.05.nix3
-rw-r--r--pkgs/development/compilers/ocaml/generic.nix2
5 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/development/compilers/ocaml/4.02.nix b/pkgs/development/compilers/ocaml/4.02.nix
index 42b9e21108d..59836955f44 100644
--- a/pkgs/development/compilers/ocaml/4.02.nix
+++ b/pkgs/development/compilers/ocaml/4.02.nix
@@ -8,6 +8,9 @@ import ./generic.nix {
     # Compatibility with Glibc 2.34
     { url = "https://github.com/ocaml/ocaml/commit/9de2b77472aee18a94b41cff70caee27fb901225.patch";
       sha256 = "sha256:12sw512kpwk0xf2g6j0h5vqgd8xcmgrvgyilx6fxbd6bnfv1yib9"; }
+    # Compatibility with Binutils 2.29
+    { url = "https://github.com/ocaml/ocaml/commit/bcc7a767279ff70518b3f4219cc0b9bffec7dd43.patch";
+      sha256 = "sha256-z3xrqN6bh/EW9dkPg6Hz8mT79DFm26yGRoPbE+RMYi0="; }
   ];
   sha256 = "1qwwvy8nzd87hk8rd9sm667nppakiapnx4ypdwcrlnav2dz6kil3";
 
diff --git a/pkgs/development/compilers/ocaml/4.03.nix b/pkgs/development/compilers/ocaml/4.03.nix
index ea0a23502fe..8c561c55329 100644
--- a/pkgs/development/compilers/ocaml/4.03.nix
+++ b/pkgs/development/compilers/ocaml/4.03.nix
@@ -8,6 +8,9 @@ import ./generic.nix {
     # Compatibility with Glibc 2.34
     { url = "https://github.com/ocaml/ocaml/commit/a8b2cc3b40f5269ce8525164ec2a63b35722b22b.patch";
       sha256 = "sha256:1rrknmrk86xrj2k3hznnjk1gwnliyqh125zabg1hvy6dlvml9b0x"; }
+    # Compatibility with Binutils 2.29
+    { url = "https://github.com/ocaml/ocaml/commit/c204f07bfb20174f9e1c9ff586fb7b2f42b8bf18.patch";
+      sha256 = "sha256-AAXyMZ7ujO67SGz+tGXKZkVcINAwvccHlFHmKnUt848="; }
   ];
 
   # Workaround build failure on -fno-common toolchains like upstream
diff --git a/pkgs/development/compilers/ocaml/4.04.nix b/pkgs/development/compilers/ocaml/4.04.nix
index 6d92ba18770..9651650d0d6 100644
--- a/pkgs/development/compilers/ocaml/4.04.nix
+++ b/pkgs/development/compilers/ocaml/4.04.nix
@@ -11,6 +11,9 @@ import ./generic.nix {
     # Compatibility with Glibc 2.34
     { url = "https://github.com/ocaml/ocaml/commit/6bcff7e6ce1a43e088469278eb3a9341e6a2ca5b.patch";
       sha256 = "sha256:1hd45f7mwwrrym2y4dbcwklpv0g94avbz7qrn81l7w8mrrj3bngi"; }
+    # Compatibility with Binutils 2.29
+    { url = "https://github.com/ocaml/ocaml/commit/db11f141a0e35c7fbaec419a33c4c39d199e2635.patch";
+      sha256 = "sha256-oIwmbXOCzDGyASpbQ7hd7SCs4YHjd9hBBksJ74V3GiY="; }
   ];
 
   # Workaround build failure on -fno-common toolchains like upstream
diff --git a/pkgs/development/compilers/ocaml/4.05.nix b/pkgs/development/compilers/ocaml/4.05.nix
index 332aa739900..aabd1b2f69a 100644
--- a/pkgs/development/compilers/ocaml/4.05.nix
+++ b/pkgs/development/compilers/ocaml/4.05.nix
@@ -11,6 +11,9 @@ import ./generic.nix {
     # Compatibility with Glibc 2.34
     { url = "https://github.com/ocaml/ocaml/commit/50c2d1275e537906ea144bd557fde31e0bf16e5f.patch";
       sha256 = "sha256:0ck9b2dpgg5k2p9ndbgniql24h35pn1bbpxjvk69j715lswzy4mh"; }
+    # Compatibility with Binutils 2.29
+    { url = "https://github.com/ocaml/ocaml/commit/b00000c6679804731692362b0baac27fa3fddfd5.patch";
+      sha256 = "sha256-CuEXGK3EsOevyUrc9TmSZo9DVBwjunQX7mKnDVHFpkY="; }
   ];
 
   # Workaround build failure on -fno-common toolchains like upstream
diff --git a/pkgs/development/compilers/ocaml/generic.nix b/pkgs/development/compilers/ocaml/generic.nix
index 44886770cad..d3c15b8aa4e 100644
--- a/pkgs/development/compilers/ocaml/generic.nix
+++ b/pkgs/development/compilers/ocaml/generic.nix
@@ -138,7 +138,7 @@ stdenv.mkDerivation (args // {
     '';
 
     platforms = with platforms; linux ++ darwin;
-    broken = stdenv.isAarch64 && lib.versionOlder version (if stdenv.isDarwin then "4.10" else "4.06");
+    broken = stdenv.isAarch64 && lib.versionOlder version (if stdenv.isDarwin then "4.10" else "4.02");
   };
 
 })