From nobody Sat Mar 19 03:17:03 2022 X-Original-To: freebsd-hackers@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 982D61A2C06E for ; Sat, 19 Mar 2022 03:17:07 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (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 4KL5dt2R3qz4TjK; Sat, 19 Mar 2022 03:17:06 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from kalamity.joker.local (123-1-31-137.area1b.commufa.jp [123.1.31.137]) (authenticated bits=0) by www121.sakura.ne.jp (8.16.1/8.16.1/[SAKURA-WEB]/20201212) with ESMTPA id 22J3H3KN056871; Sat, 19 Mar 2022 12:17:04 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Sat, 19 Mar 2022 12:17:03 +0900 From: Tomoaki AOKI To: Jung-uk Kim Cc: FreeBSD Hackers Subject: Re: Providing base OpenSSL *.pc files needed Message-Id: <20220319121703.475bed3bf22e163f6d190aa5@dec.sakura.ne.jp> In-Reply-To: <6c8e873e-fbe0-b857-1842-307c979a95e8@FreeBSD.org> References: <20220318231622.1f511123b97c76f2bbe1568a@dec.sakura.ne.jp> <6c8e873e-fbe0-b857-1842-307c979a95e8@FreeBSD.org> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4KL5dt2R3qz4TjK X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of junchoon@dec.sakura.ne.jp has no SPF policy when checking 153.125.133.21) smtp.mailfrom=junchoon@dec.sakura.ne.jp X-Spamd-Result: default: False [0.41 / 15.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sakura.ne.jp]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.99)[0.986]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.977]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-0.999]; MLMMJ_DEST(0.00)[freebsd-hackers]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[123.1.31.137:received] X-ThisMailContainsUnwantedMimeParts: N On Fri, 18 Mar 2022 15:58:30 -0400 Jung-uk Kim wrote: > On 22. 3. 18., Tomoaki AOKI wrote: > > Can someone look into Bug 257659 [1]? > > > > I've encountered Bug 262569 [2]. > > > > ports git d4c9792fda7f introduced LIB_DEPENDS with > > security/openssl, maybe because security/tpm2-tss > > 3.2.0 hesitates to build without *.pc of OpenSSL. > > > > This causes ports depending on base OpenSSL to fail, > > even on fetch. > > > > Putting partially modified *.pc files of security/openssl I've > > uploaded on Bug 257659 into /usr/libdata/pkgconfig, applying > > the patch I've uploaded on Bug 262569 and deinstalling > > security/openssl allowed me to build security/tpm2-tss, updating > > ports depending on base OpenSSL to succeed. > > > > */usr/ports/Mk/bsd.default-versions.mk defaults to base unless > > any ports one is already installed or manually specified via > > DEFAULT_VERSIONS. And /usr/ports/Mk/Uses/ssl.mk disallows > > coexistence of ports build against base OpenSSL and against > > ports security/openssl*. > > I personally don't think adding these files in the base is a good idea. > However, it's portmgr's decision because it may break existing ports. > Besides, portmgr owns ports/Mk/bsd.default-versions.mk and > ports/Mk/Uses/ssl. Agreed that it should be a decision by portmgr, as I already commented on Bug 257659. > > [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257659 > > [2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262569 > > Note I fixed PR262569 today. > > https://cgit.freebsd.org/ports/commit/?id=aca6f9b18e874c73ac68990a2439ccec0be66ef0 > > Jung-uk Kim Thanks for the fix! Confirmed OK without installing 3 *.pc files. But as I commented on Bug 257659 and Bug 262569, if CONFIGURE_ENV= part of your fix is generic enough, it would be better set on Mk/Uses/ssl.mk to avoid this kind of disaster. -- Tomoaki AOKI