lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

perl540: fix cross compilation

authored by

Colin and committed by
Alyssa Ross
a2e1f821 30f9d2ed

+28 -2
+21
pkgs/development/interpreters/perl/cross-fdopendir.patch
··· 1 + From f702c387e6940fab3801d7562a668b974a2b3a8f Mon Sep 17 00:00:00 2001 2 + From: Audrey Dutcher <audrey@rhelmot.io> 3 + Date: Fri, 30 May 2025 12:29:54 -0700 4 + Subject: [PATCH] add d_fdopendir configuration 5 + 6 + --- 7 + cnf/configure_func.sh | 1 + 8 + 1 file changed, 1 insertion(+) 9 + 10 + diff --git a/cnf/configure_func.sh b/cnf/configure_func.sh 11 + index 4c13e4c..b24fe03 100644 12 + --- a/cnf/configure_func.sh 13 + +++ b/cnf/configure_func.sh 14 + @@ -83,6 +83,7 @@ checkfunc d_fchmodat 'fchmodat' "0,NULL,0,0" 'unistd.h sys/stat.h' 15 + checkfunc d_fchown 'fchown' "0,0,0" 'unistd.h' 16 + checkfunc d_fcntl 'fcntl' "0,0" 'unistd.h fcntl.h' 17 + checkfunc d_fdclose 'fdclose' "NULL,NULL" 'stdio.h' 18 + +checkfunc d_fdopendir 'fdopendir' "0" 'dirent.h' 19 + checkfunc d_ffs 'ffs' "0" 'strings.h' 20 + checkfunc d_ffsl 'ffsl' "0" 'strings.h' 21 + checkfunc d_fgetpos 'fgetpos' "NULL, 0" 'stdio.h'
+7 -2
pkgs/development/interpreters/perl/interpreter.nix
··· 317 317 }; 318 318 } 319 319 // lib.optionalAttrs crossCompiling rec { 320 - crossVersion = "1.6"; 320 + crossVersion = "1.6.2"; 321 321 322 322 perl-cross-src = fetchFromGitHub { 323 323 name = "perl-cross-${crossVersion}"; 324 324 owner = "arsv"; 325 325 repo = "perl-cross"; 326 326 rev = crossVersion; 327 - sha256 = "sha256-TVDLxw8ctl64LSfLfB4/WLYlSTO31GssSzmdVfqkBmg="; 327 + hash = "sha256-mG9ny+eXGBL4K/rXqEUPSbar+4Mq4IaQrGRFIHIyAAw="; 328 328 }; 329 + patches = [ 330 + # fixes build failure due to missing d_fdopendir/HAS_FDOPENDIR configure option 331 + # https://github.com/arsv/perl-cross/pull/159 332 + ./cross-fdopendir.patch 333 + ]; 329 334 330 335 depsBuildBuild = [ 331 336 buildPackages.stdenv.cc