This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch main
in repository engage.
View the commit online.
commit 00810b16519eea3d3d3a0b26b91a2618b1960333
Author: Alastair Poole <[email protected]>
AuthorDate: Tue Dec 1 01:52:54 2026 +0000
build: fix crash on E releases.
In release builds, adjacent one-bit flags can share a byte. In development builds, each of those unsigned char flags occupies a byte. That changes the offsets of later members, including ordinary pointers. e_macros.h
In the reproduced crash, Enlightenment 0.28.0 stored E_Client.desktop at 0x548, but Engage’s unpacked layout read it at 0x658. The staged flag makes Engage use 0x548 for that release.
---
meson.build | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meson.build b/meson.build
index 56fb5d2..4edf712 100644
--- a/meson.build
+++ b/meson.build
@@ -6,6 +6,11 @@ eldbus = dependency('eldbus')
math = meson.get_compiler('c').find_library('m', required: false)
xcb = dependency('xcb', required: false)
module_c_args = ['-DENGAGE_VERSION="@0@"'.format(meson.project_version())]
+# Release builds pack bitfields in public structs such as E_Client.
+enlightenment_release = enlightenment.get_variable(pkgconfig: 'release')
+if not enlightenment_release.startswith('dev-')
+ module_c_args += '-DE_RELEASE_BUILD=1'
+endif
if xcb.found()
module_c_args += '-DENGAGE_HAVE_XCB'
endif
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.