From owner-freebsd-ports Tue Aug 1 12:34:14 2000 Delivered-To: freebsd-ports@freebsd.org Received: from ebola.biohz.net (ebola.biohz.net [206.80.1.35]) by hub.freebsd.org (Postfix) with ESMTP id 96ED837BB2A for ; Tue, 1 Aug 2000 12:33:53 -0700 (PDT) (envelope-from renaud@waldura.org) Received: by ebola.biohz.net (Postfix, from userid 1001) id 56C053A279; Tue, 1 Aug 2000 12:32:56 -0700 (PDT) Date: Tue, 1 Aug 2000 12:32:56 -0700 From: Renaud Waldura To: ports@freebsd.org Subject: Updating ported software Message-ID: <20000801123256.A1400@ebola.biohz.net> Reply-To: Renaud Waldura Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i X-Web-Site: http://renaud.waldura.org/ Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dear freebsd-ports, I'm still confused as to what the Right Method for updating ports is. I manage to update my "ports" collection just fine, using cvsup, but I'm not sure I understand what I'm supposed to do from there. I hope you won't mind my explaining with an example. I first installed my favorite port "foo" in version 1.0. I did so by installing the "Ports collection" from sysinstall, going to /usr/ports/tools/foo, and running "make install". I then have the binary foo in version 1.0 and I'm happy. I then updated my ports with cvsup, and now the Makefile for foo says it is in version 1.1, but the foo binary itself is still in version 1.0. Hence my first question: is there a way to automatically rebuild updated ports? OK, so now I want to update foo, the binary. I found this message in the list archives: http://www.freebsd.org/cgi/getmsg.cgi?fetch=2130511+2132232+/usr/local/www/db/text/2000/freebsd-questions/20000116.freebsd-questions that basically says to run: > 1) make clean [delete source code] > 2) make deinstall [uninstall binary package(s)] > 3) make install [build and install from new port] but after running "make clean", "make deinstall" fails saying it doesn't find the right version of the port to uninstall. It tries to uninstall foo version 1.1 using the updated Makefile, when the version of the foo that is actually installed is 1.0. "Make install" works just fine and rebuilds & installs the updated port, but does so by (I'm guessing) overwriting the old version 1.0. My second question is: how do I uninstall an updated port before rebuilding it? Thank you very much for shining some light on this issue, --Renaud To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message