You are not logged in.

#1 2007-05-13 18:32:07

eliabramo
Member
From: Haifa, Israel
Registered: 2006-12-10
Posts: 29

problem with makepkg dependencies

Sometimes the makepkg prompts on missing dependencies that are installed. packages like python for example. I think that there is problem with the database. now in pacman3, all package that depends on python installs the python package as it was never been on the computer.
how could it be?

Offline

#2 2007-05-13 21:41:07

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: problem with makepkg dependencies

is python installed now ?

python -V

and does pacman see it?

pacman -Q python

pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#3 2007-05-14 10:06:59

eliabramo
Member
From: Haifa, Israel
Registered: 2006-12-10
Posts: 29

Re: problem with makepkg dependencies

I'm not at home right now, but python programs are working, like alacarte. It keep install pytthon every time it is dependent for some package.

Offline

#4 2007-05-14 13:07:02

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: problem with makepkg dependencies

eliabramo wrote:

I'm not at home right now, but python programs are working, like alacarte. It keep install pytthon every time it is dependent for some package.

yes, that's why I was curious about the output of pacman -Q python, to check if pacman knows it's installed or not.
And also, if nothing wrongs happens when installing it (pacman -S python)

And I wasn't able to reproduce the bug. I added python in makedepends of a package, and python was already installed, so it detected it fine.
Then I removed python (with pacman -Rd python), ran makepkg again, it complained about the missing dependency.
I ran makepkg -s as root, it installed python and built the package correctly.
Then I can run makepkg again as many times as I want, it won't reinstall it python.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#5 2007-05-14 17:48:58

eliabramo
Member
From: Haifa, Israel
Registered: 2006-12-10
Posts: 29

Re: problem with makepkg dependencies

that's strange - python version is 2.5.1 but pacman says that pacman isn't installed:

[eli@myhost ~]$ python -V
Python 2.5.1
[eli@myhost ~]$ sudo pacman -Q python
Password:
error: invalid name for database entry '-'
error: package "python" not found

so there is problem with pacman. how can i solve it?

Offline

#6 2007-05-14 19:26:10

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: problem with makepkg dependencies

Try to reinstall python explicitly:
pacman -S python


Mortuus in anima, curam gero cutis

Offline

#7 2007-05-15 07:25:21

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: problem with makepkg dependencies

eliabramo wrote:

that's strange - python version is 2.5.1 but pacman says that pacman isn't installed:

[eli@myhost ~]$ python -V
Python 2.5.1
[eli@myhost ~]$ sudo pacman -Q python
Password:
error: invalid name for database entry '-'
error: package "python" not found

so there is problem with pacman. how can i solve it?

There are already several recent threads about this problem, eg http://bbs.archlinux.org/viewtopic.php?id=32056
it should mean that you have a "-" directory in /var/lib/pacman/local/
you might want to move this wrong "-" directory out of /var/lib/pacman/local/ , so that it can be examined later.
or you could maybe just show which files it contains, and paste the contents of each file here if they aren't too long, then remove them.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB