Page MenuHomeFreeBSD

Makefile.inc1: Fix package-pkg with a non-default LOCALBASE
ClosedPublic

Authored by ivy on Fri, Sep 19, 11:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 27, 7:36 PM
Unknown Object (File)
Fri, Sep 26, 12:45 AM
Unknown Object (File)
Sat, Sep 20, 1:28 PM
Unknown Object (File)
Sat, Sep 20, 11:03 AM
Unknown Object (File)
Sat, Sep 20, 8:37 AM
Unknown Object (File)
Sat, Sep 20, 8:05 AM
Unknown Object (File)
Sat, Sep 20, 2:05 AM
Unknown Object (File)
Sat, Sep 20, 1:57 AM
Subscribers

Details

Summary

package-pkg (via make-pkg-package.sh) passes CONFIGURE_ARGS to make when
building ports-mgmt/pkg, which overrides the port's default configure
args that are supposed to set --prefix. This means that pkg is always
built with the default prefix of /usr/local, which then fails when ports
tries to package it from LOCALBASE.

Work around this by explicitly adding --prefix to CONFIGURE_ARGS.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 67188
Build 64071: arc lint + arc unit

Event Timeline

ivy requested review of this revision.Fri, Sep 19, 11:28 PM
This revision is now accepted and ready to land.Tue, Sep 23, 8:40 AM

Have you tested that this works if LOCALBASE is not set?

Have you tested that this works if LOCALBASE is not set?

LOCALBASE is always set in Makefile.inc1, see line 59. but i just checked to be sure, and yes, it works.

In D52634#1203779, @ivy wrote:

Have you tested that this works if LOCALBASE is not set?

LOCALBASE is always set in Makefile.inc1, see line 59. but i just checked to be sure, and yes, it works.

Perfect, just wanted to double check. :-)