topdir macro

Adam Gołębiowski adamg at pld-linux.org
Tue May 12 08:57:12 CEST 2009


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}/ .

[adamg at ankh-th ~]$ rpm -q rpm
rpm-4.5-16.i686
[adamg at ankh-th ~]$ cd rpm/packages/dev^C
[adamg at ankh-th ~]$ rm ~/rpm/{SPECS,SOURCES}/dev*
[adamg at ankh-th ~]$ cd rpm/packages/dev
[adamg at 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
[adamg at ankh-th dev]$ rpm -Uhv /home/users/adamg/rpm/SRPMS/dev-3.4-4.src.rpm
    1:dev                    ###########################################
[100%]
[adamg at ankh-th dev]$ cd ../../SPECS/
[adamg at 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
[adamg at ankh-th SPECS]$



More information about the pld-devel-en mailing list