[Bug 251073] sysutils/plasma5-kinfocenter: show up FreeBSD 12.1 on FreeBSD 12.2
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Dec 2 03:35:33 GMT 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251073
--- Comment #12 from marshall <marshall.ruanel at qq.com> ---
Hi, all:
Today I get sometime and finally solved this little problem. Here is what
I've done.
1.I try to find all os-release file in my computer:
> cd /
> locate os-release
then I get the output as:
/compat/linux/etc/centos-release
/compat/linux/etc/centos-release-upstream
/compat/linux/etc/os-release
/compat/linux/usr/lib/os-release
/compat/linux/usr/share/centos-release
/compat/linux/usr/share/centos-release/EULA
/compat/linux/usr/share/doc/centos-release
/compat/linux/usr/share/doc/centos-release/Contributors
/compat/linux/usr/share/doc/centos-release/GPL
/etc/os-release
/etc/rc.d/os-release
/usr/local/etc/os-release
/usr/obj/usr/src/amd64.amd64/share/man/man5/os-release.5.gz
/usr/ports/sysutils/etc_os-release
/usr/ports/sysutils/etc_os-release/Makefile
/usr/ports/sysutils/etc_os-release/pkg-descr
/usr/share/man/man5/os-release.5.gz
/usr/src/libexec/rc/rc.d/os-release
/usr/src/share/man/man5/os-release.5
/var/db/etcupdate/current/etc/os-release
/var/db/etcupdate/current/etc/rc.d/os-release
/var/run/os-release
2. It seems only 4 files looks related with the bug
/etc/os-release
/etc/rc.d/os-release
/usr/local/etc/os-release
/var/run/os-release
so I `cat` them one by one, and find the 12.1-p10 comes from
/usr/local/etc/os-release, which means this file have not been upgraded after I
upgrade the system from 12.1 to 12.2.
3. Solve the problem
After I overwrite the /usr/local/etc/os-release by /etc/os-release, now the
kinfocenter dialog can gives right version.
4. still confuse me
Since the source code of plasma5 indicate that they read the release info.
only from "/etc/os-release" and "/usr/lib/os-release", why my "/etc/os-release"
does not work and strangely read the "/usr/local/etc/os-release" file.
5. recommendation
I think it is better to remove the "/usr/local/etc/os-release" on future
releases, or add some automatic process to overwrite it after the user install
the world.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the kde-freebsd
mailing list