-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkgconfig files have no version number #2329
Comments
All pkg-config files distributed by tpm2-tss do include a version field, e.g. Line 9 in 1ec41b4
What is the exact error message you see when running ./configure for one of the affected applications using tpm2-tss? And how did you obtain or build tpm2-tss?
|
I downloaded the 3.2.0 source tarball. After installation in my /usr/lib64/pkgconfig directory I get files like this prefix=/usr Name: tss2-mu The program said it found the dependency but didn't find the right version number to match required. The pkgconfig file showed no version number so I manually entered the version to fix the issue. This might not be an issue any more or just a fluke on my end but just wanted to make you aware of it. |
Ok, I think I got the problem. |
@AndreasFuchsSIT the release packages do not require a git repo, so I am assuming when @kermitdafrog8 downloaded the source tarball, that was the one generated by github. That one does not work. The solution is to always use the release tarballs. I wish Github would let me turn off that feature. We probably need to make sure this is documented somewhere. |
I guess the same is true, if you call bootstrap or autoconf on the release tarball (as per our instructions). |
Why not get the version number from the CHANGELOG? |
In my tarballs I didn't include bootstrap, so you would have to call autoconf directly which I don't think any of our instructions do.
|
parsing, no real need to add that complexity. If you just get the distribution tarball and run ./configure, it all just works. |
Because inbetween releases we do not update the CHANGELOG file but instead track changes in the github milestone. Did you however call autoreconf or use the github-source-tarball ? |
Still, do you know how to remove configure.ac from distfiles ? |
Duh, good point. git describe handles all of that. |
no idea |
Something like
This way |
This reverts commit ed13a65 as it has the following non trivial issues: - pkgconfig files have no version number if we run autoreconf (tpm2-software/tpm2-tss#2329) resulting in the following build failures with tpm2-{abrmd,pkcs11} or libsecret: configure: error: Package requirements (tss2-esys >= 2.0) were not met: Package dependency requirement 'tss2-esys >= 2.0' could not be satisfied. Package 'tss2-esys' has version '', required version is '>= 2.0' - addgroup/groupadd and adduser/useradd are mandatory since tpm2-software/tpm2-tss@7fde604: configure: error: addgroup or groupadd are needed. It seems better to find an upstreamable solution to both issues before bumping. Fixes: - http://autobuild.buildroot.org/results/d4d6807af3493deb47951c6f11f427040e5c5e11 - http://autobuild.buildroot.org/results/a304e45bacb8cd7e7ea9bc49e4a8ec9359ca0a3a - http://autobuild.buildroot.org/results/be0befa81e955ac8cf16f9d20723f9b9b174e012 - http://autobuild.buildroot.org/results/d4ebee400423f6df51613193c86db3c58c94ff88 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
+1 Yocto/OpenEmbedded always calls |
Actually, the |
That's fine, accomplishes the same task. Just make sure we add it to EXTRA_DIST so it gets rolled up into the release tarball. |
This way autoreconf can still be run on release tarballs (e.g. to apply patches to the build system) while preserving the version number. The tpm2-abrmd already uses this approach. Fixes: tpm2-software#2329 Signed-off-by: Petr Gotthard <petr.gotthard@centrum.cz>
This way autoreconf can still be run on release tarballs (e.g. to apply patches to the build system) while preserving the version number. The tpm2-abrmd already uses this approach. Fixes: tpm2-software#2329 Signed-off-by: Petr Gotthard <petr.gotthard@centrum.cz>
This way autoreconf can still be run on release tarballs (e.g. to apply patches to the build system) while preserving the version number. The tpm2-abrmd already uses this approach. Fixes: #2329 Signed-off-by: Petr Gotthard <petr.gotthard@centrum.cz>
This way autoreconf can still be run on release tarballs (e.g. to apply patches to the build system) while preserving the version number. The tpm2-abrmd already uses this approach. Fixes: #2329 Signed-off-by: Petr Gotthard <petr.gotthard@centrum.cz>
The pkgconfig files have no version number causing other applications not to detect proper version during configure process.
The text was updated successfully, but these errors were encountered: