REINPLACE_CMD (perl-5.8.8)

Marc Hunter hunter_freebsd at
Sat Apr 29 16:41:27 UTC 2006

Forgive me if this has been addressed, as I'm setting up some FreeBsd 
boxes after not having tinkered with things in a while.

I've set up a brand new FreeBsd 6 box, updated the ports and went to 
install /usr/ports/www/apache22.  This in turn triggered an install 
of perm-5.8.8 which failed as follows:

  make install
===>  Vulnerability check disabled, database not found

You may use the following build options:

         WITH_DEBUGGING=yes        Build perl with debugging support.
         WITH_GDBM=yes             Build GDBM_File extension.
         WITHOUT_PERL_MALLOC=yes   Use FreeBSD system malloc
                                   (uses less memory, but slower).
         WITHOUT_PERL_64BITINT=yes Disable 64 bit integers
                                   (affects only 32-bit platforms).
         WITH_THREADS=yes          Build threaded perl.
         ENABLE_SUIDPERL=yes       Also build set-user-id suidperl binary.

===>  Extracting for perl-5.8.8
=> Checksum OK for perl-5.8.8.tar.bz2.
=> Checksum OK for BSDPAN-5.8.8.tar.bz2.
=> Checksum OK for defined-or-5.8.8.bz2.
===>  Patching for perl-5.8.8
===>  Applying distribution patches for perl-5.8.8
===>  Applying FreeBSD patches for perl-5.8.8
/usr/bin/sed -e 's|%%PREFIX%%|/usr/local|g;'  -e 
's|%%PERL_VER%%|5.8.8|g;'  -e 's|%%PERL_VERSION%%|5.8.8|g;'  -e 
's|%%PERL_ARCH%%|mach|g;'  -e 
/usr/ports/lang/perl5.8/files/use.perl  > /usr/ports/lang/perl5.8/work/use.perl
/usr/bin/sed -e 
/usr/ports/lang/perl5.8/files/perl-after-upgrade  > 
/bin/cp /usr/ports/lang/perl5.8/work/use.perl 
/bin/cp /usr/ports/lang/perl5.8/work/use.perl 
-e 's|%%PTHREAD_LIBS%%||g;'  -e 
-e: not found
*** Error code 127

Stop in /usr/ports/lang/perl5.8.

The code relating to this seems to be:

         ${SED} -e 's|%%PREFIX%%|${PREFIX}|g;' \
                 -e 's|%%PERL_VER%%|${PERL_VER}|g;' \
                 -e 's|%%PERL_VERSION%%|${PERL_VERSION}|g;' \
                 -e 's|%%PERL_ARCH%%|${PERL_ARCH}|g;' \
                 -e 's|%%MAKE_CONF%%|${__MAKE_CONF}|g;' \
                 ${FILESDIR}/use.perl \
                 > ${WRKDIR}/use.perl
         ${SED} -e 's|%%PERL%%|${PERL}|g;' \
                 ${FILESDIR}/perl-after-upgrade \
                 > ${WRKDIR}/perl-after-upgrade
         ${CP} ${WRKDIR}/use.perl ${PKGINSTALL}
         ${CP} ${WRKDIR}/use.perl ${PKGDEINSTALL}
.if defined(WITH_THREADS)
         ${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g;' \
                 -e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|g;' \
         ${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%||g;' \
                 -e 's|%%PTHREAD_CFLAGS%%||g;' \

As near as I can tell (which is not very near) the REINPLACE_CMD 
seems to be evaluating to nothing.  Is this a problem with the 
Makefile?  or the system configuration?  I have no idea what 
REINPLACE_CMD does or is, so any help would be appreciated.



More information about the freebsd-questions mailing list