public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jashank Jeremy <fedora@jashankj.space>
To: git-commits@fedoraproject.org
Subject: [rpms/jemalloc] rawhide: jemalloc 5.4.0-4: Fix version and documentation.
Date: Mon, 23 Nov 2026 15:28:34 GMT	[thread overview]
Message-ID: <179544771407.1.15474647589098253960.rpms-jemalloc-3a1b0752bebd@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-11-23 15:28 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=179544771407.1.15474647589098253960.rpms-jemalloc-3a1b0752bebd@fedoraproject.org \
    --to=fedora@jashankj.space \
    --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