szechyjs / mbelib

P25 Phase 1 and ProVoice vocoder
Other
280 stars 116 forks source link

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

Open bi7jta opened 7 months ago

bi7jta commented 7 months ago

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 <jared.szechy@gmail.com>": 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