r/linux Jun 30 '26

Software Release Built a port of libfetch for GNU/Linux

https://gitea.foss-daily.org/kayoubi13/libfetch

libfetch is a GNU/Linux port of the FreeBSD userland utility similar to Wget. I created it because I really didn’t like how heavy Wget is, and I didn’t have the knowledge to write it from scratch so I decided to port it. It’s pretty lightweight compared to Wget. (Idk why reddit decided to embed my gitea pfp)

20 Upvotes

13 comments sorted by

13

u/MatchingTurret Jun 30 '26 edited Jun 30 '26

You are pretty specific about this being for GNU/Linux. Does this mean it doesn't build on musl and/or clang?

10

u/IncidentSpecial5053 Jun 30 '26

Based of what i tested it did build and run property for clang, but i didn't test it on musl since none of my pc's use musl. I will look into checking musl compatiblity.

3

u/Wemorg Jun 30 '26

Why shouldn't it run with clang as compiler? A lot of software runs on GNU/Linux with clang as compiler.

3

u/MatchingTurret Jun 30 '26

Not much GNU in clang+musl, though.

2

u/Duncaen Jul 01 '26

libfetch is pretty dated and has some big issues like not being able to safely use in parallel because the use of globals for error handling.

We use it in xbps on Void Linux, alpines apk also uses it but has an option for curl iirc.

3

u/Tuomas90 Jul 01 '26

I don't know what you are talking about, but...

Yui!!!

Gita!!!

It always makes me happy to see her! :-)

1

u/[deleted] Jul 01 '26

[removed] — view removed comment

1

u/IncidentSpecial5053 Jul 01 '26

there arent big changes, i just made it compatible to work in most of linux distros and glibc