rebuild srpm question

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

rebuild srpm question

Unread post 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!
Last edited by BruceLee on Wed Jun 02, 2010 6:53 am, edited 3 times in total.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: rebuild srpm question

Unread post 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?
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: rebuild srpm question

Unread post 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
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: rebuild srpm question

Unread post 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
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: rebuild srpm question

Unread post 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)
Post Reply