Building a deb package out of PackageCompiler generated binary

Hi All,
I’m looking for the old and and wise in this forum for a specific issue I’m running when trying to package a binary generated with PackageCompiler into a regular deb pkg.
In shlibdeps stage the deb packger tries to find the location of every dependency and fails with

dpkg-shlibdeps: error: cannot find library libgfortran.so.5 needed by debian/algorithms/usr/share/julia/artifacts/e85c0a68e07fee0ee7b19c2abc210b1af2f4771a/lib/libmpifort.so.12.4.3 (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '/usr/share/julia/artifacts/e85c0a68e07fee0ee7b19c2abc210b1af2f4771a/lib')

This forces me to do some bash wizerdry to try to locate every dependency so file and copy it to where the executable is looking for (RPATH).
It seems like RPATH along with deb packaging is complex… Did anyone run into those issues and found a simple way to overcome this complexity ?

1 Like

This is not a supported scenario, so you are pretty much on your own. Building snap packages is a supported scenario: GitHub - PeaceFounder/AppBundler.jl: Bundle your Julia application

3 Likes