From: Laurent Cheylus Subject: Re: devel/uv: "fix" xonly issue on amd64 To: Theo Buehler Cc: ports@openbsd.org Date: Fri, 10 Apr 2026 15:48:39 +0200 Hi Theo, ----- Mail original ----- > As jtt found when testing my zizmor port, aws-lc-sys is not xonly > clean on amd64 and the s2n asm needs a lot of patching nowadays: > > https://github.com/awslabs/s2n-bignum/pull/242 > > The funny thing is that I was aware of this at some point since I > wrote patches for deno, but I completely forgot. I guess I'm getting old... > > Anyway: take the easy way out and use noexeconly on amd64. arm64 is > fine and there's currently no riscv64 asm. > > Repro on modern enough amd64 (needs PKU in the cpu0 line): > $ mkdir test && cd test && uv init && uv add kyber # segfault OK after rebuild on current/amd64 for uv version 0.11.6 (patch for this new version attached) with your fix + tests. Thanks for the fix of this crash with uv. Laurent Index: Makefile =================================================================== RCS file: /cvs/ports/devel/uv/Makefile,v diff -u -p -r1.28 Makefile --- Makefile 9 Apr 2026 11:41:52 -0000 1.28 +++ Makefile 10 Apr 2026 13:43:53 -0000 @@ -1,9 +1,15 @@ # ring-v0.17 does not support this arch NOT_FOR_ARCHS = sparc64 +# aws-lc-sys 0.36 has constants in .text +# https://github.com/awslabs/s2n-bignum/pull/242 +.if ${MACHINE_ARCH} == "amd64" +USE_NOEXECONLY = Yes +.endif + COMMENT = Python package and project manager -MODPY_DISTV = 0.11.5 +MODPY_DISTV = 0.11.6 GH_ACCOUNT = astral-sh GH_PROJECT = uv GH_TAGNAME = ${MODPY_DISTV} Index: distinfo =================================================================== RCS file: /cvs/ports/devel/uv/distinfo,v diff -u -p -r1.26 distinfo --- distinfo 9 Apr 2026 11:41:52 -0000 1.26 +++ distinfo 10 Apr 2026 13:43:54 -0000 @@ -691,7 +691,7 @@ SHA256 (cargo/zune-jpeg-0.5.13.tar.gz) = SHA256 (cargo/zvariant-5.10.0.tar.gz) = VwgpmyGQO740jpRynyLEnFXQRyCgBKo1Dx+cEi/SVAs= SHA256 (cargo/zvariant_derive-5.10.0.tar.gz) = W1mwEuvpxGZW+cwI2NqLTHJlEK7xJVnaPl8b9yeAdSw= SHA256 (cargo/zvariant_utils-3.3.0.tar.gz) = 91wjpk749A8TppiZkeZDVU2b7x1oKigRYM8MG8OJxek= -SHA256 (uv-0.11.5.tar.gz) = C3vwccwNtRH0EjGHALeF8BF2qBJBdJzx7rLDkcLKROE= +SHA256 (uv-0.11.6.tar.gz) = MbMY8xdO+o+MYXlDOp3fvt+olasrn7HKuxvXzl/oSQo= SIZE (cargo/adler2-2.0.1.tar.gz) = 13366 SIZE (cargo/aes-0.8.4.tar.gz) = 124812 SIZE (cargo/aho-corasick-1.1.4.tar.gz) = 184015 @@ -1385,4 +1385,4 @@ SIZE (cargo/zune-jpeg-0.5.13.tar.gz) = 8 SIZE (cargo/zvariant-5.10.0.tar.gz) = 93150 SIZE (cargo/zvariant_derive-5.10.0.tar.gz) = 16592 SIZE (cargo/zvariant_utils-3.3.0.tar.gz) = 15417 -SIZE (uv-0.11.5.tar.gz) = 5200922 +SIZE (uv-0.11.6.tar.gz) = 5211342