Re: How do I set the _topdir ?

2011-01-01 Thread Sriram Narayanan
On Sun, Jan 2, 2011 at 12:01 AM, Jeff Johnson wrote: > (aside) > FYI: I'm very likely to change to the above as default > hierarchy in rpm-5.4.x, largely because @rpm.org changes with > ~/rpmbuild/* already have changed RPM's default behavior, > and I see no reason to maintain consistency with,

Re: How do I set the _topdir ?

2011-01-01 Thread Jeff Johnson
On Jan 1, 2011, at 1:10 PM, Sriram Narayanan wrote: > > Thanks Jeff, that worked ! > Instead of the usual {RPMS,SRPMS,BUILD,SOURCES,SPECS} hierarchy, you might try building like I do. I tend to have multiple versions of both rpm and distro packaging lying around always, and need to flip betwee

Re: How do I set the _topdir ?

2011-01-01 Thread Sriram Narayanan
On Sat, Jan 1, 2011 at 11:30 PM, Jeff Johnson wrote: > > All macros in configuration file loads have to start with '%' in > 1st column. > > So you need this > > %_topdir        /workspace/rpmwork > Thanks Jeff, that worked ! -- Sriram > hth > > 73 de Jeff > ___

Re: How do I set the _topdir ?

2011-01-01 Thread Jeff Johnson
On Jan 1, 2011, at 12:46 PM, Sriram Narayanan wrote: > /usr/local/lib/rpm/%{_target}/rpmpopt Note the unexpanded macro here. That's "Have it your own way!" flexibility as compiled. > > 0 2237 open64:entry rpmbuild /home/sriram/.rpmmacros > This SHOULD have read wyat

Re: How do I set the _topdir ?

2011-01-01 Thread Sriram Narayanan
Ok, using dtrace, I was able to figure out what rpmbuild is doing: 0 1837 open:entry rpmbuild /var/ld/ld.config 0 1837 open:entry rpmbuild /usr/local/lib/librpmbuild-5.2.so 0 1837 open:entry rpmbuild /usr/local/lib/librpm

Re: How do I set the _topdir ?

2011-01-01 Thread Jeff Johnson
On Jan 1, 2011, at 11:11 AM, Sriram Narayanan wrote: > Hi: > > This is a newbie question. I presently have ~/.rpmrc containing > _topdir:/workspace > You want ~/.rpmmacros. Check with strace -e open rpmbuild ... if you run into issues figgering out what paths are open'ed. rpmbuild is

How do I set the _topdir ?

2011-01-01 Thread Sriram Narayanan
Hi: This is a newbie question. I presently have ~/.rpmrc containing _topdir:/workspace However, when I run rpmbuild --showrc | grep topdir, I get: rpmbuild --showrc | grep topdir -14: _builddir %{_topdir}/BUILD -14: _rpmdir%{_topdir}/RPMS -14: _sourcedir %{_topdir}/SOURCES -14: _specdir %{