Elan Ruusamäe pisze:
> On Friday 08 May 2009 12:33:01 Elan Ruusamäe wrote:
>> On Sunday 03 May 2009 13:31:15 Arkadiusz Miskiewicz wrote:
>>> It's nice bit it will break in a case when you use some .src.rpm
>>> and install it. It should be installed in standard place - 
>>> rpm/{SOURCES,SPECS} not in our packages.
>> why is it so? i mean why you need it being installed in 
>> rpm/{SOURCES,SPECS}? you can't build such pkg anyway, if building
>> requires sources/specs being in pld layout.... 

Is there anything that requires current (packages/foo) layout ?

As for now, it looks like that builder supports packages/ layout while
rpmbuild the old one. It is not a perfect solution (some magic to detect
the layout would be nice), but better than no support for
~/rpm/{SPECS,SOURCES}/ .

[ad...@ankh-th ~]$ rpm -q rpm
rpm-4.5-16.i686
[ad...@ankh-th ~]$ cd rpm/packages/dev^C
[ad...@ankh-th ~]$ rm ~/rpm/{SPECS,SOURCES}/dev*
[ad...@ankh-th ~]$ cd rpm/packages/dev
[ad...@ankh-th dev]$ ../builder -bs dev
builder: SMP make flags are set to -j4
# $Revision: 1.192 $, $Date: 2009/03/01 16:29:51 $
Available branches: RA-branch rpm3
Zapisano: /home/users/adamg/rpm/SRPMS/dev-3.4-4.src.rpm
     0.18s real     0.15s user     0.00s system
[ad...@ankh-th dev]$ rpm -Uhv /home/users/adamg/rpm/SRPMS/dev-3.4-4.src.rpm
    1:dev                    ###########################################
[100%]
[ad...@ankh-th dev]$ cd ../../SPECS/
[ad...@ankh-th SPECS]$ rpmbuild -bp dev.spec
Wykonywanie(%prep):  env -i
PATH=/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/home/users/adamg/bin
 

HOME=/home/users/adamg TMP=/home/users/adamg/tmp
TMPDIR=/home/users/adamg/tmp  /bin/sh -e /home/users/adamg/tmp/rpm-tmp.33191
+ umask 022
+ cd /home/users/adamg/rpm/BUILD
+ cd /home/users/adamg/rpm/BUILD
+ rm -rf dev-3.4
+ /bin/mkdir -p dev-3.4
+ cd dev-3.4
+ /bin/id -u
+ [ 1000 = 0 ]
+ true .
+ /bin/chmod -Rf -Rf a+rX,u+w,g-w,o-w .
+ exit 0
[ad...@ankh-th SPECS]$

_______________________________________________
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