Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 854627 - dev-python/pyzmq links with bad libdir
Summary: dev-python/pyzmq links with bad libdir
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2022-06-27 18:20 UTC by Jannik Glückert
Modified: 2022-07-17 15:56 UTC (History)
2 users (show)

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


Attachments
Fix hardcoded libdir (libdir.patch,755 bytes, patch)
2022-06-27 18:20 UTC, Jannik Glückert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jannik Glückert 2022-06-27 18:20:53 UTC
Created attachment 788090 [details, diff]
Fix hardcoded libdir

pyzmqs setup.py does the following:
settings['library_dirs'] += [pjoin(prefix, 'lib')]

Using the 32-bit lib dir with lld when linking a 64-bit binary fails, see bug 821871 for a detailed description

Attached is a patch to fix this depending on target bitness.

This affects all current pyzmq versions.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-28 05:54:44 UTC
This is still wrong, technically. It should take an argument for libdir. We don't do multi-tier libdirs for riscv but we could.
Comment 2 Larry the Git Cow gentoo-dev 2022-07-17 15:56:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=123c8792eb39d31c22071719ed5624a1dedf11df

commit 123c8792eb39d31c22071719ed5624a1dedf11df
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-17 15:55:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-17 15:55:55 +0000

    dev-python/pyzmq: fix libdir usage
    
    Closes: https://bugs.gentoo.org/854627
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/pyzmq/files/pyzmq-23.2.0-libdir.patch | 11 ++++
 dev-python/pyzmq/pyzmq-23.2.0-r1.ebuild          | 81 ++++++++++++++++++++++++
 2 files changed, 92 insertions(+)