From nobody Thu Oct 17 05:47:06 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 4XTcKq2GV1z5YY9R for ; Thu, 17 Oct 2024 05:47:11 +0000 (UTC) (envelope-from mat@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XTcKp6yhKz3wn2; Thu, 17 Oct 2024 05:47:10 +0000 (UTC) (envelope-from mat@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729144031; 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: in-reply-to:in-reply-to:references:references; bh=O2NEnsgoMRhDubNGHLk6fptlGaRo4EaLcIMMW/txyMw=; b=JLN0uCZLOZuOcgfRu8eAj9048Z19wVw74kKn+lX9GcyAiXCTkJmpjvojffE1MdnuN7U32u S4KmrWttPQA8slj2F8evRoFs/AUXPHQKqQh/8XOPs2pDdZ4H9ZdndFNHz/GooHrHNfZgYR SvS/JMdcExNQR0omX/K0MEjHEjHgS+0XPwA1Nm3lAIH05/pPBMdNYvu4elurAoh0+qKx/7 2gGScQu1Auz8YDHfDZRdT1ERxKDsIwMX63zOM1zLkC8wrd57lUSqIDRwUMQ2gULXhLMIzp 5XNP/std1ZxpYfUGlxpZcCFm+gMU1StbUkYUIiw3ldTGSvn30sBIjrl1fEAHZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729144031; 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: in-reply-to:in-reply-to:references:references; bh=O2NEnsgoMRhDubNGHLk6fptlGaRo4EaLcIMMW/txyMw=; b=Xnkw83e/+A5yeokQjQHRna/6Q24sDsPZFmf55eE5iTK6n0iBwstjoe4H8tAAqP9Y51QnIw /pICz8nxue3g9fkBS9OOTI3/lr4JP93V9vNY7DjqZCEmRWSi2ZzqV2Wk0hXJkp9FwSPjCS Uo6H4w5cWVLXYs4iTQGIGu211D4YE9U7Hci18AZt41xT5UoX5S44+/No9w/SKzr3PUQhRD ayE+/wiDyA7E6/U/m21hngPiKY7rn4v4sjVg/Uv22kofCFlRpqlMYocGAOePF0gXP42zo6 HHYjaIoWZ+Ghw9ZUpBLtx+nZ1aHZ2R2xSa4r43NVUvBYEAKVrWhBB1PUcY8hdg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729144031; a=rsa-sha256; cv=none; b=uha2Gh/PoFA0XsXlablcnk7MiWeNHuvmgl9FQCIACMUYH77aqcbNCOCJkqMksOPDs8JJbr TmKjubO/gx0LXRlSVBo2TzfVbXJp6TAQ9E2QPfWJVCS3zdSMK7N3PWJ7Pv0OU0weNfQ0C8 BB75F67Jhdn56vppF11LsKFLg5FCasz+KDq+GMy4V9YoTJoxhjWbywf4unmwWzaMLBPRKg QeYF1ZstDnrO5DpR88aX3kwyQ24wHBRfWOoldnZnnWnBHvIsoC6zBYBWm8jVvugrhdppzJ XSv74mFLUmxsAoR4P5aHDDmnA/btuxsmT3igTXfbHru1url2OJTm9w3KIEhDPA== Received: from relay.mat.cc (cow.mat.cc [79.143.244.49]) (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 "cow.mat.cc", Issuer "R10" (verified OK)) (Authenticated sender: mat/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XTcKp5r3jzXRq; Thu, 17 Oct 2024 05:47:10 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from aching.in.mat.cc (unknown [IPv6:2a01:e0a:836:f670:ae03:37e3:e64c:14a1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by relay.mat.cc (Postfix) with ESMTPSA id E04E41FE43; Thu, 17 Oct 2024 07:47:07 +0200 (CEST) Date: Thu, 17 Oct 2024 07:47:06 +0200 From: Mathieu Arnold To: Robert Clausecker Cc: Zsolt Udvari , ports@freebsd.org, ports-developper@freebsd.org Subject: Re: Install file into /rescue Message-ID: References: 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 Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mpq54rbeamvhcjgk" Content-Disposition: inline In-Reply-To: --mpq54rbeamvhcjgk Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: Install file into /rescue MIME-Version: 1.0 On Wed, Oct 16, 2024 at 11:04:45AM +0200, Robert Clausecker wrote: > Hi Mathieu, >=20 > Am Wed, Oct 16, 2024 at 10:53:28AM +0200 schrieb Mathieu Arnold: > > On Wed, Oct 16, 2024 at 07:43:31AM +0200, Zsolt Udvari wrote: > > > Hi, > > >=20 > > > I want update a port (see https://bugs.freebsd.org/bugzilla/show_bug.= cgi?id=3D282052 ), > > > but I've a problem: the port wants install a file into /rescue and it > > > causes an error (in poudriere): > > > =3D=3D=3D> Registering installation for mg-static-20241008,1 [14-de= fault] > > > Installing mg-static-20241008,1... pkg-static: Fail to create tempora= ry > > > file for /rescue/mg:Read-only file system *** Error code 1=20 > > >=20 > > > There is mg-static package in repository and has a file in /rescue so= I > > > think should set something in my poudriere setup. > > > My poudriere.conf is: > > >=20 > > > ZPOOL=3Dzroot > > > ZROOTFS=3D/poudriere > > > FREEBSD_HOST=3D_PROTO_://_CHANGE_THIS_ > > > RESOLV_CONF=3D/etc/resolv.conf > > > BASEFS=3D/usr/local/poudriere > > > POUDRIERE_DATA=3D${BASEFS}/data > > > USE_PORTLINT=3Dyes > > > USE_TMPFS=3Dno > > > DISTFILES_CACHE=3D/usr/local/poudriere/distfiles > > > CCACHE_DIR=3D/var/cache/ccache > > > ALLOW_MAKE_JOBS=3Dyes > > > PARALLEL_JOBS=3D3=20 > > >=20 > > > How can I solve this problem? > >=20 > > That one is easy, a port can only install files in PREFIX. So, it cannot > > install files in /usr/s?bin, /s?bin or /rescue. It seems the static > > flavor of this port is completely wrong. >=20 > This is incorrect. Many ports install files into /var for example. Our > infrastructure has explicit support for that, so why should it not be all= owed > if reasonable? Many ports *create* files in /var when they run, but they don't *install* files there, and that is probably fine. > Unless we add ${PREFIX}/rescue (which wouldn't work if ${PREFIX} is on > a different partition than /), I don't see anything wrong with putting > binaries needed during system rescue into /rescue, even if they come from > ports. >=20 > I worked on this port before and had the same Poudriere issue; I tested t= he > port manually instead. >=20 > > It seems like this is an editor, and it seems it wants to install itself > > in /rescue for some reason, we already have vi in /rescue, so I'd say, > > ignore the static flavor, as it's broken, or remove it, as it's broken. > >=20 > > --=20 > > Mathieu Arnold >=20 > Yours, > Robert Clausecker >=20 > --=20 > () ascii ribbon campaign - for an encoding-agnostic world > /\ - against html email - against proprietary attachments >=20 --=20 Mathieu Arnold --mpq54rbeamvhcjgk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQITBAABCgB9FiEE9XJBpJetWizkEBUef2IOCp6dQb4FAmcQpNpfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY1 NzI0MUE0OTdBRDVBMkNFNDEwMTUxRTdGNjIwRTBBOUU5RDQxQkUACgkQf2IOCp6d Qb6rvAv+LTZMOhv7Mt/O344akmSbcKurDqA6I1bfhhxJGaYauMzR5jv7yjVrI9Hp OOit3vTOpKlY726MotRkMWMFM5bonjHE5SCujqOsSWeoR1eoZwpfQppqJu87DrWq HlbyjPGAabFvAofUQ+oFMVkeqILTj/m8HOhc5q2P/vvtlkiXM6tEW6+PrkzSrt67 9TIwyXgwL9NpiowNIdcLDOIIEgDt+9lrBayveYHA3VaGe5CLo2DfpvEX9Qi337sx i4S71iIl/IQmyM0QDLhezknFy6O0q5R2XlTIYXH2aUx2j288pkX9i6UBn1IHK2yw Er6BthxM8ABJ6ND7oyQAnoxBICvXXCWM214R5b0KcsuFR2Rsyy/XxOxz7Vk+mzT1 H5Gkq782vnzPoYH0NDWzqN0JPOMmzdQ+nHjUN4towr8o+5VZV7fjVHAUTyGuLzai ew4UKq0fM1FAe/3R2LxYWCMt/Ax7Z800K3lYhwY1gSyxXak2H8zsrB4WBt7Oz9yZ okRmnQge =jUDU -----END PGP SIGNATURE----- --mpq54rbeamvhcjgk--