You are not logged in.

#1 2008-05-23 12:57:48

neoanima
Member
Registered: 2008-05-08
Posts: 34

question about pacman's deps-------solved

hi, there.

this week two times when i runned the command : pacman -Syu, it prompts for upgrading of noninstalling programs like bzip2, enchant, aspell, and hunspell.  I don't install these packages, why it stll tells me to install them.

  i know little about pacman, hope someone can answer my question.

thanks.

Last edited by neoanima (2008-05-24 06:39:02)

Offline

#2 2008-05-23 13:05:12

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: question about pacman's deps-------solved

Do you have them on your system now (pulled as deps of other programs perhaps)?  pacman -Qi bzip2 enchant aspell hunspell

If you don't have them on your system already, then they may have been added to the dep list of programs you do use, and so they need to be pulled in

Offline

#3 2008-05-23 15:03:58

neoanima
Member
Registered: 2008-05-08
Posts: 34

Re: question about pacman's deps-------solved

thank Cerebral for answering!
ok, i have tried package bzip2 with -Qi option in pacman command, and yes , some other packages depend bzip2, so i install it.
also i have a  try on aspell, hunspell and enchant, but no deps list. that is : i haven't install any other packages that need these.

Offline

#4 2008-05-23 15:24:52

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: question about pacman's deps-------solved

Well, doing a quick search on the front-page package search for you, I see that enchant depends on aspell and hunspell (http://www.archlinux.org/packages/search/?q=enchant), so that would explain where those two came from, but where did enchant come from?

I noticed abiword depends on enchant, so if you have abiword installed that'd pull in that dep.  There might be other things that depend on enchant too - check the rest of the list of updates that appear from pacman -Syu and see if anything now depends on enchant (might be a new dep)

Offline

#5 2008-05-23 15:26:32

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: question about pacman's deps-------solved

Actually, doing a quick grep in the ABS tree yields this:

$ grep "enchant" * -r | grep depends
i686/extra/abiword/PKGBUILD:depends=('libsm' 'fribidi>=0.10.9' 'enchant>=1.3.0' 'libgnomeprintui' 'wv>=1.2.4'
i686/extra/epiphany/PKGBUILD:depends=('xulrunner>=1.8.1.12' 'gnome-desktop>=2.22.0' 'iso-codes>=1.1' 'desktop-file-utils' 'libxslt>=1.1.22' 'enchant>=1.3.0' 'libnotify>=0.4.3')
i686/extra/gedit/PKGBUILD:depends=('pygtk>=2.12.1' 'pygtksourceview2>=2.2.0' 'enchant>=1.3.0' 'libgnomeui>=2.22.1' 'desktop-file-utils' 'iso-codes' 'gtksourceview2>=2.2.1')
i686/extra/gnome-spell/PKGBUILD:depends=('libgnomeui>=2.20.1' 'enchant>=1.3')
i686/extra/gtkspell/PKGBUILD:depends=('gtk2' 'enchant')
i686/extra/stardict/PKGBUILD:depends=('festival' 'libsigc++2.0' 'gucharmap' 'enchant')
i686/community/editors/tea/PKGBUILD:depends=('gtksourceview2' 'enchant')
i686/community/gnome/empathy/PKGBUILD:depends=('enchant' 'gnome-panel' 'telepathy-mission-control>=4.61'

so, abiword, epiphany, gedit, gnome-spell, gtkspell, stardict, tea, and empathy all depend on enchant.  Are you updating one of those?

Offline

#6 2008-05-24 03:07:15

neoanima
Member
Registered: 2008-05-08
Posts: 34

Re: question about pacman's deps-------solved

thanks for your patience and kindness to solve these trivial problems!

a quick grep generated the same result with yours. and finally, I found the reason. it is stardict that caused this problem. here is the story.
   I panned to install stardict , but the one in the "extra" depends those three packages , so i compiled it form svn source. the status is svn 257. I made some changes in svn source to disable qqwry and advertisement plugins of stardict. so i needn't put the options --disable-qqwry and --disable-advertisement into the ./configure command line when compiling. also i don't need the spell function in stardict, so i disabled it in configure command. i copied the PKGBUILD file from abs/extra to my svn stardict dir and made the corresponding modifications. here is my PKGBUILD file's contents:

     

  pkgname=stardict
pkgver=svn.257
pkgrel=1
pkgdesc="StarDict is a powerful international dictionary written in Gtk2."
arch=(i686 x86_64)
url="http://stardict.sourceforge.net/"
license=('GPL')
depends=('festival' 'libsigc++2.0' 'gucharmap')
makedepends=('perlxml' 'popt')

options=('!libtool' '!emptydirs')

build()
{
   cd $startdir/src/$pkgname-$pkgver

   ./configure     PKG_CONFIG=/usr/bin/pkg-config --prefix=/usr --disable-gnome-support --disable-schemas-install --disable-espeak --disable-updateinfo --disable-spell
   make || return 1
   make DESTDIR=$startdir/pkg install
}

the svn version is higher than the one in "extra", actually it is 3.0.2. so why pacman wants me to upgrade stardict?
how can i modify the PKGBUILD file to fix this.  change the pkgrel's value from 1 to 2 or others?

thanks a lot!

Last edited by neoanima (2008-05-24 03:08:12)

Offline

#7 2008-05-24 03:13:34

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: question about pacman's deps-------solved

What you want is to add IgnorePkg = stardict to /etc/pacman.conf

Offline

#8 2008-05-24 03:15:02

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: question about pacman's deps-------solved

Or you could name your package stardist-svn

Offline

#9 2008-05-24 06:38:32

neoanima
Member
Registered: 2008-05-08
Posts: 34

Re: question about pacman's deps-------solved

wow! change the package name or put that line into pacman.conf. both methods work. thank you all.

Offline

#10 2008-05-24 12:58:45

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: question about pacman's deps-------solved

Allan wrote:

Or you could name your package stardist-svn

Note that if you do it this way, make sure to add

provides=stardict

to your PKGBUILD.  This will ensure that any apps in our repos that depend on stardict can use your package instead of ours

Offline

Board footer

Powered by FluxBB