Re: py24-gobject won't deinstall
Richard DeLaurell wrote: > Oliver Fromme wrote: > > PS: To check the consistency of your package database, > > you can use this small script (requires Python): > > > > http://www.secnetix.de/olli/scripts/pkg_check_dependencies > > > > If you get no output from "pkg_check_dependencies -q", > > then your dependencies are good. > [...] > ++ > #python pkg_check_dependencies -q > > Traceback (most recent call last): > File "pkg_check_dependencies", line 55, in > if line.startswith("@pkgdep") > IndexError: list index out of range > ++ Interesting ... I think that can only happen if you have a corrupt dependency entry somewhere. If that's the case, this shell command will print the file in question: awk '/^...@pkgdep/ && NF < 2 {print FILENAME}' /var/db/pkg/*/+CONTENTS It will print the names of files from the package database that contain an empty "@pkgdep" line. This is probably the cause of the "list index out of range" error message. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Being really good at C++ is like being really good at using rocks to sharpen sticks." -- Thant Tessman ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: py24-gobject won't deinstall
Oliver Fromme wrote: PS: To check the consistency of your package database, > you can use this small script (requires Python): > > http://www.secnetix.de/olli/scripts/pkg_check_dependencies > > If you get no output from "pkg_check_dependencies -q", > then your dependencies are good. > Oliver, I've run your script with the '-q' switch and here is the result: ++ #python pkg_check_dependencies -q Traceback (most recent call last): File "pkg_check_dependencies", line 55, in if line.startswith("@pkgdep") IndexError: list index out of range ++ Portmaster list reports that python-2.5.2 is installed (/usr/local/bin/python). What have I missed? It is not an emergency so do not feel pressed to answer quickly. Thank you for your help and have a good day-- Richard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: py24-gobject won't deinstall
Polytropon wrote: > Richard DeLaurell wrote: > > I reveal my ignorance: why does this work to delete the package > > > ># pkg_delete -f /var/db/pkg/py24-gobject* > > > > while 'pkg_delete py24-gobject*' did not? > > Use the -f, Luke. The force! Use the force! :-) > > > Would the latter have done the trick if issued from the /var/db/pkg > > directory itself? > > If you delete a package with -f that is required by another > package, you BREAK this package. That's okay only if you're > going to install the needed dependency right afterwards (by > pkg_add or make). However, the problem is that you will lose dependency information if you do it that way. That's why it is not recommended. Better use one of the port management tools (portmaster, portupgrade) which have options to replace one port with another port while retaining its dependencies. As a rule of thumb, never use a "force" option (-f) with any tool (rm, umount, pkg_delete, ...) unless you know exactly what the consequences are. I've seen people shooting their feet too often that way. Best regards Oliver PS: To check the consistency of your package database, you can use this small script (requires Python): http://www.secnetix.de/olli/scripts/pkg_check_dependencies If you get no output from "pkg_check_dependencies -q", then your dependencies are good. -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "What is this talk of 'release'? We do not make software 'releases'. Our software 'escapes', leaving a bloody trail of designers and quality assurance people in its wake." ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: py24-gobject won't deinstall
On Wed, 1 Apr 2009 09:24:18 -0500, Richard DeLaurell wrote: > I reveal my ignorance: why does this work to delete the package > ># pkg_delete -f /var/db/pkg/py24-gobject* > > > while 'pkg_delete py24-gobject*' did not? Use the -f, Luke. The force! Use the force! :-) > Would the latter have done the trick if issued from the /var/db/pkg > directory itself? If you delete a package with -f that is required by another package, you BREAK this package. That's okay only if you're going to install the needed dependency right afterwards (by pkg_add or make). > In any event your solution does seem to have worked. It is intended to work. :-) -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: py24-gobject won't deinstall
Perhaps my installation is incomplete? perhaps "man [whatever]" would work better? or maybe http://freebsd.org/cgi/man.cgi ? :) or maybe even google :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: py24-gobject won't deinstall
I reveal my ignorance: why does this work to delete the package # pkg_delete -f /var/db/pkg/py24-gobject* while 'pkg_delete py24-gobject*' did not? Would the latter have done the trick if issued from the /var/db/pkg directory itself? In any event your solution does seem to have worked. Thank you for helping. Have a good day-- Richard > > > and then install the updated version. As long as the update doesn't > break any library version numbering, and the functionalities from the > previous versions are still intact, there won't be a problem. > > Finally, if you're using portupgrade, make sure to correct the > dependencies: > ># pkgdb -aF > > But note that if this procedure fails, you will usually have to deinstall > the depending software and then start allover again, this will lead you > finally to updated programs, as well as an updated py25-gobject (as a > dependency). > > > -- > Polytropon > From Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: py24-gobject won't deinstall
On Wed, 1 Apr 2009 07:41:15 -0500, Richard DeLaurell wrote: > I tried pkg_delete to see what depends on py24-gobject and it's a hefty > list; is deinstalling that entire list and then installing py25-gobject the > only option for me? No, it would be possible to first # pkg_delete -f /var/db/pkg/py25-gobject* and then install the updated version. As long as the update doesn't break any library version numbering, and the functionalities from the previous versions are still intact, there won't be a problem. Finally, if you're using portupgrade, make sure to correct the dependencies: # pkgdb -aF But note that if this procedure fails, you will usually have to deinstall the depending software and then start allover again, this will lead you finally to updated programs, as well as an updated py25-gobject (as a dependency). -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
py24-gobject won't deinstall
Sorry if this is more appropriate for the newbie list, but that one seems to be inactive since 2005. I am trying to install py25-gobject from ports (/usr/ports/devel/py-gobject), but make complains that an older version (py24-gobject) is already installed. Deinstalling from that same directory returns a simple "Deinstalling for ..." and nothing else. And then "make reinstall/install" starts the cycle all over again. I tried pkg_delete to see what depends on py24-gobject and it's a hefty list; is deinstalling that entire list and then installing py25-gobject the only option for me? Thanks for any help. uname -a = FreeBSD bighouse 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sat May 31 18:57:16 CDT 2008 r...@bighouse:/usr/obj/usr/src/sys/MYKERNEL7 i386 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"