Wolfgang Bumiller
8591b61ea4
genpackage: use strict and warnings
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-12-18 09:26:14 +01:00
Wolfgang Bumiller
24b9a0c268
bump d/control
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-11-03 13:29:37 +01:00
Wolfgang Bumiller
677cb08446
bump perlmod to 0.13.4-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-10-06 09:05:13 +02:00
Wolfgang Bumiller
d2b6ea3f12
test: expose setenv, unsetenv and use_safe_putenv
...
mostly for local leak testing with valgrind
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-10-05 13:39:16 +02:00
Wolfgang Bumiller
e780222ea7
add ffi::use_safe_putenv and glue for it
...
This causes changes to environment variables to leak instead of crash,
which is arguably better. This will be removed (and fixed) in perl
5.38.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-10-05 13:39:16 +02:00
Wolfgang Bumiller
b425032d53
buildsys: explicitly resolver 2
...
to shut up a warning
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-10-05 13:39:16 +02:00
Fabian Grünbichler
fd5490e460
build: update upload target
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-10-03 10:01:57 +02:00
Fabian Grünbichler
0d64d1093e
perlmod-macro: bump to 0.8.3
2023-10-03 08:36:28 +02:00
Wolfgang Bumiller
cb86559d13
update to syn-2
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-10-02 13:31:09 +02:00
Wolfgang Bumiller
b32c4fd40a
bump perlmod to 0.13.3-1 and perlmod-macro to 0.8.2-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-07-26 09:59:42 +02:00
Wolfgang Bumiller
4600b0779f
macro: move 'boot' call into the 'Once' section
...
This also means boot function call chains must not cause circular
dependencies at all without a way to mitigate this in code. If this
should ever be a problem, we can move it out again, but this should
rather not be necessary.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-07-26 09:58:01 +02:00
Wolfgang Bumiller
82b4d14ad3
macro: upgrade boot attribute to a full path
...
This is a lot more flexible than just a single ident.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-07-26 09:37:59 +02:00
Wolfgang Bumiller
e2d4ad4e96
macro: update docs
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-07-25 13:46:39 +02:00
Wolfgang Bumiller
d52abbde28
test 'boot' attribute
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-07-25 13:41:55 +02:00
Wolfgang Bumiller
1017735ad0
macro: add 'boot' attribute to packages
...
This is supposed to be a function executed after the 'boot' method has
finished registering the XS callbacks.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-07-25 13:40:43 +02:00
Wolfgang Bumiller
63fcccaa50
macro: allow calling boot fns with None as parameter
...
This allows using them from other modules for initialization.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-07-25 13:32:47 +02:00
Wolfgang Bumiller
b94cbb8f16
macro: ensure bootstrap functions happen only once
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-07-25 13:31:37 +02:00
Wolfgang Bumiller
7b22916567
add 'instantiate_magic_result' to allow error handling
...
The previous `instantiate_magic!` macro contained a '?' and thus tried
to return with an error. This is inconvenient when trying to work with
specific serialized error types.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-07-25 10:22:32 +02:00
Wolfgang Bumiller
5dbce0d3d3
bump perlmod to 0.13.2-1 and perlmod-macro to 0.8.1-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-05-10 10:18:11 +02:00
Wolfgang Bumiller
0339198faf
use workspace package variables
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-05-10 10:17:51 +02:00
Wolfgang Bumiller
9a4968f9e8
perlmod-bin package for pm file generation
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-05-10 10:11:51 +02:00
Wolfgang Bumiller
56bb74b196
add ability to set the errno value
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-05-02 14:43:47 +02:00
Wolfgang Bumiller
2aa0c70d0d
macro: add serialize_error attribute
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-05-02 11:45:20 +02:00
Wolfgang Bumiller
f381c740b4
macro: fix syntax error in non-result tuple case
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-05-02 10:41:32 +02:00
Wolfgang Bumiller
8d93a3de61
buildsys: make check should test test.pl output
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-05-02 10:41:32 +02:00
Wolfgang Bumiller
4b3ab550d2
bump d/control
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-04-25 10:00:15 +02:00
Wolfgang Bumiller
76f6a079eb
clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-12-09 11:24:34 +01:00
Wolfgang Bumiller
f8b49fc1be
clippy fixups
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-09-22 10:00:33 +02:00
Wolfgang Bumiller
02e4344e7e
clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-08-01 10:41:11 +02:00
Wolfgang Bumiller
be69408ca8
clippy fixups
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-10 11:54:10 +02:00
Wolfgang Bumiller
4d84aec490
clippy: don't explicitly drop args in generated code
...
While code seems to still compile, this was initially done
to explicitly get rid of potential borrows and doesn't seem
to be necessary anymore?
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-10 11:51:42 +02:00
Wolfgang Bumiller
218a1daf26
test: write modules at build time
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-03-29 10:55:41 +02:00
Wolfgang Bumiller
40d6ec96ea
bump perlmod to 0.13.1-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-03-25 15:47:13 +01:00
Wolfgang Bumiller
cac2982a8b
perlmod: expose ser::is_active
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-03-25 15:45:15 +01:00
Wolfgang Bumiller
f605d7cf0c
bump perlmod to 0.13.0-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-03-04 09:03:48 +01:00
Wolfgang Bumiller
cd69debd78
fix utf8 support in substr_from_str_slice
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-03-02 13:47:03 +01:00
Wolfgang Bumiller
c9ec592f3e
drop Result from substr_from_str_slice
...
and add `merge_str_slice` helper
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-03-02 12:46:48 +01:00
Wolfgang Bumiller
b61c34e6a7
bump perlmod to 0.12.2-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-03-01 15:17:24 +01:00
Wolfgang Bumiller
ff419b1922
allow string suffixes in substr_from_str_slice
...
the range check failed if the substr was a suffix due to the
range being exclusive on the end and end being the byte
after the last one
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-03-01 15:11:43 +01:00
Wolfgang Bumiller
73c3149eaa
bump perlmod to 0.12.1-1
...
while this is technically an API break this is new and
not-yet used and we're in the 0.x versions after all...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-03-01 14:43:01 +01:00
Wolfgang Bumiller
24ca477715
move substr_from_str_slice from ScalarRef to Scalar
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-03-01 14:41:27 +01:00
Wolfgang Bumiller
67c90f2d75
bump perlmod to 0.12.0-1 and perlmod-macro to 0.8.0-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-02-28 11:09:07 +01:00
Wolfgang Bumiller
68bc1c626f
update readme
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-02-28 11:09:07 +01:00
Wolfgang Bumiller
c15e1e1456
macro: add a write attribute to packages
...
the .pm file now gets written if either 'write=true' or
'file' is set, setting just 'lib' won't trigger a write
anymore
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-02-25 15:45:56 +01:00
Wolfgang Bumiller
08c14b8fc5
macro: rename boot symbol to boot_<module>
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-02-24 11:44:03 +01:00
Wolfgang Bumiller
daf4841996
macro: only write package files if requested
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-02-24 11:44:03 +01:00
Wolfgang Bumiller
a51cd47f9e
macro: drop span hack from error handling
...
copying the input doesn't seem to be required anymore
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-02-24 11:43:42 +01:00
Wolfgang Bumiller
cf751e2164
experimental access to defstash
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-02-24 11:43:42 +01:00
Wolfgang Bumiller
a43bf932c7
experimental direct substr support
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-02-24 11:43:33 +01:00
Wolfgang Bumiller
de0edd74e3
fix 'cv' type in test
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-02-22 12:50:45 +01:00