on second thought, maybe this is a better way. Maybe this needs to be done
in general in the spec files to allow xcat to support a different install
prefix in the future?
---
%{!?_xcat_home: %define _xcat_home /opt/xcat}

Prefix: %{_xcat_home}

....

 %Files
 %defattr(-,root,root)
 %doc LICENSE.html
%{_xcat_home}/*
---

You can probably specify the exact files in each spec that needs to be
managed rather than my catchall. I attached a patch against an svn branch
diff from: http://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7.
Please let me know if I should use something else.

However, I can't seem to find out how the xCAT-genesis*.rpm gets built. I
run: ./buildcore.sh UP=0 BUILDALL=1 and see rpms and srpms getting built.
---
[cdmaestas@localhost ~]$ ls xcat-core
perl-xCAT-2.7.7-snap201301171553.noarch.rpm
xCAT-2.7.7-snap201301171554.i386.rpm
xCAT-2.7.7-snap201301171554.ppc64.rpm
xCAT-2.7.7-snap201301171554.s390x.rpm
xCAT-2.7.7-snap201301171554.x86_64.rpm
xCAT-client-2.7.7-snap201301171553.noarch.rpm
xCAT-IBMhpc-2.7.7-snap201301171554.noarch.rpm
xCAT-nbroot-core-ppc64-2.7.7-snap201301171554.noarch.rpm
xCAT-nbroot-core-x86-2.7.7-snap201301171554.noarch.rpm
xCAT-nbroot-core-x86_64-2.7.7-snap201301171554.noarch.rpm
xCAT-rmc-2.7.7-snap201301171554.noarch.rpm
xCAT-server-2.7.7-snap201301171554.noarch.rpm
xCATsn-2.7.7-snap201301171554.i386.rpm
xCATsn-2.7.7-snap201301171554.ppc64.rpm
xCATsn-2.7.7-snap201301171554.s390x.rpm
xCATsn-2.7.7-snap201301171554.x86_64.rpm
xCAT-test-2.7.7-snap201301171554.noarch.rpm
[cdmaestas@localhost ~]$ ls core-snap-srpms/
perl-xCAT-2.7.7-snap201301171553.src.rpm
xCAT-2.7.7-snap201301171554.src.rpm
xCAT-client-2.7.7-snap201301171553.src.rpm
xCAT-IBMhpc-2.7.7-snap201301171554.src.rpm
xCAT-nbroot-core-ppc64-2.7.7-snap201301171554.src.rpm
xCAT-nbroot-core-x86-2.7.7-snap201301171554.src.rpm
xCAT-nbroot-core-x86_64-2.7.7-snap201301171554.src.rpm
xCAT-rmc-2.7.7-snap201301171554.src.rpm
xCAT-server-2.7.7-snap201301171554.src.rpm
xCATsn-2.7.7-snap201301171554.src.rpm
xCAT-test-2.7.7-snap201301171554.src.rpm
----

Am I missing something else to build the xCAT-genesis*.rpm?

On Thu, Jan 17, 2013 at 2:27 PM, Christopher Maestas <[email protected]>wrote:

> OK. Here's a quick patch to just remove that. I think it's more than one
> place. I'll try and rebuild xcat rpms from this.
>
> ===
> $ find ./ | grep \.spec$ | xargs grep ^\/$
> ./xCAT-nbroot2/xCAT-genesis.spec:/
> ./xCAT-nbroot2/xCAT-genesis-builder.spec:/
> ./xCAT-nbroot/xcat-core-nbroot.spec:/
> ./xCAT-genesis-builder/xCAT-genesis-base.spec:/
> ./xCAT-genesis-builder/xCAT-genesis-builder.spec:/
> ===
>
>
> On Thu, Jan 17, 2013 at 11:57 AM, Lissa Valletta <[email protected]>wrote:
>
>>  We are looking at this for our 2.8 release.
>>
>> Lissa K. Valletta
>> 8-3/B10
>> Poughkeepsie, NY 12601
>> (tie 293) 433-3102
>>
>>
>>
>> [image: Inactive hide details for Christopher Maestas ---01/17/2013
>> 12:37:25 PM---I saw this during install (and I think I've seen 
>> this]Christopher
>> Maestas ---01/17/2013 12:37:25 PM---I saw this during install (and I think
>> I've seen this on an install in rhel6 at one time as well):
>>
>> From: Christopher Maestas <[email protected]>
>> To: xCAT Users Mailing list <[email protected]>
>> Date: 01/17/2013 12:37 PM
>> Subject: [xcat-user] "/" attribute conflicting with filesystem rpm
>> ------------------------------
>>
>>
>>
>> I saw this during install (and I think I've seen this on an install in
>> rhel6 at one time as well):
>>
>> ----
>> Transaction Check Error:
>>   file / from install of
>> xCAT-genesis-x86_64-1:2.7.7-snap201301100842.noarch conflicts with file
>> from package filesystem-3.1-2.fc18.x86_64
>> ---
>>
>> I think this is because of this section in
>> xCAT-genesis-builder/xCAT-genesis-builder.spec
>> ---
>> %Files
>> %defattr(-,root,root)
>> %doc LICENSE.html
>> /
>> ---
>>
>> Don't know if it is intended, but wouldn't seem like you would want to
>> conflict with the filesystem package.
>> ---
>> -cdm
>> ------------------------------------------------------------------------------
>> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
>> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
>> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
>> MVPs and experts. ON SALE this month only -- learn more at:
>> http://p.sf.net/sfu/learnmore_122712
>> _______________________________________________
>> xCAT-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/xcat-user
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
>> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
>> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
>> MVPs and experts. ON SALE this month only -- learn more at:
>> http://p.sf.net/sfu/learnmore_122712
>> _______________________________________________
>> xCAT-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/xcat-user
>>
>>
>

<<graycol.gif>>

Attachment: xcat-nbroot-prefix-files.patch
Description: Binary data

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to