-
Notifications
You must be signed in to change notification settings - Fork 52
[BUG] Installing uwufetch on FreeBSD breaks system package manager #252
Comments
It also seems to break freebsd-update too. |
I'd suggest changing the Makefile to install binaries in /usr/local/bin, libraries in /usr/local/lib, and config files to /usr/local/etc. All the /usr versions of these directories are for the base system, and not third party applications. |
Well, fuck
Yes, that's for sure what's happening
Sounds like a good solution, I will implement it as soon as I can, and it will be available in the next release (or in the developer branch). Also, sorry for my late response, I'm preparing a couple exams |
It's all good, I managed to recover it without needing to reinstall. Plus it was kinda fun to diagnose what the issue was.
Usually third party applications install stuff in the /usr/local prefix, I'd suggest reading the hier(7) manpage for the platforms you support building on. |
the most wholesome bug report ever filed on github |
I'm glad to know
That's exactly what I was hoping for, I'll look into it |
Just discovered another file that got replaced, /usr/include/fetch.h got replaced by UwUFetch's own fetch.h too. |
Yes:
|
Describe the bug
If you build and install uwufetch on FreeBSD, it overwrites the system libfetch (which is for a program called fetch, it's used for grabbing files over HTTP and FTP) with uwufetch's libfetch. This breaks the system package manager (pkg) and fetch.
To Reproduce
Make and make install uwufetch on FreeBSD
Expected behavior
For the system package manager to not break, and uwufetch to install stuff in /usr/local.
Desktop (please complete the following information):
OS: FreeBSD
Version: 14.0-RELEASE-p5
Additional context
I compared the strings on the broken system libfetch with the one uwufetch built and they matched, so I'm pretty sure it's what's happening. I also ran it through ghidra and it has functions like
get_ram
,get_sys
,get_model
and such.Are you already working on this bug?
No
The text was updated successfully, but these errors were encountered: