From owner-freebsd-ports@freebsd.org Mon Dec 11 11:38:45 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C36F8E8EF8A for ; Mon, 11 Dec 2017 11:38:45 +0000 (UTC) (envelope-from se@freebsd.org) Received: from mailout10.t-online.de (mailout10.t-online.de [194.25.134.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 870041A5B for ; Mon, 11 Dec 2017 11:38:45 +0000 (UTC) (envelope-from se@freebsd.org) Received: from fwd31.aul.t-online.de (fwd31.aul.t-online.de [172.20.26.136]) by mailout10.t-online.de (Postfix) with SMTP id C438A41F364D; Mon, 11 Dec 2017 12:38:36 +0100 (CET) Received: from Stefans-MBP-2.fritz.box (GW8aKeZTZhDlrceWJEE+WjKKFPylH+od5RLHMLJmtYpiliucy3wI6JD70rLz-HlZHU@[87.151.220.147]) by fwd31.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1eOMPo-0cUZSy0; Mon, 11 Dec 2017 12:38:32 +0100 Subject: Re: make reinstall does not work To: Shawn Webb , Walter Schwarzenfeld Cc: freebsd-ports@freebsd.org References: <20171208232925.7rhetilzhoxc26dh@mutt-hbsd> From: Stefan Esser Message-ID: Date: Mon, 11 Dec 2017 12:38:32 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171208232925.7rhetilzhoxc26dh@mutt-hbsd> Content-Type: text/plain; charset=windows-1252 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-ID: GW8aKeZTZhDlrceWJEE+WjKKFPylH+od5RLHMLJmtYpiliucy3wI6JD70rLz-HlZHU X-TOI-MSGID: 38f787dc-48e8-4a2a-9992-ddbade5cfc37 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2017 11:38:45 -0000 Am 09.12.17 um 00:29 schrieb Shawn Webb: > On Fri, Dec 08, 2017 at 10:35:50PM +0100, Walter Schwarzenfeld wrote: >> I had a strange error: Make reinstall does not work anymore in the port >> (10.3-amd64) also FORCE_PKG_REGISTER. >> >> All other make commands works fine. I don't know if it is related to >> FLAVORS. >> >> make reinstall ended up e.g. with: >> >> ??Registering installation for gtk2-2.24.31 >> *** Error code 70 >> >> Stop. >> make[2]: stopped in /usr/ports/x11-toolkits/gtk20 >> *** Error code 1 >> >> Stop. >> make[1]: stopped in /usr/ports/x11-toolkits/gtk20 >> *** Error code 1 >> >> Any idea or suggestion? > > This is due to this commit: > https://github.com/freebsd/pkg/commit/7991c49665419916210ad589d4a85fd2a7f58b37 > > The standard procedure for reinstall is to do a deinstall first. I > guess it's pretty common just to issue `make reinstall` (which is what > I used to do as well). However, that's not the originally intended > behavior as designed in the Ports build framework. > > So: just do a `make deinstall reinstall`. It'll work that way. "make reinstall" combines 2 actions: 1) De-installation of the currently installed version of the port, if any. 2) Installation of the port even if the work directory contains the tag-files that indicate that the port has already been installed after building. If you did not complete an installation of a freshly built port, then "make deinstall reinstall" is equivalent to "make deinstall install" and ought to be equivalent to a plain "make reinstall" IMHO. Could the "70" correspond to the SQLITE_INDEX_CONSTRAINT_ISNOTNULL error code returned by SQlite operating on the package DB? Regards, STefan