Fix buildopts property not being initialized
This commit is contained in:
parent
cc3fe7a914
commit
e49fddbf8e
@ -0,0 +1,32 @@
|
||||
From 0039d41002629342e245d43350702b502aabe3f1 Mon Sep 17 00:00:00 2001
|
||||
From: Stephen Gallagher <sgallagh@redhat.com>
|
||||
Date: Fri, 22 Jun 2018 13:26:01 -0400
|
||||
Subject: [PATCH] Allocate Modulemd.props.buildopts at object creation
|
||||
|
||||
Resolves: https://github.com/fedora-modularity/libmodulemd/issues/72
|
||||
|
||||
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
|
||||
---
|
||||
modulemd/modulemd-module.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/modulemd/modulemd-module.c b/modulemd/modulemd-module.c
|
||||
index 9eb391a4ff82f4b1b2f660276cb3f46962f774b7..49c4818a9130c7af31d4abf0cbbb898f06d779a3 100644
|
||||
--- a/modulemd/modulemd-module.c
|
||||
+++ b/modulemd/modulemd-module.c
|
||||
@@ -3460,10 +3460,12 @@ modulemd_module_class_init (ModulemdModuleClass *klass)
|
||||
|
||||
static void
|
||||
modulemd_module_init (ModulemdModule *self)
|
||||
{
|
||||
/* Allocate the members */
|
||||
+ self->buildopts = modulemd_buildopts_new ();
|
||||
+
|
||||
self->buildrequires =
|
||||
g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
|
||||
|
||||
self->module_components =
|
||||
g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref);
|
||||
--
|
||||
2.17.1
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
Name: libmodulemd
|
||||
Version: %{majorminorversion}%{?patchversion:.%{patchversion}}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Module metadata manipulation library
|
||||
|
||||
License: MIT
|
||||
@ -22,7 +22,8 @@ BuildRequires: pkgconfig(gtk-doc)
|
||||
BuildRequires: python3-gobject-base
|
||||
|
||||
# Patches
|
||||
|
||||
# Address https://pagure.io/fedora-release/pull-request/145
|
||||
Patch0001: 0001-Allocate-Modulemd.props.buildopts-at-object-creation.patch
|
||||
|
||||
%description
|
||||
C Library for manipulating module metadata files.
|
||||
@ -71,6 +72,9 @@ export LC_CTYPE=C.utf8
|
||||
%{_datadir}/gtk-doc/html/modulemd/
|
||||
|
||||
%changelog
|
||||
* Fri Jun 22 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.5.1-2
|
||||
- Fix buildopts property not being initialized
|
||||
|
||||
* Tue Jun 19 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.5.1-1
|
||||
- Update to version 1.5.1
|
||||
- Re-enable build-time tests
|
||||
|
Loading…
Reference in New Issue
Block a user