Build Service & Source codes

Hello,

I stumbled across this build service forum while looking for an answer to a source code question.

I’m a programmer of many years so I do understand compiling etc. so that part of things you don’t have to explain.

However, I download the sources to php5.2.12 from php.net – the latest build of the 5.2.x branch because opensuse 11.2 starts with php5.3 and most apps. I am using are not yet ready to work with 5.3. It seems it would be easier to go back with the php version rather than try and update all the apps.

So, when I looked at the configure options for compiling php I found dozens of them so I figured the smart thing to do was download the source that opensuse used to compile php5.3 and use that as a template for how I configure php5.2.

However, I couldn’t find such a source. If found debug sources (header files) but not actual code and make configuration data so I came to the forums to ask where to find the sources and then came across this forum on a build service.

So my questions are:
Where to you get the source code that were used to compile apps., in my case php5.3.x?

And, since I need to create this php5.2.12 build how do I go about it? …now knowing that I should probably use this build service and make my compiling available to everyone.

This will be the first time I have compiled anything on linux/opensuse having embraced linux after years of windows programming so your help in getting started will be much appreciated.

Hi

You can download an existing source-rpm package and then ‘unrpm’ it in a directory. This gives you the source used and all patches and the *.spec file. Use that one as a template for your further work.

Terrific, thanks.

BTW, your tag line had me in fits of laughter.

I noticed that if I open an RPM with file roller that I can see all the files and that I can extract them all to a directory.

I’m guessing this is unrpm’ing. Please let me know if there is a right way to unrpm that I should be doing.

Hm, the spec. file from the guy that compiled php5.2.6 is over 3,000 lines long. I think I will have to leave this project for another day (maybe someone with real experience will compile a later version of PHP5.2 for openSUSE 11.2) and do something a little more closer to my realm of experience.

Thanks for your help. If I ever get some time to “play” I definitely want to try this but right now my time would be betters spent on things I know I can do.

Hi
At the very bottom of the spec file is the changelog, check the
packagers email address and send him/her an email asking if they
would update it.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.42-0.1-default
up 21 days 7:02, 4 users, load average: 0.16, 0.13, 0.10
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53

Thanks for the advice, I will definitely do that!

Reg gie wrote:
> I’m guessing this is unrpm’ing.

hmmmm…i’m not clear on what unrpm’ing is, but something you might
wanna try someday is to right click an rpm, and in the popup select
“Actions” then “Install with YaST” and give the root pass when asked…

if all works right it will auto-resolve dependencies…smooth…


palladium

I noticed that if I open an RPM with file roller that I can see all the files and that I can extract them all to a directory.

I’m guessing this is unrpm’ing. Please let me know if there is a right way to unrpm that I should be doing.

My answer was probably too short, because I assumed that you have installed the build package when you intend to build yourself. Ok, just install ‘build’ and it will provide a script ‘/usr/bin/unrpm’. Then you can do:

unrpm somepackage.rpm

This will extract all files from somepackage.rpm (replace with the appropriate package name).