store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Thu May 23, 2013 1:44 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 5 posts ] 
Author Message
 Post subject: rebuild srpm question
Unread postPosted: Sat Apr 03, 2010 2:00 pm 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
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:
~: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:
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:
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.

Top
 Profile  
 
 Post subject: Re: rebuild srpm question
Unread postPosted: Sat Apr 03, 2010 6:25 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7425
Location: earth
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?


Top
 Profile  
 
 Post subject: Re: rebuild srpm question
Unread postPosted: Sat Apr 03, 2010 6:34 pm 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
hmm, all I did is what I wrote above.
But I will add
%debug_package %{nil}
into my rpmmacros file and see what happens


Top
 Profile  
 
 Post subject: Re: rebuild srpm question
Unread postPosted: Sat Apr 03, 2010 7:09 pm 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
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


Top
 Profile  
 
 Post subject: Re: rebuild srpm question
Unread postPosted: Tue Apr 06, 2010 12:38 pm 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 5 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group