Page 1 of 1

rebuild srpm question

Posted: Sat Apr 03, 2010 2:00 pm
by BruceLee
Hi Scott,

I want to rebuild your package php-eaccelerator-5.2.13_0.9.6-4.el5.art.x86_64.rpm with a patch that where commented out unfortunately.
Therefore I created a user called builder and did the following:

Code: Select all

~:touch .rpmmacros
edited it with: %_topdir /home/builder/src/rpm/
mkdir -p ~/src/rpm/{BUILD,RPMS/{i386,i686,x86_64,noarch},SOURCES,SPECS,SRPMS,TMP}
After that got the source rpm and installed it:

Code: Select all

wget http://www4.atomicorp.com/channels/source/php-eaccelerator/php-eaccelerator-5.2.13_0.9.6-4.art.src.rpm
rpm -ivh php-eaccelerator-5.2.13_0.9.6-4.art.src.rpm
Changed the line with the fix1 and removed '#' for the fix1 in the specs file and then:

Code: Select all

rpmbuild -ba php-eaccelerator-art.spec
Installing went through and everything seems to work.
But why is the builded rpm almost twice as big as yours?
Did I do something wrong? Can I improve or test anything?

Thanks a lot and if you read it before the holiday: HAPPY EASTER!

Re: rebuild srpm question

Posted: Sat Apr 03, 2010 6:25 pm
by scott
Hmm, thats a pretty strange result all right. That sounds like somehow its compiled with debugging. Did you end up with a debuginfo rpm by any chance?

Re: rebuild srpm question

Posted: Sat Apr 03, 2010 6:34 pm
by BruceLee
hmm, all I did is what I wrote above.
But I will add
%debug_package %{nil}
into my rpmmacros file and see what happens

Re: rebuild srpm question

Posted: Sat Apr 03, 2010 7:09 pm
by BruceLee
unfortunately that did not do the trick.
I know that you said you dont want to compile eaccelerator again (and again, and again),
but if you find some time I would be very grateful.
Taking fix1 in and putting it under atomic-testing would be awesome.
If not (what I can fully understand) what else could explain the size?
It seems strange to me and I dont want to put it on my live server like that.

Thanks

Re: rebuild srpm question

Posted: Tue Apr 06, 2010 12:38 pm
by BruceLee
Resolved it by simply creating the TMP directory. After that the rebuild went through correctly. File size is correct and the packages are created correctly too.
(Changed the above commands for giving a simple HOW-TO)