Bug#918177: libcpuinfo0: Log-level specified compile-time is very annoing

Alexander GQ Gerasiov gq at debian.org
Fri Jan 4 01:04:49 GMT 2019


Package: libcpuinfo0
Version: 0.0~git20181219.a974884-1
Severity: minor

Dear Maintainer,

libcpuinfo library selects log level during compile time.
1. It would be better if one could specify log-level during cpuinfo_initialize().
2. Anyway current compile-time setting is very annoing: on many processors it prints

Note (cpuinfo): Line power management: in /proc/cpuinfo is ignored: value contains only spaces

I suggest to change it to warning:

diff --git a/debian/rules b/debian/rules
index 53e8444..bfc74a0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,7 @@ override_dh_auto_configure:
                -DGOOGLETEST_SOURCE_DIR=/usr/src/googletest/ \
                -DCPUINFO_BUILD_BENCHMARKS=OFF \
                -DCPUINFO_LIBRARY_TYPE=shared \
+               -DCPUINFO_LOG_LEVEL=warning \
                -DCMAKE_SKIP_RPATH=ON
        # arch-specific install file
        if [ -r debian/cpuinfo.install.$(DEB_HOST_ARCH) ]; then \



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (700, 'testing'), (670, 'stable-updates'), (670, 'stable'), (600, 'unstable'), (550, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libcpuinfo0 depends on:
ii  libc6  2.28-2

libcpuinfo0 recommends no packages.

libcpuinfo0 suggests no packages.

-- no debconf information



More information about the debian-science-maintainers mailing list