GNOME Bugzilla – Bug 710069
pkcs11: fix racy build
Last modified: 2013-10-19 01:22:06 UTC
seahorse-pkcs11.h needs to be generated before attempting to compile libseahorse_pkcs11_la, but there's no mechanism in seahorse/pkcs11/Makefile.am to enforce this. Clean builds fail randomly. I am fairly confident the attached patch fixes the issue. Be careful if you want to look for a more elegant solution: I tried lots of other "fixes" before I hit on this one.
Created attachment 257197 [details] [review] pkcs11: fix racy build seahorse-pkcs11.h needs to be built before the files that include it are compiled. Unfortunately it is generated by valac, and there doesn't seem to be any simple way to tell this to Automake. But adding the Vala stamp file to BUILT_SOURCES tells it to compile the Vala before doing anything else, which is what we need.