git: 7ece9bd58fe3 - 2023Q4 - multimedia/assimp: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 Oct 2023 07:10:34 UTC
The branch 2023Q4 has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7ece9bd58fe3a57952c3a97bc28323b0ff7bdbd6
commit 7ece9bd58fe3a57952c3a97bc28323b0ff7bdbd6
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-10-16 03:34:55 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-10-19 07:10:08 +0000
multimedia/assimp: fix build on armv7
Mark a union within a packed struct as packed to avoid an alignment
warning.
Approved by: portmgr (build fix blanket)
MFH: 2023Q4
(cherry picked from commit 5dc8b93cd9c03026e72c5581af296c012c0b1116)
---
multimedia/assimp/files/patch-code_AssetLib_MDL_MDLFileData.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/multimedia/assimp/files/patch-code_AssetLib_MDL_MDLFileData.h b/multimedia/assimp/files/patch-code_AssetLib_MDL_MDLFileData.h
new file mode 100644
index 000000000000..334f12063fbd
--- /dev/null
+++ b/multimedia/assimp/files/patch-code_AssetLib_MDL_MDLFileData.h
@@ -0,0 +1,11 @@
+--- code/AssetLib/MDL/MDLFileData.h.orig 2023-10-16 03:31:18 UTC
++++ code/AssetLib/MDL/MDLFileData.h
+@@ -603,7 +603,7 @@ struct Vertex_MDL7
+ union {
+ uint8_t norm162index;
+ float norm[3];
+- };
++ } PACK_STRUCT;
+ } PACK_STRUCT;
+
+ // -------------------------------------------------------------------------------------