Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Mar 2017 21:07:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 218194] Mk/Uses/go.mk uses ${LOCALBASE} instead of ${PREFIX} in do-install target
Message-ID:  <bug-218194-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218194

            Bug ID: 218194
           Summary: Mk/Uses/go.mk uses ${LOCALBASE} instead of ${PREFIX}
                    in do-install target
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: aduitsis@douitsis.com
                CC: freebsd-ports-bugs@FreeBSD.org

(Apologies if I have figured something wrong in this)

In Mk/Uses/go.mk do-install target, line 88 says:

        ${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/${_TARGET:T}
{STAGEDIR}/${LOCALBASE}/bin; \

In many cases, one wants to install in different places than ${LOCALBASE},
which if left unchanged will default to /usr/local.=20

Example 1 is when running "port test", which will try to set ${PREFIX}
directly, but leave ${LOCALBASE} untouched. So, running 'port test' in a
USES=3Dgo port and with the default do-install target will cause failure du=
ring
the install phase.

Example 2 is running 'make clean; make package PREFIX=3D/var/tmp/`make -V
PORTNAME`', as suggested in
https://www.freebsd.org/doc/en/books/porters-handbook/porting-prefix.html.
Again, changing ${PREFIX} does not change the install location which is sti=
ll
/usr/local and the make package command fails.

I respectfully submit that perhaps ${LOCALBASE} should be changed to ${PREF=
IX}.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218194-13>