mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-23 06:10:44 +01:00
build: drop internal field __nm_git_sha from libraries
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.
This commit is contained in:
parent
3b6fc5cbda
commit
5f83ef9925
2 changed files with 0 additions and 10 deletions
|
|
@ -45,9 +45,6 @@
|
|||
#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
|
||||
|
|
@ -223,8 +220,6 @@ _nm_utils_init (void)
|
|||
GModule *self;
|
||||
gpointer func;
|
||||
|
||||
(void) __nm_git_sha;
|
||||
|
||||
if (initialized)
|
||||
return;
|
||||
initialized = TRUE;
|
||||
|
|
|
|||
|
|
@ -37,9 +37,6 @@
|
|||
#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
|
||||
|
|
@ -234,8 +231,6 @@ static gboolean initialized = FALSE;
|
|||
gboolean
|
||||
nm_utils_init (GError **error)
|
||||
{
|
||||
(void) __nm_git_sha;
|
||||
|
||||
if (!initialized) {
|
||||
initialized = TRUE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue