Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 912367 - dev-libs/hiredis[ssl]: wrong prefix in hiredis_ssl.pc file
Summary: dev-libs/hiredis[ssl]: wrong prefix in hiredis_ssl.pc file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sam James
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-08-16 19:43 UTC by Petr Vaněk
Modified: 2023-08-17 06:22 UTC (History)
0 users

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 Petr Vaněk gentoo-dev 2023-08-16 19:43:17 UTC
hiredis_ssl.pc is installed with prefix set to $ED:

prefix=/var/tmp/portage/dev-libs/hiredis-1.1.0/image/usr
exec_prefix=${prefix}
libdir=/var/tmp/portage/dev-libs/hiredis-1.1.0/image/usr/lib64
includedir=/var/tmp/portage/dev-libs/hiredis-1.1.0/image/usr/include
pkgincludedir=/var/tmp/portage/dev-libs/hiredis-1.1.0/image/usr/include/hiredis

Name: hiredis_ssl
Description: SSL Support for hiredis.
Version: 1.1.0
Requires: hiredis
Libs: -L${libdir} -lhiredis_ssl
Libs.private: -lssl -lcrypto

Both available versions, 1.0.2 and 1.1.0 are affected. This happens because hiredis_ssl.pc is generated in install phase unlike hiredis.pc which is generated in compile phase.
Comment 1 Larry the Git Cow gentoo-dev 2023-08-17 06:22:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e664103008aca17204231ff46d55c01362ea5b8

commit 5e664103008aca17204231ff46d55c01362ea5b8
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2023-08-16 14:50:47 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-08-17 06:22:35 +0000

    dev-libs/hiredis: Correct prefix in hiredis_ssl.pc
    
    Ensure hiredis_ssl.pc is generated during the compile phase. Without
    this, it contains the $ED prefix from the install phase. It's safe to
    generate it, even if not installed when USE=-ssl is specified.
    
    Closes: https://bugs.gentoo.org/912367
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Closes: https://github.com/gentoo/gentoo/pull/32345
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/hiredis/{hiredis-1.0.2-r2.ebuild => hiredis-1.0.2-r3.ebuild} | 4 ++--
 dev-libs/hiredis/{hiredis-1.1.0.ebuild => hiredis-1.1.0-r1.ebuild}    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)