Re: Make test fails on macOS High Sierra - help needed

2018-09-10 Thread Sidney Markowitz

Daniel J. Luke wrote on 11/09/18 5:58 AM:

I use this (with a perl I built myself outside of macports) and I can confirm 
it works.



Cool. Also, FYI, I did a quick test for the DB_File problem in the latest beta 
of Mac OS Mojave with the system perl and it did not have this bug. I haven't 
had a chance to try to build SpamAssassin, but it looks like at least this 
issue is fixed in Mojave.


Re: Make test fails on macOS High Sierra - help needed

2018-09-10 Thread Daniel J. Luke
On Sep 8, 2018, at 8:48 PM, Sidney Markowitz  wrote:
> Macports install of db48 should work for that, but I haven't tried it.

I use this (with a perl I built myself outside of macports) and I can confirm 
it works.
-- 
Daniel J. Luke





Re: Make test fails on macOS High Sierra - help needed

2018-09-08 Thread Sidney Markowitz
This is really old, but it was never answered satisfactorily and it is what 
shows up in a Google search for the problem. I'm posting this solution to make 
sure it shows up in future searches.


Here is the solution I just found and added to the Apache SpamAssassin wiki

https://wiki.apache.org/spamassassin/InstallingOnMacHighSierra

I only tested this with perl installed using perlbrew, as that is so much 
simpler to use and to install CPAN modules with, but the important part is to 
install a current berkeley-db to replace the version 1.x that is now included 
with Mac OS X High Sierra. I used homebrew, as in


  brew install berkeley-db

Macports install of db48 should work for that, but I haven't tried it.

Once you have a current berkeley-db you can install the CPAN module DB_File 
which is what is needed to fix the problem with installing SpamAssassin.


 -- sidney

Palvelin Postmaster wrote on 30/01/18 2:43 AM:

I have macOS High Sierra 10.13.3 using SpamAssassin 3.4.1 on Perl 5.24 
installed via MacPorts. When running SA with bayes enabled, the bayes.toks 
files grow indefinitely until the volume is full.

This thread suggests the issue may only occur on an APFS volume: 
https://discussions.apple.com/thread/8203349

Trying to analyze the problem I noticed that the same situation occurs when 
running 'make test' for Mail::SpamAssassin the bayesdbm.t. My guess is that 
either SpamAssassin's Bayesdbm.pm module or one of it's dependencies is the 
culprit.



Re: Make test fails on macOS High Sierra - help needed

2018-01-29 Thread John Hardin

On Mon, 29 Jan 2018, Palvelin Postmaster wrote:





On 26 Jan 2018, at 7:59, Bill Cole  
wrote:

On 25 Jan 2018, at 4:54 (-0500), Palvelin Postmaster wrote:


Hi all,

I tried to install Mail::SpamAssassin via Perl CPAN on a relatively fresh 
install of macOS 10.13.3 High Sierra. Make test stalls indefinitely. Can anyone 
offer suggestions what I should do?


Be grateful, you dodged a bullet :)

Apple's idiosyncratic Perl installation has historically been intolerant of 
user installation of additional modules or updates of existing modules. Maybe 
High Sierra breaks with that tradition, but I doubt it.


Unfortunately I didn’t, it seems. :(

I have macOS High Sierra 10.13.3 using SpamAssassin 3.4.1 on Perl 5.24 
installed via MacPorts. When running SA with bayes enabled, the 
bayes.toks files grow indefinitely until the volume is full.


This thread suggests the issue may only occur on an APFS volume: 
https://discussions.apple.com/thread/8203349

Trying to analyze the problem I noticed that the same situation occurs 
when running 'make test' for Mail::SpamAssassin the bayesdbm.t. My guess 
is that either SpamAssassin's Bayesdbm.pm module or one of it's 
dependencies is the culprit.


Does anyone have suggestions as to how I should proceed in resolving 
this? For me moving the bayes file to a HFS+ volume is not an option.


I assume you *are* running Bayes expires, and they complete successfully 
but are not controlling the dbm file size growth?


If you export the database does the also grow without bound?

If not, perhaps this would be a workaround:

1) Export the bayes database
2) Wipe and recreate empty database
3) Import the exported data

