RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Support of non-Linux/*BSD platforms?

From: Frank Fegert <fra.nospam.nk@gmx.de>
Date: Thu 11 Sep 2008 - 13:53:50 CEST
Message-ID: <20080911115350.GB3508@dyndns.org>
Hello,

On Wed, Sep 10, 2008 at 11:49:22PM +0200, Frank Fegert wrote:
> RPM does however mess up %{arch}, so that e.g. package names are e.g.:
>   $ rpm -q rpm
>   rpm-5.1.4-1.005e3e6c4c00
> instead of:
>   $ rpm -q gdb
>   gdb-6.6-1.ppc
> with a package build with rpm-4.4.9. lib/rpmrc.c seems to pull the
> string "005e3e6c4c00" from utsname.machine via uname(). On AIX this
> is more of a machine/node-ID rather than the platform. I recall a
> mail on rpm5-devel about ripping out some heuristics to determine
> the platform/arch.

i put some code from an earlier CVS version back into lib/rpmrc.c
to determine the platform/arch on AIX. Together with other minor
changes (please see attached patch file) rpm5 now works fine on AIX.
But i've only tested the build, rpmbuild and rpm -q|-i|-U|-e so far.

Thanks & Regards,

        Frank


Received on Thu Sep 11 13:53:52 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.