[lustre-devel] sanity-hsm and libtool

Oleg Drokin green at whamcloud.com
Mon Jul 22 18:40:48 PDT 2019


>> I concur : I cannot run sanity-hsm on master. Works fine when checking out the commit right before the libtool patch , breaks if the patch
>> is applied.
>> 
>> With some testing it appears this is because "libtool execute" does does not use the PATH environment variable when it resolves paths :
>> 
>> $> pwd
>> /home/user/lustre-release
>> $> export PATH=lustre/utils:/usr/bin
>> $> which lhsmtool_posix
>> /home/user/lustre-release/lustre/utils/lhsmtool_posix
>> $> libtool execute echo lhsmtool_posix
>> lhsmtool_posix
>> $> libtool execute echo lustre/utils/lhsmtool_posix
>> /home/user/lustre-release/luster/utils/.libs/lhsmtool_posix
>> 
>> I suspect this works on Maloo because Maloo does not run tests from the git repo but rather from installed rpms (=> no libtool wrappers).
>> 
>> @James, I can see you asked me a follow-up review on the patch that introduces this regressions, and I did not answer, Sorry about that. I
>> will try to keep better track of patches I reviewed at least once... In this spirit, I will try to update my review of this change this
>> weekend. =)
> 
> This is strange since Oleg does his testing in the lustre source tree 
> directly. I would think he would have encounter this issue. I need 
> to looking how libtool does its path searches.

I build with configure --disable-shared to sidestep this issue.


More information about the lustre-devel mailing list