From nobody Sat Apr 13 07:45:17 2024 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VGlpk0c2mz5GwyV for ; Sat, 13 Apr 2024 07:45:34 +0000 (UTC) (envelope-from ps.ports@smyrak.com) Received: from ipv6.s149.cyber-folks.pl (ipv6.s149.cyber-folks.pl [IPv6:2a02:1778::113:254]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4VGlph6NRYz4RXb for ; Sat, 13 Apr 2024 07:45:32 +0000 (UTC) (envelope-from ps.ports@smyrak.com) Authentication-Results: mx1.freebsd.org; dkim=none ("invalid DKIM record") header.d=smyrak.com header.s=x header.b=dj+56JV7; dmarc=pass (policy=none) header.from=smyrak.com; spf=pass (mx1.freebsd.org: domain of ps.ports@smyrak.com designates 2a02:1778::113:254 as permitted sender) smtp.mailfrom=ps.ports@smyrak.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smyrak.com; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=4PMazCKD7iOxZHDT05l7XJ+HUstDBaGqgIbRE6WtwJ8=; b=dj+56JV7JCVYFGsYxOaCT9wEl3 vizt8Iygza0ghOEg7zipeXw3NqAtunZrH3Kw3YS9+mEgorQ1HqVEWOcuAsXvF5Aa2rPDH2XBejGfP 5LVrbQu6bwMs4sdodjhPlnxaZQpXK+Kz6XFdFZnFP50xPf3CiShq/CjcM0Xt8CGvMZWy1hsPYkxCl EqavHYuXRC9Ydeg9Br+68cesEFB5vCOHOWqzqeuqkq3/TYNKfhRIzB+tptVBdvM9Hjco3t72jXqko 4Rx0QXVHVHSBMEA7xlhC12fH6rSHUEufz+U5uh7bNWls1PfyBFyicHD+jCs+lZOX5bCSHyznREHa9 W6h4/jXQ==; Received: from 93-181-165-201.internetia.net.pl ([93.181.165.201] helo=daleth.home) by s149.cyber-folks.pl with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1rvY4p-00000006egT-3Lar for ports@freebsd.org; Sat, 13 Apr 2024 09:45:31 +0200 Date: Sat, 13 Apr 2024 09:45:17 +0200 From: Piotr Smyrak To: ports@freebsd.org Subject: Re: Confused by what make package should do Message-ID: <20240413094517.784b038f@daleth.home> In-Reply-To: <43xrg75pzztfrhlszhekdlfqyiqfmbkgimfdjosrjbbr4sjzfq@fnyqc35f6zyw> References: <43xrg75pzztfrhlszhekdlfqyiqfmbkgimfdjosrjbbr4sjzfq@fnyqc35f6zyw> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Authenticated-Id: piero@smyrak.com X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.12 / 15.00]; NEURAL_HAM_MEDIUM(-0.93)[-0.928]; NEURAL_HAM_SHORT(-0.76)[-0.760]; NEURAL_HAM_LONG(-0.73)[-0.731]; DMARC_POLICY_ALLOW(-0.50)[smyrak.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a02:1778::113:0/116]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; ASN(0.00)[asn:41079, ipnet:2a02:1778::/48, country:PL]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; R_DKIM_PERMFAIL(0.00)[smyrak.com:s=x]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[ports@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[smyrak.com:~] X-Rspamd-Queue-Id: 4VGlph6NRYz4RXb On Fri, 12 Apr 2024 13:28:11 -0400 Matthew Phillips wrote: > On Fri, Apr 12, 2024 at 06:22:17PM +0100, Lexi Winter wrote: > > Matthew Phillips: > > > 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? > > > > > > > is it trying to install the port itself, or its dependencies? > > > > it will always try to install the dependencies before building the > > port, but you can pre-install these (as root) before running 'make > > package', after which 'make package' shouldn't require any > > privileges to run. > > > > (i am fairly sure i've done it this way in the past, although tbh > > it's been a while since i tested it.) > > It's trying to install the port itself. To /usr/local/bin > specifically. It seems like it's running `make install` on the ports > Makefile. > If you do not want to install the port while testing during porting, you can define NO_INSTALL at command line, it will step over the install target. Note, that you can also aim the installation during your tests into other hierarchy than /usr/local. Ie. you could create an empty dir within /tmp and use PREFIX=/tmp/myport to be used as a target directory. This has the benefit, that you might verify whether pkg-plist contains all the files that form the package. As for creating a package without root privileges, you would only need root hat if the package being installed contains files with higher permissions (ie. try pkg create on cups). -- Piotr Smyrak