Date: Thu, 12 Nov 2020 12:51:29 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 251073] sysutils/plasma5-kinfocenter: show up FreeBSD 12.1 on FreeBSD 12.2 Message-ID: <bug-251073-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251073 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@FreeBSD.org Reporter: marshall.ruanel@qq.com Flags: maintainer-feedback?(kde@FreeBSD.org) Assignee: kde@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=3DFreeBSD LogoPath=3D/usr/local/share/kinfocenter/images/freebsd_logo.svg Website=3Dhttps://www.freebsd.org After I add a line "Version=3D12.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) =3D=3D 0) { return QString::fromLatin1(utsName.release); } return QString(); } which means kinfocenter would give correct version number even without=20 "Version=3D12.2" in kcm-about-distrorc file. So I add a line to printf the utsName.release as: if (uname(&utsName) =3D=3D 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251073-7788>