Or: convert your bayes to redis?

You might also poke around in the db-utils package, that might be a 
free-space recovery tool analogous to VACUUM that would recover space. If 
that also didn't that might help isolate the cause of the problem.



--
 John Hardin KA7OHZhttp://www.impsec.org/~jhardin/
 jhar...@impsec.orgFALaholic #11174 pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
---
  *Your* lack of self-control does not give you
  the authority to dictate limitations on *my* freedom.
---
 84 more days working to pay your (average) annual US tax bill
 before you're finally working for yourself.

Re: Make test fails on macOS High Sierra - help needed

2018-01-29 Thread Palvelin Postmaster


> On 26 Jan 2018, at 7:59, Bill Cole  
> wrote:
> 
> On 25 Jan 2018, at 4:54 (-0500), Palvelin Postmaster wrote:
> 
>> Hi all,
>> 
>> I tried to install Mail::SpamAssassin via Perl CPAN on a relatively fresh 
>> install of macOS 10.13.3 High Sierra. Make test stalls indefinitely. Can 
>> anyone offer suggestions what I should do?
> 
> Be grateful, you dodged a bullet :)
> 
> Apple's idiosyncratic Perl installation has historically been intolerant of 
> user installation of additional modules or updates of existing modules. Maybe 
> High Sierra breaks with that tradition, but I doubt it.

Unfortunately I didn’t, it seems. :( 

I have macOS High Sierra 10.13.3 using SpamAssassin 3.4.1 on Perl 5.24 
installed via MacPorts. When running SA with bayes enabled, the bayes.toks 
files grow indefinitely until the volume is full.

This thread suggests the issue may only occur on an APFS volume: 
https://discussions.apple.com/thread/8203349

Trying to analyze the problem I noticed that the same situation occurs when 
running 'make test' for Mail::SpamAssassin the bayesdbm.t. My guess is that 
either SpamAssassin's Bayesdbm.pm module or one of it's dependencies is the 
culprit.

Does anyone have suggestions as to how I should proceed in resolving this? For 
me moving the bayes file to a HFS+ volume is not an option.

--
Palvelin.fi Hostmaster
postmas...@palvelin.fi



Re: Make test fails on macOS High Sierra - help needed

2018-01-25 Thread Bill Cole

On 25 Jan 2018, at 4:54 (-0500), Palvelin Postmaster wrote:


Hi all,

I tried to install Mail::SpamAssassin via Perl CPAN on a relatively 
fresh install of macOS 10.13.3 High Sierra. Make test stalls 
indefinitely. Can anyone offer suggestions what I should do?


Be grateful, you dodged a bullet :)

Apple's idiosyncratic Perl installation has historically been intolerant 
of user installation of additional modules or updates of existing 
modules. Maybe High Sierra breaks with that tradition, but I doubt it.


For people who do not want to pay the small price for Server, MacPorts 
or Homebrew are great alternatives for building a distinct environment 
of open source software (including, if you want, a current and less 
pathologically configured Perl environment) and can install SpamAssassin 
functionally.


--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Currently Seeking Steady Work: https://linkedin.com/in/billcole


Re: Make test fails on macOS High Sierra - help needed

2018-01-25 Thread Palvelin Postmaster
Hmm…it seems Spamassassin is already installed by the Server.app into 
/Applications/Server.app/Contents/ServerRoot/usr/bin/spamassassin.

That should take care of my problem. :)


