biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / servers / mail / spamassassin / sa_compile-use-perl5lib.patch
blobba68142a92d9f9275b254900f079541605fd2bbf
1 diff -ru orig/t/sa_compile.t new/t/sa_compile.t
2 --- orig/t/sa_compile.t 2022-12-14 06:03:26.000000000 +0000
3 +++ new/t/sa_compile.t 2023-06-25 12:30:39.735577152 +0000
4 @@ -40,7 +40,7 @@
6 # we now have an "installed" version we can run sa-compile with. Ensure
7 # sarun() will use it appropriately
8 -$scr = "$instdir/$temp_binpath/spamassassin";
9 +$scr = "$perl_cmd -T $instdir/$temp_binpath/spamassassin";
10 $scr_localrules_args = $scr_cf_args = ""; # use the default rules dir, from our "install"
12 &set_rules('
13 @@ -86,8 +86,8 @@
14 # -------------------------------------------------------------------
16 rmtree( glob "~/.spamassassin/sa-compile.cache". { safe => 1 }); # reset test
17 -system_or_die "TMP=$instdir TMPDIR=$instdir $instdir/$temp_binpath/sa-compile --quiet -p $cwd/$workdir/user.cf --keep-tmps -D 2>$instdir/sa-compile.debug"; # --debug
18 -$scr = "$instdir/$temp_binpath/spamassassin";
19 +system_or_die "TMP=$instdir TMPDIR=$instdir $perl_cmd -T $instdir/$temp_binpath/sa-compile --quiet -p $cwd/$workdir/user.cf --keep-tmps -D 2>$instdir/sa-compile.debug"; # --debug
20 +$scr = "$perl_cmd -T $instdir/$temp_binpath/spamassassin";
21 $scr_localrules_args = $scr_cf_args = ""; # use the default rules dir, from our "install"
23 %patterns = (