public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Acutlly add the patch for the previous comment (yeah its Monday alright)
Date: Mon, 23 Nov 2026 09:32:14 GMT	[thread overview]
Message-ID: <179542633419.1.17634918897954019411.rpms-rpm-6c9430bd2ad1@fedoraproject.org> (raw)

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
+

                 reply	other threads:[~2026-11-23  9:32 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=179542633419.1.17634918897954019411.rpms-rpm-6c9430bd2ad1@fedoraproject.org \
    --to=pmatilai@redhat.com \
    --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