knatterfunker / codecserver-softmbe

Software MBE decoder for codecserver / digiham / openwebrx
GNU General Public License v3.0
44 stars 17 forks source link

dpkg-buildpackage liefert Fehler #3

Open dc7jzb opened 2 years ago

dc7jzb commented 2 years ago

Das Ausführen von dpkg-buildpackage liefert auf Debian 10 folgenden Fehler :

dpkg-shlibdeps: Fehler: keine Abhängigkeitsinformationen für /usr/local/lib/libcodecserver.so.0.1.0 (verwendet von debian/codecserver-driver-softmbe/usr/lib/x86_64-linux-gnu/codecserver/libsoftmbe.so) gefunden Tipp: Prüfen Sie, ob die Bibliothek tatsächlich aus einem Paket stammt. dh_shlibdeps: dpkg-shlibdeps -Tdebian/codecserver-driver-softmbe.substvars debian/codecserver-driver-softmbe/usr/lib/x86_64-linux-gnu/codecserver/libsoftmbe.so returned exit code 255 dh_shlibdeps: Aborting due to earlier error make: *** [debian/rules:3: binary] Fehler 25 dpkg-buildpackage: Fehler: Unterprozess debian/rules binary lieferte Exitstatus 2

knatterfunker commented 2 years ago

Good morning.

Tipp: Prüfen Sie, ob die Bibliothek tatsächlich aus einem Paket stammt.

Herein lies the problem. A similar problem was already discussed in issue #1 to some extent: The error message appears to be the result of a somewhat inconsistent setup where codecserver is not installed from a deb package, but codecserver-softmbe(this project) is. This is not really good practice. To work around the problem, you can use dh_shlibdeps --ignore-missing-info as suggested in that issue. We are currently considering adding this to debian/rules by default -- it's not a clean solution at all but apparently many people are subject to the problem...

knatterfunker commented 2 years ago

@dc7jzb quick question: When you bypass the failed dependency resolution as suggested in #1, do you end up with a working package or are you also subject to the remaining problems discussed in that issue? (I.e., you also get a "misplaced" shared library?)

You can bypass the dependency resolution by altering your debian/rules file in the following way before running dpkg-buildpackage:

sed -i "\$a\ \\noverride_dh_usrlocal:\\n\\t@:" debian/rules
dc7jzb commented 2 years ago

Hmm, both ways didn't help, the error will be the same.

dc7jzb commented 2 years ago

The Codecserver comes from the Debian Repository of Openwebrx.

dc7jzb commented 2 years ago

Ok, I got dpkg-buildpackage running. But I had to edit the script /usr/bin/dpkg-shlibdeps for it. i changed my $ignore_missing_info = 0; to my $ignore_missing_info = 1;. Then the building of the package works.