Useless dependency found?
- Login o registrati per inviare commenti
I was thinking about editing out fantasy from some games like ironseed, to only use the mechanic of it and I saw a "useless dependency"
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/ironseed/usr/games/is debian/ironseed/usr/libexec/ironseed/intro debian/ironseed/usr/libexec/ironseed/crewgen debian/ironseed/usr/libexec/ironseed/main were not linked against libgcc_s.so.1 (they use none of the library's symbols)
near the end of the
fakeroot apt-get source -b ironseed-data
build I was building.
I did not edit anything, I was just testing if this can compile, before I changed anything.
Is this a bug to report in the Trisquel gitlab issues, or is the dependency needed by something still in the package, so only the "warning" is bug like?
Trisquel not modifying that source package, reporting upstream looks better: https://bugs.launchpad.net/ubuntu/+source/ironseed/+filebug
There may be little point in avoiding the dependency of ironseed-data on libgcc-s1. The ironseed (not ironseed-data) package probably depends on libgcc-s1, directly or indirectly, and almost nobody wants the data files for the game but not the game itself. In fact, libgcc-s1 is the kind of package that is present on essentially all GNU/Linux systems, even on minimal terminal-only systems: ask for its removal (but do *not* confirm!) and see.
Sorry I typed
fakeroot apt-get source -b ironseed-data
by mistake.
I should have typed
fakeroot apt-get source -b ironseed
as I think
fakeroot apt-get source -b ironseed
showed
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/ironseed/usr/games/is debian/ironseed/usr/libexec/ironseed/intro debian/ironseed/usr/libexec/ironseed/crewgen debian/ironseed/usr/libexec/ironseed/main were not linked against libgcc_s.so.1 (they use none of the library's symbols)
Thank you, Magic Banana, for the information about the upstream link and libgcc_s.so.1
Maybe somehow ironseed does not need to link to this, though likely only ironseed and other small programs, so I or someone else could try to find out how ironseed links to libgcc_s.so.1 even though it may somehow not even be used in it, at least directly.
The game still builds with
fakeroot apt-get source -b ironseed
though I did not yet try to change the code to edit out whatever is linking to libgcc_s.so.1
so I do not know yet if it is a "useless dependency" or still may be needed to build or run ironseed even though the "warning" shows it may not be needed.
I think the upstream for Trisquel's apt-get source ironseed
is git clone https://salsa.debian.org/mnalis/ironseed.git
Though I'm still looking why ironseed links to libgcc_s.so.1 if it may not be needed in that program.
Since, in Debian, ironseed depends on libgcc-s1 ( https://packages.debian.org/sid/ironseed ), it is likely that you would get the same message building the Debian package... but it would better to verify that before reporting. Indeed, Trisquel takes its packages from Ubuntu, which does modify ironseed, as the version string indicates.
I saw with grep -ri
grep -ri libgcc_s
Makefile:libgcc_dir := $(shell find /usr/ -name libgcc_s.so -printf "-Fl%h " 2>/dev/null)
in the apt-get source ironseed
ironseed-0.3.6 folder.
Though I'm still checking why is is there.
The issue has been reported at
https://gitlab.trisquel.org/trisquel/package-helpers/-/issues/145
to see if this is a bug in apt-get or ironseed, and where it should be reported to, in-case Trisquel does not need to include that dependency for ironseed but other "distros" may still need that dependency.
- Login o registrati per inviare commenti