pve: load SslProbe in Proxmox/Lib/PVE.pm

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2023-12-07 09:51:02 +01:00
parent 86706cc049
commit 16c41f1a91
3 changed files with 12 additions and 3 deletions

4
pve-rs/Fixup.pm Normal file
View File

@ -0,0 +1,4 @@
# BEGIN Fixup.pm
# This is prepended to the current PMG.pm to force-include the temporary `openssl-probe` fixup.
use Proxmox::Lib::SslProbe;
# END Fixup.pm

View File

@ -45,9 +45,10 @@ all: PVE
's@^sub libdirs.*$$@sub libdirs { return ("./target/$(TARGET_DIR)", "./../target/$(TARGET_DIR)"); }@' \
Proxmox/Lib/PVE.pm >test/Proxmox/Lib/PVE.pm
PVE: Proxmox/Lib/PVE.pm
Proxmox/Lib/PVE.pm:
Proxmox PVE: Proxmox/Lib/PVE.pm
Proxmox/Lib/PVE.pm: Fixup.pm
$(PERLMOD_GENPACKAGE) $(PERLMOD_PACKAGES)
sed -i -e '/package Proxmox/rFixup.pm' Proxmox/Lib/PMG.pm
check: all
$(MAKE) -C test test
@ -62,6 +63,7 @@ install: target/release/libpve_rs.so Proxmox/Lib/PVE.pm PVE
find $(PM_DIR) \! -type d -print -exec install -Dm644 '{}' $(DESTDIR)$(PERL_INSTALLVENDORLIB)'/{}' ';'
clean:
rm -rf PVE Proxmox
cargo clean
rm -f *.deb *.dsc *.tar.* *.build *.buildinfo *.changes Cargo.lock
rm -rf $(PACKAGE)-[0-9]*/

View File

@ -45,7 +45,10 @@ Rules-Requires-Root: no
Package: libpve-rs-perl
Architecture: any
Depends: ${misc:Depends}, ${perl:Depends}, ${shlibs:Depends},
Depends: ${misc:Depends},
${perl:Depends},
${shlibs:Depends},
libproxmox-rs-perl (>= 0.3.3),
Breaks: libpve-access-control (<< 7.1-3),
libpve-common-perl (<< 7.1-4),
pve-manager (<< 7.1-11),