Bugzilla Automation <bugzi...@freebsd.org> has asked freebsd-kde (Team) <k...@freebsd.org> for maintainer-feedback: Bug 251073: sysutils/plasma5-kinfocenter: show up FreeBSD 12.1 on FreeBSD 12.2 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251073
--- Description --- 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.