From nobody Fri Apr 12 19:30:14 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 4VGRVK49m6z5Hx1d for ; Fri, 12 Apr 2024 19:30:17 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VGRVK3PD0z4Ryx; Fri, 12 Apr 2024 19:30:17 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712950217; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FyoKNGs8WkjR2+KglFD0qXZ+o7qBwc+ccIAuWhc3Bik=; b=a/E+dYmpc1kHe07wTpkcUqy0xZCQLadTxTYWvvfJWCu6RB09SbqvN5vKlU8G49JBBB8JgZ FNBx9TpveJ4jn2LJbc7Sie/+dA0htWa+J60GLA1DB57FbXItX5cWRCUUMnELFIMJ6TzhcD Hz8unDZG1/oFl7QdeIV9kRl01PFl3qBzgQkeMES1cx5l3TerXy8KYr31cjH11UGroLaXmM DeBODihae+Z1S1PzOVYPlrlUug0ExChdV+kIRqiN3iOCNHTwsTKdN4LCRxFFpystngPHMj tGiOVFZi9a/7oVEVZiWZS4qU4W/ObcdThYuR/Cif7WvLBYsPTFc+Lx1NfzVMxA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712950217; a=rsa-sha256; cv=none; b=P5oRQ31iTiC4YZ8JuBpyR//h8XK1zuZ/eSVR+E1WSNq2Y2J8LQbOOib0j6d9rxpqCPt9YO xvJu/dFtR1M3B4mqQjZJEw1jZAavbCJlg5OSAx05yyxV1Ja0qXUA1FArQbIDpXYae0mtLU Y9wPTeN/+EIQ0woKCvwpMIM22EHHM67yFk7hI1OlBu+ljkyedkzzT2GEgx9weOls0w8ZS6 QGdG75oUKrjYQA27/UqHTU/L5bwc47GM+oMXJqb94Hpnwrqn99hMX86bSGZNpjj4R+r6m4 oS+U+fHaUcrnt4ui7fisNZ7c+JmKPOM8lDQE5pTNvJDUZtYZtkbIWQfg/N4L2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712950217; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FyoKNGs8WkjR2+KglFD0qXZ+o7qBwc+ccIAuWhc3Bik=; b=XffieW+aPcTwJ+gRVylumDAT9dUihHRs/8ZDKbeNChIBkIL5F0h8DXdew/teSzpuJXWTMC U9Fuut8ErBnOvzvKbCFbXfmQLbYN/7T1urmyD9qQXvffGRfCq6IvHc14gcjxsnICd2WRds 89jaUq90NmpmAS6u/a7gS+Ihxnq4XtF+1BH3SLbIhzQ2IGtlAzNvavws8/QngwuodBW1UV RpRha+JRaBbVMl76QsvvZ0RScfaQYovn7udtx6vPpPTxzhCVp0KH3dKJiC4tk5ihEUVaGy BqvcsON07RMEOPR+R+VkML4lNrJSLgzLQ036YabPuWEOfshCWcNR2OJwXNGQwg== Received: from ltc.des.dev (2a02-8428-0993-f001-922e-16ff-fef1-acef.rev.sfr.net [IPv6:2a02:8428:993:f001:922e:16ff:fef1:acef]) (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) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VGRVK2H1rzWMm; Fri, 12 Apr 2024 19:30:17 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id D63A41C29F; Fri, 12 Apr 2024 21:30:14 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Kurt Hackenberg Cc: ports@freebsd.org Subject: Re: Confused by what make package should do In-Reply-To: <76c14675-a782-49cc-8d61-ff96eaab83c8@panix.com> (Kurt Hackenberg's message of "Fri, 12 Apr 2024 15:06:16 -0400") References: <43xrg75pzztfrhlszhekdlfqyiqfmbkgimfdjosrjbbr4sjzfq@fnyqc35f6zyw> <76c14675-a782-49cc-8d61-ff96eaab83c8@panix.com> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Fri, 12 Apr 2024 21:30:14 +0200 Message-ID: <86mspycrax.fsf@ltc.des.dev> 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=utf-8 Content-Transfer-Encoding: quoted-printable Kurt Hackenberg writes: > Matthew Phillips writes: > > 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. > From man ports(7): "package Make a binary package for the port. The > port will be installed if it has not already been." This is both true, in that the `package` target implies the `stage` target with does run `make install` in $WRKSRC, and highly misleading, because the `stage` target does not install the port to your machine, which would require superuser privileges, but to a staging directory, which does not. The `install` target, which implies the `package` target, uses `pkg add` to install the package to your machine. Provided all prerequesites are already installed (use `make missing` to check), you should be able to run `make package` as an unprivileged user. I do it all the time. Note that if the port (or a missing dependency) has options, the ports framework will attempt to perform the `config` target, which requires superuser privileges (in order to store the selected configuration in `/var/db/ports`). You can disable that by defining the BATCH variable either in your environment (`export BATCH=3D`) or on the command line (`make BATCH=3D missing`, `make BATCH=3D package`). In that case you will have to either already have run `make config` or set the options you want to set in `/etc/make.conf` or on the command line, if you're not ok with the defaults. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org