public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Matthias Clasen <mclasen@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/glib2] cve-2026-58016-f44: fix headers
Date: Tue, 11 Aug 2026 10:35:03 GMT [thread overview]
Message-ID: <178644450358.1.16761581339190436735.rpms-glib2-82360d4174aa@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/glib2
Branch : cve-2026-58016-f44
Commit : 82360d4174aa5c7bce12a50e0ffdb6b3e2de3d9b
Author : Matthias Clasen <mclasen@redhat.com>
Date : 2012-01-17T22:34:03-05:00
Stats : +20/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/glib2/c/82360d4174aa5c7bce12a50e0ffdb6b3e2de3d9b?branch=cve-2026-58016-f44
Log:
fix headers
---
diff --git a/glib-mscver.patch b/glib-mscver.patch
new file mode 100644
index 0000000..5036844
--- /dev/null
+++ b/glib-mscver.patch
@@ -0,0 +1,12 @@
+diff -up glib-2.31.10/glib/gmacros.h.mscver glib-2.31.10/glib/gmacros.h
+--- glib-2.31.10/glib/gmacros.h.mscver 2012-01-17 22:31:58.016213434 -0500
++++ glib-2.31.10/glib/gmacros.h 2012-01-17 22:32:36.884214017 -0500
+@@ -343,7 +343,7 @@
+ #define G_DEFINE_CONSTRUCTOR(_func) static void __attribute__((constructor)) _func (void);
+ #define G_DEFINE_DESTRUCTOR(_func) static void __attribute__((destructor)) _func (void);
+
+-#elif _MSC_VER >= 1500
++#elif defined(_MSC_VER) && (_MSC_VER >= 1500)
+ /* Visual studio 2008 and later has _Pragma */
+
+ #define G_HAS_CONSTRUCTORS 1
diff --git a/glib2.spec b/glib2.spec
index 9c51563..95f28eb 100644
--- a/glib2.spec
+++ b/glib2.spec
@@ -3,13 +3,16 @@
Summary: A library of handy utility functions
Name: glib2
Version: 2.31.10
-Release: 1%{?dist}
+Release: 2%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.gtk.org
#VCS: git:git://git.gnome.org/glib
Source: http://download.gnome.org/sources/glib/2.31/glib-%{version}.tar.xz
+# upstream fix
+Patch0: glib-mscver.patch
+
BuildRequires: pkgconfig
BuildRequires: gamin-devel
BuildRequires: gettext
@@ -57,6 +60,7 @@ The glib2-static package includes static libraries of the GLib library.
%prep
%setup -q -n glib-%{version}
+%patch0 -p1
%build
# Support builds of both git snapshots and tarballs packed with autogoo
@@ -160,6 +164,9 @@ gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules
%changelog
+* Tue Jan 17 2012 Matthias Clasen <mclasen@redhat.com> 2.31.10-2
+- Fix a header problem that was causing build failures
+
* Mon Jan 16 2012 Matthias Clasen <mclasen@redhat.com> - 2.31.10-1
- Update to 2.31.10
reply other threads:[~2026-08-11 10:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178644450358.1.16761581339190436735.rpms-glib2-82360d4174aa@fedoraproject.org \
--to=mclasen@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox