MandrivaUsers.org : Building rpms from source - MandrivaUsers.org

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Building rpms from source For kde 3.3

#1 User is offline   spiedra 

  • Online Counselor
  • Group: Members
  • Posts: 622
  • Joined: 23-September 02

Posted 20 August 2004 - 01:40 PM

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 :thumbs:/>

This post has been edited by spiedra: 20 August 2004 - 01:43 PM

P4 2.66 Ghz
512 DDR RAM
NVIDIA GeForce FX 5200 128 MB
1HD - WD
1HD - Maxtor
ASUS Mobo
Windows 98/Mandrake 10/BeOS

Description: Short, Dark, and Fury all over.
0

#2 User is offline   tyme 

  • Serial Slacker
  • View blog
  • Group: Platinum
  • Posts: 13,309
  • Joined: 24-October 02

Posted 20 August 2004 - 02:12 PM

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...
0

#3 User is offline   bvc 

  • root
  • Group: Platinum
  • Posts: 8,682
  • Joined: 19-September 02

Posted 20 August 2004 - 02:14 PM

spiedra, on Aug 20 2004, 08:40 AM, said:

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.
<{POST_SNAPBACK}>

:lol:/>
what better project?....you mean what harder project?....of course it's not working ;)/>

have fun!

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

of course, you could have run slocate and found it already ;)/>

This post has been edited by bvc: 20 August 2004 - 02:16 PM

0

#4 User is offline   spiedra 

  • Online Counselor
  • Group: Members
  • Posts: 622
  • Joined: 23-September 02

Posted 20 August 2004 - 02:41 PM

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:/>
Maybe banging my head will help me think.

This post has been edited by spiedra: 20 August 2004 - 02:42 PM

P4 2.66 Ghz
512 DDR RAM
NVIDIA GeForce FX 5200 128 MB
1HD - WD
1HD - Maxtor
ASUS Mobo
Windows 98/Mandrake 10/BeOS

Description: Short, Dark, and Fury all over.
0

#5 User is offline   spiedra 

  • Online Counselor
  • Group: Members
  • Posts: 622
  • Joined: 23-September 02

Posted 20 August 2004 - 03:27 PM

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!!!
P4 2.66 Ghz
512 DDR RAM
NVIDIA GeForce FX 5200 128 MB
1HD - WD
1HD - Maxtor
ASUS Mobo
Windows 98/Mandrake 10/BeOS

Description: Short, Dark, and Fury all over.
0

#6 User is offline   bvc 

  • root
  • Group: Platinum
  • Posts: 8,682
  • Joined: 19-September 02

Posted 20 August 2004 - 04:22 PM

:D/> you got it!
hey, don't :wall:/> too much. Many have failed at the task before you. It's a toughy!
0

#7 User is offline   spiedra 

  • Online Counselor
  • Group: Members
  • Posts: 622
  • Joined: 23-September 02

Posted 21 August 2004 - 12:52 AM

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.
P4 2.66 Ghz
512 DDR RAM
NVIDIA GeForce FX 5200 128 MB
1HD - WD
1HD - Maxtor
ASUS Mobo
Windows 98/Mandrake 10/BeOS

Description: Short, Dark, and Fury all over.
0

#8 User is offline   spiedra 

  • Online Counselor
  • Group: Members
  • Posts: 622
  • Joined: 23-September 02

Posted 21 August 2004 - 02:08 PM

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?
P4 2.66 Ghz
512 DDR RAM
NVIDIA GeForce FX 5200 128 MB
1HD - WD
1HD - Maxtor
ASUS Mobo
Windows 98/Mandrake 10/BeOS

Description: Short, Dark, and Fury all over.
0

#9 User is offline   Qchem 

  • Mandriva Guru
  • Group: Members
  • Posts: 1,757
  • Joined: 02-October 03

Posted 22 August 2004 - 07:44 PM

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.
Grant
0

#10 User is offline   tyme 

  • Serial Slacker
  • View blog
  • Group: Platinum
  • Posts: 13,309
  • Joined: 24-October 02

Posted 22 August 2004 - 08:59 PM

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.
0

#11 User is offline   Artificial Intelligence 

  • UF Council Member
  • Group: OTW
  • Posts: 2,593
  • Joined: 24-August 04

Posted 09 September 2004 - 04:30 PM

How well is the project going?
Posted Image
| Ubuntu 11.10 64-bit | Gnome Shell | Unity |

| Ubuntu Game Icons | My Blog |


Tweak Unity with MyUnity
Tweak Ubuntu with UbuntuTweak
0

#12 User is offline   spiedra 

  • Online Counselor
  • Group: Members
  • Posts: 622
  • Joined: 23-September 02

Posted 12 September 2004 - 07:05 AM

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.
P4 2.66 Ghz
512 DDR RAM
NVIDIA GeForce FX 5200 128 MB
1HD - WD
1HD - Maxtor
ASUS Mobo
Windows 98/Mandrake 10/BeOS

Description: Short, Dark, and Fury all over.
0

#13 User is offline   illogic-al 

  • MUB Addict
  • Group: Members
  • Posts: 587
  • Joined: 23-September 02

Posted 16 September 2004 - 09:53 PM

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.mandrakes...sweb.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.

This post has been edited by illogic-al: 16 September 2004 - 09:57 PM

0

#14 User is offline   spiedra 

  • Online Counselor
  • Group: Members
  • Posts: 622
  • Joined: 23-September 02

Posted 17 September 2004 - 03:22 AM

illogic-al, on Sep 17 2004, 07:53 AM, said:

BTW afaik there aren't any graves bugs in KDE 3.3 itself. People just aren't upgrading properly :-D
<{POST_SNAPBACK}>

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.
P4 2.66 Ghz
512 DDR RAM
NVIDIA GeForce FX 5200 128 MB
1HD - WD
1HD - Maxtor
ASUS Mobo
Windows 98/Mandrake 10/BeOS

Description: Short, Dark, and Fury all over.
0

#15 User is offline   illogic-al 

  • MUB Addict
  • Group: Members
  • Posts: 587
  • Joined: 23-September 02

Posted 17 September 2004 - 03:22 PM

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!
0

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users