import UBI man-db-2.12.0-10.el10

This commit is contained in:
eabdullin 2025-11-11 21:44:21 +00:00
parent f38c47a798
commit ad0e38d78c
2 changed files with 52 additions and 1 deletions

View File

@ -0,0 +1,40 @@
From 5287a51844805151b8aa892784ab48a3a067c2ad Mon Sep 17 00:00:00 2001
From: Lukas Javorsky <ljavorsk@redhat.com>
Date: Tue, 10 Jun 2025 10:51:11 +0000
Subject: [PATCH] lexgrog Increase MAX_NAME to 16384
Inspired by: https://gitlab.com/man-db/man-db/-/commit/2da9562c194d520d38978f66bde7ef25d863d8a5
---
src/lexgrog.c | 2 +-
src/lexgrog.l | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lexgrog.c b/src/lexgrog.c
index 56663b5..871ac19 100644
--- a/src/lexgrog.c
+++ b/src/lexgrog.c
@@ -2781,7 +2781,7 @@ char *yytext;
#include "manconv_client.h"
#define YY_READ_BUF_SIZE 1024
-#define MAX_NAME 8192
+#define MAX_NAME 16384
/* defines the ordered list of filters detected by lexgrog */
enum {
diff --git a/src/lexgrog.l b/src/lexgrog.l
index 41527a4..59fc406 100644
--- a/src/lexgrog.l
+++ b/src/lexgrog.l
@@ -71,7 +71,7 @@
#include "manconv_client.h"
#define YY_READ_BUF_SIZE 1024
-#define MAX_NAME 8192
+#define MAX_NAME 16384
/* defines the ordered list of filters detected by lexgrog */
enum {
--
2.49.0

View File

@ -3,7 +3,7 @@
Summary: Tools for searching and reading man pages
Name: man-db
Version: 2.12.0
Release: 8%{?dist}
Release: 10%{?dist}
# GPLv2+ .. man-db
# GPLv3+ .. gnulib
License: GPL-2.0-or-later AND GPL-3.0-or-later
@ -39,6 +39,9 @@ Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives
Requires(preun): %{_sbindir}/update-alternatives
# Upstream patch: https://gitlab.com/man-db/man-db/-/commit/2da9562c194d520d38978f66bde7ef25d863d8a5
Patch0001: 0001-lexgrog-Increase-MAX_NAME-to-16384.patch
%description
The man-db package includes five tools for browsing man-pages:
man, whatis, apropos, manpath and lexgrog. man formats and displays
@ -234,6 +237,14 @@ fi
%config(noreplace) %{_sysconfdir}/cron.daily/man-db.cron
%changelog
* Tue Jun 10 2025 Lukas Javorsky <ljavorsk@redhat.com> - 2.12.0-10
- Fix patch to increase MAX_NAME to 16384
- Resolves: RHEL-93654
* Tue May 27 2025 Lukas Javorsky <ljavorsk@redhat.com> - 2.12.0-9
- Increase MAX_NAME to 16384
- Resolves: RHEL-93654
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.12.0-8
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018