commit:     6781dee7f8db901895c470343cf4a0e443ede35a
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Sat Apr 26 15:45:12 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 29 19:43:59 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6781dee7

app-arch/rpm: fix infodir and mandir macros

By default, infodir and mandir macros are set to
`\${prefix}/${CMAKE_INSTALL_*DIR}`, assuming ${CMAKE_INSTALL_*DIR} are
relative paths, but cmake.eclass sets them to absolute paths including
prefix.

Closes: https://bugs.gentoo.org/954379
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/41772
Closes: https://github.com/gentoo/gentoo/pull/41772
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-arch/rpm/{rpm-4.20.1.ebuild => rpm-4.20.1-r1.ebuild} | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app-arch/rpm/rpm-4.20.1.ebuild b/app-arch/rpm/rpm-4.20.1-r1.ebuild
similarity index 95%
rename from app-arch/rpm/rpm-4.20.1.ebuild
rename to app-arch/rpm/rpm-4.20.1-r1.ebuild
index 9057d8a97182..c065f1a934ec 100644
--- a/app-arch/rpm/rpm-4.20.1.ebuild
+++ b/app-arch/rpm/rpm-4.20.1-r1.ebuild
@@ -105,6 +105,10 @@ src_configure() {
                -DWITH_ZSTD=$(usex zstd)
                -DWITH_LIBLZMA=$(usex lzma)
                -DWITH_DOXYGEN=$(usex doc)
+               # Upstream expects these paths to be relative, but cmake.eclass
+               # sets them as absolute paths. bug #954379
+               -DCMAKE_INSTALL_INFODIR=share/info
+               -DCMAKE_INSTALL_MANDIR=share/man
        )
 
        # special handling for ASAN

Reply via email to