Hi,
I am a fresh men of PVE developer. Recently I'm trying to build the debian package from proxmox source files, but some problems make me stop where I am now. I really hope someone can help me with this problem , thank U.
The problem what I just encounter was that, for example, first I use git to clone the source file,
and I get the binary file of 'pve-lxc-syscalld ' in the path 'target/release', then I just use the makefile to build the debian package, but failed. The out put was that
the content of Makefile was that:
And, I know the pve-lxc-syscalld was not in the repository of crates.io, so I failed. Is there any possible to use the pve-lxc-syscalld as a local crate. Thank U.
I am a fresh men of PVE developer. Recently I'm trying to build the debian package from proxmox source files, but some problems make me stop where I am now. I really hope someone can help me with this problem , thank U.
The problem what I just encounter was that, for example, first I use git to clone the source file,
Bash:
# git clone git://git.proxmox.com/git/pve-lxc-syscalld.git
# cd pve-lxc-syscalld
# cargo build --release
Bash:
# make deb
rm -rf build
debcargo package \
--config debian/debcargo.toml \
--changelog-ready \
--no-overlay-write-back \
--directory build \
pve-lxc-syscalld \
0.9.1
Updating crates.io index
Something failed: Couldn't find any crate matching pve-lxc-syscalld = 0.9.1
Try `debcargo update` to update the crates.io index.
make: *** [Makefile:58: build] Error 1
Bash:
55 .PHONY: build
56 build:
57 rm -rf build
58 debcargo package \
59 --config debian/debcargo.toml \
60 --changelog-ready \
61 --no-overlay-write-back \
62 --directory build \
63 pve-lxc-syscalld \
64 $(shell dpkg-parsechangelog -l debian/changelog -SVersion | sed -e 's/-.*//')
65 sed -e '1,/^$$/ ! d' build/debian/control > build/debian/control.src
66 cat build/debian/control.src build/debian/control.in > build/debian/control
67 rm build/debian/control.in build/debian/control.src
68 rm build/Cargo.lock
69 find build/debian -name "*.hint" -delete
70 echo system >build/rust-toolchain
71 $(foreach i,$(SUBDIRS), \
72 $(MAKE) -C build/$(i) clean
73
74 .PHONY: deb
75 deb: $(DEB)
76 $(DEB): build
77 cd build; dpkg-buildpackage -b -us -uc --no-pre-clean --build-profiles=nodoc
78 lintian $(DEB)
Last edited: