Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Dec 2002 16:28:57 -0200
From:      Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
To:        ports@FreeBSD.ORG
Cc:        Fernan Aguero <fernan@iib.unsam.edu.ar>
Subject:   Re: portupgrade mplayer: no such package
Message-ID:  <20021203182919.27231.qmail@exxodus.fedaykin.here>
In-Reply-To: <20021203170123.GA13835@iib.unsam.edu.ar>
References:  <20021202191619.GC76217@iib.unsam.edu.ar> <20021202195053.26017.qmail@exxodus.fedaykin.here> <20021202210357.GF76217@iib.unsam.edu.ar> <20021203140122.21091.qmail@exxodus.fedaykin.here> <20021203170123.GA13835@iib.unsam.edu.ar>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 03, 2002 at 02:01:01PM -0300, Fernan Aguero wrote:
> +----[ Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.ORG> (03.Dec.2002 11:39):
> 
> | 	3) Make sure your portupgrade database is both correct and
> | 	up to date.  When running with '-F' option, make sure you
> | 	answer all questions correctly.  Take the time to do so.
> | 		$ pkgdb -F
> | 		$ pkgdb -u
> 
> Now, here we are. I did that already yesterday, and when
> asked about the new origin for mplayer and mplayer-fonts I
> told portupgrade the correct new ones (i.e.
> /usr/ports/multimedia/mplayer and mplayer-fonts).
> 
> However, now that I run 'pkgdb -F' again I see that it has a
> duplicated origin registered for mplayer-fonts:
> 
> Duplicated origin: multimedia/mplayer-fonts - mplayer-fonts-0.50 mplayer-gtk-0.90.0.8_1
> Unregister any of them? [no] yes
>   Unregister mplayer-fonts-0.50 keeping the installed files	intact? [no]
>   Unregister mplayer-gtk-0.90.0.8_1 keeping the installed	files intact? [no] yes
> 	  --> Saving the mplayer-gtk-0.90.0.8_1's +CONTENTS file as	/var/db/pkg/mplayer-fonts-0.50/+CONTENTS.mplayer-gtk-0.90.0.8_1
> 	  --> Unregistering mplayer-gtk-0.90.0.8_1
> 	  --> Done.
> [Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 304 packages found (-1 +0) (...) done]


	Duplicate origin means there is more than one installed port
claiming to have been installed from the same place. In this situation
both mplayer-fonts-0.50 and mplayer-gtk-0.90.0.8_1 claimed to come
from multimedia/mplayer-fonts. You should have answered no to unregister because
you have uninstalled mplayer-gtk*
	Okay, don't worry. There is a way to fix all this.

	1) remove all mplayer* ports
	$ cd /var/db/pkg
	$ pkg_delete mplayer*

	2) reinstall cleanly
	$ cd /usr/ports/multimedia/mplayer
	$ make install clean

	3) update portupgrade database
	$ pkgdb -F

> So: I understand that mplayer-fonts has two origins and I


> have to decide which is the correct one. If my
> interpretation is correct, the correct one is mplayer-fonts
> and not mplayer-gtk.
> Am i right here?

	Nope, it said 2 ports were claiming to have
mplayer-fonts as origin. That's a fair mistake. We can
fix it all. :)

> However, at the end of the run I see the following:
> Stale dependency: plugger-4.0_2 -> mplayer-gtk-0.90.0.8_1:
> Fixed. (-> mplayer-fonts-0.50)

	portupgrade here was just playing along your answers.
All mplayer-gtk should be mplayer-fonts since you've said that mplayer-fonts
is the only true port. :(

	Just uninstall plugger and mplayer. Then, reinstall
plugger after reinstalling mplayer.

> Mario, thanks again for your reply. Seems that the problems
> persist, but are mainly derived from my misunderstanding of
> the questions that pkgdb asks me. Sometimes I just don't
> have an answer:
> 
> Stale dependency: autodia-1.2 -> p5-Digest-MD5-2.20:
> p5-DBI-1.28 (score:26%) ? ([y]es/[n]o/[a]ll) [no]

	Answer no. portupgrade is just trying to do a guess on
a correct answer. Then, it will offer you options from among the
already installed ports.

> Here for example, I know where p5-Digest-MD5 is, but pkgdb
> won't allow me to type the correct location, and when forced
> to TAB to see available completions, the list is ... uhm ...
> irrelevant. 

	If the the list is irrelevant, it means that the relevant
port is not installed. The list is made from the already installed
ports.

	Say no again then it will allow you to add your own answer.

	Let me know if you need further help. We might even be
able to cook a little portupgrade FAQ from this email thread. :)

	Regards,

-- 
Mario S F Ferreira - DF - Brazil - "I guess this is a signature."
Computer Science Undergraduate | FreeBSD Committer | CS Developer
flames to beloved devnull@someotherworldbeloworabove.org
feature, n: a documented bug | bug, n: an undocumented feature

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021203182919.27231.qmail>