RPM Community Forums

Mailing List Message of <rpm-devel>

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

From: Jeff Johnson <n3npq@mac.com>
Date: Sat 13 Sep 2008 - 01:31:05 CEST
Message-id: <1D12C6EB-4C94-4E93-9908-7C75AEFDD69F@mac.com>

On Sep 11, 2008, at 7:53 AM, Frank Fegert wrote:

> 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.
>

You can of course revert whatever patches you wish ,,,

BUT

try echo "ppc-ibm-aix" > /etc/rpm/platform

You can easily change that CPU-VENDOR-OS string to be whatever you
wish without recompiling rpm.

73 de Jeff
> Thanks & Regards,
>
>        Frank
> <rpm-5.1-AIX.patch>
Received on Sat Sep 13 01:31:11 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.