Your message dated Sun, 05 Jan 2025 13:42:03 +0000
with message-id <[email protected]>
and subject line Bug#1080382: fixed in linuxlogo 6.01-0.1
has caused the Debian Bug report #1080382,
regarding linuxlogo: please add support for loong64
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.)
--
1080382: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1080382
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: linuxlogo
Version: 6.0-0.1
Severity: normal
X-Debbugs-Cc: [email protected]
Dear Maintainer,
linuxlogo compiled incorrectly on loongarch platform, attachment patch solved
the problem. It has been verified on loongarch platform, please merge the patch.
wuruilong
-- System Information:
Debian Release: trixie/sid
APT prefers unreleased
APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)
Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: <short summary of the patch>
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.
.
linuxlogo (6.0-0.1) unstable; urgency=medium
.
* NMU: Non-Maintainer Upload
* New Upstream release
- Can read amount of system RAM w/o privs (closes: #839594)
- Update debian/rules for dh13 and new release
- Update debian/linuxlogo.docs to upstream changes
- Forward port quilt patches, all but 3 have been upstreamed
- Add quilt patch so po/Makefile uses DESTDIR
- Add quilt patch to use fscanf return value
* Bump debhelper from deprecated 9 to 13.
* Bump to Debian Policy 4.5.1.
* Use secure copyright file specification URI.
* Change priority extra to priority optional.
* Set upstream metadata fields: Repository, Repository-Browse,
Bug-Database, Bug-Submit.
* Update Vcs-* headers to use salsa repository.
* Trim trailing whitespace in changelog.
* Fix day-of-week for changelog entry 3.9b4-1.2.
* Update watch file format version to 4.
* Rules-Requires-Root: no
* Add pre-dependency per lintian
* Fix FTCBFS: Export a suitable CROSS variable (Closes: #972289),
thanks to Helmut Grohne <[email protected]>
* Flush ./potmp/ stuff, backup/restore po/linux_logo.pot instead
* Enable full hardening flags
Author: Barak A. Pearlmutter <[email protected]>
Bug-Debian: https://bugs.debian.org/839594
Bug-Debian: https://bugs.debian.org/972289
---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>
Last-Update: 2024-09-03
--- linuxlogo-6.0.orig/libsysinfo-0.3.0/Linux/Makefile
+++ linuxlogo-6.0/libsysinfo-0.3.0/Linux/Makefile
@@ -32,6 +32,10 @@ ifneq (,$(findstring mips,$(ARCH)))
ARCH := mips
endif
+ifneq (,$(findstring loongarch,$(ARCH)))
+ ARCH := loongarch
+endif
+
all: cpuinfo.o sysinfo_linux.o
@@ -55,6 +59,9 @@ frv: cpuinfo_frv.c
ia64: cpuinfo_ia64.c
$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_ia64.c
+loongarch: cpuinfo_loongarch.c
+ $(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_loongarch.c
+
m32r: cpuinfo_m32r.c
$(CROSS)$(CC) $(CFLAGS) -o cpuinfo.o -c cpuinfo_m32r.c
--- /dev/null
+++ linuxlogo-6.0/libsysinfo-0.3.0/Linux/cpuinfo_loongarch.c
@@ -0,0 +1,69 @@
+/* Handles loongarch chips on Linux architecture */
+/* by JiaLing Zhang <[email protected]> */
+
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h> /* atof */
+
+#include "../sysinfo.h"
+#include "../include/generic.h"
+
+int get_cpu_info(struct cpu_info_type *cpu_info) {
+
+ FILE *fff;
+ char temp_string[BUFSIZ];
+ char vendor_string[BUFSIZ],model_string[BUFSIZ];
+ int cpu_count=0;
+ float megahertz=0.0,bogomips=0.0;
+
+ vendor_string[0]=model_string[0]=0;
+
+ strncpy(vendor_string,"Loongson",9);
+
+ /* We get all of our info here from /proc/cpuinfo */
+ if ((fff=fopen(get_cpuinfo_file(),"r") )!=NULL) {
+
+ while ( (fgets(temp_string,BUFSIZ,fff)!=NULL) ) {
+
+ if (cpu_count==0) {
+
+ if ( !(strncmp(temp_string,"Model Name",10))) {
+
strncpy(model_string,parse_line(temp_string),BUFSIZ-1);
+ clip_lf(model_string,BUFSIZ);
+ }
+
+ if ( !(strncmp(temp_string,"CPU MHz",7))) {
+ megahertz=atof(parse_line(temp_string));
+ }
+ }
+
+ /* Ugh why must people play with capitalization */
+ if ( !(strncmp(temp_string,"bogomips",8)) ||
+ !(strncmp(temp_string,"BogoMips",8)) ||
+ !(strncmp(temp_string,"BogoMIPS",8))) {
+ bogomips+=atof(parse_line(temp_string));
+ cpu_count++; /* Cheating way to detect number
of CPUs */
+ }
+ }
+ }
+
+
strncpy_truncate(cpu_info->chip_vendor,vendor_string,SYSINFO_CHIP_VENDOR_SIZE);
+
strncpy_truncate(cpu_info->chip_type,model_string,SYSINFO_CHIP_TYPE_SIZE);
+
+ cpu_info->num_cpus=cpu_count;
+ cpu_info->megahertz=megahertz;
+ cpu_info->bogomips=bogomips;
+
+ return 0;
+}
+
+int get_hardware(char *hardware_string) {
+
+ return -1;
+}
+
+ /* Some architectures might have better ways of detecting RAM size */
+long long get_arch_specific_mem_size(void) {
+ /* We have no special way of detecting RAM */
+ return 0;
+}
--- End Message ---
--- Begin Message ---
Source: linuxlogo
Source-Version: 6.01-0.1
Done: Barak A. Pearlmutter <[email protected]>
We believe that the bug you reported is fixed in the latest version of
linuxlogo, 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.
Barak A. Pearlmutter <[email protected]> (supplier of updated linuxlogo 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: Sat, 04 Jan 2025 12:43:14 +0000
Source: linuxlogo
Architecture: source
Version: 6.01-0.1
Distribution: unstable
Urgency: medium
Maintainer: Dariusz Dwornikowski <[email protected]>
Changed-By: Barak A. Pearlmutter <[email protected]>
Closes: 1080382
Changes:
linuxlogo (6.01-0.1) unstable; urgency=medium
.
* NMU: Non-Maintainer Upload
* Quilt patches for post-6.0 upstream changes.
* Update standards version to 4.7.0, no changes needed.
* Dependency on lsb-base is obsolete.
* New upstream release
* Patch for loong64 support (closes: #1080382)
* Use upstream man page
* Extend and consolidate Makefile patches
- standard variable names
- use DESTDIR appropriately in standard fashion
- use $(MAKE) -C
* Cherry-pick upstream commit for newer Intel model numbers
Checksums-Sha1:
a60be0f8e899907970bc0afed9076eed8aefecb9 1894 linuxlogo_6.01-0.1.dsc
005c0f2dbca7530c624abd168f1f9914a02030e8 97876 linuxlogo_6.01.orig.tar.xz
bd24bfb908b93cd047b0beae25e7984f9025cf70 19876 linuxlogo_6.01-0.1.debian.tar.xz
a4075ab4f60263c0baa0860ed79d2f5cbe6f6d3b 6619
linuxlogo_6.01-0.1_source.buildinfo
Checksums-Sha256:
f2067fe08531882fa2d2912ff2d28a2739a62c32b19211c6bb274fdbb35d020c 1894
linuxlogo_6.01-0.1.dsc
bdde3abeea2dce73c892340ad48e6c05a8a1b5cd7ca42766efa8bf6957694041 97876
linuxlogo_6.01.orig.tar.xz
36f6bb04160ab705d8c19a56703ed2a8fd73d78865d5b67d28c12bebd67a8f9f 19876
linuxlogo_6.01-0.1.debian.tar.xz
84006b9b50487eb5d9b4057fdd95e3cc70d820b2b6b4b195b4de922082fe7729 6619
linuxlogo_6.01-0.1_source.buildinfo
Files:
0cb3ad0fd7db7dc8acf32374042c4297 1894 misc optional linuxlogo_6.01-0.1.dsc
6b6954e9b18f895df0680fcdb5f738a6 97876 misc optional linuxlogo_6.01.orig.tar.xz
c57b1cb4de31b3cd59eb901a4d2d96ae 19876 misc optional
linuxlogo_6.01-0.1.debian.tar.xz
3973011e427f90aa8aff1ef10954bb8a 6619 misc optional
linuxlogo_6.01-0.1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJDBAEBCgAtFiEE+nZaz+JE7Dn2AefCmesepNIze4gFAmd6fVUPHGJhcEBkZWJp
YW4ub3JnAAoJEJnrHqTSM3uIskMP/Rpe/AnOT1G9a/M9YiHgPX+sV1tjxICxX5VU
amIDKhXaNQ+zOTk0+s9/GI9Iyo2Sb2q5+lzS4xRm0DUoXjQQSOytZ0zWOjVBzdzf
cfuyONaBuHXAO2yT+0UiM8izXzoYITybgadW+2QYc/hPKCFQvoEteQsWJSq4V1/B
xHWP/cfF6sCxoqGPM9KbhJJGiGQmZR0JDfVFZ1apPkc0Xz82Vf/qliL1+sE8PWAd
Kg4NQQHdpP2+WIjUNeR8gmskVtlrwzaIYTMJCiRTHUXZ7zZDJVGj+Yv6lC+HG99h
eX/gtyDeqj1/wHxXiW88WGC43gHMcflvyVqGwiJBC4Lk4IxyDl+ksfcvT4o0nOne
AMZg2IQbdMmAXKP+h2044YR8thzADWj922BjlIQKJNKp3LSz6G89pYkn3uJ4RLLU
6rK7G4g6v0/Li6oekqf6gVeLmLEi5qo9wVRlPtmxL37KiRyIok8qkdxLAui9hZfE
ocaiKYUkPah3sH2yncRmU0jX3GwJNci2WO0aQ1p57Co+QAmZnZ1dLh3Jf9z2xGOB
jsOdz4Ltcb8vDalH6fcbAy/tz2Qu1kuE1eOc9GQTNN6BouXWvcs37rkgHVJqkftQ
HPBdun7J4nmu5hQRd2erzefeTPNTFZrUvA2RiMeWUbA31BaKViEkm/OXcQeyq3qJ
elqBgd53
=fajo
-----END PGP SIGNATURE-----
pgpegHHTaiYNa.pgp
Description: PGP signature
--- End Message ---