Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 954379 - app-arch/rpm-4.20.1: "rpm --eval %_mandir" reports wrongly "/usr//usr/share/man"
Summary: app-arch/rpm-4.20.1: "rpm --eval %_mandir" reports wrongly "/usr//usr/share/man"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Takuya Wakazono
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-04-24 21:33 UTC by Conrad Kostecki
Modified: 2025-04-29 19:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2025-04-24 21:33:05 UTC
By accident, I found out, that apparently executing "rpm --eval %_mandir" reports wrongly "/usr//usr/share/man".

The background was, that dev-util/statifier was using as fallback "rpm --eval %_mandir" to get the man page dir, which is anyway wrong.

Could be related to wrong EPREFIX?
Comment 1 Conrad Kostecki gentoo-dev 2025-04-24 21:37:10 UTC
This seems present in all versions in tree:

4.20.0:
$ rpm --eval %_mandir
/usr//usr/share/man

4.20.1:
$ rpm --eval %_mandir
/usr//usr/share/man
Comment 2 Larry the Git Cow gentoo-dev 2025-04-29 19:45:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6781dee7f8db901895c470343cf4a0e443ede35a

commit 6781dee7f8db901895c470343cf4a0e443ede35a
Author:     Takuya Wakazono <pastalian46@gmail.com>
AuthorDate: 2025-04-26 15:45:12 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-29 19:43:59 +0000

    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@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@gentoo.org>

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