Hide Forgot
Description of problem: README.Fedora contains an incorrect and not sufficiently clear example. Version-Release number of selected component (if applicable): 1.7.10-2 How reproducible: always Steps to Reproduce: 1. read README.Fedora 2. 3. Actual results: set LD_PRELOAD=/lib64/snoopy.so Expected results: In a 32-bit package: export LD_PRELOAD=/lib/snoopy.so or setenv LD_PRELOAD /lib/snoopy.so Additional info: I have a patch to make the README.Fedora a README.Fedora.in, and have the path replaced at build time. I'm not sure if this is okay on multi-arch (i.e. if you install 32-bit and 64-bit snoopy packages in parallel.
Created attachment 496199 [details] patch to transform README.Fedora to README.Fedora.in and replace the lib path at build time, plus syntax clarification (Different account of mine this time where e-mail doesn't bounce. Sorry.) This is a Git-style patch (including a rename!) from my hg demonstrating my changes. It renames README.Fedora to README.Fedora.in and adds a command in the SPEC which transforms the named path to the correct on for the build arch. Not sure if this would be correct in multi-arch environment, and the README.Fedora should just contain a hint instead. Note also that 1.8.0 is released. :)
(Adding my other account to Cc:, I didn't get that checkbox when attaching a patch.)
Hi, Thanks, I'll incorporate this , there's another architecture independent way of doing it as well. $ cat /etc/ld.so.preload /$LIB/snoopy.so and it's evaluated at runtime. This is intact what I am using now and has the advantage that it works for 32 bit binaries on a 64 bit system. I'll merge your comments and this improvement. Steve.
Very nice solution. Even I did not know that about the verbatim $LIB. Thank you!