From patchwork Mon Oct 6 15:32:37 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 9172 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R13" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4cgNZH5ktXz3wb0 for ; Mon, 06 Oct 2025 15:32:55 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [IPv6:2001:678:b28::201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail02.haj.ipfire.org", Issuer "E8" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4cgNZH293Fz3xL for ; Mon, 06 Oct 2025 15:32:55 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4cgNZH1SSTz32g4 for ; Mon, 06 Oct 2025 15:32:55 +0000 (UTC) X-Original-To: development@lists.ipfire.org Received: from mail01.ipfire.org (mail01.haj.ipfire.org [IPv6:2001:678:b28::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R13" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4cgNZD4g3lz2xMF for ; Mon, 06 Oct 2025 15:32:52 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (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) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4cgNZB44M4z3st; Mon, 06 Oct 2025 15:32:50 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1759764770; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=AvzK0WkcjBpPBgzOSUGYeEKduocLAt/kE3VFYamOUqM=; b=AQ/TjdNHurIQKMGhVmqE1ZP/K9Ywwtaw22k6gliVWdwEczfX3r18ARKUeBnCnLodBQdYBz uOxVW9D4v7YIVrAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1759764770; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=AvzK0WkcjBpPBgzOSUGYeEKduocLAt/kE3VFYamOUqM=; b=HfwF0522KleBocOJZfEnBh8XsbcDlkR2SwPwUl6XCM7EFCZX04XblnWn79bkJjk13idjI4 rTphInPe0fmlLSjgPk7y+s5Lxhes47cwDlcArALQ78drh4UkSlH7pHsClWwpnVZ04nfWU6 eL6yrK45AJqGOSFnXSj41EZEw5U6h7I+Un/VqQH63chg6wT0ZVn2brdWdKFkuc1QaxUNPv N2vAAGgcTS7Aym5Vn4RLA4auKvNbf4TEoQxv382WF8HGq8y6I0wgmbOnWJ3Z/5+7c2Vua1 rgWU3/tclqFnvVIDXOp5c9WdLB/Gg/LrnDkgQGCf5fCC0+alF21q22xjkMQUNA== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH] nasm: Add patch fix for typo in le32toh function name Date: Mon, 6 Oct 2025 17:32:37 +0200 Message-ID: <20251006153237.2443560-1-adolf.belka@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 - nasm failed to build with aarch64 due to a typo in the 3.00 source tarball where l32toh had been written in bytesex.h instead of le32toh - This patch includes the fix for that. The applied patch will be able to be removed when the next release after 3.00 is issued. - Tested the build on the aarch64 builder and nasm successfully built with the patch applied. - Update of rootfile not required Signed-off-by: Adolf Belka --- lfs/nasm | 1 + ...00_fix_typo_in_le32toh_function_name.patch | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/patches/nasm-3.00_fix_typo_in_le32toh_function_name.patch diff --git a/lfs/nasm b/lfs/nasm index daeb44535..bd56757d9 100644 --- a/lfs/nasm +++ b/lfs/nasm @@ -70,6 +70,7 @@ $(subst %,%_BLAKE2,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/nasm-3.00_fix_typo_in_le32toh_function_name.patch cd $(DIR_APP) && ./configure \ --prefix=/usr cd $(DIR_APP) && make $(MAKETUNING) diff --git a/src/patches/nasm-3.00_fix_typo_in_le32toh_function_name.patch b/src/patches/nasm-3.00_fix_typo_in_le32toh_function_name.patch new file mode 100644 index 000000000..3b198b2d8 --- /dev/null +++ b/src/patches/nasm-3.00_fix_typo_in_le32toh_function_name.patch @@ -0,0 +1,20 @@ +--- nasm-3.00/include/bytesex.h.orig 2025-10-03 21:41:41.000000000 +0200 ++++ nasm-3.00/include/bytesex.h 2025-10-06 15:03:06.434849426 +0200 +@@ -215,7 +215,7 @@ + } __attribute__((packed)); + static inline uint32_t getu32(const void *p) + { +- return l32toh(((const struct unaligned32 *)p)->v); ++ return le32toh(((const struct unaligned32 *)p)->v); + } + static inline uint32_t setu32(void *p, uint32_t v) + { +@@ -253,7 +253,7 @@ + static inline uint32_t getu32(const void *p) + { + const uint32_t _unaligned *pp = p; +- return l32toh(*pp); ++ return le32toh(*pp); + } + static inline uint32_t setu32(void *p, uint32_t v) + {