From nobody Thu Feb 24 00:43:22 2022 X-Original-To: ports-bugs@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 3144D19CB786 for ; Thu, 24 Feb 2022 00:43:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K3vK65HJ1z3Kph for ; Thu, 24 Feb 2022 00:43:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 955582215D for ; Thu, 24 Feb 2022 00:43:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 21O0hMRk025191 for ; Thu, 24 Feb 2022 00:43:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21O0hMD5025190 for ports-bugs@FreeBSD.org; Thu, 24 Feb 2022 00:43:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 262162] ports infrastructure: provide USES_${ARCH} Date: Thu, 24 Feb 2022 00:43:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: feature X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: fuz@fuz.su X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645663402; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=y1/Xte5GhpI2nwxBGIGspXhDnLeVn7QfPfPDqtD1WWo=; b=TWWEX7s8KeDUdWOLeaU/V0cvQYbqlQPPBcgn5ehJO6hc+M8nEsTtuqfCQJdaITpDsESAq5 cdcSSACXJUFITg/8aC2S8jL4q1jYE8O/07pB5ULal7C4xmuCwUzaS0BNpX1WK6b9c0EmdF 670Kn98F3pIPoWklC50OXV5paJQl1jZRGw6teS1jdqe6p/dw7oRHzoXjOu80pDslpi4uDk wOqN/dFwJEuEQQbOS+yOnAKM8XimMjAp0g4tLVxF7iZkIqdXnyAOI9wuzEI9P6h3QPR7Yz pDJqaUh+2nD5H2+YDSRoXmfHSIeBQPebl/PmTi/4Hgq5OFt74zbO36kFnhVfJg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645663402; a=rsa-sha256; cv=none; b=nOFVWT4Le+gc3HzfqQMNpzc6qEVixTW1p/HPNLZDj+ueLZfuBOAiCC+wDYenO95QGbtQTn b6Ve73/dwiCs9kfTBNIcUP5p+mcSrvGDkNI5aKtZQ8uAST9cgy8m896hQnykhJOBPGF/WA FH8DBJMPBReg1uM5OJTkn/+YUllegRiy1eh23rA91COcf3Gz+7fZ21BuxhKyDknFYtN5RS qqgv/QHMRYlR89zJt8dgLmdq1Qiwe4G32ri92nF5K52StMnKRO+n38uN1TmLo/RN1NdnWI k1kLw1jfiMvd5aj7Z+tuq6j50g9/JHekKzYmdBRDV1slIOEISVm1u2si8nT6fg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262162 Bug ID: 262162 Summary: ports infrastructure: provide USES_${ARCH} Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: feature Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: fuz@fuz.su CC: koobs@FreeBSD.org It is currently very awkward to register USES that depend on architecture.= =20 This is a use case that pops up every once in a while (e.g. when a port requires a certain build tools only on some architectures). See e.g. bug #261247. This is because USES cannot be set after is included, but including that is required to access the ARCH macro. A possible workaround is using a construct like USES+=3D${ARCH:Mamd64:S/amd64/something} but that's hard to read and quite ugly. As a solution, the ports infrastructure should provide a macro USES_${ARCH} that if set is added to USES, permitting the definition of architecture specific USES. For example, this could be achieved by placing USES+=3D${USES_${ARCH}} after the definition of ARCH and before evaluation of USES in bsd.port.mk. --=20 You are receiving this mail because: You are the assignee for the bug.=