> On 25 Jan 2018, at 11:54, Palvelin Postmaster  wrote:
> 
> Hi all,
> 
> I tried to install Mail::SpamAssassin via Perl CPAN on a relatively fresh 
> install of macOS 10.13.3 High Sierra. Make test stalls indefinitely. Can 
> anyone offer suggestions what I should do?
> 
> Running make test
> "/usr/bin/perl" build/mkrules --exit_on_no_src --src rulesrc --out rules 
> --manifest MANIFEST --manifestskip MANIFEST.SKIP
> no source directory found: exiting
> "/usr/bin/perl" build/preprocessor  -Mvars -DVERSION="3.004001" 
> -DPREFIX="/usr/local" -DDEF_RULES_DIR="/usr/local/share/spamassassin" 
> -DLOCAL_RULES_DIR="/etc/mail/spamassassin" 
> -DLOCAL_STATE_DIR="/var/lib/spamassassin" 
> -DINSTALLSITELIB="/Library/Perl/5.18" 
> -DCONTACT_ADDRESS="hostmas...@palvelin.fi" -Msharpbang -Mconditional 
> -DPERL_BIN=""/usr/bin/perl"" -DPERL_WARN="" -DPERL_TAINT="" -m755 
> -isa-update.raw -osa-update
> cp sa-update blib/script/sa-update
> "/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/sa-update
> PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" 
> "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 
> 'blib/arch')" t/*.t
> t/autolearn.t . ok   
> t/autolearn_force.t ... ok   
> t/autolearn_force_fail.t .. ok   
> t/basic_lint.t  ok   
> t/basic_lint_without_sandbox.t  ok   
> t/basic_meta.t  ok   
> t/basic_obj_api.t . ok   
> t/bayesbdb.t .. ok 
> t/bayesdbm.t .. 24/48 # Failed test 24 in t/bayesdbm.t at 
> line 133
> t/bayesdbm.t .. 25/48 # Failed test 27 in t/bayesdbm.t at 
> line 141
> t/bayesdbm.t .. 31/48 HASH: Out of overflow pages.  
> Increase page size
> 
> 
> $perl -V
> Summary of my perl5 (revision 5 version 18 subversion 2) configuration:
> 
>  Platform:
>osname=darwin, osvers=17.0, archname=darwin-thread-multi-2level
>uname='darwin osx352.sd.apple.com 17.0 darwin kernel version 16.1.0: wed 
> jun 14 23:26:09 pdt 2017; root:xnu-3789.21.4.1.6~1development_x86_64 x86_64 '
>config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe  -Dldflags= 
> -Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=cc'
>hint=recommended, useposix=true, d_sigaction=define
>useithreads=define, usemultiplicity=define
>useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
>use64bitint=define, use64bitall=define, uselongdouble=undef
>usemymalloc=n, bincompat5005=undef
>  Compiler:
>cc='cc', ccflags ='-arch x86_64 -arch i386 -g -pipe -fno-common 
> -DPERL_DARWIN -fno-strict-aliasing -fstack-protector',
>optimize='-Os',
>cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing 
> -fstack-protector'
>ccversion='', gccversion='4.2.1 Compatible Apple LLVM 9.0.0 
> (clang-900.0.31)', gccosandvers=''
>intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
>d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
>ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', 
> lseeksize=8
>alignbytes=8, prototype=define
>  Linker and Libraries:
>ld='cc -mmacosx-version-min=10.12.1', ldflags ='-arch x86_64 -arch i386 
> -fstack-protector'
>libpth=/usr/lib /usr/local/lib
>libs= 
>perllibs=
>libc=, so=dylib, useshrplib=true, libperl=libperl.dylib
>gnulibc_version=''
>  Dynamic Linking:
>dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
>cccdlflags=' ', lddlflags='-arch x86_64 -arch i386 -bundle -undefined 
> dynamic_lookup -fstack-protector'
> 
> Characteristics of this binary (from libperl): 
>  Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
>PERL_DONT_CREATE_GVSV
>PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
>PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
>PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_64_BIT_ALL
>USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
>USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
>USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
>USE_REENTRANT_API
>  Locally applied patches:
>   /Library/Perl/Updates/ comes before system perl directories
>   installprivlib and installarchlib points to the Updates directory
>  Built under darwin
>  Compiled at Oct  7 2017 02:40:20
>  @INC:
>/Library/Perl/5.18/darwin-thread-multi-2level
>/Library/Perl/5.18
>/Network/Library/Perl/5.18/darwin-thread-multi-2level
>/Network/Library/Perl/5.18
>/Library/Perl/Updates/5.18.2/darwin-thread-multi-2level
>

