Subject: Re: 'make install' message update when pkg is already installed
To: None <Hubert.Feyrer@t-online.de>
From: Greg A. Woods <woods@weird.com>
List: tech-pkg
Date: 02/05/2004 01:09:45
[ On Thursday, February 5, 2004 at 00:23:38 (+0100), Hubert.Feyrer@t-online.de wrote: ]
> Subject: 'make install' message update when pkg is already installed
>
>
> I'd like to commit the patch below to not bother the user about pkg
> details - I always use 'make deinstall' over pkg_delete when possible.
>
> Any objections to commit this?
It's a good idea, but maybe it should end up reading more like this
similar change I made some time ago to my local version:
@@ -2549,10 +2759,10 @@
if [ "$$found" != "" ]; then \
${ECHO_MSG} "${_PKGSRC_IN}> $$found is already installed - perhaps an older version?"; \
${ECHO_MSG} "*** If so, you may use either of:"; \
- ${ECHO_MSG} "*** - \"pkg_delete $$found\" and \"${MAKE} reinstall\" to upgrade properly"; \
- ${ECHO_MSG} "*** - \"${MAKE} update\" to rebuild the package and all of its dependencies"; \
- ${ECHO_MSG} "*** - \"${MAKE} replace\" to replace only the package without re-linking"; \
- ${ECHO_MSG} "*** dependencies, risking various problems."; \
+ ${ECHO_MSG} "*** - \"${MAKE} deinstall\" and \"${MAKE} reinstall\" to upgrade properly,"; \
+ ${ECHO_MSG} "*** - \"${MAKE} update\" to try rebuilding the package and all of its dependencies, or"; \
+ ${ECHO_MSG} "*** - \"${MAKE} install FORCE_PKG_REGISTER=YES\" to replace only this package"; \
+ ${ECHO_MSG} "*** without re-linking dependencies, thus risking various problems."; \
exit 1; \
fi
.endif # !NO_PKG_REGISTER && !NO_FORCE_REGISTER && overwrite
--
Greg A. Woods
+1 416 218-0098 VE3TCP RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com> Secrets of the Weird <woods@weird.com>