On Thu, 29 Sep 2016 18:26:24 -0400, js wrote:

>    Here is the output of apt-get install and the log generated by the
>    sa-compile Makefile, which suggests the new version of perl might be
>    the problem:
> 
>    ...
> >>> command 'make >>/tmp/user/132/.spamassassin10509Tl8AMVtmp/log'
>    failed: exit 2
>    dpkg: error processing package sa-compile (--configure):
>     subprocess installed post-installation script returned error exit
>       status 25
>       Setting up libc6-dev-amd64 (2.23-5) ...
>       Setting up libc6-dev-x32 (2.23-5) ...
>       Processing triggers for libc-bin (2.23-4) ...
>       Errors were encountered while processing:
>        sa-compile
>        E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> >>>    root@berkeley:/home/jack# cat 
> >>> /tmp/user/132/.spamassassin10509Tl8AMVtmp/log 
>        Generating a Unix-style Makefile
>        Writing Makefile for Mail::SpamAssassin::CompiledRegexps::body_0
>        Writing MYMETA.yml and MYMETA.json
>        cp body_0.pm blib/lib/Mail/SpamAssassin/CompiledRegexps/body_0.pm
>        Running Mkbootstrap for Mail::SpamAssassin::CompiledRegexps::body_0
>        ()
>        chmod 644 "body_0.bs"
>        "/usr/bin/perl" "/usr/share/perl/5.24/ExtUtils/xsubpp"  -typemap
>        "/usr/share/perl/5.24/ExtUtils/typemap"  body_0.xs > body_0.xsc &&
>        mv body_0.xsc body_0.c
>        i686-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv
>        -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
>        -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"1.0\"
>        -DXS_VERSION=\"1.0\" -fPIC
>        "-I/usr/lib/i386-linux-gnu/perl/5.24/CORE"   body_0.c
>        Makefile:347: recipe for target 'body_0.o' failed
>        root@berkeley:/home/jack# apt-cache policy perl
> 
> =================================================================================

I can't reproduce this issue.
I made a new install of sa-compile (on a machine which didn't have
sa-compile or spamassassin installed before), and the postinst
passed. Also running what the postinst does manually works for me:

#v+

# su - debian-spamd -c sa-compile
Sep 30 14:57:22.058 [1559] info: generic: base extraction starting. this can 
take a while...
Sep 30 14:57:22.058 [1559] info: generic: extracting from rules of type body_0
100% 
[=====================================================================================]
 7754.99 rules/sec 00m00s DONE
100% 
[=====================================================================================]
 623.71 bases/sec 00m03s DONE
Sep 30 14:57:26.119 [1559] info: body_0: 1212 base strings extracted in 4 
seconds
cd /tmp/.spamassassin1559wYS5qptmp
reading bases_body_0.in
cd Mail-SpamAssassin-CompiledRegexps-body_0
re2c -i -b -o scanner1.c scanner1.re
re2c -i -b -o scanner2.c scanner2.re
re2c -i -b -o scanner3.c scanner3.re
re2c -i -b -o scanner4.c scanner4.re
re2c -i -b -o scanner5.c scanner5.re
re2c -i -b -o scanner6.c scanner6.re
re2c -i -b -o scanner7.c scanner7.re
/usr/bin/perl Makefile.PL PREFIX=/tmp/.spamassassin1559wYS5qptmp/ignored 
INSTALLSITEARCH=/var/lib/spamassassin/compiled/5.024/3.004001 
Generating a Unix-style Makefile
Writing Makefile for Mail::SpamAssassin::CompiledRegexps::body_0
Writing MYMETA.yml and MYMETA.json
make 
cp body_0.pm blib/lib/Mail/SpamAssassin/CompiledRegexps/body_0.pm
Running Mkbootstrap for Mail::SpamAssassin::CompiledRegexps::body_0 ()
chmod 644 "body_0.bs"
"/usr/bin/perl" "/usr/share/perl/5.24/ExtUtils/xsubpp"  -typemap 
"/usr/share/perl/5.24/ExtUtils/typemap"  body_0.xs > body_0.xsc && mv 
body_0.xsc body_0.c
x86_64-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -fPIC 
"-I/usr/lib/x86_64-linux-gnu/perl/5.24/CORE"   body_0.c
x86_64-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -fPIC 
"-I/usr/lib/x86_64-linux-gnu/perl/5.24/CORE"   scanner1.c
x86_64-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -fPIC 
"-I/usr/lib/x86_64-linux-gnu/perl/5.24/CORE"   scanner2.c
x86_64-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -fPIC 
"-I/usr/lib/x86_64-linux-gnu/perl/5.24/CORE"   scanner3.c
x86_64-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -fPIC 
"-I/usr/lib/x86_64-linux-gnu/perl/5.24/CORE"   scanner4.c
x86_64-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -fPIC 
"-I/usr/lib/x86_64-linux-gnu/perl/5.24/CORE"   scanner5.c
x86_64-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -fPIC 
"-I/usr/lib/x86_64-linux-gnu/perl/5.24/CORE"   scanner6.c
x86_64-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -fPIC 
"-I/usr/lib/x86_64-linux-gnu/perl/5.24/CORE"   scanner7.c
rm -f blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
x86_64-linux-gnu-gcc  -shared -L/usr/local/lib -fstack-protector-strong 
body_0.o scanner1.o scanner2.o scanner3.o scanner4.o scanner5.o scanner6.o 
scanner7.o  -o 
blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so     \
        \
  
chmod 755 blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- body_0.bs 
blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.bs 644
Manifying 1 pod document
make install 
Running Mkbootstrap for Mail::SpamAssassin::CompiledRegexps::body_0 ()
chmod 644 "body_0.bs"
Manifying 1 pod document
Files found in blib/arch: installing files in blib/lib into architecture 
dependent library tree
Installing 
/var/lib/spamassassin/compiled/5.024/3.004001/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
Installing 
/tmp/.spamassassin1559wYS5qptmp/ignored/man/man3/Mail::SpamAssassin::CompiledRegexps::body_0.3pm
Appending installation info to 
/var/lib/spamassassin/compiled/5.024/3.004001/perllocal.pod
cp /tmp/.spamassassin1559wYS5qptmp/bases_body_0.pl 
/var/lib/spamassassin/compiled/5.024/3.004001/bases_body_0.pl
cd /
rm -rf /tmp/.spamassassin1559wYS5qptmp
# echo $?
0

#v-


Maybe that's different for upgrades. And I note that you are on i386
while I did this on amd64.

So let's try in an i386 chroot. -- Nope, works as well, both from the
postinst and invoked manually.


Cheers,
gregor

-- 
 .''`.  Homepage https://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer -  https://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: U2: The Unforgettable Fire

Attachment: signature.asc
Description: Digital Signature

Reply via email to