[packages/mbr] - fix compilation errors for the harness tool
baggins
baggins at pld-linux.org
Sun May 10 10:46:49 CEST 2026
commit d5859e1f6969facd883cfc300d64a6ec289b756f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun May 10 12:46:29 2026 +0200
- fix compilation errors for the harness tool
disable-bounds-checks.patch | 13 +++++++++++++
mbr.spec | 2 ++
2 files changed, 15 insertions(+)
---
diff --git a/mbr.spec b/mbr.spec
index 617e9d6..fed499c 100644
--- a/mbr.spec
+++ b/mbr.spec
@@ -8,6 +8,7 @@ Source0: http://www.chiark.greenend.org.uk/~neilt/mbr/%{name}-%{version}.tar.gz
# Source0-md5: 4e406ded185f94c2d2bf5fc793ac1842
URL: http://www.chiark.greenend.org.uk/~neilt/mbr/
Patch0: %{name}-misleading-indentation.patch
+Patch1: disable-bounds-checks.patch
BuildRequires: bin86
ExclusiveArch: %{ix86} %{x8664} x32
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -18,6 +19,7 @@ Master Boot Record for IBM-PC compatible computers.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
%build
%configure
diff --git a/disable-bounds-checks.patch b/disable-bounds-checks.patch
new file mode 100644
index 0000000..c46dbed
--- /dev/null
+++ b/disable-bounds-checks.patch
@@ -0,0 +1,13 @@
+--- mbr-1.1.11/harness/bios.c~ 2026-05-10 12:40:11.000000000 +0200
++++ mbr-1.1.11/harness/bios.c 2026-05-10 12:40:41.183350762 +0200
+@@ -339,7 +339,10 @@
+ void set_shift_state (unsigned long state)
+ {
+ unsigned char *flag = (void*)0x417;
++#pragma GCC diagnostic ignored "-Warray-bounds="
++#pragma GCC diagnostic ignored "-Wstringop-overflow="
+ *flag = state;
++#pragma GCC diagnostic pop
+ }
+
+ /*
*/
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mbr.git/commitdiff/d5859e1f6969facd883cfc300d64a6ec289b756f
More information about the pld-cvs-commit
mailing list