package/libcec: Fix reproducible builds
PATCH 1/1 package/libcec: Fix reproducible builds
Buildroot commit dcae760d1147e865b7a7073aa7e1190c3e43f4da bumped libcec to version 7.0.0 in -next branch. Due to upstream changes[1] included in this version bump our old method for reproducible builds got broken, the git version shown was extracted from the buildroot tree:
Quoting configure logs:
- unpatched package
-- lib info: git revision: 2025.02-rc1+129-a291649~dirty, compiled on 2025-03-09 07:43:36 by buildroot@localhost on Linux Linux (Linux), features: P8_USB, DRM, P8_detect
- adding "SOURCE_DATE_EPOCH=1" to _CONF_ENV following [1]
-- lib info: git revision: 2025.02-rc1+129-a291649~dirty, compiled on 1970-01-01 00:00:01 on Linux Linux (Linux), features: P8_USB, DRM, P8_detect
- DISABLE_BUILDINFO=ON
-- lib info: , features: P8_USB, DRM, P8_detect
[1] https://github.com/Pulse-Eight/libcec/commit/1cd2d1be8ca1d0baa0a4a184fd94a87895f28ce6
--- package/libcec/0001-all-remove_git_info.patch | 31 +++++++++++++++++++ package/libcec/libcec.mk | 6 ++-- 2 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 package/libcec/0001-all-remove_git_info.patch
package/libcec/0001-all-remove_git_info.patch new file +31 -0
@@ -0,0 +1,31 @@ +Add configure option DISABLE_BUILDINFO to disable most build infos. + +Fixes reproducible builds. + +Upstream: not applicable + +Downloaded from Kodi PR 26469 which updates an older Kodi-specific +patch to disable git infos in libcec: +https://github.com/xbmc/xbmc/pull/26469/files#diff-82014966bf69059c76c52a9a150c8763fef575a9395d820baafb047dbf57cfaa + +Signed-off-by: Bernd Kuhls <[email protected]> + +--- a/src/libcec/cmake/SetBuildInfo.cmake ++++ b/src/libcec/cmake/SetBuildInfo.cmake +@@ -12,7 +12,7 @@ + else() + # not Windows + set(LIB_INFO "") +- ++if(NOT DISABLE_BUILDINFO) + # add git revision to compile info + find_program(HAVE_GIT_BIN git /bin /usr/bin /usr/local/bin) + if(HAVE_GIT_BIN) +@@ -69,6 +69,6 @@ + + set(LIB_INFO "${LIB_INFO} on ${BUILD_SYSNAME} ${BUILD_SYSVER} (${BUILD_SYSARCH})") + endif() +- + endif() ++endif() +
package/libcec/libcec.mk +2 -4
@@ -38,9 +38,7 @@ LIBCEC_DEPENDENCIES += xlib_libXrandr endif # Disable information about how libCEC is compiled. -LIBCEC_CONF_OPTS += -DHAVE_GIT_BIN="" \ - -DHAVE_WHOAMI_BIN="" \ - -DHAVE_HOSTNAME_BIN="" \ - -DHAVE_UNAME_BIN="" +LIBCEC_CONF_OPTS += \ + -DDISABLE_BUILDINFO=ON $(eval $(cmake-package))
Signature · 6 lines
2.39.5 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot