[Bug 251073] sysutils/plasma5-kinfocenter: show up FreeBSD 12.1 on FreeBSD 12.2
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Nov 12 12:51:29 GMT 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251073
Bug ID: 251073
Summary: sysutils/plasma5-kinfocenter: show up FreeBSD 12.1 on
FreeBSD 12.2
Product: Ports & Packages
Version: Latest
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: kde at FreeBSD.org
Reporter: marshall.ruanel at qq.com
Flags: maintainer-feedback?(kde at FreeBSD.org)
Assignee: kde at FreeBSD.org
port: sysutils/plasma5-kinfocenter
After install the kde5 by ports, after run systemsetting, click "System
Information" (which I believe is actually calling kinfocenter, the window
reminds me my system is FreeBSD 12.1, but it is 12.2.
"uname -a" gives "FreeBSD HPC-BSD 12.2-RELEASE FreeBSD 12.2-RELEASE r367095
GENERIC amd64"
so I checked the pkg-plist file, and it seems would install
"/usr/local/etc/xdg/kcm-about-distrorc file. which is as follows:
[General]
Name=FreeBSD
LogoPath=/usr/local/share/kinfocenter/images/freebsd_logo.svg
Website=https://www.freebsd.org
After I add a line "Version=12.2"
the kinfocenter gives right FreeBSD release version information.
But I've checked the "kinfocenter/Modules/about-distro/src/KernelEntry.cpp"
file, which include the '<sys/utsname.h>', and looks like:
KernelEntry::KernelEntry()
: Entry(ki18n("Kernel Version:"), kernelVersion())
{
}
QString KernelEntry::kernelVersion()
{
struct utsname utsName;
if (uname(&utsName) == 0) {
return QString::fromLatin1(utsName.release);
}
return QString();
}
which means kinfocenter would give correct version number even without
"Version=12.2" in kcm-about-distrorc file.
So I add a line to printf the utsName.release as:
if (uname(&utsName) == 0) {
printf("*******:%s\n", utsName.release);
return QString::fromLatin1(utsName.release);
}
But strange thing happened, after I run
/usr/ports/.../stage/usr/local/bin/kinfocenter, there is nothing show out on
console related with "prinf...".
It looks like this code had not been executed at all.
So, I was totally confused, and the only thing I can do is reported to you.
Thanks alot.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the kde-freebsd
mailing list