Commit Graph

11 Commits

Author SHA1 Message Date
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
Ross Burton
77c1c65dcf poke: remove obsolete acpaths
As of "autotools: don't try and find in-tree macros" in core, acpaths is
no longer used.

Also switch to out-of-tree builds as this appear to work now.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2025-02-27 20:28:17 +00:00
Ross Burton
0708e38dd1 poke: enable out of tree builds 2025-02-27 20:28:16 +00:00
Wang Mingyu
25c2aa2773
poke: upgrade 4.1 -> 4.2
Changelog:
=============
* Bug fixes
  - Handle 'strdup' error correctly in mmap IO device.
  - Exclude unnamed fields when traversing struct types.  Fixes bug 31836.
  - Replace 'strtok' with 'strtok_r' in pkl-ast.
  - Fix the compiler to not accept invalid use of 'break'/'continue'
    statements.
  - Fix the compiler to emit the correct code for valid 'break'/'continue'
    statements in more unconventional cases.
  - Fix 'iogetb' to always produce a bit offset due to signature of
    'iobias' function.
  - Fix 'pkl_loc_to_source' to handle compilation from buffer correctly.
  - Fix use of 'assert' function in parser.
* Improvements
  - Diagnostics for invalid casts has been improved.
  - Improve diagnostics of '.ios' command.
* Build system update
  - Handle execution errors for 'pokefmt' tests.
* Pickles update
  - 'diff_structured' function in 'diff' pickle has been fixed to detect
    "simple types" correctly (types that have value semantics instead of
    reference semantics).
* Documentation update
  - Update reference manual to use '.vm disa' as short name for
    '.vm disassemble' instead of '.vm dis'.
* Internal changes
  - Internal machinery for compiler builtins has been removed.  These were
    no longer necessary.
* Jitter update
  - Update jitter submodule to incorporate a fix for 'configure' portability
    issue on some old systems.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-07-15 16:36:12 -07:00
Wang Mingyu
cf61a35fd7
poke: upgrade 4.0 -> 4.1
Changelog:
============
- Invalid memory access in 'pkl_do_pass_1' has been fixed.
- Access to possibly-uninitialized variable in IOS has been fixed.
- In error reporting, poke no longer crashes when the input is not
  seekable.
- Use of 'break'/'continue' in EXCOND operator's compound statement
  has been fixed to not crash the poke.
- 'pokefmt' now has a man page.
- Execution speed of 'pk-jojopatch' has been improved by disabling
  auto-remap feature.
- Variable 'poke_interactive_p' is now documented in the manual.
- Update jitter submodule to incorporate minor documentation update
  and a workaround for an Automake bug.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-06-07 09:12:00 -07:00
Khem Raj
6ce8cef7e7
poke: Upgrade to 4.0
- Drop patches not needed anymore
- Package vim and emacs files into package of their own

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-19 08:28:00 -07:00
Martin Jansa
be8c765c7c *.patch: add Upstream-Status to all patches
There is new patch-status QA check in oe-core:
https://git.openembedded.org/openembedded-core/commit/?id=76a685bfcf927593eac67157762a53259089ea8a

This is temporary work around just to hide _many_ warnings from
optional patch-status (if you add it to WARN_QA).

This just added
Upstream-Status: Pending
everywhere without actually investigating what's the proper status.

This is just to hide current QA warnings and to catch new .patch files being
added without Upstream-Status, but the number of Pending patches is now terrible:

5 (26%) 	meta-xfce
6 (50%) 	meta-perl
15 (42%)        meta-webserver
21 (36%)        meta-gnome
25 (57%)        meta-filesystems
26 (43%)        meta-initramfs
45 (45%)        meta-python
47 (55%)        meta-multimedia
312 (63%)       meta-networking
756 (61%)       meta-oe

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-21 09:15:20 -07:00
Khem Raj
14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Romain Naour
a0f8491b49 poke: add optional json-c dependency
From [1]:
"The poke machine-interface uses a protocol to communicate with
clients, which is based on JSON.  poke uses the json-c library to
parse and build JSON strings.
If this library is not found, poke will build without machine-interface
support."

[1] https://git.savannah.nongnu.org/cgit/poke.git/tree/DEPENDENCIES?h=releases/poke-1.2#n55

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-05 17:41:38 -07:00
Romain Naour
e17e159d93 poke: add recipe for version 1.2
Backport a patch to disable tcl/tk dependencies when gui support
is disabled.

Add a local patch to workaround a path poisoning issue. Issue
reported upstream.

Add another local patch when HELP2MAN is missing.

See:
http://www.jemarch.net/poke-1.0-relnotes.html
http://www.jemarch.net/poke-1.1-relnotes.html
http://www.jemarch.net/poke-1.2-relnotes.html

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-05 17:41:38 -07:00