tpm2-tools icon indicating copy to clipboard operation
tpm2-tools copied to clipboard

The `tpm2_startup --version` command can't get the version when using the release tarball.

Open Jingshui1037 opened this issue 2 years ago • 1 comments

When I use the release tarball as the following to build and install tpm2-tools from the source codes.

wget https://github.com/tpm2-software/tpm2-tools/releases/download/4.1.1/tpm2-tools-4.1.1.tar.gz
tar -zxvf tpm2-tools-4.1.1.tar.gz
cd tpm2-tools-4.1.1
./bootstrap
./configure --prefix=/usr
make
make install

tpm2_startup --version command can't get the version.

image

While I git clone the repo, build and install the tpm2-tools from source codes, the tpm2_startup --version command can get the version.

git clone https://github.com/tpm2-software/tpm2-tools.git -b 4.1.1
cd tpm2-tools
./bootstrap
./configure --prefix=/usr
make
make install

In this way, tpm2_startup --version command can get the version like this

image

Jingshui1037 avatar Aug 22 '23 02:08 Jingshui1037

This was introduced by commit 2e8a07bc and got fixed in commit 794f2fcd (eg. version 5.3 and above)

rfs613 avatar Mar 18 '24 20:03 rfs613