From nobody Mon Dec 12 14:48:57 2022 X-Original-To: dev-commits-src-main@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 4NW4JZ2f6tz4kY5T; Mon, 12 Dec 2022 14:49:02 +0000 (UTC) (envelope-from pkubaj@anongoth.pl) Received: from mail.anongoth.pl (mail.anongoth.pl [46.248.190.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X448 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "anongoth.pl", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NW4JY5z6Qz4MnH; Mon, 12 Dec 2022 14:49:01 +0000 (UTC) (envelope-from pkubaj@anongoth.pl) Authentication-Results: mx1.freebsd.org; none Received: from anongoth.pl (unknown [192.168.1.15]) (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) (Authenticated sender: pkubaj@anongoth.pl) by mail.anongoth.pl (Postfix) with ESMTPSA id 54E461C4902; Mon, 12 Dec 2022 15:48:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=anongoth.pl; s=ANONGOTH; t=1670856538; bh=pvtmyx7GEF/cBYooxLSgzvvAe379qx/e3MSMijG1xLM=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=gz5cGGFWGqj6zGe2yu4jZvGA5oLPWBdL0F3P37zX/zfAX9B9VjAxISKaH4j+nxYHD PfXAct2b5lY6FBpCeoz244oM7iequnmyL5y4GRzqhfltLhHQYk4ua8dIjSlWXIS3Y8 P8uQH0/z4c7HbTCglwO0wZYGImBO/vYOJEuSS+WZAtIsAvVw6l9AFYNA4UQyWEgA6r BBr6h/x3Ed5oFebBKnO1cx+N4QHxLl898gOI1SAe6LfW+OLaXSvgwHBXmQ+x/rgJ6Q vy15hxhbY/qXQKnox84RtpBtP3Xs7pyE4Vx2N0L+EFLKv9amd+27xgEd9U195mFKPd MZlqXJ5n2v+rA== Date: Mon, 12 Dec 2022 15:48:57 +0100 From: Piotr Kubaj To: Andrew Turner Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Subject: Re: git: 83bf6ab56829 - main - uname: switch machine to HW_MACHINE_ARCH Message-ID: References: <202212111208.2BBC835O095410@gitrepo.freebsd.org> List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XN5yMNbl5yH0swQF" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4NW4JY5z6Qz4MnH X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:47544, ipnet:46.248.160.0/19, country:PL] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --XN5yMNbl5yH0swQF Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 22-12-12 11:48:47, Andrew Turner wrote: > > >> On 11 Dec 2022, at 12:08, Piotr Kubaj wrote: >> >> The branch main has been updated by pkubaj (ports committer): >> >> URL: https://cgit.FreeBSD.org/src/commit/?id=3D83bf6ab568293e325f437342c= db87a626353e27c >> >> commit 83bf6ab568293e325f437342cdb87a626353e27c >> Author: Piotr Kubaj >> AuthorDate: 2022-12-11 03:01:44 +0000 >> Commit: Piotr Kubaj >> CommitDate: 2022-12-11 12:05:39 +0000 >> >> uname: switch machine to HW_MACHINE_ARCH >> >> On powerpc64, powerpc64le and riscv64 some software wrongly assumes t= hat >> it runs on powerpc or riscv (32-bit). >> >> Differential revision: https://reviews.freebsd.org/D35962 >> Approved by: alfredo, imp >> --- >> lib/libc/gen/__xuname.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/lib/libc/gen/__xuname.c b/lib/libc/gen/__xuname.c >> index fba5eaeebc88..bd328d4f880f 100644 >> --- a/lib/libc/gen/__xuname.c >> +++ b/lib/libc/gen/__xuname.c >> @@ -127,11 +127,11 @@ __xuname(int namesize, void *namebuf) >> } >> q +=3D namesize; >> >> - if ((p =3D getenv("UNAME_m"))) >> + if ((p =3D getenv("UNAME_p"))) >> strlcpy(q, p, namesize); >> else { >> mib[0] =3D CTL_HW; >> - mib[1] =3D HW_MACHINE; >> + mib[1] =3D HW_MACHINE_ARCH; >> len =3D namesize; >> oerrno =3D errno; >> if (sysctl(mib, 2, q, &len, NULL, 0) =3D=3D -1) { >> > >This breaks the native arm64 build as make sets MACHINE based on this valu= e. It is changed from arm64 to aarch64 which is incorrect so I get issues l= ike the following: > >make[1]: =E2=80=9C.../freebsd/Makefile.inc1" line 163: Unknown target aarc= h64:aarch64. > >I expect it also breaks the powerpc and riscv native builds for the same r= eason. > >Can you please revert until this can be fixed. > >Andrew Reverted. Sorry for the breakage. I think will return with the next version of this patch and this time I'll make sure to run make universe on my powerpc64le instead of those pesky universe14 hosts :) --XN5yMNbl5yH0swQF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJkBAABCgBOFiEEycyIeNkkgohzsoorelmbhSCDnJ0FAmOXP1kwFIAAAAAAFQAS cGthLWFkZHJlc3NAZ251cGcub3JncGt1YmFqQGFub25nb3RoLnBsAAoJEHpZm4Ug g5ydv3oQAJ5ICvJMBiv3qjzvauoSCGDFYE21C26I4rtEb2seSWJSdndS73U9OAQp 5iNfivvi5VqX7jpXgxXNSqkEMZ2v6mIRfCtgOekra0s/A/fxsAPsnLaRttbyuJdC foov7xHKmuMCCUoIuymLbj54GS5RomM/UhvTK93L8Kl2FRdJgZV3CW3r4TnS5Nl9 XmQbvp6MqUUtwhwFTbDPKlkIKKLqvpLnsLElvRRYSwYXg83efxCXiwhHHFYz1MLX g0eYhegJ4tLxlJZK+mNFD3dFzJKEAd3J9SoDH/9oAIn53Utvyn4PPvcwD+x1HAPK /rGTNnQ46AY/pJAyYVYrJc7CmmKoLeahvpQIXyy3AuTAXxia9nES7nZ2TU6IjJ0c 8rVpln7d00vFsIEusVWrqyeCjuWXrq6/UbyCoS4sCteL0qSeOZIQnpjQv4b2asFn 3tdEljSIYz8DI17ISyfsjLGmiLHnA7XzNZFc1sFzHnV6Eaeg/tp+wfzBk+OihyPM /dlz5ociuAN6Evo35sSVrzrsP3+oOhr8gE+Xq3gwefAEVZBTunt91zshxEA0lYkB 8X35RyWVYjEMK8q7R1YoWfPOrMxWivIE46pWU13rNaAZg6q+vo9ZyA2HM6cdZS5L quJ5cjzFj/t7h7dbmHGylHZ43SMLGOBHENCOD/ebYlVPlBYDfeCN =B71n -----END PGP SIGNATURE----- --XN5yMNbl5yH0swQF--