Make test fails on macOS High Sierra - help needed

2018-01-25 Thread Palvelin Postmaster
Hi all,

I tried to install Mail::SpamAssassin via Perl CPAN on a relatively fresh 
install of macOS 10.13.3 High Sierra. Make test stalls indefinitely. Can anyone 
offer suggestions what I should do?

Running make test
"/usr/bin/perl" build/mkrules --exit_on_no_src --src rulesrc --out rules 
--manifest MANIFEST --manifestskip MANIFEST.SKIP
no source directory found: exiting
"/usr/bin/perl" build/preprocessor  -Mvars -DVERSION="3.004001" 
-DPREFIX="/usr/local" -DDEF_RULES_DIR="/usr/local/share/spamassassin" 
-DLOCAL_RULES_DIR="/etc/mail/spamassassin" 
-DLOCAL_STATE_DIR="/var/lib/spamassassin" -DINSTALLSITELIB="/Library/Perl/5.18" 
-DCONTACT_ADDRESS="hostmas...@palvelin.fi" -Msharpbang -Mconditional 
-DPERL_BIN=""/usr/bin/perl"" -DPERL_WARN="" -DPERL_TAINT="" -m755 
-isa-update.raw -osa-update
cp sa-update blib/script/sa-update
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/sa-update
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" 
"-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" 
t/*.t
t/autolearn.t . ok   
t/autolearn_force.t ... ok   
t/autolearn_force_fail.t .. ok   
t/basic_lint.t  ok   
t/basic_lint_without_sandbox.t  ok   
t/basic_meta.t  ok   
t/basic_obj_api.t . ok   
t/bayesbdb.t .. ok 
t/bayesdbm.t .. 24/48 # Failed test 24 in t/bayesdbm.t at 
line 133
t/bayesdbm.t .. 25/48 # Failed test 27 in t/bayesdbm.t at 
line 141
t/bayesdbm.t .. 31/48 HASH: Out of overflow pages.  
Increase page size


$perl -V
Summary of my perl5 (revision 5 version 18 subversion 2) configuration:
   
  Platform:
osname=darwin, osvers=17.0, archname=darwin-thread-multi-2level
uname='darwin osx352.sd.apple.com 17.0 darwin kernel version 16.1.0: wed 
jun 14 23:26:09 pdt 2017; root:xnu-3789.21.4.1.6~1development_x86_64 x86_64 '
config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe  -Dldflags= 
-Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=cc'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='cc', ccflags ='-arch x86_64 -arch i386 -g -pipe -fno-common 
-DPERL_DARWIN -fno-strict-aliasing -fstack-protector',
optimize='-Os',
cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing 
-fstack-protector'
ccversion='', gccversion='4.2.1 Compatible Apple LLVM 9.0.0 
(clang-900.0.31)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
alignbytes=8, prototype=define
  Linker and Libraries:
ld='cc -mmacosx-version-min=10.12.1', ldflags ='-arch x86_64 -arch i386 
-fstack-protector'
libpth=/usr/lib /usr/local/lib
libs= 
perllibs=
libc=, so=dylib, useshrplib=true, libperl=libperl.dylib
gnulibc_version=''
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-arch x86_64 -arch i386 -bundle -undefined 
dynamic_lookup -fstack-protector'

Characteristics of this binary (from libperl): 
  Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_64_BIT_ALL
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
USE_REENTRANT_API
  Locally applied patches:
/Library/Perl/Updates/ comes before system perl directories
installprivlib and installarchlib points to the Updates directory
  Built under darwin
  Compiled at Oct  7 2017 02:40:20
  @INC:
/Library/Perl/5.18/darwin-thread-multi-2level
/Library/Perl/5.18
/Network/Library/Perl/5.18/darwin-thread-multi-2level
/Network/Library/Perl/5.18
/Library/Perl/Updates/5.18.2/darwin-thread-multi-2level
/Library/Perl/Updates/5.18.2
/System/Library/Perl/5.18/darwin-thread-multi-2level
/System/Library/Perl/5.18
/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.18


--
Palvelin.fi Hostmaster
postmas...@palvelin.fi