[Bug 1198352] New: python3-espressomd ERROR: RPATH *.so is not allowed
http://bugzilla.opensuse.org/show_bug.cgi?id=1198352 Bug ID: 1198352 Summary: python3-espressomd ERROR: RPATH *.so is not allowed Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.4 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: lubos.kocman@suse.com QA Contact: qa-bugs@suse.de Blocks: 1198296 Found By: --- Blocker: --- Hello python3-espressomd fails to build in Leap 15.4 Build log: https://build.opensuse.org/package/live_build_log/openSUSE:Backports:SLE-15-... There seems to be hundreds messages about is *.so is not allowed. [ 318s] ERROR: RPATH "/home/abuild/rpmbuild/BUILD/espresso-4.0.1/build/src/script_interface" on /home/abuild/rpmbuild/BUILDROOT/python3-espressomd-4.0.1-bp154.1.2.x86_64/usr/lib64/python3.6/site-packages/espressomd/polymer.so is not allowed -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1198352 Lubos Kocman <lubos.kocman@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|screening-team-bugs@suse.de |junghans@votca.org -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1198352 http://bugzilla.opensuse.org/show_bug.cgi?id=1198352#c1 Jean-Noel Grad <jgrad@icp.uni-stuttgart.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jgrad@icp.uni-stuttgart.de --- Comment #1 from Jean-Noel Grad <jgrad@icp.uni-stuttgart.de> --- Created attachment 858054 --> http://bugzilla.opensuse.org/attachment.cgi?id=858054&action=edit Draft patch for 4.0.2 release of ESPResSo If I understand the documentation correctly, one cannot use a custom Rpath with OpenSUSE (https://en.opensuse.org/openSUSE:Packaging_checks#Beware_of_Rpath). In this package, we set the Rpath in the shared objects to avoid having to modify environment variables at runtime, such as LD_LIBRARY_PATH on Linux distributions. This is the easiest approach for end users, although I can see how this might be an issue when packaging the software. To make the package pass the brp-rpath check, we could remove the Rpath from the CMake logic and instead configure LD_LIBRARY_PATH in the pypresso/ipypresso wrapper scripts to include the espressomd python folder. I quickly tried it on the 4.2.0-dev version of ESPResSo and it seems to work. In the attached file, I attempted to backport the patch for 4.0.2. I'm quite busy this week working on the 4.2.0 release. If this is not urgent, I can have a closer look at the end of April and try running an OSC pipeline with the patch. If we go with this solution, we might have issues with library name collision at some point. ESPResSo can be built with external libraries such as ScaFaCoS, Stokesian Dynamics and waLBerla, which all provide their own .so files. If by accident one of the Cython modules in ESPResSo has the same name as one of these external shared objects, we might not be able to load ESPResSo in Python anymore. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1198352 http://bugzilla.opensuse.org/show_bug.cgi?id=1198352#c2 Christoph Junghans <junghans@votca.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |junghans@votca.org --- Comment #2 from Christoph Junghans <junghans@votca.org> --- Comment on attachment 858054 --> http://bugzilla.opensuse.org/attachment.cgi?id=858054 Draft patch for 4.0.2 release of ESPResSo Could we just use CMAKE_SKIP_INSTALL_RPATH=ON in the spec file (https://build.opensuse.org/package/view_file/devel:languages:python:numeric/... Could you make a merge request there? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1198352 http://bugzilla.opensuse.org/show_bug.cgi?id=1198352#c3 --- Comment #3 from Jean-Noel Grad <jgrad@icp.uni-stuttgart.de> --- Setting CMAKE_SKIP_INSTALL_RPATH=ON instead of removing the line should also work, but we still need to set LD_LIBRARY_PATH in the wrapper scripts. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1198352 http://bugzilla.opensuse.org/show_bug.cgi?id=1198352#c4 --- Comment #4 from Christoph Junghans <junghans@votca.org> --- I have no preference, just fork https://build.opensuse.org/package/show/devel:languages:python:numeric/pytho... to submit a fix. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1198352 http://bugzilla.opensuse.org/show_bug.cgi?id=1198352#c5 --- Comment #5 from Jean-Noel Grad <jgrad@icp.uni-stuttgart.de> --- Fix submitted in https://build.opensuse.org/request/show/970387 -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com