From owner-freebsd-questions@FreeBSD.ORG Fri May 15 12:04:40 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DDEF1065680 for ; Fri, 15 May 2009 12:04:40 +0000 (UTC) (envelope-from gesbbb@yahoo.com) Received: from smtp105.prem.mail.ac4.yahoo.com (smtp105.prem.mail.ac4.yahoo.com [76.13.13.44]) by mx1.freebsd.org (Postfix) with SMTP id BF8A48FC12 for ; Fri, 15 May 2009 12:04:39 +0000 (UTC) (envelope-from gesbbb@yahoo.com) Received: (qmail 79929 invoked from network); 15 May 2009 12:04:38 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:Reply-To:Organization:X-Mailer:Face:X-Face:Mime-Version:Content-Type; b=dNkXu9ormobRTxm/cooqfKK9bx+EnJrki4YaPBK85KROSU2e+/rdPmd7EQvGuEy/1Yc4UDmvipGtNPhcJKi48Ljeq0RdyQAvKKqjSCWxZNaSIbwYBbVQ5zsFP8+FVLJtoHSSr7QNXFfY9LI37RS4sDN4N8TWx3LCj04iplEt0Us= ; Received: from unknown (HELO scorpio) (gesbbb@76.23.177.172 with login) by smtp105.prem.mail.ac4.yahoo.com with SMTP; 15 May 2009 12:04:38 -0000 X-YMail-OSG: YmIUkIQVM1lvKfmGwPM9ejr3zw5tBG1nrQ06_B86QN17TXS1l4oA63vMiNvAEazHtqawfjY0KbpwhSmvuw30R1n0fTgwbU9N7pQzcUpmZGROkRSigtK7uJLbWcFEhTJrGU5hBKYIv2KfJCM_AeijEsETf_T2vcs.5M7QfIN8wFOFUeoLWQq0fcyH3mg7hz4Ah3i25L.cNw8p7_dwa1fV8S3FF1STkx8Ke.lNNY8IoeUSlPE35JGyi.1uPp5in66_KZltTERLj1tpp89oGveeuAycEbYhRfn8X_ac.oqsANiS3v3fdPky2JtW15RlVYS1i84ldc6yTofT51vcNK8ezyRVDuhoV.NB_gw- X-Yahoo-Newman-Property: ymail-3 Date: Fri, 15 May 2009 08:04:26 -0400 From: Jerry To: freebsd-questions@freebsd.org Message-ID: <20090515080426.78d5fd39@scorpio> In-Reply-To: References: Organization: seibercom.net X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.1; i386-portbld-freebsd6.4) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/8B1aUlOCUhosURCoFqLeSkB"; protocol="application/pgp-signature" Cc: Pieter Donche Subject: Re: portupgrade -R problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2009 12:04:47 -0000 --Sig_/8B1aUlOCUhosURCoFqLeSkB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 14 May 2009 10:39:52 +0200 (CEST) Pieter Donche wrote: >FreeBSD7.=20 >I wanted to upgrade print/cups-base and print/hplip >>From a portsnap run: >cups-base-1.3.9_3 < needs updating (index has >1.3.10_1) hplip-2.8.2_3 < needs updating >(index has 2.8.2_4) > ># cd /usr/ports/print/cups ># portupgrade -R cups >[Exclude up-to-date packages done] ># >What does this mean, does it think it is already up-to-date ?? > >Then I tried ># cd /usr/ports/print/hplip ># portupgrade -R hplip >this upgraded a large number of dependent packages (even openldap, >apache) added tcl and tk, and eventually even began to upgrade >cups-base-1.3.9_3 to 1.3.9.10_1 >but ends with: >... >=3D=3D> Installing for cups-client-1.3.10_1 >=3D=3D=3D> cups-client-1.3.10_1 depends on file: /usr/local/bin/python2.5 >- found =3D=3D=3D> cups-client-1.3.10_1 depends on >file: /usr/local/include/php/main/php.h - > found >=3D=3D=3D> Generating temporary packing list >=3D=3D=3D> Checking if print/cups-client already installed >=3D=3D=3D> cups-client-1.3.10_1 is already installed > You may wish to ``make deinstall'' and install this port again > by ``make reinstall'' to upgrade it properly. > If you really wish to overwrite the old port of > print/cups-client without deleting it first, set the variable > "FORCE_PKG_REGISTER" in your environment or the "make install" > command line. >*** Error code 1 >Stop in /usr/ports/print/cups-client. >*** Error code 1 >Stop in /usr/ports/print/cups-base. >*** Error code 1 >Stop in /usr/ports/print/cups-base. >*** Error code 1 >Stop in /usr/ports/print/hplip. >*** Error code 1 >Stop in /usr/ports/print/hplip. >** Command failed [exit code 1]: /usr/bin/script >-qa /tmp/portupgrade.29487.1 en v UPGRADE_TOOL=3Dportupgrade >UPGRADE_PORT=3Dhplip-2.8.2_3 UPGRADE_PORT_VER=3D2.8.2_3 m ake >** Fix the problem and try again. >** Listing the failed packages (-:ignored / *:skipped / !:failed) > ! misc/help2man (help2man-1.36.4_2) (unknown build error) > ! print/hplip (hplip-2.8.2_3) (unknown build error) > >I tried, ># cd /usr/ports/print/cups-client ># make deinstall >=3D=3D=3D> Deinstalling cups-client-1.3.10_1 >pkg_delete: file '/usr/local/man/man1/cups-config.1.gz' doesn't exist >pkg_delete: file '/usr/local/bin/cups-config' doesn't exist >pkg_delete: file '/usr/local/include/cups/adminutil.h' doesn't exist >pkg_delete: file '/usr/local/include/cups/array.h' doesn't exist >pkg_delete: file '/usr/local/include/cups/backend.h' doesn't exist >pkg_delete: file '/usr/local/include/cups/cups.h' doesn't exist >pkg_delete: file '/usr/local/include/cups/dir.h' doesn't exist >pkg_delete: file '/usr/local/include/cups/file.h' doesn't exist >pkg_delete: file '/usr/local/include/cups/http.h' doesn't exist >pkg_delete: file '/usr/local/include/cups/ipp.h' doesn't exist >pkg_delete: file '/usr/local/include/cups/language.h' doesn't exist >pkg_delete: file '/usr/local/include/cups/ppd.h' doesn't exist >pkg_delete: file '/usr/local/include/cups/language.h' doesn't exist >pkg_delete: file '/usr/local/include/cups/ppd.h' doesn't exist >pkg_delete: file '/usr/local/include/cups/sidechannel.h' doesn't exist >pkg_delete: file '/usr/local/include/cups/transcode.h' doesn't exist >pkg_delete: file '/usr/local/lib/libcups.so' doesn't exist >pkg_delete: file '/usr/local/lib/libcups.so.2' doesn't exist >pkg_delete: file '/usr/local/include/cups' doesn't exist >pkg_delete: unable to completely remove directory >'/usr/local/include/cups' pkg_delete: couldn't entirely delete package >(perhaps the packing list is incorrectly specified?) > ># make reinstall >.. >=3D=3D=3D> Compressing manual pages for cups-client-1.3.10_1 >=3D=3D=3D> Running ldconfig >/sbin/ldconfig -m /usr/local/lib >=3D=3D=3D> Registering installation for cups-client-1.3.10_1 > ># cd /usr/ports/print/hplip ># portupgrade -R hplip >[Updating the pkgdb in /var/db/pkg ... - 620 >packages found ( -2 +1) (...). done] >[Exclude up-to-date packages done] > ># pkg_info | grep hplip >empty ># pkg_info | grep cups-base >empty > >What is going on and how to remedy? I had a similar problem and I was not using the '-R' flag either. I did the following. 1) cd to cups-client directory and run: make clean && make deinstall 2) cd to cups-base directory and run: make clean && make deinstall 3) Now, in the cups-base directory run: make reinstall && make distclean That fixed the problem. Be sure to run: "pkgdb -Ffv" to make sure all of the new installation is properly reflected in the dependencies. You also might want to consider using 'portmanager' instead. It does not have the problems that 'portupgrade' exhibits with the '-R' or '-r' flags. 'portmanager -u -p -l -y' usually works quite well and produces a useful log file as well. --=20 Jerry gesbbb@yahoo.com PROBLEM DRINKER: A man who never buys. --Sig_/8B1aUlOCUhosURCoFqLeSkB Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkoNWlUACgkQBvaKIJWWCO2d8gCfQMufMHf3S/HKLoH3vltXGKsd ZEQAn3l4q6aGxqM46iUHBvYZAswA4a38 =xujP -----END PGP SIGNATURE----- --Sig_/8B1aUlOCUhosURCoFqLeSkB--