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: error: failed to sign .dsc file #28

Open
bi7jta opened this issue Apr 14, 2024 · 0 comments
Open

dpkg-buildpackage: error: failed to sign .dsc file #28

bi7jta opened this issue Apr 14, 2024 · 0 comments

Comments

@bi7jta
Copy link

bi7jta commented Apr 14, 2024

Hello,
I got an error in bullseye 32bit, use this script in RPi5B bookworm OS 32bit no problem.

OS, Raspberry pi 4B2G

lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye


install build error logs,

image

 dpkg-genchanges  >../libmbe_1.3.0_armhf.changes
dpkg-genchanges: info: including full source code in upload
 dpkg-source --after-build .
dpkg-buildpackage: info: full upload; Debian-native package (full source is included)
 signfile libmbe_1.3.0.dsc
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: skipped "Jared Szechy <[email protected]>": No secret key
gpg: dpkg-sign.dpUqhT5K/libmbe_1.3.0.dsc: clear-sign failed: No secret key

dpkg-buildpackage: error: failed to sign .dsc file

install-softmbe.sh

#!/bin/bash
set -euxo pipefail

BUILD_PACKAGES="git build-essential debhelper cmake libprotobuf-dev protobuf-compiler"

apt update
apt -y install --no-install-recommends $BUILD_PACKAGES libcodecserver-dev


pushd /tmp

echo "+ Build MBELIB..."
git clone https://github.com/szechyjs/mbelib.git
cd mbelib
dpkg-buildpackage
cd ..
rm -rf mbelib
dpkg -i libmbe1_1.3.0_*.deb libmbe-dev_1.3.0_*.deb

echo "+ Build codecserver-softmbe..."
git clone https://github.com/knatterfunker/codecserver-softmbe.git
cd codecserver-softmbe
# ignore missing library linking error in dpkg-buildpackage command
sed -i 's/dh \$@/dh \$@ --dpkg-shlibdeps-params=--ignore-missing-info/' debian/rules
dpkg-buildpackage
cd ..
rm -rf codecserver-softmbe

apt remove -y --purge --autoremove $BUILD_PACKAGES

dpkg -i /tmp/libmbe1_1.3.0_*.deb
dpkg -i /tmp/codecserver-driver-softmbe_0.0.1_*.deb

rm -f /tmp/libmbe* /tmp/codecserver-driver-softmbe*

cat >> /etc/codecserver/codecserver.conf << _EOF_

# add softmbe
[device:softmbe]
driver=softmbe
_EOF_


echo;echo;echo
echo "Installation successful. Please reboot."

popd

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

1 participant