Author Topic: Trying to rebuild "kdebase4-workspace" with/without mod  (Read 2171 times)

Offline soup-n-sandwich

  • Jr. Member
  • **
  • Posts: 38
Trying to rebuild "kdebase4-workspace" with/without mod
« on: August 16, 2010, 06:48:55 AM »
Guys I'm trying to learn packaging for PCLOS. I've done a little on another project but can't get this package to build.
I'm trying to rebuild the "kdebase4-workspace" package. I needed to change the URL for the kickoff menu (it goes to www.kde.org) and also the image/logo to replace the kde image among a few other minor changes.
I logged in as a user and install "a-task-package-minimal" and "task-packaging-kde4" and anything else that I think I needed in the past to build rpms.
I grabbed the source for this package from one of the mirrors.  I ran "mkrepo" to form my build root folder/directories in my home dir.
I then decompressed the srpm (using rpm2cpio <rpmpackage.rpm> |cpio -id) made my mods to the package (both spec and source), placed the spec file in the "spec" folder and the rest of the package contents in the "source" folder.  I then tried running the (rpmbuild -ba name of specfile.spec) and also tried the right click context menu "Build All" when right clicking on the spec file.  Now I did this with my modified package of "kdebase4-workspace" and with a totally unmodified version and I get the same results.  The build gets to 30 or 43 percent (depending on if I do a "Build All" or "Install Only" and errors out with this.

Code: [Select]
[ 42%] Building CXX object klipper/CMakeFiles/kdeinit_klipper.dir/klipper.o
/home/chris/src/rpm/BUILD/kdebase-workspace-4.4.5/klipper/klipper.cpp:1191:2: warning: #warning Check if this is still needed, hopefully not.
/usr/include/kdebug.h: In member function ‘void Klipper::checkClipData(bool)’:
/usr/include/kdebug.h:289: error: ‘WrongSyntax KDebug::operator()(const char*)’ is private
/home/chris/src/rpm/BUILD/kdebase-workspace-4.4.5/klipper/klipper.cpp:797: error: within this context
/home/chris/src/rpm/BUILD/kdebase-workspace-4.4.5/klipper/klipper.cpp: At global scope:
/home/chris/src/rpm/BUILD/kdebase-workspace-4.4.5/klipper/klipper.cpp:1218: warning: unused parameter ‘e’
make[2]: *** [klipper/CMakeFiles/kdeinit_klipper.dir/klipper.o] Error 1
make[2]: Leaving directory `/home/chris/src/rpm/BUILD/kdebase-workspace-4.4.5/build'
make[1]: *** [klipper/CMakeFiles/kdeinit_klipper.dir/all] Error 2
make[1]: Leaving directory `/home/chris/src/rpm/BUILD/kdebase-workspace-4.4.5/build'
make: *** [all] Error 2
make: Leaving directory `/home/chris/src/rpm/BUILD/kdebase-workspace-4.4.5/build'
error: Bad exit status from /home/chris/src/tmp/rpm-tmp.67880 (%install)


RPM build errors:
    Bad exit status from /home/chris/src/tmp/rpm-tmp.67880 (%install)
All dependencies have been met...I'm just not sure how to interpret this.
Thanks guys,
Soup

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15304
  • ┌∩┐(◕_◕)┌∩┐
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline soup-n-sandwich

  • Jr. Member
  • **
  • Posts: 38
Re: Trying to rebuild "kdebase4-workspace" with/without mod
« Reply #2 on: August 17, 2010, 05:40:05 AM »
Thanks it's help in other areas.  There is tons of useful information there, thanks.
However I still have this error.  Does all of this below look correct?
I took this package in stock form, without modification decompressed the source rpm with [rpm2cpio <rpmpackage.rpm> |cpio -id].
I then ran [mkrepo] and have it form my build directories.
I move the spec file from the recently decompressed srpm to the "spec" folder and the rest of the files/folders to the "source" folder.
I make sure all deps are met and then run [rpm -ba rpmpackage.rpm].  I still get this error around the 31 percent mark of the build.
The errors are with Klipper and PolicyKit.  It's always the same error (shown above).
What am I doing wrong?

genomega

  • Guest
Re: Trying to rebuild "kdebase4-workspace" with/without mod
« Reply #3 on: August 22, 2010, 03:03:39 PM »
I believe that the source that you need is kdebase4-workspace-core for kde4.5

Offline soup-n-sandwich

  • Jr. Member
  • **
  • Posts: 38
Re: Trying to rebuild "kdebase4-workspace" with/without mod
« Reply #4 on: September 21, 2010, 07:55:22 PM »
Thanks, you are correct.  However I'm not sure what I need to rebuild this package.  I wanted to setup a build environment and then build it from the spec file but it fails every time.  I've installed every package that I could think of to create a build enviro.  I was expecting a set of build folders in my home directory like "SOURCE", "SPEC", "RPMS" but I don't see that.  I tried building a package in another distro and I basically CDed into the SPEC directory of my build enviro and did a "rpm -ba nameOfSpecFile" and it built the RPM but that's not happening here.  Any idea what's going on?
Soup

genomega

  • Guest
Re: Trying to rebuild "kdebase4-workspace" with/without mod
« Reply #5 on: September 21, 2010, 08:28:09 PM »
Thanks, you are correct.  However I'm not sure what I need to rebuild this package.  I wanted to setup a build environment and then build it from the spec file but it fails every time.  I've installed every package that I could think of to create a build enviro.  I was expecting a set of build folders in my home directory like "SOURCE", "SPEC", "RPMS" but I don't see that.  I tried building a package in another distro and I basically CDed into the SPEC directory of my build enviro and did a "rpm -ba nameOfSpecFile" and it built the RPM but that's not happening here.  Any idea what's going on?
Soup

Running mkrepo from the cli will create what you need.

Offline soup-n-sandwich

  • Jr. Member
  • **
  • Posts: 38
Re: Trying to rebuild "kdebase4-workspace" with/without mod
« Reply #6 on: September 22, 2010, 10:34:41 AM »
Thanks man that's helped.
I am now at the stage of actually doing the build.  I installed all deps and CDed into the SPEC directory.  I then typed "rpmbuild -bb 44-kdebase4-workspace.spec" and it started the build. However it didn't get very far as this error showed up very quickly.   "RPM build errors:  Bad exit status from /home/temp/src/temp/rpm-temp.70141 (%prep)" .  I've been trying to figure out why this is happening but so far I'm still not sure how to correct this issue.
Thanks again for any input.
Soup

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3991
Re: Trying to rebuild "kdebase4-workspace" with/without mod
« Reply #7 on: September 22, 2010, 03:47:05 PM »
I don't know whether what you're doing should work, but it's not normal to decompress a SRPM manually. You install it in the build environment by running rpm -i <package> as the user who owns the build environment.

The second thing is never modify the source if you intend to distribute the new SRPM. Instead make a patch and apply it in the %prep section of the spec file. There are instructions on how to do that in the tutorial.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline soup-n-sandwich

  • Jr. Member
  • **
  • Posts: 38
Re: Trying to rebuild "kdebase4-workspace" with/without mod
« Reply #8 on: September 23, 2010, 10:48:50 AM »
Ok thanks very much.  
I did what you said, being logged in as a user and ran the command 'rpm -i packagename' and I got an error that reads "warning: user texstart does not exist - using root' and 'warning: group texstar does not exist - using root'
Also I should mention even when I made no changes at all to this package and just tried to rebuild it I still can't get it to build.  Is there something wrong with the package or is there something wrong with the guy behind the keyboard?

Also I did checked out the patches for this package.  PCLOS already has a patch for one of the things I was trying to change and that's the branding URL in the kickoff menu.  The patch indicates that 'http://www.kde.org" will be changed to "http://www.pclinuxos.com" yet the menu branding icon still goes to kde's website.  What's going on here?

Soup

UPDATE
I just tried to rebuild this package again but this time without any changes at all.  It still failed to build.  I took the SRPM and had to manually extract it.  I took the spec file and placed it into the ~/src/rpm/SPECS folder and I placed everything else (except the spec file) into the SOURCES folder.  I CDed into the SPEC folder and did a "rpmbuild -bb 44-kdebase-workspace.spec".  It makes it to about 47 percent every time and errors out with "Linking CXX shared modeule ../../../../lib/plasma_engine_statusnotifieritem.so"
"[47%] Built target plasma_engine_statusnotifieritem:"
"make: *** [all] Error 2"
"error: Bad exit status from /home/temp/src/tmp/rpm-tmp.52979 (%build)"

Again this is with no changes what so ever to this package.
Thanks guys,
Soup
« Last Edit: September 23, 2010, 11:53:59 AM by soup-n-sandwich »

genomega

  • Guest
Re: Trying to rebuild "kdebase4-workspace" with/without mod
« Reply #9 on: September 23, 2010, 01:04:05 PM »
If you have the tools installed, in dolphin you can right click on srpm and unpack to your build setup. Right clicking on the spec file will give you a bunch of options like, install depends.


Offline soup-n-sandwich

  • Jr. Member
  • **
  • Posts: 38
Re: Trying to rebuild "kdebase4-workspace" with/without mod
« Reply #10 on: September 23, 2010, 01:41:24 PM »
Yeah I did use the context menu but it didn't make any difference.  As it stands now the package will not build even though there were no changes make to the package.  Am I doing something wrong during the build process.  Is there anybody that could test the building of this package to see if it will build for you?
Soup
« Last Edit: September 23, 2010, 01:50:26 PM by soup-n-sandwich »

Offline soup-n-sandwich

  • Jr. Member
  • **
  • Posts: 38
Re: Trying to rebuild "kdebase4-workspace" with/without mod
« Reply #11 on: October 03, 2010, 04:55:52 PM »
Guys,
I was wondering if somebody could attempt to rebuild the "kdebase4-workspace" package.  I can't seem to get it to build.  I'm trying to re-build it so I can get the kickoff menu's branding/link icon to link to something other than kde.org site.
Thanks
Soup

genomega

  • Guest
Re: Trying to rebuild "kdebase4-workspace" with/without mod
« Reply #12 on: October 03, 2010, 06:28:58 PM »
Guys,
I was wondering if somebody could attempt to rebuild the "kdebase4-workspace" package.  I can't seem to get it to build.  I'm trying to re-build it so I can get the kickoff menu's branding/link icon to link to something other than kde.org site.
Thanks
Soup

Can you post the error messages ?

Offline soup-n-sandwich

  • Jr. Member
  • **
  • Posts: 38
Re: Trying to rebuild "kdebase4-workspace" with/without mod
« Reply #13 on: October 08, 2010, 08:14:31 AM »
Sure. Thanks!

"Linking CXX shared modeule ../../../../lib/plasma_engine_statusnotifieritem.so"
"[47%] Built target plasma_engine_statusnotifieritem:"
"make: *** [all] Error 2"
"error: Bad exit status from /home/temp/src/tmp/rpm-tmp.52979 (%build)"

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3991
Re: Trying to rebuild "kdebase4-workspace" with/without mod
« Reply #14 on: October 11, 2010, 10:58:50 AM »
That's just showing us where the linker finally gave up and listed the type of error. The actual error will be earlier in the output. There might also be a log in the build directory which will give more detail if it exists.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf