acxz / flightgear-arch

A collection of Arch Linux PKGBUILDS for the Flightgear Simulator
3 stars 2 forks source link

[flightgear] simgear listed as make depend but required to run sim #14

Open gmontamat opened 8 months ago

gmontamat commented 8 months ago

I'm getting the following error when running flightgear without simgear installed:

$ fgfs
fgfs: error while loading shared libraries: libSimGearScened.so.2020.3.19: cannot open shared object file: No such file or directory

of course this is solved by installing simgear, but it's only listed as a dependency for building.

acxz commented 7 months ago

Thanks for the report! Do you mind making a PR for this? Otherwise I'll try to get to it this weekend.

gmontamat commented 5 months ago

This haven't been fixed yet. My workaround is to install with yay -S flightgear and when prompted to delete build dependencies just input "No".

I am not sure why I didn't experience this issue in older versions (I always delete build dependencies). It could be: 1) simgear was listed as a dependency and not just a build dependency 2) libSimGearScened.so was statically linked during compilation to the flightgear binary, and we could delete simgear after compiling

I'll look for older PKGBUILDs to confirm if it's (1) and in that case it's a matter of moving simgear from makedepends to depends

edit: checked and I'm 100% sure simgear was only used for building flightgear and not as a dependency (ie: flightgear run properly after deleting simgear). Something changed in the upstream and for some reason simgear is not statically linked.

dreirund commented 3 months ago

Still unfixed!

simgear>=2020.4.0 simgear<2020.5 needs to be added to the depends array (please calculate the versions from flightgear-git's $pkgver dynamically.)

gmontamat commented 3 months ago

There's 2 alternatives, and I don't really know which path to take:

1) Add simgear to the depends array, because with current PKGBUILD options flightgear needs simgear during runtime 2) Modify simgear cmake flags to statically link it to flightgear

As mentioned above, option 2 was the default for a while and I suspect this changed with this commit. A fg dev I contacted on IRC mentioned that his SIMGEAR_SHARED defaulted to OFF.

dreirund commented 2 months ago

Now the package is orphaned (due to outstanding dependency issues) and anyone who is first having fixed it can adopt it in the AUR.