[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: build os problem



On Thu, Dec 06, 2001 at 08:45:56AM -0500, Ken Colson wrote:
> Hello,
> 
> When I build an RPM on this machine, I am unable to install that RPM on
> the same machine, I get 'package xxx is for a different operating
> system'.  I would like to be able to install the RPMS without having to
> hit it with --ignoreos all of the time.
> 
> this is the output of head of rpm --showrc
> 
> ARCHITECTURE AND OS:
> build arch            : i386
> compatible build archs: i386 noarch
> build os              : sco_sv3.2v5.0.2
> compatible build os's : SCO_SV
> install arch          : i386
> install os            : SCO_SV
> compatible archs      : i386 noarch
> compatible os's       : SCO_SV
> 
> this is the output of uname -a
> 
> SCO_SV hostname 3.2 2 i386 x86at SCO UNIX_SVR3
> 
> this is rpm version 3.0.6
> 

Wow, rpm on sco. I haven't had a bug report from SCO for years :-)

What does "rpm -qp --qf '%{os}\n' your.rpm" say?

Try adding an os_compat entry to /etc/rpmrc and/or /usr/lib/rpm/rpmrc.
Something like
	os_compat: SCO_SV: <what_your_package_reports>
or possibly vice versa, I fergit.

You might also check
	os_canon:       SCO_SV: SCO_SV3.2v5.0.2  9
although AFAICT that looks consistent with what you are reporting above.

If all else fails, dig into defaultMachine() in lib/rpmrc.c and
figger your own uname(2) -> rpm os translation. The code is a bit gory,
but that's where the magic is done.

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@jbj.org	(jbj@redhat.com)
Chapel Hill, NC





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []