[pve-devel] [PATCH proxmox-perl-rs 6/6] Add some dev tips to a README

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Nov 9 12:26:55 CET 2021


Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 README.md | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 README.md

diff --git a/README.md b/README.md
new file mode 100644
index 0000000..d2dcb94
--- /dev/null
+++ b/README.md
@@ -0,0 +1,13 @@
+# Hints for development:
+
+With the current perlmod, the `.pm` files don't actually change anymore, since the exported method
+setup is now handled by the bootstrap rust-function generated by perlmod, so for quicker debugging,
+you can just keep the installed `.pm` files from the package and simply link the library to the
+debug one like so:
+
+NOTE: You may need to adapt the perl version number in this path:
+```
+# ln -sf $PWD/target/debug/libpve_rs.so /usr/lib/x86_64-linux-gnu/perl5/5.32/auto/libpve_rs.so
+```
+
+Then just restart pvedaemon/pveproxy after running `make pve`.
-- 
2.30.2






More information about the pve-devel mailing list