Author Topic: Trying to build a package  (Read 3014 times)

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6237
Re: Trying to build a package
« Reply #15 on: September 25, 2009, 02:55:14 PM »
Joble,
you are going too fast ...you are talking about spec files when the OP doesnt even have a compiler yet and doesnt know what packages he needs to install for the configure script to run successfullyrun ..baby steps Joble, baby steps .. :D :D
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Animal

  • Hero Member
  • *****
  • Posts: 867
Re: Trying to build a package
« Reply #16 on: September 25, 2009, 02:59:47 PM »
yeah Im a baby  ;D ;D ;D ;D
"Sight is about what lies right in front of us. Vision is what lies ahead.”

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Trying to build a package
« Reply #17 on: September 25, 2009, 03:07:21 PM »
 ;D  I can't help it if you didn't understand your own question.  :D

You'll get there.  We're here when you need us.  ;)
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6237
Re: Trying to build a package
« Reply #18 on: September 25, 2009, 03:10:59 PM »

make sure you have the following packages . gcc, make, automake, autoconf, X11devel, kdelibs4-devel and other i cant think of ..the config script passed here so synaptic can satisfy all its dependencies

when a dependecies fails, go to synaptic and look for the developement packages of the package that failed ..these packages usually end up with "devel" in their names
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Trying to build a package
« Reply #19 on: September 25, 2009, 03:13:15 PM »
Hmm, pkgutils should install that stuff for you, and it's covered in the tutorial.  This thread has progressed rather quickly, but we did start, at the beginning.   ;D
« Last Edit: September 25, 2009, 03:15:27 PM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Trying to build a package
« Reply #20 on: September 25, 2009, 04:28:01 PM »
muungwana,
If the OP follows the documentation, all he needs to create a build environment, including the compiler, autoconf and automake will be installed. Neither Joble nor I have listed all the steps and packages needed as that is covered in the documentation.


Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Trying to build a package
« Reply #21 on: September 25, 2009, 11:38:44 PM »
Just to sum up the steps needed to update the package:

1) fully update your system, & install pkgutils-kde4
2) run mkrepo to install needed compilers, etc & create directories for packaging:
Code: [Select]
mkrepo -a -d PCLinuxOS -v PCLinuxOS -s <your PCLOS user name, or just "pclos"> -p <your PCLOS user name>..if you have problems with the mkrepo script not accepting y/n input, see the following post: http://www.pclinuxos.com/forum/index.php?topic=62579.0

3) download the src.rpm linked to in previous posts, right click on it to install srpm
4) with srpm installed, browse to /home/<username>/src/rpm/SOURCES and download / copy the updated source tar to this directory.
5) browse to /home/<username>/src/rpm/SPECS and open the spec file in kwrite.. update the program source version info, changelog, and any other pertinent info in the spec file, then save and close it.
6) right click on the spec and select install dependencies,  when completed, right click again and select build all.  If all goes well it will compile and package the rpm & make a new srpm.  If you have problems post the errors back here with details and we will do what we can to help out.

Welcome to the packaging section!
« Last Edit: September 25, 2009, 11:48:03 PM by travisn000 »

Offline Animal

  • Hero Member
  • *****
  • Posts: 867
Re: Trying to build a package
« Reply #22 on: September 26, 2009, 08:06:27 AM »
Ok, in process now, thanks again for the help :)

Will be working on this off and on as time allows.

I know I'm getting closer because the errors are getting shorter  ::)

This is the error I'm receiving  now, it looks like its failing because of missing qmake

I've searched the repos and cannot find this package, it must be part of a larger package?

I have installed:

kdebase4-devel
kdebase4-workspace-devel
kdegames4-devel
kdelibs4-devel
autoconf
autoconf2.1
automake
automake1.7
cmake
glibc
make
makedepend
makedev
pkgconfig
Qt3 - Sources (why it installed this I don't know?)
binutils
gcc
gcc3.3
gcc3.3-c++
gcc-c++
libqt3 (Again don't know why this was installed, but libqt4 doesn't show up in my repo list)
libqt3-devel (See above)
libqt4-devel

Still not sure whats missing, I've run the mkrepo command with success. It must be me :)

[terry@localhost build]$ cmake -DCMAKE_INSTALL_PREFIX=$KDEDIRS ..
CMake Error at /usr/share/apps/cmake/modules/FindQt4.cmake:1498 (MESSAGE):
  Qt qmake not found!
Call Stack (most recent call first):
  /usr/share/apps/cmake/modules/FindKDE4Internal.cmake:289 (find_package)
  /usr/share/cmake/Modules/FindKDE4.cmake:81 (FIND_PACKAGE)
  CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
[terry@localhost build]$

task-qt4 is installed

« Last Edit: September 26, 2009, 02:03:58 PM by tabrown05 »
"Sight is about what lies right in front of us. Vision is what lies ahead.”

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: Trying to build a package
« Reply #23 on: September 26, 2009, 08:32:58 AM »
Oh, when building - the first thing you do is to see if another distribution has a src.rpm for your package. Then just grab this and modify it to PCLinux standards (mostly you need to handle the menu entry and perhaps update the source as well and change the Requires and BuildRequires packages to the names used in Synaptic. Saves you tons and tons of time.

It's installing RPM's from outside that is discouraged,

cheers,
MBantz

I'm trying to build a package from source (I know its not recommended to go outside the repos but I gotta learn)
...

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: Trying to build a package
« Reply #24 on: September 26, 2009, 08:51:00 AM »
....you probably need to set the QTDIR environment variable to point to QT4 as well as setting the CMAKE_MODULE_PATH, try and insert either or both in your spec:

export QTDIR=/usr/lib/qt4
export CMAKE_MODULE_PATH=/usr/share/cmake/Modules:$CMAKE_MODULE_PATH


cheers,
MBantz

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Trying to build a package
« Reply #25 on: September 26, 2009, 09:20:48 AM »
Quote
This is the error I'm receiving  now, it looks like its failing because of missing qmake
Might have to install task-qt4 to get qmake, if you haven't already.
« Last Edit: September 26, 2009, 09:22:48 AM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6237
Re: Trying to build a package
« Reply #26 on: September 26, 2009, 10:51:54 AM »

a always, when the config script fail with a missing dependency, check synaptic for the development package of the failed dependency ..do you have libqt4-devel installed?
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..