PREFIX variable not used for perl ports?

David Fleck david.fleck at mchsi.com
Sun Jan 18 05:30:46 PST 2004


This is my first attempt at putting together a port.  I'm using the
DBI::Shell module from CPAN, and I've pretty much just copied the Makefile
from another perl database port, and then gone through the steps in the
porter's handbook.  Everything seems OK - I've run it through all the
tests mentioned in the handbook, made packages, installed, deinstalled,
reinstalled, etc.

Just one thing that seemed odd - I was following the 'Automated package
list creation' section of the handbook, and after I ran

> make install PREFIX=/var/tmp/dbishell

I got the following:

make install PREFIX=/var/tmp/dbishell
===>  Extracting for p5-DBI-Shell-11.93
>> Checksum OK for DBI-Shell-11.93.tar.gz.
===>  Patching for p5-DBI-Shell-11.93
===>   p5-DBI-Shell-11.93 depends on file: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/DBI.pm - found
===>  Configuring for p5-DBI-Shell-11.93
Checking if your kit is complete...
Looks good
Warning: prerequisite IO::Tee 0 not found at (eval 4) line 219.
Warning: prerequisite Text::Reform 0 not found at (eval 4) line 219.
Writing Makefile for DBI::Shell
===>  Building for p5-DBI-Shell-11.93
mkdir blib
mkdir blib/lib
mkdir blib/lib/DBI
cp lib/DBI/Format.pm blib/lib/DBI/Format.pm
cp lib/DBI/Shell/Completion.pm blib/lib/DBI/Shell/Completion.pm
cp lib/DBI/Shell/SQLMinus.pm blib/lib/DBI/Shell/SQLMinus.pm
cp lib/DBI/Format/SQLMinus.pm blib/lib/DBI/Format/SQLMinus.pm
cp lib/DBI/Shell/Spool.pm blib/lib/DBI/Shell/Spool.pm
cp lib/DBI/Shell/Timing.pm blib/lib/DBI/Shell/Timing.pm
cp lib/DBI/Shell/FindSqlFile.pm blib/lib/DBI/Shell/FindSqlFile.pm
cp lib/DBI/Shell.pm blib/lib/DBI/Shell.pm
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/DBI
mkdir blib/arch/auto/DBI/Shell
mkdir blib/lib/auto/DBI
mkdir blib/lib/auto/DBI/Shell
mkdir blib/man1
mkdir blib/man3
/usr/bin/perl5.00503 -Iblib/arch -Iblib/lib -I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 dbish.PL dbish
Extracted dbish from dbish.PL with variable substitutions.
mkdir blib/script
cp dbish blib/script/dbish
/usr/bin/perl5.00503 -I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 -MExtUtils::MakeMaker  -e "MY->fixin(shift)" blib/script/dbish
Manifying blib/man3/DBI::Format.3
Manifying blib/man1/dbish.1
Manifying blib/man3/DBI::Format::SQLMinus.3
Manifying blib/man3/DBI::Shell.3
===>  Installing for p5-DBI-Shell-11.93
===>   p5-DBI-Shell-11.93 depends on file: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/DBI.pm - found
===>   Generating temporary packing list
===>  Checking if databases/p5-DBI-Shell already installed
Manifying blib/man1/dbish.1
Installing /usr/local/lib/perl5/site_perl/5.005/DBI/Format.pm
Installing /usr/local/lib/perl5/site_perl/5.005/DBI/Shell/Completion.pm
Installing /usr/local/lib/perl5/site_perl/5.005/DBI/Shell/SQLMinus.pm
Installing /usr/local/lib/perl5/site_perl/5.005/DBI/Shell/Spool.pm
Installing /usr/local/lib/perl5/site_perl/5.005/DBI/Shell/Timing.pm
Installing /usr/local/lib/perl5/site_perl/5.005/DBI/Shell/FindSqlFile.pm
Installing /usr/local/lib/perl5/site_perl/5.005/DBI/Format/SQLMinus.pm
Installing /usr/local/lib/perl5/site_perl/5.005/DBI/Shell.pm
Installing /usr/local/man/man1/dbish.1
Installing /usr/local/lib/perl5/5.00503/man/man3/DBI::Format.3
Installing /usr/local/lib/perl5/5.00503/man/man3/DBI::Format::SQLMinus.3
Installing /usr/local/lib/perl5/5.00503/man/man3/DBI::Shell.3
Installing /var/tmp/dbishell/bin/dbish
Writing /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBI/Shell/.packlist
Appending installation info to /var/tmp/dbishell/lib/perllocal.pod
===>   Compressing manual pages for p5-DBI-Shell-11.93
/var/tmp/dbishell/man//man1/dbish.1: No such file or directory
/var/tmp/dbishell/lib/perl5/5.00503/man//man3/DBI::Format.3: No such file or directory
/var/tmp/dbishell/lib/perl5/5.00503/man//man3/DBI::Format::SQLMinus.3: No such file or directory
/var/tmp/dbishell/lib/perl5/5.00503/man//man3/DBI::Shell.3: No such file or directory
===>   Registering installation for p5-DBI-Shell-11.93

notice that very little got installed to where I set PREFIX.  Most got
installed directly into the system perl directories.

Is there some other variable that can be set to ensure that the whole
thing gets installed to /var/tmp?


(Makefile attached.)

--
David Fleck
david.fleck at mchsi.com
-------------- next part --------------
# New ports collection makefile for:	p5-DBI-Shell
# Date created:		Sun Jan 18 07:27:41 CST 2004
# Whom:					dcf at aracnet.com
#
# $FreeBSD$
#

PORTNAME=	DBI-Shell
PORTVERSION= 11.93
CATEGORIES=	databases perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	DBI
PKGNAMEPREFIX=	p5-

MAINTAINER=	dcf at aracnet.com
COMMENT=	Interactive command shell for the DBI

PERL_CONFIGURE=	yes

MAN1=		dbish.1
MAN3=		DBI::Format.3 DBI::Format::SQLMinus.3 DBI::Shell.3

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500600
BUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
.else
BUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
.endif

.include <bsd.port.post.mk>


More information about the freebsd-ports mailing list