diff options
| -rw-r--r-- | meta-oe/recipes-support/farsight/libnice/0001-agent-meson-Replace-filename-with-basename.patch | 40 | ||||
| -rw-r--r-- | meta-oe/recipes-support/farsight/libnice_0.1.21.bb | 3 |
2 files changed, 42 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/farsight/libnice/0001-agent-meson-Replace-filename-with-basename.patch b/meta-oe/recipes-support/farsight/libnice/0001-agent-meson-Replace-filename-with-basename.patch new file mode 100644 index 0000000000..897de4a6ce --- /dev/null +++ b/meta-oe/recipes-support/farsight/libnice/0001-agent-meson-Replace-filename-with-basename.patch | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | From 7c510cd20bb443064ab4a0d2c6d917e807b2671b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 22 May 2023 19:45:28 -0700 | ||
| 4 | Subject: [PATCH] agent/meson: Replace filename with basename | ||
| 5 | |||
| 6 | This avoids emitting absolute paths into generated sourcecode, it | ||
| 7 | improves reproducibility. See [1] | ||
| 8 | |||
| 9 | [1] https://developer-old.gnome.org/gobject/stable/glib-mkenums.html | ||
| 10 | |||
| 11 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/libnice/libnice/-/merge_requests/258] | ||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | agent/meson.build | 4 ++-- | ||
| 15 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/agent/meson.build b/agent/meson.build | ||
| 18 | index 2e5b272..44fcd6b 100644 | ||
| 19 | --- a/agent/meson.build | ||
| 20 | +++ b/agent/meson.build | ||
| 21 | @@ -29,14 +29,14 @@ gnome = import('gnome') | ||
| 22 | |||
| 23 | agent_enum_types_c = gnome.mkenums('agent-enum-types.c', sources : agent_headers, | ||
| 24 | fhead: '#include <config.h>\n#include <glib-object.h>\n#include "agent.h"\n#include "pseudotcp.h"\n#include "agent-enum-types.h"', | ||
| 25 | - fprod: '\n/* enumerations from "@filename@" */', | ||
| 26 | + fprod: '\n/* enumerations from "@basename@" */', | ||
| 27 | vhead: 'GType\n@enum_name@_get_type (void)\n{\n static GType type = 0;\n if (!type) {\n static const G@Type@Value values[] = {', | ||
| 28 | vprod: ' { @VALUENAME@, "@VALUENAME@", "@valuenick@" },', | ||
| 29 | vtail: ' { 0, NULL, NULL }\n };\n type = g_@type@_register_static ("@EnumName@", values);\n }\n return type;\n}\n\n') | ||
| 30 | |||
| 31 | agent_enum_types_h = gnome.mkenums('agent-enum-types.h', sources : agent_headers, | ||
| 32 | fhead: '#ifndef __AGENT_ENUM_TYPES_H__\n#define __AGENT_ENUM_TYPES_H__ 1\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n', | ||
| 33 | - fprod: '/* enumerations from "@filename@" */\n', | ||
| 34 | + fprod: '/* enumerations from "@basename@" */\n', | ||
| 35 | vhead: 'GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define NICE_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n', | ||
| 36 | ftail: 'G_END_DECLS\n\n#endif /* !AGENT_ENUM_TYPES_H */') | ||
| 37 | |||
| 38 | -- | ||
| 39 | 2.40.1 | ||
| 40 | |||
diff --git a/meta-oe/recipes-support/farsight/libnice_0.1.21.bb b/meta-oe/recipes-support/farsight/libnice_0.1.21.bb index 210d4d8228..f319b994bd 100644 --- a/meta-oe/recipes-support/farsight/libnice_0.1.21.bb +++ b/meta-oe/recipes-support/farsight/libnice_0.1.21.bb | |||
| @@ -8,7 +8,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=9c42325015702feda4f4d2f19a55b767 \ | |||
| 8 | file://COPYING.MPL;md5=3c617710e51cdbe0fc00716f056dfb1a \ | 8 | file://COPYING.MPL;md5=3c617710e51cdbe0fc00716f056dfb1a \ |
| 9 | " | 9 | " |
| 10 | 10 | ||
| 11 | SRC_URI = "http://nice.freedesktop.org/releases/libnice-${PV}.tar.gz" | 11 | SRC_URI = "http://nice.freedesktop.org/releases/libnice-${PV}.tar.gz \ |
| 12 | file://0001-agent-meson-Replace-filename-with-basename.patch" | ||
| 12 | SRC_URI[sha256sum] = "72e73a2acf20f59093e21d5601606e405873503eb35f346fa621de23e99b3b39" | 13 | SRC_URI[sha256sum] = "72e73a2acf20f59093e21d5601606e405873503eb35f346fa621de23e99b3b39" |
| 13 | 14 | ||
| 14 | DEPENDS = "glib-2.0 gnutls" | 15 | DEPENDS = "glib-2.0 gnutls" |
