Help - Search - Members - Calendar
Full Version: Building rpms from source
MandrivaUsers.org > Advanced Topics > WorkBench
spiedra
I've decided I am now ready to convert sources to rpms and what better project then kde sources. I followed the How To Here, but it is not working. I've created my required folders and 2 config files, downloaded kdeaccessibility-3.3.0.tar.bz2 to the SOURCES folder. Did rpmbuild -ta kdeaccessibility-3.3.0.tar.bz2, but I getr this error:
QUOTE
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)

After doing some reading, I think it has something to do with modifying the spec file. My question is, where is the spec file? Do I downloaded it? Do I extract the source and grab it from there? I know I can wait for someone to build the rpms and upgrade kde that way, but I want to get down and dirty.
Thanks for any help you guys can give me 2thumbsup.gif
tyme
You have to create the specfile yourself. Qchem go a hold of spec files from Mandrake somehow at one point. You could probably find the spec files for KDE and maybe modify them a bit.

I'll try to bug Qchem and get him in here...
bvc
QUOTE (spiedra @ Aug 20 2004, 08:40 AM)
I've decided I am now ready to convert sources to rpms and what better project then kde sources. I followed the How To Here, but it is not working.
*

laugh.gif
what better project?....you mean what harder project?....of course it's not working wink.gif

have fun!

spec files are put in /usr/src/ unsure.gif /BUILD/SPEC....or something like that....it's been a while.

of course, you could have run slocate and found it already wink.gif
spiedra
OK.
In /usr/src/RPM/SPECS/ I have to files:
fluxbox.spec and kmag.mdk.spec
Spec file for kde is obviously kmag.mdk.spec???
If I look inside that file it's empty. Do I then follow the format in the example of a spec file in the How TO and rewrite it?
Thanks guys. I'm up for a challange, but didn't know I would be choosing a hard one!!! wall.gif
Maybe banging my head will help me think.
spiedra
OK, i've figured this out. I need to google for the spec file for each of the packages, then modify them and build them. Wow, this will be tough, lol. It took me forever to build one rpm!!! Thanks!!!
bvc
biggrin.gif you got it!
hey, don't wall.gif too much. Many have failed at the task before you. It's a toughy!
spiedra
Well, what's the worst that can happen? Totally hose kde right?
If I do it succcessfully, i'll be happy to make it available to everyone.
Maybe I should install a test rpm to make sure I got it right.
spiedra
Well, after successfully building an rpm for kdeaccessibilty, I am having problems building the rpm for kdeadmin. At the end of building I get this error:
QUOTE
In file included from ksysv.all_cpp.cpp:11:
TopWidget.cpp: In member function `void KSVTopLevel::initActions()':
TopWidget.cpp:273: error: `setCheckedState' undeclared (first use this function)
TopWidget.cpp:273: error: (Each undeclared identifier is reported only once for each function it appears in.)
In file included from ksysv.all_cpp.cpp:20:
PreferencesDialog.cpp:31:1: warning: "MIN_SIZE" redefined
In file included from ksysv.all_cpp.cpp:10:
ServiceDlg.cpp:30:1: warning: this is the location of the previous definition
make[3]: *** [ksysv.all_cpp.o] Error 1
make[3]: Leaving directory `/home/spiedra/rpm/BUILD/kdeadmin-3.3.0/ksysv'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/spiedra/rpm/BUILD/kdeadmin-3.3.0/ksysv'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/spiedra/rpm/BUILD/kdeadmin-3.3.0'
make: *** [all] Error 2
error: Bad exit status from /home/spiedra/rpm/tmp/rpm-tmp.99021 (%build)


RPM build errors:
    Bad exit status from /home/spiedra/rpm/tmp/rpm-tmp.99021 (%build)

setCheckedState appears to be in relation to windows so I am not able to figure out how to perform this function as it seems to be causing the problem. Any ideas?
Qchem
Welcome to the wonderfull world of rpm building!!!

I think the problem there is purely due to a build from source error (for want of a better expression), have you tried building the same source code manually, eg with configure / make etc.

Check the Mandrake Linux wiki for some help/tips on rpm building.
tyme
also make sure you have all the necessary -devel rpm's for the libraries you need to build it. Make sure they are the proper version, too.
Artificial Intelligence
How well is the project going?
spiedra
Not going anywhere yet. I've decided to build the rpms for the maintanance release of kde 3.3. Reason being is because there have been many grave bugs found which has caused some people to revert back to kde 3.2. So might as well do it for a better release.
illogic-al
Well Now I've started to do this (again)
And this time I actually got paste KDELIBS! WOOOO!

I'll post my progress here and if anyone wants rpms or to help feel free.
BTW afaik there aren't any graves bugs in KDE 3.3 itself. People just aren't upgrading properly :-D

Oh, and just so you guys know. I'm not adding _any_ mandrake patches to my rpms (makes it much simpler and much stabler). Which means no mandrake menu.

If you'd like KDE w/ mdk aptches go to grab a spec file from
http://cvs.mandrakesoft.com/cgi-bin/cvsweb.cgi/SPECS/ , a corressponding src.rpm (for 3.2) and happy hacking :-D

If you decide you just wanna rebuild your rpms i can help yah.

So far I have kdelibs, kdebase, and arts done. right now I'm working on kdemultimedia.
spiedra
QUOTE (illogic-al @ Sep 17 2004, 07:53 AM)
BTW afaik there aren't any graves bugs in KDE 3.3 itself. People just aren't upgrading properly :-D
*

That can do it to. I might just pick up on it then. Don't mind if I ask for a little help. So far i've built 2 rpms.
illogic-al
we could tag team the rpms.
Right now I intend on doing kdemultimedia. But can't anything right now. bloody mirrors are saturated thanks to CE release. And I've a few rpms to rebuild before.
Also I'm going to add a patch for xcompmgr support to kwin (kdebase package)
WOOT!
illogic-al
wow. just noticed that I posted exactly 12 hours after you.
It must mean something.
illogic-al
I added this patch to kdebase. http://www.kde-look.org/content/show.php?content=16114
It makes kwin natively use xcompmgr... or something. I'll see how unstable it makes KDE if at all. and decide whether or not i'll add it to my packages.
KDE 3.3.0 rpms for club users I hear.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.