Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Dec 2017 09:59:48 -0800
From:      Kevin Oberman <rkoberman@gmail.com>
To:        "Greg 'groggy' Lehey" <grog@freebsd.org>
Cc:        Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>, FreeBSD Ports ML <freebsd-ports@freebsd.org>
Subject:   Re: make reinstall does not work
Message-ID:  <CAN6yY1vhuZOQcGVRouF5__pJyzPnZtbA%2BVrCdMTurYqyzmQW7g@mail.gmail.com>
In-Reply-To: <20171210071936.GL78437@eureka.lemis.com>
References:  <20171208232925.7rhetilzhoxc26dh@mutt-hbsd> <fa8e3bb4-313d-d078-07d2-675e4f6fa56c@utanet.at> <20171210071936.GL78437@eureka.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 9, 2017 at 11:19 PM, Greg 'groggy' Lehey <grog@freebsd.org>
wrote:

> On Saturday,  9 December 2017 at 12:04:02 +0100, Walter Schwarzenfeld
> wrote:
> > Thanks, this explains and solved the problem.
>
> What?  And how?
>
> Greg
>

Good question. "make reinstall" is, indeed, broken. I have been looking at
bsd.ports.mk and reinstall simply deletes the .install_done and
.package_done files from the work directory and than attempts to do a "make
-DFORCE_PKG_REGISTER install" and that used to work.

Now the install target is looking at the pkgdb and finding that the package
is already installed, even with the FORCE_PKG_REGISTER, throws an error
that is not handled. I think this is a bug as it is simply not properly
handled. I'm not sufficiently good at make scripting to be sure of this,
but that appears to be what going on. I am not sure if this can be safely
fixed or if the 'reinstall' target should be removed.

I should also note that reinstall has changed drastically since pkgng came
on the scene, so my prior look at this was totally obsolete. Sorry.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1vhuZOQcGVRouF5__pJyzPnZtbA%2BVrCdMTurYqyzmQW7g>