From owner-freebsd-ports@freebsd.org Tue Oct 6 13:59:01 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E462743387C for ; Tue, 6 Oct 2020 13:59:01 +0000 (UTC) (envelope-from mason@blisses.org) Received: from phlegethon.blisses.org (phlegethon.blisses.org [50.56.97.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4C5Jwj1BjCz4WXJ; Tue, 6 Oct 2020 13:59:00 +0000 (UTC) (envelope-from mason@blisses.org) Received: from cocytus.blisses.org (service.blisses.org [64.223.129.151]) by phlegethon.blisses.org (Postfix) with ESMTP id B7CF0194D19; Tue, 6 Oct 2020 09:58:59 -0400 (EDT) Received: from blisses.org (acheron.int.blisses.org [10.0.1.10]) by cocytus.blisses.org (Postfix) with ESMTPSA id 0708D2D5; Tue, 6 Oct 2020 09:58:59 -0400 (EDT) Date: Tue, 6 Oct 2020 09:58:57 -0400 From: Mason Loring Bliss To: Yasuhiro KIMURA , Mathieu Arnold Cc: freebsd-ports@freebsd.org Subject: Re: Poudriere/PREFIX breakage? Message-ID: <20201006135857.GB11746@blisses.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6sX45UoQRIJXqkqR" Content-Disposition: inline In-Reply-To: <20201006104901.kmx725vuym6yweqd@aching.in.mat.cc> <20201006.182005.686138134248847946.yasu@utahime.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: 4C5Jwj1BjCz4WXJ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mason@blisses.org designates 50.56.97.101 as permitted sender) smtp.mailfrom=mason@blisses.org X-Spamd-Result: default: False [-4.45 / 15.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[blisses.org]; ARC_NA(0.00)[]; NEURAL_HAM_LONG(-1.06)[-1.058]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.03)[-1.025]; NEURAL_HAM_MEDIUM(-0.97)[-0.965]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:19994, ipnet:50.56.0.0/17, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2020 13:59:02 -0000 --6sX45UoQRIJXqkqR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 06, 2020 at 06:20:05PM +0900, Yasuhiro KIMURA wrote: > This is because base system implicitly assumes PREFIX=3D/usr/local. Evidently part of my issue is confused over PREFIX vs LOCALBASE. The most detailed thing I found was here: https://www.freebsd.org/doc/en/books/porters-handbook/porting-prefix.ht= ml Neither is documented in make.conf(5) and I didn't find definitions online. > If you exec `fgrep -r /usr/local /etc`, then you find '/usr/local' is > hard-coded in some files under /etc. This is interesting - see below. On Tue, Oct 06, 2020 at 12:49:01PM +0200, Mathieu Arnold wrote: > What problem are you trying to fix by setting PREFIX=3D/opt ? I want system-provided tools to live elsewhere so I can reserve /usr/local for its traditional purpose. > If the goal is to have what is usually in /usr/local in /opt, then you > do not need to set PREFIX, but you must set LOCALBASE instead. Where should I have learned about this? I'm generally pretty good with search engines, and I was struggling to find how to do this, found nothing specific to Poudriere, and found the link I noted above that made me think PREFIX was what I wanted. I also read through this stuff, which didn't really clarify this: https://reviews.freebsd.org/D12666 https://forums.freebsd.org/threads/prefix-and-localbase-path-aka-compat= -any-ez-way.16773/ I tried setting both to /opt last night, and saw lots of breakage. I'd be happy to try again with only LOCALBASE, but per Yasuhiro's note, there seems to be a large number of references to /usr/local hardcoded in /etc. Is there a knob that's honored for general builds such that these references point to LOCALBASE? Or is LOCALBASE support largely vestigal and painful to use nowadays? Between these two very good responses, I'm still left unsure about what's supported and how to go about it comprehensively. --=20 Mason Loring Bliss mason@blisses.org They also surf, who only stand on waves. --6sX45UoQRIJXqkqR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEEXtBZz1axB5rEDCEnrJXcHbvJVUFAl98eB0ACgkQnrJXcHbv JVWIvRAAz4B0fhRH3pPWm1bHA7ZRwOF98HEn3qnnhY/vzfNg7VB7mj/zIO19m3bY uBAkibmppDdTDPgZT0RCK9IOgTRo6SRSBpI6tjcHPn2icbFVB9zDGKx7Ygt76M8V hy7Ijrtdxbh0msEPSn5x+PCh0fM01BScaVVzt/JOYTP7GaW7Yr0kQoTpm7jLcLyM qpTb/X0I1GDAoBmTyXGSKoWz9gnIpJ0k8lcoVg0nT+V93KiRnqyOyJ78MW+de9GQ rbjLAxyaDW2Am/6Jx/lovTPpFodJ0FkHmL2UAw1aB6OZOOGH14du2YZdNpLY9aUz uBVZ+be2CsET0o5NSkhLA7xcatWdHWGZKhs2cpxpjDLsi1rwekxp/tqNrxa0RX+q /7rM9DlenYn7jovnNYJ0K+v7XlCOCT8rtK36DwbPzBH6en+qXREKKJN0pllfD3o9 jJqjUS4sdlsVsOwq2CtZiMXkqC2R9ZsVrr1CjVd33w6kayzxsSrlKZMDTm9QCb0c 1S6RT2VFBtHjlYs/YjRBwlpuRgKxQ/EV+QQfiPLUwlVD73NVHRS0nb3OOZCLor9Z ipA94dAN87hILwpnihfbSv9/jo5voBVrvevDeOrHu0hSOqyClxALoZxHp0Rn55Lf IT3dJcdgSyKeZfriTKrVLBK+b3Ukr7Iwc0tIba68VHohChqNK4E= =56wY -----END PGP SIGNATURE----- --6sX45UoQRIJXqkqR--