[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sofia-sip: fail to build on riscv64



Hi, Adrian!
On Sat, Feb 19, 2022 at 04:18:31PM +0100, John Paul Adrian Glaubitz wrote:
Hello Vimer!

On 2/19/22 15:32, vimer wrote:
I apply patch[1] to sip source and pass for " machine `riscv64' not
recognized" error, but fail at last:

I suggest using qemu-based sbuild environment for building packages for
riscv64. There is an outdated guide I wrote for sh4 [1] which explains
on how to set up such an environment.

Normally, you should be able to create such a changeroot with:

# apt install sbuild
# cd /srv
# debbootstrap --no-check-gpg --include=debian-ports-archive-keyring --arch=riscv64 \
 unstable sid-riscv64-sbuild http://ftp.ports.debian.org/debian-ports/

and use this configuration:

glaubitz@nofan:~> cat /etc/schroot/chroot.d/sid-riscv64-sbuild
[sid-riscv64-sbuild]
description=Debian sid chroot for riscv64
type=directory
directory=/srv/sid-riscv64-sbuild
#groups=Debian,guest,d-i
#profile=dsa
#aliases=sid
groups=root,sbuild,glaubitz,buildd
root-groups=root,sbuild,glaubitz,buildd
#command-prefix=
#source-root-users=glaubitz,sbuild,buildd
#run-setup-scripts=true
#run-exec-scripts=true
glaubitz@nofan:~>

Then you can packages virtually natively using --arch=riscv64.

That's very cool and i can build riscv arch sofia-sip debian package
with the method you suggested!

But there is one more litian error here. It is not a big deal i think.

And i can confirm the patch[1] taking effect in fact.

I am wonder how to push the package porting into debian  port's repositories
in next step.

BR,
vimer

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=978498#10

Adrian

[1] https://wiki.debian.org/SH4/sbuildQEMU

--
.''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
 `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Reply to: