Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51020 - Enlightenment's edb database builds, but does not work on amd64.
Summary: Enlightenment's edb database builds, but does not work on amd64.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-14 01:47 UTC by Brendan Rankin
Modified: 2004-05-25 21:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
edb_amd64.patch (edb_amd64.patch,511 bytes, patch)
2004-05-18 00:22 UTC, Jon Wagoner
Details | Diff
edb-1.0.5.20040515.ebuild (edb-1.0.5.20040515.ebuild,774 bytes, application/octet-stream)
2004-05-18 00:23 UTC, Jon Wagoner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brendan Rankin 2004-05-14 01:47:06 UTC
When attempting to use edb (dev-db/edb) on an amd64 system, I consistently get the following error message:

ERROR! cannot open ./test.db

I *can* emerge edb (crappy ebuild, if you ask me), though edb consistently fails it's own edb_test code.

Obviously, anything dependent upon edb will also fail....which means ecore, edje, entice, etc.

I will look into this, when I have the time, but would appreciate any hints/help in the meantime.



Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
1.  The ebuild for edb *should* be running the "test" to see if it actually 
functions.
2.  edb should function on amd64.
Comment 1 Jon Wagoner 2004-05-17 23:58:15 UTC
I did some investigation tonight, and it appears that an error is returned in src/os_fid.c

On amd64, time_t and st_ino are 8 bytes, but were 4 on x86, which causes the total size to overflow DB_FILE_ID_LEN.  Bumping DB_FILE_ID_LEN up a bit lets edb_test pass.  
Comment 2 Jon Wagoner 2004-05-18 00:22:56 UTC
Created attachment 31636 [details, diff]
edb_amd64.patch

This patch adjusts the DB_FILE_ID_LEN constant, allowing edb to work on amd64.
Comment 3 Jon Wagoner 2004-05-18 00:23:43 UTC
Created attachment 31637 [details]
edb-1.0.5.20040515.ebuild

Modified ebuild to include the patch
Comment 4 Jon Wagoner 2004-05-18 00:24:36 UTC
ecore builds with the above patch.  I haven't been able to build entrance since I can't download the files.
Comment 5 SpanKY gentoo-dev 2004-05-25 21:48:13 UTC
they added this change to cvs:
#define DB_FILE_ID_LEN      (16 + sizeof(long)) /* DB file ID length. */

it'll be in the coming week's snapshot, thanks :)