Date: Fri, 31 May 2013 01:06:56 -0600 (MDT) From: Mike Brown <mike@skew.org> To: doc@freebsd.org Subject: Handbook suggestion: Dealing with Moved Ports Message-ID: <201305310706.r4V76uKC001292@chilled.skew.org>
next in thread | raw e-mail | index | archive | help
[ This is a followup to my thread at http://lists.freebsd.org/pipermail/freebsd-ports/2013-May/083943.html ] /usr/ports/UPDATING does not normally mention when ports are moved. Unless there are special considerations, that info only lives in /usr/ports/MOVED, which isn't really something people are expected to look at. Rather, I think people usually find out that a port has moved when they try to update their installation of it and portmaster (or whatever) aborts with a message about the situation: # portmaster www/mediawiki ===>>> The www/mediawiki port moved to www/mediawiki119 ===>>> Reason: Rename mediawiki to mediawiki119 ===>>> Exiting ===>>> The second argument to -o can be a port in /var/db/pkg, or a port directory from /usr/ports does not seem to be installed, or listed as a dependency ===>>> No valid installed port, or port directory given ===>>> Try portmaster --help ===>>> Killing background jobs Terminated ===>>> Exiting As you can see, this is a rather cryptic message. What am I expected to do here, in order to get this port upgraded? As far as I can tell, there's nothing about this in the Handbook, and the message from portmaster isn't giving me any real guidance as to how to deal with this situation. Perhaps ch. 5.8 - "Dealing with Broken Ports" could be followed by a chapter on dealing with moved ports. I believe the proper course of action for people in this situation is to first check /usr/ports/UPDATING for specific instructions. If there are none, then it depends on what tool they're using. For example, in my situation, I should do this: portmaster -o www/mediawiki-119 www/mediawiki or, if I want to upgrade to the newer version, I could instead do this: portmaster -o www/mediawiki-120 www/mediawiki I don't know what instructions should be for the other port/package systems; I'm only using portmaster these days. (Also, unrelated: I suggest changing the first sentence of ch. 5.8 from "If you come across a port that does not compile" to "If you come across a port that does not build or install properly".) Thanks for considering my requests. - Mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305310706.r4V76uKC001292>