Subject: perl module packaging question -- INSTALLDIRS=site ?
To: None <tech-pkg@netbsd.org>
From: Brad Volz <bradv@affectation.org>
List: tech-pkg
Date: 01/05/2004 23:39:15
I am currently attempting to package the perl module Net-RTP which is
bundled with the NLANR multicast beacon.

http://dast.nlanr.net/Projects/Beacon/

Installation outside of the pkgsrc structure seems to work fine, but
within the pkgsrc structure, it fails with this error --

- ---
===> Building for p5-Net-RTP
cc -c -I/usr/pkg/include -fno-strict-aliasing -I/usr/pkg/include
-I/usr/pkg/include -O2    -DVERSION=\"0.2\"  -DXS_VERSION=\"0.2\" -DPIC
-fPIC -I/usr/pkg/lib/perl5/5.6.1/i386-netbsd/CORE -DDEBUG_MEM RTP_wrap.c
In file included from RTP_wrap.c:543:
config_unix.h:109: stropts.h: No such file or directory
In file included from RTP_wrap.c:546:
rijndael-api-fst.h:24: warning: `TRUE' redefined
/usr/pkgsrc/net/p5-Net-RTP/work.i386/.buildlink/lib/perl5/5.6.1/i386-netbsd/CORE/handy.h:43:
warning: this is the location of the previous definition
rijndael-api-fst.h:25: warning: `FALSE' redefined
/usr/pkgsrc/net/p5-Net-RTP/work.i386/.buildlink/lib/perl5/5.6.1/i386-netbsd/CORE/handy.h:44:
warning: this is the location of the previous definition
*** Error code 1
- ---

One thing that I have noticed is that the Makefile that exists in the
pkgsrc work directory has one difference from the Makefile that is created
when I install the software by hand.  The pkgsrc version specifies that
INSTALLDIRS=site.

Is there a way to try to disable this behavior, or otherwise work around
this?  The reason that I ask is that it appears that the perl module wants
to intsall itself into site_perl anyway... that is where it ended up when
I installed the module by hand.

If it is useful, here is the Makefile that I am working with currently.

- ---
DISTNAME=               beacon-0.9.06
PKGNAME=                p5-Net-RTP
WRKSRC=                 ${WRKDIR}/${DISTNAME}/Net-RTP-0.4/
CATEGORIES=             net perl5
MASTER_SITES=           http://dast.nlanr.net/Projects/Beacon/Releases/

MAINTAINER=             bradv@affectation.org
HOMEPAGE=               http://dast.nlanr.net/Projects/Beacon/
COMMENT=                Perl5 module for Real-time Transport Protocol

PERL5_CONFIGURE=        YES

USE_BUILDLINK2=         YES

.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"
- ---

cheers,

Brad