On Monday 21 October 2013 12:44:04 Alex Peshkoff wrote:
> I always use
> # rpmbuild --version
> RPM version 4.1
> to build SF packages, I've rechecked B2_5_Release, it works for me.

Centos 6.4 has 

  RPM version 4.8.0

And opensuse 12.3 has

  RPM version 4.10.2


> After the build I have no files in RPM/BUILDROOT.

I think that is intentional - 



> May be you should
> ln -s gen/FirebirdCS-2.5.2.26541-0.x86_64 gen/RPM/BUILDROOT
> (but this is nothing than a guess)
>

That particular example didn't work. In fact, it ought to be more like:

  ln -s -f ../gen/FirebirdCS-2.5.2.26541-0.x86_64 \  
          ../gen/RPM/BUILDROOT/FirebirdCS-2.5.2.26541-0.x86_64


I add the the line here:

$(RPMFile) : $(GEN_ROOT)/install/rpmscript buildImageDir
        ln -s -f ../gen/FirebirdCS-2.5.2.26541-0.x86_64 \
           ../gen/RPM/BUILDROOT/FirebirdCS-2.5.2.26541-0.x86_64
        rpmbuild --define='_topdir 
/srv/firebird/fb25_private/firebird2/gen/RPM' \
                -bb --target amd64 $(GEN_ROOT)/install/ rpmscript

I guess the symlink is successful but rpmbuild has other ideas. When it gets 
to %install in the spec file it does this:

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.jWT9vQ
+ umask 022
+ cd /srv/firebird/fb25_private/firebird2/gen/RPM/BUILD
+ '[' 
/srv/firebird/fb25_private/firebird2/gen/RPM/BUILDROOT/FirebirdCS-2.5.2.26541-0.x86_64
 '!=' / ']'
+ 
rm -rf 
/srv/firebird/fb25_private/firebird2/gen/RPM/BUILDROOT/FirebirdCS-2.5.2.26541-0.x86_64
++ 
dirname 
/srv/firebird/fb25_private/firebird2/gen/RPM/BUILDROOT/FirebirdCS-2.5.2.26541-0.x86_64

ie, it deletes the directory and re-creates it.


so I guess I need to dig around in the %install script.


Paul
-- 
Paul Reeves
http://www.ibphoenix.com
Supporting users of Firebird

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to