The problem is that you cannot be sure which patches
were applied on top of a source tree, so the __nm_git_sha
value is unreliable.
Also, after running autoreconf during the package build,
NM_GIT_SHA is reset as well.
#include "nm-setting-wired.h"
#include "nm-setting-wireless.h"
-/* Embed the commit id in the build binary */
-static const char *const __nm_git_sha = NM_STRLEN (NM_GIT_SHA) > 0 ? "NM_GIT_SHA:"NM_GIT_SHA : "";
-
/**
* SECTION:nm-utils
* @short_description: Utility functions
GModule *self;
gpointer func;
- (void) __nm_git_sha;
-
if (initialized)
return;
initialized = TRUE;
#include "nm-setting-private.h"
#include "crypto.h"
-/* Embed the commit id in the build binary */
-static const char *const __nm_git_sha = NM_STRLEN (NM_GIT_SHA) > 0 ? "NM_GIT_SHA:"NM_GIT_SHA : "";
-
/**
* SECTION:nm-utils
* @short_description: Utility functions
gboolean
nm_utils_init (GError **error)
{
- (void) __nm_git_sha;
-
if (!initialized) {
initialized = TRUE;