Your message dated Sun, 05 Jun 2022 14:35:44 +0000
with message-id <[email protected]>
and subject line Bug#1012077: fixed in linuxinfo 4.0.0-1
has caused the Debian Bug report #1012077,
regarding linuxinfo FTBFS on riscv64
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1012077: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012077
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: linuxinfo
Version: 3.3.3-1
Severity: serious
Tags: ftbfs patch upstream
Justification: fails to build from source
X-Debbugs-Cc: [email protected]
Dear Maintainer,
linuxinfo currently fails to build on riscv64 due to this architecture not being
supported by upstream. I am attaching a patch which adds placeholder support for
this architecture and allows building the riscv64 debian package from source.
Please consider applying this patch (or similar) for the next upload.
In addition, the /proc information below is for a riscv64 VisionFive V1 SBC.
Thank you,
-Alan Beadle
-- Package-specific info:
/proc/cpuinfo:
processor : 0
hart : 1
isa : rv64imafdc
mmu : sv39
uarch : sifive,u74-mc
processor : 1
hart : 0
isa : rv64imafdc
mmu : sv39
uarch : sifive,u74-mc
Size of /proc/kcore:
-r-------- 1 root root 18446744000862892032 May 25 19:58 /proc/kcore
/proc/meminfo:
MemTotal: 7351200 kB
MemFree: 1778728 kB
MemAvailable: 6685728 kB
Buffers: 75344 kB
Cached: 4719384 kB
SwapCached: 0 kB
Active: 894708 kB
Inactive: 4391724 kB
Active(anon): 460 kB
Inactive(anon): 497556 kB
Active(file): 894248 kB
Inactive(file): 3894168 kB
Unevictable: 15396 kB
Mlocked: 15396 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 912 kB
Writeback: 0 kB
AnonPages: 507140 kB
Mapped: 260068 kB
Shmem: 628 kB
KReclaimable: 204236 kB
Slab: 241012 kB
SReclaimable: 204236 kB
SUnreclaim: 36776 kB
KernelStack: 1696 kB
PageTables: 3264 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 3675600 kB
Committed_AS: 687620 kB
VmallocTotal: 67108864 kB
VmallocUsed: 6316 kB
VmallocChunk: 0 kB
Percpu: 552 kB
CmaTotal: 655360 kB
CmaFree: 650112 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
Hugetlb: 0 kB
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: riscv64
Kernel: Linux 5.18.0-starfive-5.18 (SMP w/2 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages linuxinfo depends on:
ii libc6 2.33-7
linuxinfo recommends no packages.
linuxinfo suggests no packages.
-- no debconf information
Index: linuxinfo-3.3.3/linuxinfo.h
===================================================================
--- linuxinfo-3.3.3.orig/linuxinfo.h
+++ linuxinfo-3.3.3/linuxinfo.h
@@ -103,6 +103,10 @@
#define system_avr32
#endif
+#if defined(__riscv)
+#define system_riscv
+#endif
+
#if (SIZEOF_LONG > 4)
#define LONGLONG long int
#define LONGSPEC "%ld"
Index: linuxinfo-3.3.3/linuxinfo_riscv.c
===================================================================
--- /dev/null
+++ linuxinfo-3.3.3/linuxinfo_riscv.c
@@ -0,0 +1,25 @@
+/*
+ linuxinfo_riscv.c
+
+ This allows compilation on riscv
+
+*/
+
+#include <stdio.h>
+#include "linuxinfo.h"
+
+#ifdef system_riscv
+
+void GetHardwareInfo(int fd, struct hw_stat *hw)
+{
+ sprintf(hw->hw_memory, LONGSPEC, 0);
+
+ hw->hw_processors = 0;
+
+ sprintf(hw->hw_cpuinfo, "%s", "Unknown");
+ sprintf(hw->hw_bogomips, "%0.2f", 0.0);
+ sprintf(hw->hw_megahertz, "?");
+ hw->hw_processors = 0;
+}
+
+#endif /* system_riscv */
Index: linuxinfo-3.3.3/Makefile.am
===================================================================
--- linuxinfo-3.3.3.orig/Makefile.am
+++ linuxinfo-3.3.3/Makefile.am
@@ -4,7 +4,8 @@ linuxinfo_SOURCES = linuxinfo.c linuxinf
linuxinfo_alpha.c linuxinfo_ia64.c linuxinfo_intel.c \
linuxinfo_m68k.c linuxinfo_ppc.c linuxinfo_sh.c \
linuxinfo_hppa.c linuxinfo_s390.c linuxinfo_avr.c \
- linuxinfo_sparc.c linuxinfo_mips.c linuxinfo_unknown.c
+ linuxinfo_sparc.c linuxinfo_mips.c linuxinfo_riscv.c \
+ linuxinfo_unknown.c
man_MANS = po4a/linuxinfo.1
EXTRA_DIST = config.rpath CREDITS
VERSION = 3.3.3
--- End Message ---
--- Begin Message ---
Source: linuxinfo
Source-Version: 4.0.0-1
Done: Helge Kreutzmann <[email protected]>
We believe that the bug you reported is fixed in the latest version of
linuxinfo, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Helge Kreutzmann <[email protected]> (supplier of updated linuxinfo package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 05 Jun 2022 16:03:56 +0200
Source: linuxinfo
Architecture: source
Version: 4.0.0-1
Distribution: unstable
Urgency: medium
Maintainer: Helge Kreutzmann <[email protected]>
Changed-By: Helge Kreutzmann <[email protected]>
Closes: 1012077 1012343 1012347
Changes:
linuxinfo (4.0.0-1) unstable; urgency=medium
.
* New upstream release.
* Support for RiscV added, thanks to Alan Beadle, xiao sheng wen
(肖盛文) and Tienhock Loh. Closes: #1012077.
* Add a first Intel Core m3, thanks to xiao sheng wen (肖盛文).
Closes: #1012343
* Add a new CPU implementer (Phytium) for Arm64, thanks xiao sheng wen
(肖盛文). Closes: #1012347.
* Update debian/copyright.
* Update to standards version 4.6.1 (no change required).
Checksums-Sha1:
05167ea6739092762cb18ed2461e78340d980b56 1924 linuxinfo_4.0.0-1.dsc
52b8cdbed367253455dbc2572307da1af3a7cdea 163752 linuxinfo_4.0.0.orig.tar.xz
aa7876c8397a6bae561a3500dc9ce54a7fdaa755 16440 linuxinfo_4.0.0-1.debian.tar.xz
c723db69ace7e9566378ce89e7153f6f2f5c82a9 6625 linuxinfo_4.0.0-1_amd64.buildinfo
Checksums-Sha256:
0e841f4b2877030dadde7444bff69e9689977d032bce2223e3dc07380a26e850 1924
linuxinfo_4.0.0-1.dsc
51ed43bb51759404e9b4b45cd55c06ba025e4e50649d69cf896e6b6e7ed50150 163752
linuxinfo_4.0.0.orig.tar.xz
bf1919e5af66dedf938466b2c92fc28b88a54a718841fa54003119e9e5eeec91 16440
linuxinfo_4.0.0-1.debian.tar.xz
c47a27a0f2b0580c57abff561fa1734ddb9ac6a94cfe78b6e1096a0087f0b41c 6625
linuxinfo_4.0.0-1_amd64.buildinfo
Files:
760eaf397a34493c3001b92399ba7f39 1924 utils optional linuxinfo_4.0.0-1.dsc
358feffff29c764841be1f1a06350f2b 163752 utils optional
linuxinfo_4.0.0.orig.tar.xz
15201def49be759061f38bb718c2cfc7 16440 utils optional
linuxinfo_4.0.0-1.debian.tar.xz
3636cce0a13746f773b5479380e64e83 6625 utils optional
linuxinfo_4.0.0-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJJBAEBCgAzFiEEbZZfteMW0gNUynuwQbqlJmgq5nAFAmKcvFoVHGRlYmlhbkBo
ZWxnZWZqZWxsLmRlAAoJEEG6pSZoKuZwGdAP/jYfmZTDeZFg//0qPOOBINAYFhlJ
feH0NYXNWq2eOxwmFdzpSIX85QryGqWy1cYyzIwnKA5I1cwXQmExxzi+H0QtXll5
z0ajJwOdZ5iZRSu0AmSUIpUwymQKUPkdOCPtB+BzTS+5uoHNg92iKf4uWw5Hf66V
WUoIc8giTfRtnYrABcxJwDv3wT5sjDkv+bJNE0GPr4ul5e/eHBJ5ZgvZlfZ7XNmG
pH/2Y9Q2mqhZzz9Ws/0COM6zy0de4TVBxQLvG46OViPWjLHUV8T67itqAgRv6hPe
xba3gwd+H7R7VeNksU9n2XAHDIActQFcBVXvvDitDZ11cuoZ88YtMiAxlsT8nqjn
eI8EzBH1W6Rl1iL8N4xA4+nJMOhlMRGvzZw6ON8iWzuUxG84Kt9p0PbmypZeD3za
ELEowHvjuqtS8vO5aXjFM9penKbCmsgNme5lTqNtkPKAWu5IYLR5DxKC3P+XJuzP
8lmJ+JxK5EdTLyILe8eQ4H/vz15TZTVupJUQg7A6i+OTqJJ167DmwlZLPGpn0yMv
rQlEkAe/yTW+5fIY9IC5z98/ydymIp4meEn7I5kraFIEUgTx9QK7pBWllmJhAefk
PjHIMyTKCbW2bFu8mHNH2ztKVOd4dJUjwnwfL2flYBWI7Nsc8qzNEmAYa2P9KcDL
jdni3WE4Ek61RTS8
=8pEn
-----END PGP SIGNATURE-----
--- End Message ---