[pve-devel] trying to build buster packages: circular build depend between pve-cluster && pve-access-control/

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Jun 7 09:40:57 CEST 2019


Hi,

On 6/7/19 9:28 AM, Alexandre DERUMIER wrote:
> Hi, I'm trying to build buster packages,
> 
> and
> 
> pve-cluster
> ------------
> Can't locate PVE/RPCEnvironment.pm in @INC (you may need to install the PVE::RPCEnvironment module) (@INC contains: .. . /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ../PVE/CLI/pvecm.pm line 12.
> BEGIN failed--compilation aborted at ../PVE/CLI/pvecm.pm line 12.
> 
> (PVE/RPCEnvironment.pm is in pve-access-control)
> 
> 
> pve-access-control
> ------------------
> Can't locate PVE/Cluster.pm in @INC (you may need to install the PVE::Cluster module) (@INC contains: . /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at PVE/CLI/pveum.pm line 7.
> 
> 
> 
> Do you have a proper build method for this ?

Yes, that's our only real left over dependency..

What I do on bootstrapping is setting ther PERLDIR environment variable
in such a way that it points to the repos path where the "PVE" folder of
access-control is located, and then build cluster, e.g.:

export PERL5LIB=/home/tom/sources/pve/pve-access-control/

A hacky way would be running "make install" as root in that folder, thus
circumventing the package system and installing directly, but that's not
to tidy.




More information about the pve-devel mailing list