Re: portupgrade -R problems
On Thu, 14 May 2009 10:39:52 +0200 (CEST) Pieter Donche wrote: >FreeBSD7. >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: >... >==> Installing for cups-client-1.3.10_1 >===> cups-client-1.3.10_1 depends on file: /usr/local/bin/python2.5 >- found ===> cups-client-1.3.10_1 depends on >file: /usr/local/include/php/main/php.h - > found >===> Generating temporary packing list >===> Checking if print/cups-client already installed >===> 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=portupgrade >UPGRADE_PORT=hplip-2.8.2_3 UPGRADE_PORT_VER=2.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 >===> 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 >.. >===> Compressing manual pages for cups-client-1.3.10_1 >===> Running ldconfig >/sbin/ldconfig -m /usr/local/lib >===> 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. -- Jerry ges...@yahoo.com PROBLEM DRINKER: A man who never buys. signature.asc Description: PGP signature
Re: portupgrade -R problems
Pieter Donche escribió: FreeBSD7. 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 ?? The package you want to update is cups-base, not "cups". And also it's not required to jump inside the port's directory. 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: ... ==> Installing for cups-client-1.3.10_1 ===> cups-client-1.3.10_1 depends on file: /usr/local/bin/python2.5 - found ===> cups-client-1.3.10_1 depends on file: /usr/local/include/php/main/php.h - found ===> Generating temporary packing list ===> Checking if print/cups-client already installed ===> 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=portupgrade UPGRADE_PORT=hplip-2.8.2_3 UPGRADE_PORT_VER=2.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) As far as I can see, this problem is related to the first one.The package hplip depends on a more recent version of cups-client than the one you've currently installed. I tried, # cd /usr/ports/print/cups-client # make deinstall ===> 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 .. ===> Compressing manual pages for cups-client-1.3.10_1 ===> Running ldconfig /sbin/ldconfig -m /usr/local/lib ===> 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? ___ 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" See the man page for portupgrade, as I think that the option you want to use is -r and not -R I've always keep my installed ports up to date with portupgrade -ar Matias. ___ 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"