Hi

Dne Thu, 29 Oct 2009 09:23:06 +0000
Matt Hodges <matt.hod...@stfc.ac.uk> napsal(a):

> I'm trying to get an RPM build to work on Debian that works OK on a
> RedHat system.  The build process writes in the current working
> directory
> (/home/mph45/svn/pscsg/gridservices/FTS/tier1-fts-config/trunk) an
> rpmconfig file:
> 
>     macrofiles:     
> /usr/lib/rpm/macros:/usr/lib/rpm/%{_target}/macros:/etc/rpm/macros.specspo:/etc/rpm/macros.prelink:/etc/rpm/macros.solve:/etc/rpm/macros.up2date:/etc/rpm/macros:/etc/rpm/%{_target}/macros:/home/mph45/svn/pscsg/gridservices/FTS/tier1-fts-config/trunk/rpmmacros
> 
> and an rpmmacros file:
> 
>     %_topdir        
> /home/mph45/svn/pscsg/gridservices/FTS/tier1-fts-config/trunk
>     %_sourcedir %{_topdir}/src
>     %_specdir   %{_topdir}
>     %_srcrpmdir   %{_topdir}/rpm
>     %_rpmdir   %{_topdir}/rpm
> 
> It then runs rpmbuild like:
> 
>     rpmbuild -ba \
>     
> --rcfile=/usr/lib/rpm/rpmrc:/home/mph45/svn/pscsg/gridservices/FTS/tier1-fts-config/trunk/rpmconfig
>  \
>     tier1-fts-config.spec
> 
> However, despite being listed in the rpmconfig the generated rpmmacros
> file isn't read, and the build fails.  If I copy this rpmmacros file to
> ~/.rpmmacros, the build process works fine.
> 
> Is macrofiles not supported?

I have no clue right, but anything what works on Fedora should also work
with Debian packaged rpm. If you used different rpm branch (eg.
Mandriva or SUSE one), it is possible that it has different behavior.

Was rpmconfig file processed at all?

-- 
        Michal Čihař | http://cihar.com | http://blog.cihar.com

Attachment: signature.asc
Description: PGP signature

Reply via email to