Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dpkg-buildpackage liefert Fehler #3

Open
dc7jzb opened this issue Nov 16, 2021 · 5 comments
Open

dpkg-buildpackage liefert Fehler #3

dc7jzb opened this issue Nov 16, 2021 · 5 comments

Comments

@dc7jzb
Copy link

dc7jzb commented Nov 16, 2021

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
Copy link
Owner

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
Copy link
Owner

@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
Copy link
Author

dc7jzb commented Dec 5, 2021

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

@dc7jzb
Copy link
Author

dc7jzb commented Dec 5, 2021

The Codecserver comes from the Debian Repository of Openwebrx.

@dc7jzb
Copy link
Author

dc7jzb commented Dec 7, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants