gpg-error-config and gpgme-config are deprecated to prefer pkg-config (or gpgrt-config).
Still in GPGME, python binding build uses them. Let us move to pkg-config, instead.
gpg-error-config and gpgme-config are deprecated to prefer pkg-config (or gpgrt-config).
Still in GPGME, python binding build uses them. Let us move to pkg-config, instead.
rM GPGME | |||
rMf1802682c3c8 python: Fix configure generating setup.py. | |||
rMae9258fbf3b9 build:python: Don't use gpg-error-config/gpgme-config. |
Status | Assigned | Task | ||
---|---|---|---|---|
Resolved | • gniibe | T5683 Deprecation of gpg-error-config | ||
Resolved | • gniibe | T6204 gpgme:python Fix setup.py, using pkg-config (not deprecated gpg-error-config and gpgme-config) |
Reviewing the build process, it's just better to use @...VAR...@ by configure (instead of invoke pkg-config again in setup.py).
Pushed the fix.
Note that non-in-tree build never been reliable (using the result of the configure, in tree).
So, I basically don't consider the use case of non-in-tree build.
Hello,
the pushed fix breaks when libgpg-error does not require special CFLAGS, i.e. when @GPG_ERROR_CFLAGS@ expands to an empty string:
running build gcc: warning: : linker input file unused because linking not done gcc: error: : linker input file not found: No such file or directory Using gpgme.h from ../../src/gpgme.h [...] File "/usr/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['gcc', '-E', '', 'python3.10-gpg/include1.h']' returned non-zero exit status 1.
cu Andreas
@ametzler1 Thank you. That was because of my bad fix.
Fixed in rMf1802682c3c8: python: Fix configure generating setup.py.