Date: Fri, 12 Apr 2024 13:11:46 -0400 From: Matthew Phillips <matthew@matthewphillips.info> To: Gleb Popov <arrowd@freebsd.org> Cc: freebsd-ports@freebsd.org Subject: Re: Confused by what make package should do Message-ID: <e7jc6wvcyzd7dd5sntdkiruzqvwdegldbmtg3uem3njcstmjff@ojv5urlxga7b> In-Reply-To: <CALH631k4KEd6ytxzB19mUZbzY=6frB=t0Y_pMyUUoD_fiB%2BFPw@mail.gmail.com> References: <i2u7ovhndcywc5kxloodmpm5xe6v7fw7ynxlqrxmbkul2ns3sk@mrylz3dakfpt> <CALH631k4KEd6ytxzB19mUZbzY=6frB=t0Y_pMyUUoD_fiB%2BFPw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 12, 2024 at 07:49:02PM +0300, Gleb Popov wrote: > On Fri, Apr 12, 2024 at 7:22 PM Matthew Phillips > <matthew@matthewphillips.info> wrote: > > > > The porters handbook says: > > > > > Make sure that make package can be run as a normal user (that is, not > > > as root) > > > > However, the default `PREFIX` is /usr/local, and a non-root user cannot > > install to this folder. > > `make package` only creates the .pkg file. It is `make install` that > performs the installation. > It definitely is attempting to install in the port I'm working on. The port's Makefile does not do so when just running `make`. Do you have any idea why make package would be trying to install? I also tested against a number of existing ports and it tries to install things and fails with a normal user. For example in hexchat I get this error: ===> Switching to root credentials to create /var/db/ports/irc_hexchat su: Sorry ===> Cannot create /var/db/ports/irc_hexchat, check permissions
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e7jc6wvcyzd7dd5sntdkiruzqvwdegldbmtg3uem3njcstmjff>