meta-openembedded/meta-oe/recipes-devtools/poke/poke_4.2.bb
Yoann Congal 39250b71d9 poke: Fix the reproducibility of installed scripts
Upstream does not support our default parallel "make -j install"[0]. So,
disable it with PARALLEL_MAKEINST = "-j1" to avoid non-reproducibility
where some scripts can be installed or not.

Explanation for the non-reproducibility:
There is a race condition between 2 actions at install around the
installed script in $pkgdatadir:
* Removal of existing scripts /usr/share/poke/*.pk
* Installation of default scripts in the same directory

Sadly, those 2 actions are not ordered. Depending on the build system
load, removal can (rarely) happen *after* the installation. In this
case, no script in present in /usr/share/poke/ when the install process
end.

[0]: https://sourceware.org/bugzilla/show_bug.cgi?id=32815#c1

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-24 20:59:08 -07:00

32 lines
1.2 KiB
BlitzBasic

SUMMARY = "GNU poke is an extensible editor for structured binary data"
HOMEPAGE = "https://pokology.org"
DESCRIPTION = "GNU poke is an interactive, extensible editor for binary data. Not limited to editing basic entities such as bits and bytes, it provides a full-fledged procedural, interactive programming language designed to describe data structures and to operate on them."
SECTION = "console/utils"
LICENSE = "GPL-3.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
SRC_URI = "${GNU_MIRROR}/poke/poke-${PV}.tar.gz \
file://0003-configure.ac-HELP2MAN-replace-by-true-when-cross-com.patch \
"
DEPENDS = "flex-native bison-native bdwgc readline"
SRC_URI[sha256sum] = "8aaf36e61e367a53140ea40e2559e9ec512e779c42bee34e7ac24b34ba119bde"
inherit autotools gettext pkgconfig
EXTRA_OECONF = "--disable-gui \
--disable-libnbd \
--with-libreadline-prefix=${STAGING_INCDIR} \
"
PACKAGECONFIG[mi] = "--enable-mi,--disable-mi,json-c"
PACKAGES =+ "${PN}-emacs ${PN}-vim"
# Disable parallel install as it is not supported upstream
PARALLEL_MAKEINST = "-j1"
FILES:${PN}-emacs += "${datadir}/emacs/site-lisp"
FILES:${PN}-vim += "${datadir}/vim/vimfiles"