[Paraview] packing superbuild 5.2 fails on openSUSE due to ldconfig

Fabian Wein fabian.wein at fau.de
Tue Jan 17 05:19:40 EST 2017


ctest -R cpack fails on openSUSE but works on Ubuntu

CMake Error at 
/home/fwein/code/cfs_paraview/metabuild/build/cpack/paraview/TGZ/build/cmake_install.cmake:46 
(message):
   Failed to install pvdataserver:

   Traceback (most recent call last):

     File 
"/home/fwein/code/cfs_paraview/metabuild/src/paraview-superbuild/superbuild/cmake/scripts/fixup_bundle.unix.py", 
line 507, in <module>
       main(sys.argv[1:])
     File 
"/home/fwein/code/cfs_paraview/metabuild/src/paraview-superbuild/superbuild/cmake/scripts/fixup_bundle.unix.py", 
line 499, in main
       _install_binary(main_exe, is_excluded, bundle_dest, 
opts.libdir, installed, manifest, dry_run=opts.dry_run)
     File 
"/home/fwein/code/cfs_paraview/metabuild/src/paraview-superbuild/superbuild/cmake/scripts/fixup_bundle.unix.py", 
line 403, in _install_binary
       deps = binary.dependencies.values()
     File 
"/home/fwein/code/cfs_paraview/metabuild/src/paraview-superbuild/superbuild/cmake/scripts/fixup_bundle.unix.py", 
line 198, in dependencies
       deplib = Library.create_from_reference(dep, self)
     File 
"/home/fwein/code/cfs_paraview/metabuild/src/paraview-superbuild/superbuild/cmake/scripts/fixup_bundle.unix.py", 
line 259, in create_from_reference
       paths.extend(cls.default_search_paths())
     File 
"/home/fwein/code/cfs_paraview/metabuild/src/paraview-superbuild/superbuild/cmake/scripts/fixup_bundle.unix.py", 
line 231, in default_search_paths
       cls.__search_cache = pipe().split('\n')
     File 
"/home/fwein/code/cfs_paraview/metabuild/src/paraview-superbuild/superbuild/cmake/scripts/fixup_bundle.unix.py", 
line 23, in __call__
       command = subprocess.Popen(command_args, stdin=last_input, 
stdout=subprocess.PIPE)
     File "/usr/lib64/python2.7/subprocess.py", line 390, in __init__
       errread, errwrite)
     File "/usr/lib64/python2.7/subprocess.py", line 1024, in 
_execute_child
       raise child_exception

   OSError: [Errno 2] No such file or directory

The reason is that fixup_bundle.unix.py:23 is called with

command_args=['ldconfig', '-v', '-N', '-X']

ldconfig is on openSUSE and Ubuntu /sbin/ldconfig but sbin in on 
openSUSE not in the user path. For me a link in $HOME/bin helped but 
maybe using the full path
would work on all unix systems?!

Fabian


More information about the ParaView mailing list