Re: [Firebird-devel] make packages and rpms
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=60135031iu=/4140/ostg.clktrk Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] make packages and rpms
On 10/21/13 16:20, Philippe Makowski wrote: Le 21/10/13 14:04, Alex Peshkoff a écrit : On 10/21/13 15:14, Paul Reeves wrote: so I guess I need to dig around in the %install script. Probably. Please try to keep it backward-compatible - I do not want to change build environment for 2.5. yes, and by the way I don't really understand why you want to build these rpm I agree that quality of SF rpms is very low. Therefore I've stopped supporting them in fb3 (btw, why only redhat package manager, there are also debian, gentoo,... ?) But for old versions I prefer to keep things 'as was', i.e. if someone downloaded rpm for 2.5.2 he should be able to do same thing for 2.5.3 and preferably without need to upgrade package manager itself. And for your information, for me building these rpm on a Linux using rpm as package manager never worked, it works only on platform don't using rpm. funny Sometimes (long ago) I was building rpms for 1.5 SS on redhat9. That were same scripts (certainly, might be changed for such long time). -- 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=60135031iu=/4140/ostg.clktrk Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel