"make install" appears to silently fail to install some files if $LOCALBASE is a symlink

David Wolfskill david at catwhisker.org
Sun Nov 20 23:31:04 UTC 2016


On Fri, Nov 18, 2016 at 01:32:47PM -0800, David Wolfskill wrote:
> ...
> A correspondent pointed out
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214381 to me -- looks
> as if this mode of failure may be "expected" when /usr/local is a
> symlink to a file system other than the one where /usr resides.
> (Perhaps I'll try setting up a system where /usr/local/ is a mount point
> for a separate file system, as well.)
> ...

I managed to "stub my toe" on additional ports that exhibited this
behavior this morning -- among them, lang/gcc and devel/git.

I have updated the above-cited bug report with a little shell script I
cobbled up that (despite its unfortunate name) will check specified
installed ports/packages and report if any are determined to lack one or
more files that are supposed to have been installed.

Folks who have a symlink for /usr/local (or whatever $LOCALBASE
expands to) and who rely on "make install" to install ports might
want to take a look: I was a bit surprised at the number of affected
ports.  (Note that portmaster uses "make install"; I would expect that
portupgrade does, as well.)

A circumvention (as mentioned in the bug report) is to:
"make clean package deinstall && pkg add work/pkg/* && make clean"
within the port directory.

Checking through a typescript from work, I *think* this showed up
between 25 September - 02 October.

Peace,
david
-- 
David H. Wolfskill				david at catwhisker.org
Ref. 08 Nov 2016, let's see if the "winners" actually deliver on their slogans.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 603 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20161120/256c153c/attachment.sig>


More information about the freebsd-ports mailing list