From owner-freebsd-ports@freebsd.org Fri May 22 08:30:13 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 4A7A3329FBD for ; Fri, 22 May 2020 08:30:13 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49T06Y1GTqz40M5; Fri, 22 May 2020 08:30:13 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from mail.j.mat.cc (owncloud.cube.mat.cc [79.143.240.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.mat.cc", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: mat/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 0B361216D4; Fri, 22 May 2020 08:30:13 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from aching.in.mat.cc (aching.in.mat.cc [IPv6:2a01:678:42:0:5e80:b6ff:fe2c:99e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mat@mat.cc) by mail.j.mat.cc (Postfix) with ESMTPSA id 2B045942D81; Fri, 22 May 2020 08:30:10 +0000 (UTC) Date: Fri, 22 May 2020 10:30:07 +0200 From: Mathieu Arnold To: SirDice Cc: freebsd-ports@freebsd.org Subject: Re: Port OPTIONS advice Message-ID: <20200522083007.lhgbpobmglt6dyc3@aching.in.mat.cc> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fki7uxqaql7ndbn4" Content-Disposition: inline In-Reply-To: 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: Fri, 22 May 2020 08:30:13 -0000 --fki7uxqaql7ndbn4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 20, 2020 at 07:25:00PM +0200, SirDice wrote: > What's a good way to deal with this sort of architecture dependent option? If the feature is architecture dependant but also needs to be disabled on architectures where it does not work, a naive way that I can see to do it is probably to do something like this: OPTIONS_DEFINE=3D JIT OPTIONS_EXCLUDE_aarch64=3D JIT OPTIONS_EXCLUDE_armv6=3D JIT But you have to do it for all architectures, so it may not be the best way, a way that would be a bit more convoluted, but still readable would be: OPTIONS_DEFINE=3D JIT OPTIONS_EXCLUDE=3D ${ARCH:Ni386:Namd64:C/.+/JIT/} What it does is take ARCH, remove i386 and amd64 from it, and there is still something, replace it with JIT. --=20 Mathieu Arnold --fki7uxqaql7ndbn4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEVhwchfRfuV0unqO5KesJApEdfgIFAl7HjYpfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU2 MUMxQzg1RjQ1RkI5NUQyRTlFQTNCOTI5RUIwOTAyOTExRDdFMDIACgkQKesJApEd fgIIUA//UxKs8kU7P1fF+eriBgQqwblEI9U+u5FYjLafJo/gw6bVLXcuhLKJrCSA D2V1jpJVEWREHFO40+ulMVLsmx6T0oZIdBF0DImqboIMLsGHcIxEVynOg9zYr/1r NbDgIBIlNEB5f6TnLjftBTtdISjQ9exfEedQRCgeuIMMZpWT8r06aOSfXPCRxJBW yUtRF7C0RCKcokHvm4sQwjlhe3L1V+IAzQ9SI2OPL4NVSEzjQfHeIVMLgPOVdGF3 9635Gy91L7p/x3lqgHV0IAk0TMfL0Y3WNsXq9vQgCf43d1EXt+xS+iTPzQqYeZJq 62QpXLM0Ye67HgDEjs37D/NXiEXrXp8/rIlLRaW7fgUcKy8hDhNIc1KLH0Xi3SSf GdLhDQqEQDpEUhDlgqAwC3mowrgfJ9QQwkxYmkrGQ1UOT+X0SGLIDg+RkvFa7BLy 2CVuw0kVu6Y8YeBDluFXsOyBkcGUnoiEKAOR/dvAgx1PNjQmRdvPt8ce4ydQfhwD UOBEZTLMXg8H3gtOVAMvA61g37PP2mv9FlnAvNJfnl9st1GJsSQj6ZFZNQ+Zq0nd R0+4/1N6ErhnHfwNqNIzBtpa/neC92cgplwauep53D8xmD7T1xguyvNdpMakQPUA aM7ju5EMPBDxcTnYjzgGg5QPCH98op9Y03vtmWrN6wc+XRjhB04= =Vdxx -----END PGP SIGNATURE----- --fki7uxqaql7ndbn4--