public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libabigail] rawhide: Activate multithreading support in Libabigail 3.0
@ 2026-11-03 11:33 Dodji Seketeli
  0 siblings, 0 replies; only message in thread
From: Dodji Seketeli @ 2026-11-03 11:33 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/libabigail
            Branch : rawhide
            Commit : 468dfd2997e748e42a255e88273566ef4a348063
            Author : Dodji Seketeli <dodji@seketeli.org>
            Date   : 2026-11-03T12:33:01+01:00
            Stats  : +451/-2 in 6 file(s)
            URL    : https://src.fedoraproject.org/rpms/libabigail/c/468dfd2997e748e42a255e88273566ef4a348063?branch=rawhide

            Log:
            Activate multithreading support in Libabigail 3.0
   - Rebuild against elfutils-devel >= 0.197 to enable multithreading
   - Add BuildRequires: tbb-devel to enable parallel sort
   - Apply several fixes that are in Git, on top of Libabigail 3.0:
      - https://sourceware.org/cgit/libabigail/commit/?id=e3dd2aeb4aa4744abcfb47e8c8d052b0413b5712
      - https://sourceware.org/cgit/libabigail/commit/?id=d5fcf4f0c4a05ad4893f6025fa6fceeb232d411c
      - https://sourceware.org/cgit/libabigail/commit/?id=f682125258c4a464330840c7687e94ada6a900a0
      - https://sourceware.org/cgit/libabigail/commit/?id=cf48c7a3b419363dd6abf552286170b5aef99592
      - https://sourceware.org/cgit/libabigail/commit/?id=62042970cb1943299216c4ad54b6253c9dd568a4

Signed-off-by: Dodji Seketeli <dodji@seketeli.org>

---
diff --git a/0001-default-reporter-Fix-segfault-on-added-deleted-iface.patch b/0001-default-reporter-Fix-segfault-on-added-deleted-iface.patch
new file mode 100644
index 0000000..74b4b6d
--- /dev/null
+++ b/0001-default-reporter-Fix-segfault-on-added-deleted-iface.patch
@@ -0,0 +1,105 @@
+From 62042970cb1943299216c4ad54b6253c9dd568a4 Mon Sep 17 00:00:00 2001
+From: Dodji Seketeli <dodji@seketeli.org>
+Date: Mon, 2 Nov 2026 14:55:41 +0100
+Subject: [PATCH] default-reporter: Fix segfault on added/deleted ifaces with empty symbol
+
+The reporter segfaults when looking at added/deleted interfaces with
+empty symbols.  These should probably not have reached the reporter to
+begin with but even if they do, we should not segfault.
+
+Fixed thus.
+
+	* src/abg-default-reporter.cc (default_reporter::report): In the
+	overload for corpus_diff, do not try to show linkage name and
+	aliases for added and deleted interfaces with empty symbol.
+
+Signed-off-by: Dodji Seketeli <dodji@seketeli.org>
+---
+ src/abg-default-reporter.cc | 50 ++++++++++++++++++++++++-------------
+ 1 file changed, 33 insertions(+), 17 deletions(-)
+
+diff --git a/src/abg-default-reporter.cc b/src/abg-default-reporter.cc
+index a17b0796..67e63e9b 100644
+--- a/src/abg-default-reporter.cc
++++ b/src/abg-default-reporter.cc
+@@ -1956,10 +1956,14 @@ default_reporter::report(const corpus_diff& d, ostream& out,
+ 	  out << "'" << (f)->get_pretty_representation() << "'";
+ 	  if (ctxt->show_linkage_names())
+ 	    {
+-	      out << "    {";
+-	      show_linkage_name_and_aliases(out, "", *(f)->get_symbol(),
+-					    d.first_corpus()->get_fun_symbol_map());
+-	      out << "}";
++	      auto symbol = f->get_symbol();
++	      if (symbol)
++		{
++		  out << "    {";
++		  show_linkage_name_and_aliases(out, "", *symbol,
++						d.first_corpus()->get_fun_symbol_map());
++		  out << "}";
++		}
+ 	    }
+ 	  out << "\n";
+ 	  if (is_member_function(f) && get_member_function_is_virtual(f))
+@@ -2017,11 +2021,15 @@ default_reporter::report(const corpus_diff& d, ostream& out,
+ 	      << "'";
+ 	  if (ctxt->show_linkage_names())
+ 	    {
+-	      out << "    {";
+-	      show_linkage_name_and_aliases
+-		(out, "", *f->get_symbol(),
+-		 d.second_corpus()->get_fun_symbol_map());
+-	      out << "}";
++	      auto symbol = f->get_symbol();
++	      if (symbol)
++		{
++		  out << "    {";
++		  show_linkage_name_and_aliases
++		    (out, "", *symbol,
++		     d.second_corpus()->get_fun_symbol_map());
++		  out << "}";
++		}
+ 	    }
+ 	  out << "\n";
+ 	  if (is_member_function(f) && get_member_function_is_virtual(f))
+@@ -2084,10 +2092,14 @@ default_reporter::report(const corpus_diff& d, ostream& out,
+ 	      << "'";
+ 	  if (ctxt->show_linkage_names())
+ 	    {
+-	      out << "    {";
+-	      show_linkage_name_and_aliases(out, "", *v->get_symbol(),
+-					    d.first_corpus()->get_var_symbol_map());
+-	      out << "}";
++	      auto symbol = v->get_symbol();
++	      if (symbol)
++		{
++		  out << "    {";
++		  show_linkage_name_and_aliases(out, "", *symbol,
++						d.first_corpus()->get_var_symbol_map());
++		  out << "}";
++		}
+ 	    }
+ 	  out << "\n";
+ 	  emitted = true;
+@@ -2135,10 +2147,14 @@ default_reporter::report(const corpus_diff& d, ostream& out,
+ 	  out << "'" << n << "'";
+ 	  if (ctxt->show_linkage_names())
+ 	    {
+-	      out << "    {";
+-	      show_linkage_name_and_aliases(out, "", *v->get_symbol(),
+-					    d.second_corpus()->get_var_symbol_map());
+-	      out << "}";
++	      auto symbol = v->get_symbol();
++	      if (symbol)
++		{
++		  out << "    {";
++		  show_linkage_name_and_aliases(out, "", *symbol,
++						d.second_corpus()->get_var_symbol_map());
++		  out << "}";
++		}
+ 	    }
+ 	  out << "\n";
+ 	  emitted = true;
+-- 
+2.55.0
+

diff --git a/0002-dwarf-reader-Canonicalize-void-type.patch b/0002-dwarf-reader-Canonicalize-void-type.patch
new file mode 100644
index 0000000..753770a
--- /dev/null
+++ b/0002-dwarf-reader-Canonicalize-void-type.patch
@@ -0,0 +1,42 @@
+From cf48c7a3b419363dd6abf552286170b5aef99592 Mon Sep 17 00:00:00 2001
+From: Dodji Seketeli <dodji@seketeli.org>
+Date: Mon, 2 Nov 2026 15:25:32 +0100
+Subject: [PATCH] dwarf-reader: Canonicalize void type
+
+The dwarf-reader is sometimes erroneously using the void type without
+canonicalizing it.  Oops.  Fixed thus.
+
+	* src/abg-dwarf-reader.cc (build_typedef_type, build_var_decl):
+	Use build_ir_node_for_void_type instead of getting the void type
+	directly from the environment.
+
+Signed-off-by: Dodji Seketeli <dodji@seketeli.org>
+---
+ src/abg-dwarf-reader.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/abg-dwarf-reader.cc b/src/abg-dwarf-reader.cc
+index 43d57588..cb3a2064 100644
+--- a/src/abg-dwarf-reader.cc
++++ b/src/abg-dwarf-reader.cc
+@@ -13490,7 +13490,7 @@ build_typedef_type(reader&				rdr,
+       if (!die_die_attribute(die, DW_AT_type, underlying_type_die))
+ 	// A typedef DIE with no underlying type means a typedef to
+ 	// void type.
+-	utype = rdr.env().get_void_type();
++	utype = is_type(build_ir_node_for_void_type(rdr, tu_ctxt));
+ 
+       if (!utype)
+ 	utype =
+@@ -13638,7 +13638,7 @@ build_var_decl(reader&				rdr,
+   die_loc_and_name(die, tu_ctxt, loc, name, linkage_name);
+ 
+   if (!type && result && !result->get_type())
+-    type = rdr.env().get_void_type();
++    type = is_type(build_ir_node_for_void_type(rdr, tu_ctxt));
+ 
+   if (!result)
+     result.reset(new var_decl(name, type, loc, linkage_name));
+-- 
+2.55.0
+

diff --git a/0003-corpus-Record-pointer-to-member-sub-types-as-reachab.patch b/0003-corpus-Record-pointer-to-member-sub-types-as-reachab.patch
new file mode 100644
index 0000000..8453fb5
--- /dev/null
+++ b/0003-corpus-Record-pointer-to-member-sub-types-as-reachab.patch
@@ -0,0 +1,42 @@
+From f682125258c4a464330840c7687e94ada6a900a0 Mon Sep 17 00:00:00 2001
+From: Dodji Seketeli <dodji@seketeli.org>
+Date: Mon, 2 Nov 2026 15:42:25 +0100
+Subject: [PATCH] corpus: Record pointer-to-member sub-types as reachable
+
+It seems like the reachable_types_marker pass forgets to properly
+record sub-types of pointer-to-member types as reachable.  Oops.
+Fixed thus.
+
+	* src/abg-corpus.cc
+	(reachable_types_marker::maybe_record_subtypes_as_reachable):
+	Handle pointer-to-member types.
+
+Signed-off-by: Dodji Seketeli <dodji@seketeli.org>
+---
+ src/abg-corpus.cc | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/src/abg-corpus.cc b/src/abg-corpus.cc
+index cb796b14..e5e747a3 100644
+--- a/src/abg-corpus.cc
++++ b/src/abg-corpus.cc
+@@ -1189,6 +1189,16 @@ public:
+ 	  if (abi->record_type_as_reachable_from_public_interfaces(*p))
+ 	    maybe_record_subtypes_as_reachable(p.get(), rec_types);
+       }
++    else if (auto ptr = is_ptr_to_mbr_type(examplar_type))
++      {
++	if (auto member_type = ptr->get_member_type())
++	  if (abi->record_type_as_reachable_from_public_interfaces(*member_type))
++	    maybe_record_subtypes_as_reachable(member_type.get(), rec_types);
++
++	if (auto containing_type = ptr->get_containing_type())
++	  if (abi->record_type_as_reachable_from_public_interfaces(*containing_type))
++	    maybe_record_subtypes_as_reachable(containing_type.get(), rec_types);
++      }
+     else if (auto q = is_qualified_type(examplar_type))
+       {
+ 	if (auto u = q->get_underlying_type())
+-- 
+2.55.0
+

diff --git a/0004-dwarf-reader-Remove-unfortunate-debugging-artifact.patch b/0004-dwarf-reader-Remove-unfortunate-debugging-artifact.patch
new file mode 100644
index 0000000..865c944
--- /dev/null
+++ b/0004-dwarf-reader-Remove-unfortunate-debugging-artifact.patch
@@ -0,0 +1,47 @@
+From d5fcf4f0c4a05ad4893f6025fa6fceeb232d411c Mon Sep 17 00:00:00 2001
+From: Dodji Seketeli <dodji@seketeli.org>
+Date: Mon, 2 Nov 2026 15:51:57 +0100
+Subject: [PATCH] dwarf-reader: Remove unfortunate debugging artifact
+
+get_translation_unit_die_for_die still has an artifact of a debugging
+session that I forgot to remove.  Oh well.
+
+Removed thus.
+
+	* src/abg-dwarf-reader.cc (get_translation_unit_die_for_die):
+	Remove now useless ancient debugging cruft.
+
+Signed-off-by: Dodji Seketeli <dodji@seketeli.org>
+---
+ src/abg-dwarf-reader.cc | 15 ---------------
+ 1 file changed, 15 deletions(-)
+
+diff --git a/src/abg-dwarf-reader.cc b/src/abg-dwarf-reader.cc
+index cb3a2064..136a6682 100644
+--- a/src/abg-dwarf-reader.cc
++++ b/src/abg-dwarf-reader.cc
+@@ -533,21 +533,6 @@ get_translation_unit_die_for_die(const Dwarf_Die* die,
+ 				 Dwarf_Die& cu_die)
+ {
+   ABG_ASSERT(dwarf_diecu(const_cast<Dwarf_Die*>(die), &cu_die, 0, 0));
+-
+-  Dwarf_Die *testing_die = const_cast<Dwarf_Die*>(die);
+-  if (dwarf_dieoffset(testing_die) == 0xf9)
+-    {
+-      if (dwarf_dieoffset(&cu_die) != 0xb)
+-        {
+-          std::cerr << "Got CU DIE offset "
+-		    << std::hex
+-		    <<dwarf_dieoffset(&cu_die)
+-		    << " in lieu of "
+-		    << 0xf9
+-		    << std::endl;
+-          ABG_ASSERT_NOT_REACHED;
+-        }
+-    }
+   return true;
+ }
+ 
+-- 
+2.55.0
+

diff --git a/0005-hash-dwarf-reader-reader-writer-Handle-decl-only-enu.patch b/0005-hash-dwarf-reader-reader-writer-Handle-decl-only-enu.patch
new file mode 100644
index 0000000..ad1829c
--- /dev/null
+++ b/0005-hash-dwarf-reader-reader-writer-Handle-decl-only-enu.patch
@@ -0,0 +1,186 @@
+From e3dd2aeb4aa4744abcfb47e8c8d052b0413b5712 Mon Sep 17 00:00:00 2001
+From: Dodji Seketeli <dodji@seketeli.org>
+Date: Mon, 2 Nov 2026 17:30:26 +0100
+Subject: [PATCH] hash,dwarf-reader,reader,writer: Handle decl-only enums with
+ size
+
+Some DWARVES can express a non-resolved decl-only enum that has size
+information.  In that case, the ABIXML writer forgets to emit the size
+information and only emits the decl-only-ness.  That can lead to
+spurious self-comparison changes related to loss of size information.
+Fixed thus.  The patch also fixes some related issues I came across
+while reading the code.
+
+	* src/abg-dwarf-reader.cc (get_opaque_version_of_type): Set
+	decl-only-ness for opaque enums.
+	* src/abg-hash.cc (enum_type_decl::hash::operator()(const
+	enum_type_decl& t)): Hash the definition of the decl-only enums.
+	* src/abg-reader.cc (build_enum_type_decl): Read size information
+	on decl-only enums.
+	* src/abg-writer.cc (write_common_type_info): Look through
+	decl-only types and emit size information even for decl-only
+	types.
+	* tests/data/test-read-btf/test1.o.abi: Adjust.
+	* tests/data/test-read-dwarf/PR22015-libboost_iostreams.so.abi:
+	Likewise.
+	* tests/data/test-read-dwarf/PR22122-libftdc.so.abi: Likewise.
+	* tests/data/test-read-dwarf/PR27700/test-PR27700.abi: Likewise.
+
+Signed-off-by: Dodji Seketeli <dodji@seketeli.org>
+---
+ src/abg-dwarf-reader.cc                                  | 1 +
+ src/abg-hash.cc                                          | 3 +--
+ src/abg-reader.cc                                        | 9 +++++++++
+ src/abg-writer.cc                                        | 6 ++++--
+ tests/data/test-read-btf/test1.o.abi                     | 4 ++--
+ .../test-read-dwarf/PR22015-libboost_iostreams.so.abi    | 6 +++---
+ tests/data/test-read-dwarf/PR22122-libftdc.so.abi        | 2 +-
+ tests/data/test-read-dwarf/PR27700/test-PR27700.abi      | 2 +-
+ 8 files changed, 22 insertions(+), 11 deletions(-)
+
+diff --git a/src/abg-dwarf-reader.cc b/src/abg-dwarf-reader.cc
+index 136a6682..0add1af7 100644
+--- a/src/abg-dwarf-reader.cc
++++ b/src/abg-dwarf-reader.cc
+@@ -14090,6 +14090,7 @@ get_opaque_version_of_type(reader&				rdr,
+ 							    underlying_type,
+ 							    enumeratorz,
+ 							    linkage_name));
++	  enum_type->set_is_declaration_only(true);
+ 	  enum_type->set_is_artificial(die_is_artificial(type_die));
+ 	  enum_type = is_enum_type(rdr.maybe_associate_die_to_type(type_die,
+ 								   enum_type));
+diff --git a/src/abg-hash.cc b/src/abg-hash.cc
+index a25f0579..1df0f34f 100644
+--- a/src/abg-hash.cc
++++ b/src/abg-hash.cc
+@@ -949,8 +949,7 @@ enum_type_decl::hash::operator()(const enum_type_decl& t) const
+   if (t.get_is_declaration_only() && t.get_definition_of_declaration())
+     {
+       enum_type_decl_sptr e = is_enum_type(t.get_definition_of_declaration());
+-
+-      hash_t v = hash_as_basic_then_ptr_ref_or_typedef_type(e);
++      hash_t v = operator()(*e);
+       return v;
+     }
+ 
+diff --git a/src/abg-reader.cc b/src/abg-reader.cc
+index 9d48142c..475aa8ce 100644
+--- a/src/abg-reader.cc
++++ b/src/abg-reader.cc
+@@ -5817,10 +5817,19 @@ build_enum_type_decl(reader&	rdr,
+       return result;
+     }
+ 
++  size_t size_in_bits = 0, alignment_in_bits = 0;
++  read_size_and_alignment(node, size_in_bits, alignment_in_bits);
++
+   enum_type_decl_sptr t(new enum_type_decl(name, loc,
+ 					   underlying_type,
+ 					   enums, linkage_name));
+ 
++  if (size_in_bits || alignment_in_bits)
++    {
++      t->set_size_in_bits(size_in_bits);
++      t->set_alignment_in_bits(alignment_in_bits);
++    }
++
+   t->set_is_anonymous(is_anonymous);
+   t->set_is_artificial(is_artificial);
+   t->set_is_declaration_only(is_decl_only);
+diff --git a/src/abg-writer.cc b/src/abg-writer.cc
+index b8828c8a..8a0803db 100644
+--- a/src/abg-writer.cc
++++ b/src/abg-writer.cc
+@@ -2179,13 +2179,15 @@ write_common_type_info(const type_base_sptr& t,
+ 		       write_context& ctxt,
+ 		       const string& id)
+ {
+-  decl_base_sptr d = is_decl(t);
++  decl_base_sptr d = look_through_decl_only(is_decl(t));
+ 
+   ostream& o = ctxt.get_ostream();
+ 
+   write_is_non_reachable(t, o);
+ 
+-  if (!d || (d && !d->get_is_declaration_only()))
++  if (!d || (d && (!d->get_is_declaration_only()
++		   || t->get_size_in_bits()
++		   || t->get_alignment_in_bits())))
+     {
+       if (!is_qualified_type(t) && !is_array_type(t))
+ 	write_size_and_alignment(t, o);
+diff --git a/tests/data/test-read-btf/test1.o.abi b/tests/data/test-read-btf/test1.o.abi
+index d4ce4238..6c97ac27 100644
+--- a/tests/data/test-read-btf/test1.o.abi
++++ b/tests/data/test-read-btf/test1.o.abi
+@@ -10,10 +10,10 @@
+       <parameter type-id='type-id-4' name='u'/>
+       <return type-id='type-id-2'/>
+     </function-type>
+-    <class-decl name='S' is-struct='yes' visibility='default' is-declaration-only='yes' hash='0ace7ede05bd13a4' id='type-id-6'/>
++    <class-decl name='S' is-struct='yes' visibility='default' size-in-bits='48' is-declaration-only='yes' hash='0ace7ede05bd13a4' id='type-id-6'/>
+     <typedef-decl name='S' type-id='type-id-6' size-in-bits='48' hash='0ace7ede05bd13a4' id='type-id-1'/>
+     <typedef-decl name='U' type-id='type-id-7' size-in-bits='56' hash='6f9ec0aef70234cb' id='type-id-3'/>
+-    <union-decl name='U' visibility='default' is-declaration-only='yes' hash='6f9ec0aef70234cb' id='type-id-7'/>
++    <union-decl name='U' visibility='default' size-in-bits='56' is-declaration-only='yes' hash='6f9ec0aef70234cb' id='type-id-7'/>
+   </abi-types>
+   <abi-instr address-size='64'>
+       <function-decl name='fn0' type-id='type-id-5' mangled-name='fn0' visibility='default' binding='global' size-in-bits='64' elf-symbol-id='fn0'/>
+diff --git a/tests/data/test-read-dwarf/PR22015-libboost_iostreams.so.abi b/tests/data/test-read-dwarf/PR22015-libboost_iostreams.so.abi
+index 212dc905..50a5f5b3 100644
+--- a/tests/data/test-read-dwarf/PR22015-libboost_iostreams.so.abi
++++ b/tests/data/test-read-dwarf/PR22015-libboost_iostreams.so.abi
+@@ -604,12 +604,12 @@
+     </namespace-decl>
+     <namespace-decl name='std'>
+       <namespace-decl name='__cxx11'>
+-        <class-decl name='basic_string&lt;char,std::char_traits&lt;char&gt;,std::allocator&lt;char&gt;&gt;' visibility='default' is-declaration-only='yes' hash='35ad60ae8262b955' id='type-id-125'/>
++        <class-decl name='basic_string&lt;char,std::char_traits&lt;char&gt;,std::allocator&lt;char&gt;&gt;' visibility='default' size-in-bits='256' is-declaration-only='yes' hash='35ad60ae8262b955' id='type-id-125'/>
+       </namespace-decl>
+     </namespace-decl>
+     <namespace-decl name='std'>
+       <namespace-decl name='__cxx11'>
+-        <class-decl name='basic_string&lt;wchar_t,std::char_traits&lt;wchar_t&gt;,std::allocator&lt;wchar_t&gt;&gt;' visibility='default' is-declaration-only='yes' hash='6e5702fb5aff44b2' id='type-id-126'/>
++        <class-decl name='basic_string&lt;wchar_t,std::char_traits&lt;wchar_t&gt;,std::allocator&lt;wchar_t&gt;&gt;' visibility='default' size-in-bits='256' is-declaration-only='yes' hash='6e5702fb5aff44b2' id='type-id-126'/>
+       </namespace-decl>
+     </namespace-decl>
+     <namespace-decl name='std'>
+@@ -1121,7 +1121,7 @@
+     </namespace-decl>
+     <namespace-decl name='boost'>
+       <namespace-decl name='exception_detail'>
+-        <class-decl name='error_info_container' is-struct='yes' visibility='default' is-declaration-only='yes' hash='601e009fb79edd8d' id='type-id-10'/>
++        <class-decl name='error_info_container' is-struct='yes' visibility='default' size-in-bits='64' is-declaration-only='yes' hash='601e009fb79edd8d' id='type-id-10'/>
+       </namespace-decl>
+     </namespace-decl>
+     <namespace-decl name='boost'>
+diff --git a/tests/data/test-read-dwarf/PR22122-libftdc.so.abi b/tests/data/test-read-dwarf/PR22122-libftdc.so.abi
+index 4c55a340..a2febebc 100644
+--- a/tests/data/test-read-dwarf/PR22122-libftdc.so.abi
++++ b/tests/data/test-read-dwarf/PR22122-libftdc.so.abi
+@@ -328,7 +328,7 @@
+     <type-decl name='char' size-in-bits='8' hash='65b2d157027b431a' id='type-id-29'/>
+     <pointer-type-def type-id='type-id-29' size-in-bits='64' hash='cdcd419d6a95ce45' id='type-id-30'/>
+     <namespace-decl name='mongo'>
+-      <class-decl name='Client' visibility='default' is-declaration-only='yes' hash='7a6018eb0eb115ad' id='type-id-31'/>
++      <class-decl name='Client' visibility='default' size-in-bits='960' is-declaration-only='yes' hash='7a6018eb0eb115ad' id='type-id-31'/>
+     </namespace-decl>
+     <namespace-decl name='std'>
+       <namespace-decl name='__cxx11'>
+diff --git a/tests/data/test-read-dwarf/PR27700/test-PR27700.abi b/tests/data/test-read-dwarf/PR27700/test-PR27700.abi
+index 20639095..c5f502db 100644
+--- a/tests/data/test-read-dwarf/PR27700/test-PR27700.abi
++++ b/tests/data/test-read-dwarf/PR27700/test-PR27700.abi
+@@ -3,7 +3,7 @@
+     <elf-symbol name='foo' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
+   </elf-function-symbols>
+   <abi-types>
+-    <enum-decl name='foo' size-in-bits='32' alignment-in-bits='32' hash='e8c620d1af7ae9ae' id='022218d8'>
++    <enum-decl name='foo' size-in-bits='32' alignment-in-bits='32' is-declaration-only='yes' hash='e8c620d1af7ae9ae' id='022218d8'>
+       <underlying-type type-id='9cac1fee'/>
+     </enum-decl>
+     <pointer-type-def type-id='022218d8' size-in-bits='64' hash='62a9ec05c7f5eb06' id='8750e847'/>
+-- 
+2.55.0
+

diff --git a/libabigail.spec b/libabigail.spec
index 325059c..d7b75c2 100644
--- a/libabigail.spec
+++ b/libabigail.spec
@@ -6,7 +6,7 @@
 
 Name: libabigail
 Version: 3.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: Set of ABI analysis tools
 
 License: Apache-2.0 WITH LLVM-exception
@@ -18,7 +18,10 @@ BuildRequires: libbpf-devel
 BuildRequires: binutils-devel
 BuildRequires: gcc-c++
 BuildRequires: libtool
-BuildRequires: elfutils-devel
+# Use elfutils-devel >= 0.197 because it does have thread-safety
+# enabled.
+BuildRequires: elfutils-devel >= 0.197
+BuildRequires: tbb-devel
 BuildRequires: libxml2-devel
 BuildRequires: xxhash-devel
 BuildRequires: xz-devel >= 5.2.0
@@ -94,6 +97,14 @@ Requires: python3-rpm
 #For x-rpm mimetype definition!
 Requires: mailcap
 
+#Patches
+
+Patch1: 0001-default-reporter-Fix-segfault-on-added-deleted-iface.patch
+Patch2: 0002-dwarf-reader-Canonicalize-void-type.patch
+Patch3: 0003-corpus-Record-pointer-to-member-sub-types-as-reachab.patch
+Patch4: 0004-dwarf-reader-Remove-unfortunate-debugging-artifact.patch
+Patch5: 0005-hash-dwarf-reader-reader-writer-Handle-decl-only-enu.patch
+
 %description fedora
 This package contains the fedabipkgdiff command line utility, which
 interacts with the Fedora Build System over the internet to let the
@@ -170,6 +181,22 @@ time make %{?_smp_mflags} check-self-compare || (cat tests/test-suite.log && exi
 %endif
 
 %changelog
+* Mon Nov 2 2026 Dodji Seketeli <dodji@seketeli.org> - 3.0-2
+- Apply several fixes that are in Git, on top of Libabigail 3.0:
+  - https://sourceware.org/cgit/libabigail/commit/?id=e3dd2aeb4aa4744abcfb47e8c8d052b0413b5712
+    0001-default-reporter-Fix-segfault-on-added-deleted-iface.patch
+  - https://sourceware.org/cgit/libabigail/commit/?id=d5fcf4f0c4a05ad4893f6025fa6fceeb232d411c
+    0002-dwarf-reader-Canonicalize-void-type.patch
+    - https://sourceware.org/cgit/libabigail/commit/?id=f682125258c4a464330840c7687e94ada6a900a0
+    0003-corpus-Record-pointer-to-member-sub-types-as-reachab.patch
+  - https://sourceware.org/cgit/libabigail/commit/?id=cf48c7a3b419363dd6abf552286170b5aef99592
+    0004-dwarf-reader-Remove-unfortunate-debugging-artifact.patch
+  - https://sourceware.org/cgit/libabigail/commit/?id=62042970cb1943299216c4ad54b6253c9dd568a4
+    0005-hash-dwarf-reader-reader-writer-Handle-decl-only-enu.patch
+- Activate multithreading support
+   - Rebuild against elfutils-devel >= 0.197 to enable multithreading
+   - Add BuildRequires: tbb-devel to enable parallel sort
+
 * Wed Oct 7 2026 Dodji Seketeli <dodji@seketeli.org> - 3.0-1
 - Update to new upstream 3.0 tarball
 - Build with no full parallel processing because elfutils 0.196 was not built with --enable-thread-safety

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-03 11:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 11:33 [rpms/libabigail] rawhide: Activate multithreading support in Libabigail 3.0 Dodji Seketeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox