On Wednesday 29 April 2009 11:12:36 Elan Ruusamäe wrote:
> On Wednesday 29 April 2009 10:46:32 Tomasz Pala wrote:
> > > Build dir in package space is a bad idea, you will end up with
> > > searching through a thousands of directories looking for build
> > > leftovers that ate your disk space. Current layout is IMO just what we
> > > need.
> >
> > I agree, moreover I'd like to see DF-sources (non-CVS) outside package
> > space, unfortunately rpm won't handle this.
>
> are you sure?
>
> afaik openpkg patches in rpm allow this (those %{_rsourcedir}, etc you see
> sometimes are undefined for us)

rpmbuild searches files also from %{_Rsourcedir}:

$ rpmbuild -bp trac-plugin-ticketchange.spec
error: Fetching /%{_Rsourcedir}/ticketchangeplugin.zip failed: Unknown or 
unexpected error

$ wget 
ftp://distfiles.pld-linux.org/distfiles/by-md5/7/c/7c21c57730434992bf0e7aca47fdaa0c/ticketchangeplugin.zip
 -q -O /home/users/glen/rpm/SOURCES/ticketchangeplugin.zip

$ rpmbuild -D '_Rsourcedir /home/users/glen/rpm/SOURCES' -bp 
trac-plugin-ticketchange.spec
Executing(%prep):  env -i 
PATH=/home/users/glen/GNUstep/Tools:/usr/local/bin:/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/home/users/glen/bin:/usr/games:/home/users/glen/okas
 
HOME=/home/users/glen TMP=/home/users/glen/tmp TMPDIR=/home/users/glen/tmp  
/bin/sh -e /home/users/glen/tmp/rpm-tmp.58204
+ umask 022
+ cd /home/users/glen/rpm/BUILD.x86_64-linux
+ cd /home/users/glen/rpm/BUILD.x86_64-linux
+ rm -rf ticketchangeplugin
+ /usr/bin/unzip -qq /home/users/glen/rpm/SOURCES/ticketchangeplugin.zip
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd ticketchangeplugin
+ /bin/id -u
+ [ 1009 = 0 ]
+ true .
+ /bin/chmod -Rf -Rf a+rX,u+w,g-w,o-w .
+ exit 0
$

16:26:31  jbj> well yes, L is local, R is remote, one could use that same 
mechanism. note that a R -> L copy operation is implied, that isn't quite VPATH.

actually it means rpmbuild copies from %{_Rsourcedir} -> %{_Lsourcedir} in the 
process...

-- 
glen
_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to