Paul A. Hoadley | 1 May 2005 10:22
Favicon
Gravatar

FreeBSD port

Hello,

I have been working on a FreeBSD port of RefDB for a week or so.  (Of
course, RefDB doesn't need any actual 'porting' to FreeBSD---I am
working on the Makefile and supporting files so that we can get it
included in the FreeBSD Ports System, and potentially distribute our
own FreeBSD packages.)

It's in an alpha state at the moment, but all of the standard make
targets work: fetch, extract, patch, configure, build, install,
deinstall, reinstall and rmconfig.  I've given it a run-through on my
machine, and Markus has tried it as well---it doesn't seem to cause
anything to explode.  The port builds refdb-0.9.5a, only because it
was more convenient to start with that.  It will be updated to the
latest release at some point.

Is there anyone else on the list running FreeBSD who would be
interested in testing the port?  If there's any interest, I'll make it
available by HTTP.

--

-- 
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/
Bruce D'Arcus | 1 May 2005 11:38

Re: FreeBSD port


On May 1, 2005, at 4:22 AM, Paul A. Hoadley wrote:

> Is there anyone else on the list running FreeBSD who would be
> interested in testing the port?

I'm on the FreeBSD-based Mac OS X, which has DarwinPorts.  Not sure how 
close the two are though.

Bruce

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
Paul A. Hoadley | 1 May 2005 11:44
Favicon
Gravatar

Re: FreeBSD port

Hi Bruce,

On Sun, May 01, 2005 at 05:38:46AM -0400, Bruce D'Arcus wrote:

> On May 1, 2005, at 4:22 AM, Paul A. Hoadley wrote:
> 
> >Is there anyone else on the list running FreeBSD who would be
> >interested in testing the port?
> 
> I'm on the FreeBSD-based Mac OS X, which has DarwinPorts.  Not sure
> how close the two are though.

I don't know either.  What I'm offering is a standard FreeBSD port
'skeleton'.  The tarball looks like this:

refdb
refdb/pkg-plist
refdb/pkg-descr
refdb/distinfo
refdb/Makefile
refdb/files
refdb/files/patch-aa

If that looks familiar, let me know.

--

-- 
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/
(Continue reading)

Bruce D'Arcus | 1 May 2005 12:01

Re: FreeBSD port


On May 1, 2005, at 5:44 AM, Paul A. Hoadley wrote:

>> I'm on the FreeBSD-based Mac OS X, which has DarwinPorts.  Not sure
>> how close the two are though.
>
> I don't know either.  What I'm offering is a standard FreeBSD port
> 'skeleton'.  The tarball looks like this:
>
> refdb
> refdb/pkg-plist
> refdb/pkg-descr
> refdb/distinfo
> refdb/Makefile
> refdb/files
> refdb/files/patch-aa
>
> If that looks familiar, let me know.

Here's the portfile for MySQL:

http://darwinports.opendarwin.org/darwinports/dports/databases/mysql4/ 
Portfile

One problem is dependencies: there's no portfile for libdbi (though  
there is for Fink, which could probably be ported to Ports easily,  
though I'm not comfortable enough with these issues to do that myself,  
nor do I have time to look for other solutions now).

Perhaps it's enough to make your's available and then make clear  
(Continue reading)

Paul A. Hoadley | 1 May 2005 12:11
Favicon
Gravatar

Re: FreeBSD port

Hi Bruce,

On Sun, May 01, 2005 at 06:01:20AM -0400, Bruce D'Arcus wrote:

> Perhaps it's enough to make your's available and then make clear
> somewhere that both David's Debian package and your's could be an
> easy path to Mac OS X packages (Fink is Debian based).

My threshold for copying it over to the webserver's directory was one
person showing any interest.  :-)  So it's done:

http://logicsquad.net/refdb/refdb.tar.gz

As mentioned, it currently fetches 0.9.5a.  Obviously, the Ports
System is pretty easy to use, so there's no documentation.  I probably
ought to post a list of deficiencies and planned enhancements, but I
haven't yet.

--

-- 
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/
Paul A. Hoadley | 1 May 2005 15:06
Favicon
Gravatar

Re: FreeBSD port

On Sun, May 01, 2005 at 07:41:39PM +0930, Paul A. Hoadley wrote:

> As mentioned, it currently fetches 0.9.5a.  Obviously, the Ports
> System is pretty easy to use, so there's no documentation.  I
> probably ought to post a list of deficiencies and planned
> enhancements, but I haven't yet.

There is now some rudimentary documentation:

http://logicsquad.net/refdb/

--

-- 
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/
Diwaker Gupta | 2 May 2005 00:42
Picon
Gravatar

Re: refdb and mysql

> The 0.9.6 prereleases officially support MySQL > 4.01, therefore the
> old refdb.dump script was replaced by refdb.dump.mysql (for MySQL 3.x
> and 4.0) and refdb.dump.mysql41 (for MySQL 4.1 and later).

Are you sure? I created the main database using refdb.dump.mysql41 and
now I get this:

mysql
/var/lib/refdb/db
refdb
connected to database server using database:
refdb
main database is too old or corrupt
child finished client on fd 5

--

-- 
Diwaker Gupta
http://resolute.ucsd.edu/diwaker

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
Markus Hoenicka | 2 May 2005 11:44
Picon

Re: refdb and mysql

Diwaker Gupta <diwakergupta <at> gmail.com> was heard to say:

> Are you sure? I created the main database using refdb.dump.mysql41 and
> now I get this:
>
> mysql
> /var/lib/refdb/db
> refdb
> connected to database server using database:
> refdb
> main database is too old or corrupt
> child finished client on fd 5
>

Well, I thought I was, but this speaks a different language. Could you please
run mysqldump and send me the schema *and* the data of t_meta?

thanks
Markus

--

-- 
Markus Hoenicka
markus.hoenicka <at> cats.de
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
(Continue reading)

David Nebauer | 2 May 2005 12:56
Picon

Unhelpful error message

Hi Markus,

I know you've written in the past about the difficulty of knowing what 
user land event triggered a particular server error, and the subsequent 
difficulty in giving meaningful error messages.

Here's a case in point: if you specify an invalid database name the 
error message is not something like "invalid database name", but the 
rather opaque "access denied to reference database".

Here is a test case:
.....................................................................................
$ refdbc -C getref -d Invalid_Db ":ID:>0"
access denied to reference database
$
.....................................................................................

Regards,
David.

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
David Nebauer | 2 May 2005 13:08
Picon

Accessing empty database causes hang

Hi Markus,

I've encountered an error trying to getref from an empty reference 
database.   The server, and therefore the refdbc client, hang.   A 
CTRL-C is required to break out.

I'm using recent cvs.

Here is the screen output ('<!-- -->' comment added after event):
...............................................................................
$ refdbc -C getref -d Testcase ":ID:>0"
<!-- Hangs here, need Ctrl-C, after which... -->
aborting...
error

$
...............................................................................

I started the refdb server just before the getref request and killed it 
immediately afterwards.  Here is the complete refdbd log ('<!-- -->' 
comment added after event):
...............................................................................
# refdbd -e 0 -l 7 -s
dbi_driver_dir went to:

dbi is up using default driver dir
Available libdbi database drivers:
mysql
sqlite
Requested libdbi driver found
(Continue reading)


Gmane