Re: Confused by what make package should do
- Reply: Lexi Winter : "Re: Confused by what make package should do"
- In reply to: Gleb Popov : "Re: Confused by what make package should do"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 12 Apr 2024 17:11:46 UTC
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