rpm for uclibc?
Peter S. Mazinger
ps.m at gmx.net
Fri Aug 11 02:32:21 PDT 2006
On Thu, 10 Aug 2006, Ed Swierk wrote:
> On 8/8/06, Peter S. Mazinger <ps.m at gmx.net> wrote:
> > I have rpm-4.0.x built, rpm-4.2 would also work (I have backported some
> > 4.2 patches from openpkg to 4.0). iirc the rpc part does not work and I
> > had to sed s:PIC:__PIC__: (but that is rather security/text relocation
> > related, depends on the chosen uClibc config if it affects you), haven't
> > tried any newer, though I dont know why it shouldnt, beecrypt builds and
> > berkeley db used in rpm>4.1 also.
>
> I've managed to get rpm 4.4.6 to compile with uClibc-20060720 and gcc
> 4.1.1 by building beecrypt, neon and zlib separately (under buildroot)
> and applying the attached pile of patches (most of which spray for
> absolute pathnames in -L and -I flags).
>
> Unfortunately I don't get very far when I try to run the resulting
> executable. rpm --rebuild crashes with an error that seems to point to
> some uClibc mutex issue in the db4 library:
>
> rpmdb: unable to initialize mutex: Function not implemented
> rpmdb: PANIC: Function not implemented
try to use the patches from the openpkg project, it makes db use fcntl
instead of threads for locking, increases BUFSIZ. search also for
__GLIBC__ checks and add !defined __UCLIBC__ to the list (libio_off_t)
Peter
>
> rpmdb: unable to join the environment
> error: db4 error(-30974) from dbenv->open: DB_RUNRECOVERY: Fatal
> error, run database recovery
> error: cannot open Packages index using db3 - (-30974)
>
> I'm moving onto other work for now, but if anyone finds their way
> around this problem, I'd love to hear about it.
>
> --Ed
>
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
More information about the uClibc
mailing list