Unix Technical Forum

Re: GDBM_File (GDBM::File)

This is a discussion on Re: GDBM_File (GDBM::File) within the lucky.openbsd.misc forums, part of the OpenBSD category; --> On Sat, Jul 15, 2006 at 02:23:36PM +0200, Karel Kulhavy wrote: > On Sat, Jul 15, 2006 at 06:16:42PM ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 06:47 AM
janus@errornet.de
 
Posts: n/a
Default Re: GDBM_File (GDBM::File)

On Sat, Jul 15, 2006 at 02:23:36PM +0200, Karel Kulhavy wrote:
> On Sat, Jul 15, 2006 at 06:16:42PM +0800, Lars Hansson wrote:
> > On Saturday 15 July 2006 18:02, Karel Kulhavy wrote:
> > > But gdbm is in ports. I don't understand why the binding was taken out of
> > > Perl.

> >
> > And how would the base system build the gdbm module if gdbm itself is in
> > ports?

>
> Is there a way how to install GDBM_File on OpenBSD 3.9?
>
> CL<
> > You could always try creating a port of it though.
> >
> > ---
> > Lars Hansson

>


I've tried the same using GDBM_File from the perl in-tree.
Even if regress fails and something seems wrong it compiles... maybe
enough for someone else to get it working.
Other things not taken care of: gdbm.t uses Config.pm to check GDM_Files
existance which can't work as Config.pm gets setup with base perl.
I've worked around this patching the gdbm.t @INC with blib/lib but then
the tests fail with a hand full of unknown symbols...

And i don't know if this kind of Makefile is even accepted... may need
some more polishing.

Makefile attached,
good luck and regards

Simon
# $OpenBSD$

COMMENT= "Perl5 access to the gdbm library"

PKGNAME= p5-GDBM_File-1.08
CATEGORIES= databases perl5

# Artistic + GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes

BUILD_DEPENDS= ::databases/gdbm
REGRESS_DEPENDS=${BUILD_DEPENDS}

FULLDISTDIR= /usr/src/gnu/usr.bin/perl/ext/GDBM_File
DISTFILES= GDBM_File.pm \
GDBM_File.xs \
Makefile.PL \
typemap \
t/gdbm.t

EXTRACT_ONLY=
NO_EXTRACT= Yes
NO_CHECKSUM= Yes

WRKSRC= ${WRKDIR}/GDBM_File

do-extract:
mkdir ${WRKSRC} ${WRKSRC}/t
..for F in ${DISTFILES}
cp ${FULLDISTDIR}/${F} ${WRKSRC}/${F}
..endfor

CONFIGURE_STYLE= perl

..include <bsd.port.mk>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:58 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com