public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Acutlly add the patch for the previous comment (yeah its Monday alright)
@ 2026-11-23  9:32 Panu Matilainen
  0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23  9:32 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 6c9430bd2ad15a6d0effebd05dd6af88200f0f9f
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2018-11-19T13:18:52+02:00
Stats  : +63/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/6c9430bd2ad15a6d0effebd05dd6af88200f0f9f?branch=pmatilai-v6

Log:
Acutlly add the patch for the previous comment (yeah its Monday alright)

---
diff --git a/0001-Take-_prefix-into-account-when-compressing-man-pages.patch b/0001-Take-_prefix-into-account-when-compressing-man-pages.patch
new file mode 100644
index 0000000..8fa8125
--- /dev/null
+++ b/0001-Take-_prefix-into-account-when-compressing-man-pages.patch
@@ -0,0 +1,63 @@
+From 0e2b8a390e9c9b01920812a65ebd88e0fbad4d3a Mon Sep 17 00:00:00 2001
+Message-Id: <0e2b8a390e9c9b01920812a65ebd88e0fbad4d3a.1542624780.git.pmatilai@redhat.com>
+From: Panu Matilainen <pmatilai@redhat.com>
+Date: Mon, 1 Oct 2018 15:37:48 +0300
+Subject: [PATCH] Take %_prefix into account when compressing man pages etc,
+ take II
+
+brp-compress used to be all hardcoded around /usr for no good reason.
+Support passing prefix as an argument and only look for things to
+compress there. First attempt in 5e65f92b53ca07c6e30921688c1b84d0a6b41db7
+had an embarrassing typo/thinko/case of missing brain in the assign syntax.
+
+Based on feedback and work of Owen Taylor and Yanko Kaneti in PR #538
+---
+ platform.in          |  2 +-
+ scripts/brp-compress | 12 ++++++++----
+ 2 files changed, 9 insertions(+), 5 deletions(-)
+
+diff --git a/platform.in b/platform.in
+index 6ccdaf23d..3eb67b55b 100644
+--- a/platform.in
++++ b/platform.in
+@@ -69,7 +69,7 @@
+ 
+ # Standard brp-macro naming:
+ # convert all '-' in basename to '_', add two leading underscores.
+-%__brp_compress %{_rpmconfigdir}/brp-compress
++%__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix}
+ %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile
+ %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}"
+ %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip}
+diff --git a/scripts/brp-compress b/scripts/brp-compress
+index e6b69a9e4..e4307eff7 100755
+--- a/scripts/brp-compress
++++ b/scripts/brp-compress
+@@ -5,16 +5,20 @@ if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
+ 	exit 0
+ fi
+ 
++PREFIX=${1:-/usr}
++
+ cd "$RPM_BUILD_ROOT"
+ 
+ # Compress man pages
+ COMPRESS=${COMPRESS:-gzip -9 -n}
+ COMPRESS_EXT=${COMPRESS_EXT:-.gz}
+ 
+-for d in ./usr/man/man* ./usr/man/*/man* ./usr/info \
+-	./usr/share/man/man* ./usr/share/man/*/man* ./usr/share/info \
+-	./usr/kerberos/man ./usr/X11R6/man/man* ./usr/lib/perl5/man/man* \
+-	./usr/share/doc/*/man/man* ./usr/lib/*/man/man* ./usr/share/fish/man/man*
++for d in .${PREFIX}/man/man* .${PREFIX}/man/*/man* .${PREFIX}/info \
++	.${PREFIX}/share/man/man* .${PREFIX}/share/man/*/man* \
++	.${PREFIX}/share/info .${PREFIX}/kerberos/man \
++	.${PREFIX}/X11R6/man/man* .${PREFIX}/lib/perl5/man/man* \
++	.${PREFIX}/share/doc/*/man/man* .${PREFIX}/lib/*/man/man* \
++	.${PREFIX}/share/fish/man/man*
+ do
+     [ -d $d ] || continue
+     for f in `find $d -type f ! -name dir`
+-- 
+2.19.1
+

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  9:32 [rpms/rpm] pmatilai-v6: Acutlly add the patch for the previous comment (yeah its Monday alright) Panu Matilainen

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