From owner-freebsd-ports@freebsd.org Tue Oct 6 09:28:22 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 978E242DA63 for ; Tue, 6 Oct 2020 09:28:22 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from maybe.home.utahime.org (gate.utahime.jp [183.180.29.210]) (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 4C5BwP4cMpz4DbB for ; Tue, 6 Oct 2020 09:28:21 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (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) (No client certificate requested) by maybe.home.utahime.org (Postfix) with ESMTPS id 523F53FCC5 for ; Tue, 6 Oct 2020 18:28:11 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1601976491; bh=vmEpPxfcbonbCogCTUsQYXPMco5yeY38e2JAl1R+bHg=; h=Date:To:Subject:From:In-Reply-To:References; b=lkYU20fUCwwaMjAx4fV+gVY/2HRz1JUcEWyvdYXnKdvRNC2DQC6gnfKst7vUHVFWQ jxVM+twT1Q+Ggh5H/DoiL1yWUeA/vF9wiql77gm7wlpIiLcGRhaSiHhwH6HAqIqLDA PMOss7k2ST/q0GL7yBV3xJGsznli1rey1FcPwWOwl6bSnNpVmzuRTSuFVy3CR/4nrl ZtpOsuT0CTz0F9stg1DVzP4oVUNMnLGLlWmD67Sf24M4asUqYS1CYIbs41Vtf8fDNt q2/bVh2dvWxP5TMySLJD38syMBTqoeZZ651V96YuquSue6oFC3wTTb5+NcP8hUl10R 6hd+pMQXvct/A== Received: from localhost (rolling-vm-freebsd2.home.utahime.org [192.168.174.52]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 4895F24647; Tue, 6 Oct 2020 18:28:09 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.0 at eastasia.home.utahime.org Date: Tue, 06 Oct 2020 18:20:05 +0900 (JST) Message-Id: <20201006.182005.686138134248847946.yasu@utahime.org> To: freebsd-ports@freebsd.org Subject: Re: Poudriere/PREFIX breakage? From: Yasuhiro KIMURA In-Reply-To: <20201006033036.GA11746@blisses.org> References: <20201006033036.GA11746@blisses.org> X-Mailer: Mew version 6.8 on Emacs 27.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4C5BwP4cMpz4DbB X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=pass header.d=utahime.org header.s=maybe2019112701 header.b=lkYU20fU; dmarc=none; spf=pass (mx1.freebsd.org: domain of yasu@utahime.org designates 183.180.29.210 as permitted sender) smtp.mailfrom=yasu@utahime.org X-Spamd-Result: default: False [1.05 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+a:spf-authorized.utahime.org]; TO_DN_NONE(0.00)[]; HFILTER_HELO_IP_A(1.00)[maybe.home.utahime.org]; HFILTER_HELO_NORES_A_OR_MX(0.30)[maybe.home.utahime.org]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[utahime.org:+]; NEURAL_HAM_SHORT(-0.23)[-0.228]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:2519, ipnet:183.180.0.0/16, country:JP]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.004]; R_DKIM_ALLOW(-0.20)[utahime.org:s=maybe2019112701]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.02)[-1.020]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[utahime.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; MID_CONTAINS_FROM(1.00)[]; RCVD_TLS_ALL(0.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 09:28:22 -0000 From: Mason Loring Bliss Subject: Poudriere/PREFIX breakage? Date: Mon, 5 Oct 2020 23:30:36 -0400 > Hi, all. I just spun up a Poudriere build server, building 2020Q4 for 12.1 > amd64. I set PREFIX=/opt in /usr/local/etc/poudriere.d/make.conf and a > number of things broke, but a number didn't. When I killed the build, as > clearly there's something wrong, I had 29 successful builds and 19 > failures, and a number of skips given that gettext-tools was one of the > failures. This is because base system implicitly assumes PREFIX=/usr/local. If you exec `fgrep -r /usr/local /etc`, then you find '/usr/local' is hard-coded in some files under /etc. To make poudriere build with PREFIX=/opt, you need to create custom jail that all occurrences of '/usr/local' in files under /etc are replaced with `/opt`. But it is still necessary condition and not sufficiend one. Some ports may be unable to be built with non-default prefix. --- Yasuhiro KIMURA