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

Re: Packages missing for debootstrapping Debian/riscv64 (was: Bug#906429: systemd: Please raise timeout for tests (for riscv64))



On Fri, Aug 17, 2018 at 10:55:12PM +0200, Manuel A. Fernandez Montecelo wrote:
> 2018-08-17 19:20 GMT+02:00 Karsten Merker <merker@debian.org>:

> > Regarding stuff missing in unstable for properly debootstrapping
> > a system: there is at least one other package, and that is
> > libffi, which is used by apt.  Unfortunately upstream support for
> > RISC-V is only available in libffi git head, but not yet in an
> > official release.  Upstream had originally planned to release a
> > new libffi version (3.3) in May 2018, but that didn't work out
> > and AIUI there are a number of (not riscv64-related) regressions
> > compared to version 3.2.1 that need to be sorted out before a
> > release can happen.
> 
> We had a conversation about this in the IRC channel, more or less
> touching all the points that you mention here.
> 
> Right now, using "debootstrap" appears to work but apt is broken in
> the target system.
> 
> It turns out that some libsystemd is required by apt and doesn't work
> at all without it, and libffi is also required by apt but only when
> using gnutls, presumably for https targets.  So the hope is that one
> can debootstrap using http://ftp.ports.debian.org/debian-ports,
> instead of an https address on the target system, and have a mostly
> functional system, or at least with apt mostly working, and from then
> on it can self-heal.

Hello,

unfortunately libffi is also required for pulling packages over http, not
only over https:

root@riscv64:~# apt-get update
/usr/lib/apt/methods/http: error while loading shared libraries: libffi.so.7: cannot open shared object file: No such file or directory
Reading package lists... Done
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Failed to fetch http://deb.debian.org/debian-ports/dists/unstable/InRelease  
E: Some index files failed to download. They have been ignored, or old ones used instead.
root@riscv64:~# dpkg -i libffi7_3.3~rc0-6_riscv64.deb 
Selecting previously unselected package libffi7:riscv64.
(Reading database ... 6320 files and directories currently installed.)
Preparing to unpack libffi7_3.3~rc0-6_riscv64.deb ...
Unpacking libffi7:riscv64 (3.3~rc0-6) ...
Setting up libffi7:riscv64 (3.3~rc0-6) ...
Processing triggers for libc-bin (2.27-5) ...
root@riscv64:~# apt-get update
Hit:1 http://cdn-fastly.deb.debian.org/debian-ports unstable InRelease
Get:2 http://cdn-fastly.deb.debian.org/debian-ports unstable/main all Packages [8927 kB]
Fetched 8927 kB in 28s (319 kB/s)                                                                  
Reading package lists... Done
root@riscv64:~# echo "deb http://deb.debian.org/debian-ports unreleased main" >> /etc/apt/sources.list
root@riscv64:~# apt-get update
Hit:1 http://cdn-fastly.deb.debian.org/debian-ports unstable InRelease
Get:2 http://cdn-fastly.deb.debian.org/debian-ports unreleased InRelease [52.4 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian-ports unreleased/main riscv64 Packages [184 kB]
Fetched 237 kB in 7s (36.4 kB/s)                                                                   
Reading package lists... Done
root@riscv64:~# apt-get -f install
Building dependency tree... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libsystemd0
The following NEW packages will be installed:
  libsystemd0
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 265 kB of archives.
After this operation, 521 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://cdn-fastly.deb.debian.org/debian-ports unreleased/main riscv64 libsystemd0 riscv64 238-2 [265 kB]
Fetched 265 kB in 2s (159 kB/s)     
Selecting previously unselected package libsystemd0:riscv64.
(Reading database ... 6334 files and directories currently installed.)
Preparing to unpack .../libsystemd0_238-2_riscv64.deb ...
Unpacking libsystemd0:riscv64 (238-2) ...
Setting up libsystemd0:riscv64 (238-2) ...
Processing triggers for libc-bin (2.27-5) ...

Regards,
Karsten
-- 
Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
Werbung sowie der Markt- oder Meinungsforschung.


Reply to: