public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/jemalloc] rawhide: jemalloc 5.4.0-4: Fix version and documentation.
@ 2026-11-23 15:28 Jashank Jeremy
  0 siblings, 0 replies; only message in thread
From: Jashank Jeremy @ 2026-11-23 15:28 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/jemalloc
            Branch : rawhide
            Commit : 3a1b0752bebdb4931b50ec8b673ed73e174f22c6
            Author : Jashank Jeremy <fedora@jashankj.space>
            Date   : 2026-11-23T15:11:25+11:00
            Stats  : +14/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/jemalloc/c/3a1b0752bebdb4931b50ec8b673ed73e174f22c6?branch=rawhide

            Log:
            jemalloc 5.4.0-4: Fix version and documentation.

* ``jemalloc``'s manpages are written in DocBook v4.x XML.  We provide
  xsltproc, but we never provide the necessary XSL stylesheets to do
  anything useful, so the rendered :man:`jemalloc(3)` is, uh, unhelpful:

  .. code:: console

     % zcat $(man -w jemalloc)
     Missing xsltproc.  Doc not built.

  Therefore, wire up an appropriate ``BuildRequires``.

* ``jemalloc`` _should_ know what version it is and be able to report it
  via :man:`mallctl(3)`, but its attempts to find its version assume it
  is in a Git repository, and faceplants.  The resultant library claims
  version ``0.0.0-0-g000000missing_version_try_git_fetch_tags``, which
  is not useful.

  Therefore, grab the commit hash from the tag ``5.4.0`` and construct
  an appropriate ``VERSION`` file ourselves.

* Whilst here, fix an ``rpmlint`` gripe about tabs and spaces.

---
diff --git a/jemalloc.spec b/jemalloc.spec
index a5f36c2..36731b6 100644
--- a/jemalloc.spec
+++ b/jemalloc.spec
@@ -1,19 +1,21 @@
 %global forgeurl https://github.com/jemalloc/jemalloc
+%global tag_commit 7a34f18502e7b222724097cdcd499b437d189acc
 
 Name:           jemalloc
 Version:        5.4.0
 
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        General-purpose scalable concurrent malloc implementation
 
 # Automatically converted from old format: BSD - review is highly recommended.
 License:        BSD-2-Clause
 URL:            https://jemalloc.net/
 VCS:            git:%{forgeurl}
-Source0:	%{forgeurl}/archive/refs/tags/%{version}.tar.gz
+Source0:        %{forgeurl}/archive/refs/tags/%{version}.tar.gz
 
 BuildRequires:  gcc
 BuildRequires:  /usr/bin/xsltproc
+BuildRequires:  docbook-style-xsl
 BuildRequires:  perl-generators
 %ifarch %{valgrind_arches}
 BuildRequires:  valgrind-devel
@@ -86,7 +88,12 @@ echo "What kernel version and config is this?"
 uname -a
 
 autoreconf -vfi
-%configure %{?disable_thp} %{?lg_page} --enable-prof
+echo "%{version}-0-g%{tag_commit}" > VERSION
+%configure \
+    --with-version=VERSION \
+    %{?disable_thp} \
+    %{?lg_page} \
+    --enable-prof
 
 # https://github.com/jemalloc/jemalloc/issues/2753
 %ifarch s390x
@@ -131,6 +138,10 @@ find %{buildroot}%{_libdir}/ -name '*.a' -exec rm -vf {} ';'
 %ldconfig_scriptlets
 
 %changelog
+* Mon Nov 23 2026 Jashank Jeremy <fedora@jashankj.space> - 5.4.0-4
+- Provide the version number to the build.
+- Ensure documentation builds work, by providing DocBook XSL.
+
 * Tue Oct 06 2026 Timothée Ravier <tim@siosm.fr> - 5.4.0-3
 - Split jeprof into a subpackage (fedora#2543810)
 - Use make macros: https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro

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

only message in thread, other threads:[~2026-11-23 15:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 15:28 [rpms/jemalloc] rawhide: jemalloc 5.4.0-4: Fix version and documentation Jashank Jeremy

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