Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 929051

Summary: sys-apps/fakeroot multilib support
Product: Gentoo Linux Reporter: Ben Sagal <bensagal>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ben Sagal 2024-04-10 09:23:12 UTC
fakeroot needs mutilib support to be able to correcly run x86_32 programs on an amd64 (x86_64) system. 

Only libfakeroot.so needs to be multilib

Reproducible: Always

Steps to Reproduce:
1.run fakeroot ./32bitprogram
Actual Results:  
The program works correctly without error

Expected Results:  
i get the following error:
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

I also see that the LD_LIBRARY_PATH is not set correctly

% env | grep LD_ || echo "No Match"
No Match
% fakeroot env | grep LD_ || echo "No Match"
LD_LIBRARY_PATH=/usr/lib64:/usr/lib64/libfakeroot:/usr/lib32/libfakeroot
LD_PRELOAD=libfakeroot.so

There is no /usr/lib64/libfakeroot or /usr/lib32/libfakeroot directory, libfakeroot.so is in /usr/lib64
Comment 1 Ben Sagal 2024-04-10 09:27:57 UTC
I mixed up the Expected and Actual Results.
Comment 2 Viorel Munteanu gentoo-dev 2024-04-11 07:03:54 UTC
*** Bug 929052 has been marked as a duplicate of this bug. ***