You are not logged in.

#1 2004-08-07 20:23:51

dad4a
Member
Registered: 2004-06-13
Posts: 14

Help with package dependencies

I would like to create a package for knowit. I am not sure about the dependencies that I have to put.

Also I have a general question about programs that depend on KDE, where do I put the dependencies: in makedepends or/and in depends section of PKGBUILD?

I include the following

PKGBUILD

pkgname=knowit
pkgver=0.10
pkgrel=1
pkgdesc="KnowIt is a KDE tool for managing notes. Notes are organized in tree-like hierarchy."
url="http://knowit.sourceforge.net/"
makedepends=('qt')
depends=('kdelibs>=3.0')
source=(http://knowit.sourceforge.net/files/$pkgname-$pkgver.tar.bz2)
md5sums=('27a42624f639770fc4f34777b51c5bbf')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/opt/kde --with-qt-dir=/opt/qt --with-qt-includes=/opt/qt/include --with-qt-libraries=/opt/qt/lib
  make || return 1
  make prefix=$startdir/pkg/opt/kde install
}

ldd knowit

$ ldd /opt/kde/bin/knowit
        libkdeprint.so.4 => /opt/kde/lib/libkdeprint.so.4 (0x4001b000)
        libkparts.so.2 => /opt/kde/lib/libkparts.so.2 (0x400e8000)
        libkio.so.4 => /opt/kde/lib/libkio.so.4 (0x40131000)
        libkdesu.so.4 => /opt/kde/lib/libkdesu.so.4 (0x40484000)
        libfam.so.0 => /usr/lib/libfam.so.0 (0x404b5000)
        libkdeui.so.4 => /opt/kde/lib/libkdeui.so.4 (0x404bd000)
        libkdecore.so.4 => /opt/kde/lib/libkdecore.so.4 (0x40779000)
        libDCOP.so.4 => /opt/kde/lib/libDCOP.so.4 (0x40993000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x409c7000)
        libutil.so.1 => /lib/libutil.so.1 (0x409da000)
        libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0x409dd000)
        libkdefx.so.4 => /opt/kde/lib/libkdefx.so.4 (0x409f3000)
        libqt-mt.so.3 => /opt/qt/lib/libqt-mt.so.3 (0x40a1e000)
        libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x4110e000)
        libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x4118f000)
        libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x411a5000)
        libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0x411a9000)
        libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x411ac000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x411be000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x411e5000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x41251000)
        libdl.so.2 => /lib/libdl.so.2 (0x41272000)
        libpng.so.3 => /usr/lib/libpng.so.3 (0x41275000)
        libz.so.1 => /usr/lib/libz.so.1 (0x412a7000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x412b8000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x412c6000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x41390000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x4139a000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x413b2000)
        libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x41403000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x4140b000)
        libm.so.6 => /lib/libm.so.6 (0x414dd000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x41500000)
        libc.so.6 => /lib/libc.so.6 (0x4150a000)
        libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0x4163b000)
        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x41641000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

namcap

$ namcap /var/abs/local/knowit/PKGBUILD /var/cache/pacman/pkg/knowit-0.10-1.pkg.tar.gz
PKGBUILD (knowit)    W: Missing Maintainer tag
PKGBUILD (knowit)    W: Missing CVS Id tag

Are my depends and makedepends sections OK?

Cheers!

Offline

#2 2004-08-08 00:07:22

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: Help with package dependencies

I'm not sure if you need qt in makedepends since you have kdelibs in the depends array. Makedepends is only for packages that are not needed to run the application (potentialy by someone else than the one who compiled package). It depends :-) on many things (like if it is a static or shared build, etc., etc.). You can also use namcap -i option to print more verbose information. Namcap will only tell you what it thinks about depends. Sometimes it can suggest that something should be in the depends but it can be moved to makedepends quite safely (for example I had postgresql and mysql as dependencies for rekall but rekall can be run without any of them installed; on the other hand you need both packages to build rekall with support for them - that's a good example for makedepends).

Offline

Board footer

Powered by FluxBB