Pagina 1 di 1

Building from SlackBuild scripts... what am I doing wrong?

Inviato: mer 14 dic 2005, 11:46
da kikinovak
Hi,

I'm actually experimenting doing my own packages with slacky.it's build scripts. Until recently, when I needed an extra package, I just compiled the source - and all the needed dependencies - then I installed everything one after another with checkinstall. This gets a bit tedious when I have to do it on many machines, that's why I wanted to experiment with the Slackbuild scripts.

I tried the following.

Create two directories, ~/source and ~/packages. Let's say I want to build lame: I create a directory ~/source/lame, which will contain a) the lame source tarball b) lame.Slackbuild and c) the slack-desc for lame. So far so good. In this directory, I su to root, and then I simple do the following:

Codice: Seleziona tutto

# ./lame.SlackBuild
I wait for everything to configure, compile and build a package. At the end of the operation, I have a lame-xxx-xxx-xxx.tgz package in /tmp. I copy this package to ~/packages, and then I install it (as root, of course).

On my main machine, I have several partitions, with a total of three complete Slackware 10.2 installs. The first Slackware is my "production" environment, the one I write this message on. Only tested software here. Then I have my "build environment". And the 3rd one is the "testing" environment.

Problem: I can build packages and install them OK, it seems, in the build environment. BUT... when I transfer these packages to the testing environment and install them with a simple installpkg, some packages have errors. Example: kaffeine and superkaramba don't appear anymore in the KDE menu, and when I start kaffeine manually, it sort of starts, but with an error messge about a kaffeine_something module not found.

Am I doing wrong in the build process?

Suggestions very welcome,

Niki Kovacs

PS: I understand a little bit italian.... e possibile rispondere in italiano 8)

Inviato: mer 14 dic 2005, 12:07
da zzt
1) you must have the same library (better same version) in every system
2) Don't forget the "doinst.sh" script, that usually fix problems with desktop links end /etc stuff

Inviato: mer 14 dic 2005, 12:22
da kikinovak
The two systems are identical: full installs of Slackware 10.2. Kaffeine works OK on one, and I get error message about missing module on the other. Two systems also have same (2.6.12) kernel with same .config. I'm clueless.

Niki

Inviato: mer 14 dic 2005, 14:25
da Bart
Strange! What is the name of this module? You receive a FATAL error?

Inviato: mer 14 dic 2005, 18:10
da kikinovak
Later...

Tried everything again from scratch, and everything worked perfectly! But I think I found the error. The first time round, I tried two different builds of libdvdread and libdvdcss... but I forgot to remove the old ones everytime... so I had two different builds of libdvdread and libdvdcss installed. Maybe that confused the shit out of Kaffeine... but then, I'm not sure.

Anyway, cheers,

Niki