You are not logged in.

#1 2007-03-15 09:23:17

dystoptic
Member
Registered: 2007-02-09
Posts: 20

PKGBUILD and dependencies

Hi,

I want to ask, if there is way, that pacman automatically installs resp. deinstalls all the needed packages I put to the depends-field?

Offline

#2 2007-03-15 11:56:54

STiAT
Member
From: Vienna, Austria
Registered: 2004-12-23
Posts: 606

Re: PKGBUILD and dependencies

You could use the -c option in pacman (cascade), removing all dependend packages as well, if they are not required by any other packages.

Pacman automatically installs all depend() packages, if they are available in the repos by default.


Ability is nothing without opportunity.

Offline

#3 2007-03-16 07:04:16

Xilon
Member
Registered: 2007-01-01
Posts: 243

Re: PKGBUILD and dependencies

I'm sorry to say this, but it's right there... read the man page.

Offline

#4 2007-03-16 09:07:14

dystoptic
Member
Registered: 2007-02-09
Posts: 20

Re: PKGBUILD and dependencies

Hm, exact problem ist following:

pacman -A ogmrip-0.10.0-1.pkg.tar.gz
loading package data... done.
error: unsatisfied dependencies:
  ogmrip: requires ogmtools
  ogmrip: requires vorbis-tools
  ogmrip: requires intltool
  ogmrip: requires gconf
  ogmrip: requires mkvtoolnix
  ogmrip: requires gocr

with PKGBUILD

# Contributor: Moo-Crumpus <do.not.spam.me AT web.de>

pkgname=ogmrip
pkgver=0.10.0
pkgrel=1
pkgdesc="Librairies and gtk2 interface for dvd ripping using mencoder"
url="http://ogmrip.sourceforge.net/"
license="GPL"
# Optional depedencies comes after pkgconfig. You can add enchant(for spellchacking in subtitiles), faac and libtheora
depends=('xorg' 'glib2' 'libxml2' 'libdvdread' 'mplayer' 'ogmtools' 'vorbis-tools' 'lame' 'intltool' 'pkgconfig' 'gtk2' 'gconf' 'libglade' 'dbus' 'hal'    'mkvtoolnix' 'gocr')
makedepends=('perlxml')
conflicts=()
replaces=()
backup=()
install=
#source=(http://mesh.dl.sourceforge.net/sourceforge/ogmrip/$pkgname-$pkgver.tar.gz)
source=(http://dl.sourceforge.net/sourceforge/ogmrip/$pkgname-$pkgver.tar.gz)
md5sums=('cef80b77b551a6e7accc1441b62c1b4a')

build() { 

[ "$GNOMEDIR" = "" ] && source /etc/profile.d/gnome.sh

  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
}

Had the same problem also with another package.

Offline

#5 2007-03-16 10:18:12

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: PKGBUILD and dependencies

That's not a problem, it's the way pacman works. -A does not install dependencies. -S does, as long as all required packages are in correctly-configured repos.

Offline

#6 2007-03-16 16:39:44

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: PKGBUILD and dependencies

tomk wrote:

-A does not install dependencies. -S does, as long as all required packages are in correctly-configured repos.

Yup.  This will be changed in the future (probably the 3.1 release, heh)

Offline

#7 2007-03-16 17:36:27

dystoptic
Member
Registered: 2007-02-09
Posts: 20

Re: PKGBUILD and dependencies

Ok then I wait and hope the dependency support for pkgbuilds will implemented soon.
Now it's a little bit annoying to (de)install all needed packages by hand.

Offline

#8 2007-03-16 17:38:22

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: PKGBUILD and dependencies

Make a custom local repo and put your package in there. That is the method I use and it serves me well. Instructions should be in the wiki.

Offline

#9 2007-03-16 18:09:15

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: PKGBUILD and dependencies

dystoptic wrote:

Ok then I wait and hope the dependency support for pkgbuilds will implemented soon.
Now it's a little bit annoying to (de)install all needed packages by hand.

You don't have to... when you install the dependencies and -A/-U a new package, you can also:
pacman -Rsc the-package

This will remove the package and all dependencies that are no longer needed because of that removal.

Offline

#10 2007-03-16 18:53:43

dystoptic
Member
Registered: 2007-02-09
Posts: 20

Re: PKGBUILD and dependencies

@toofishes: sounds interesting

@phrakture: This does not work, if I install the packages manually. Because pacman only removes packages recursively, if they are not installed by the user.

Offline

Board footer

Powered by FluxBB