diff --git a/Fix-typo-in-GC_malloc_explicitly_typed-comment.patch b/Fix-typo-in-GC_malloc_explicitly_typed-comment.patch new file mode 100644 index 0000000000000000000000000000000000000000..b1d236cf09f52cddfa6f85147d1abe9f8460dabe --- /dev/null +++ b/Fix-typo-in-GC_malloc_explicitly_typed-comment.patch @@ -0,0 +1,28 @@ +From 19521231db2c1ade07f5b2edcd5854d5641a7e8d Mon Sep 17 00:00:00 2001 +From: Ivan Maidanski +Date: Tue, 7 Jun 2022 19:02:06 +0300 +Subject: [PATCH] Fix typo in GC_malloc_explicitly_typed comment (fix of commit + 59372942a) + +* typd_mlc.c (GC_malloc_explicitly_typed): Fix typo (remove duplicate +"the") in comment. +--- + typd_mlc.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/typd_mlc.c b/typd_mlc.c +index 000056e1..cea7fb4e 100644 +--- a/typd_mlc.c ++++ b/typd_mlc.c +@@ -603,7 +603,7 @@ GC_API GC_ATTR_MALLOC void * GC_CALL GC_malloc_explicitly_typed(size_t lb, + op = (word *)GC_malloc_kind(lb, GC_explicit_kind); + if (EXPECT(NULL == op, FALSE)) + return NULL; +- /* It is not safe to use GC_size_map[lb] to compute lg here as the */ ++ /* It is not safe to use GC_size_map[lb] to compute lg here as */ + /* the former might be updated asynchronously. */ + lg = BYTES_TO_GRANULES(GC_size(op)); + op[GRANULES_TO_WORDS(lg) - 1] = d; +-- +2.27.0 + diff --git a/gc.spec b/gc.spec index 22125462ecac9626b71251364563934154e0cbb2..bbcbdae2b351f88106e0455775e4ecefb6f71c55 100644 --- a/gc.spec +++ b/gc.spec @@ -1,12 +1,14 @@ Name: gc Version: 8.0.4 -Release: 3 +Release: 4 Summary: A garbage collector for C and C++ License: BSD and GPLv1+ Url: http://www.hboehm.info/gc/ Source0: http://www.hboehm.info/gc/gc_source/gc-%{version}.tar.gz -BuildRequires: gcc gcc-c++ libtool libatomic_ops-devel gdb +Patch0: Fix-typo-in-GC_malloc_explicitly_typed-comment.patch + +BuildRequires: gcc gcc-c++ libtool %description The Boehm-Demers-Weiser conservative garbage collector can be @@ -72,6 +74,12 @@ make check %changelog +* Mon Oct 9 2023 huyubiao - 8.0.4-4 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix typo, remove unused BuildRequires + * Fri Jun 4 2021 panxiaohe - 8.0.4-3 - add gcc-c++ to BuildRequires to use c++ command