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

Re: [rpm-list] %ifos



On 14 November 2006 at 23:20, Jos Vos <jos xos nl> wrote:

> On Tue, Nov 14, 2006 at 02:12:58PM -0800, Kevin Cosgrove wrote:
> 
> > In the prep, build, install sections of the spec file "%ifos
> > Linux" works fine.  But, "%ifos solaris2.8" doesn't work at
> > all.  If I use "%ifos solaris2.8" in the definitions section,
> > i.e. outside prep etc, I can confirm that the os is indeed known
> > to rpm as solaris2.8 by defining something else, e.g. "%define
> > myaction echo os is solaris2.8".
> > 
> > Why would %ifos work for Linux but not other solaris2.8?  How
> > could I get it to work for solaris2.8?
> 
> Try "rpm --showrc | grep ' os'" and see what os it shows for your
> Solaris build system.

 
[kevinc #419] rpm --showrc  | grep " os"
ARCHITECTURE AND OS:
build os              : solaris2.8
compatible build os's : solaris2.8
install os            : solaris2.8
compatible os's       : solaris2.8 SunOS solaris2 solaris2.3 solaris2.4 solaris2.5 solaris2.5.1 solaris2.6 linux
%{__python} %{?O:-O} -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1


--
Kevin



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