Pouria
Guys. How can i learn Makfile syntax? I use FreeBSD.
ɴꙩᴍᴀᴅ
Reading makefiles from ports is how I started learning it. Nowadays I usually go to the man page of make, and also have a copy of Managing Projects with make, 2nd Edition from O'Reilly around the desk.
ɴꙩᴍᴀᴅ
The book name is "Managing Projects with gmake" ? or not gmake?
Make, not gmake. I guess there are several editions
ɴꙩᴍᴀᴅ
book's ISBN 13 is 9780937175903
Pouria
Authors of the above book are: Yes?
Pouria
I guess yes. Thanks.
ɴꙩᴍᴀᴅ
Pouria
They are, yes
Thanks man.
ɴꙩᴍᴀᴅ
Hello and welcome @dta90
Anonymous
Thanks
Anonymous
I installed FreeBSD in my Laptop, but no wifi interfaces are available how can i fix it
Hardcode
tbh you should've check if yours are supported under FreeBSD prior to installing it
ɴꙩᴍᴀᴅ
I installed FreeBSD in my Laptop, but no wifi interfaces are available how can i fix it
Which WiFi card does the laptop have? Do a quick $ pciconf -lv
Anonymous
Realtek RTL8723BE
Anonymous
I can connect internet with usb tethering btw
ɴꙩᴍᴀᴅ
Realtek RTL8723BE
http://bsd-hardware.info/?id=pci:10ec-b723-11ad-1723
ɴꙩᴍᴀᴅ
Tricky chip hehe
Anonymous
Overall, which BSD is more close to gentoo?
Anonymous
If you didn't know, gentoo is heavily source based
Pouria
I am not sure.
Anonymous
@n0madcoder which of the bsd's has something similar to gentoo's USE flags?
Anonymous
USE flags are basically global dependency variables
Anonymous
From gentoos wiki: USE flags are keywords that embody support and dependency-information for a certain concept.
Krond
There's a little misunderstanding here. Gentoo was built around portage, that was inspired by FreeBSD ports.
ɴꙩᴍᴀᴅ
@n0madcoder which of the bsd's has something similar to gentoo's USE flags?
To my understanding, Gentoo is the distro most similar to FreeBSD
Krond
Generally in any BSD you would be able to compile whole system and all packages, and configure them the way you want, adding or dropping deps.
ɴꙩᴍᴀᴅ
Slackware is similar to BSDs too
ɴꙩᴍᴀᴅ
I never tried Gentoo, since I left the Linux world to jump straight into BSD land, but if I have to go back to Linux I guess I'll try it
ɴꙩᴍᴀᴅ
A bit off topic but here you have new Githubs Copilot AI copy-pasting Quake's code (:
ɴꙩᴍᴀᴅ
Anonymous
Do you have a link for that part of the Wiki or an example?
https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/USE
Anonymous
In the USE variable users define keywords which are mapped onto compile-options. For instance, ssl will compile SSL support in the programs that support it. -X will remove X-server support (note the minus sign in front). gnome gtk -kde -qt4 -qt5 will compile programs with GNOME (and GTK+) support, and not with KDE (and Qt) support, making the system fully tweaked for GNOME (if the architecture supports it).
Anonymous
Anonymous
These USE variables are applied to all packages
Krond
Copyght infringement in 3.. 2..
Anonymous
Instead of manually configuring each package individually
Anonymous
Generally in any BSD you would be able to compile whole system and all packages, and configure them the way you want, adding or dropping deps.
Yes, but my guess is you have to specify dependency variables manually for each package, instead on setting one globally that applies to all packages?
ɴꙩᴍᴀᴅ
Instead of manually configuring each package individually
Sounds cool. Never looked at them, or at least I never paid attention to it. I don't know if FreeBSD does make use of them. I'm checking
Krond
There's a: - batch mode - ability to copy/paste/edit current configuration
ɴꙩᴍᴀᴅ
These USE variables are applied to all packages
Yes it has. I'm looking at a Makefile rightnow
Krond
- make flags that can force options
ɴꙩᴍᴀᴅ
ɴꙩᴍᴀᴅ
Yes it has. I'm looking at a Makefile rightnow
Let me guess how can I upload a file in telegram-cli
ɴꙩᴍᴀᴅ
ɴꙩᴍᴀᴅ
@solaris557 looks like line 14
Anonymous
@solaris557 looks like line 14
This? USES= cmake compiler:c++17-lang localbase
ɴꙩᴍᴀᴅ
This? USES= cmake compiler:c++17-lang localbase
It's the most similar thing to your example I can see in the Makefile yep
Krond
Seems to hehe
This actually spawns a question whether generated or "suggested" code should apply some licenses to the stuff you wright, and whether you can select what are acceptable licenses for your project so you wouldn't make it a garbage bin.
Krond
No, not USES: https://forums.freebsd.org/threads/how-to-manage-options-easily-and-globally.54508/
Krond
Keep in mind that like 95% to 97% of port options are actually unique and only apply to a port or two. Plus some port might fail to build with some OPTIONS combo.
Krond
For me it's a rule of thumb to leave everything like it was by default unless I'm completely sure want I want to change.
Krond
Here goes demons :D.
ɴꙩᴍᴀᴅ
It's going to be a thin line between legal suggested content and what not I guess
Krond
Legal thin line before FSF sues GitHub for giving companies legal reasons to copy their code.
ɴꙩᴍᴀᴅ
No, not USES: https://forums.freebsd.org/threads/how-to-manage-options-easily-and-globally.54508/
Oh, I see. Well the Makefile I sent is untouched from ports but I guess it only applies to specific port. are we talking about FreeBSD using them, or us as devs can make use of the flag?
Krond
Well, I had a feeling that was an enduser question about how to globally configure some stuff while building ports for personal use.
Krond
I don't think that applies to devs or porters.
Anonymous
What's the deal with this I'm confused
Krond
That's GitHub AI that suggests code while you are writing it. In this example it "suggested" whole function including legal notice. But you probably could skip license and go on with the code...
Krond
Yes, this is BSD make configuration files that is added to each port build. You can change compiler, play with options etc.
Anonymous
@triggereddotnet you use netbsd as desktop?
kub-kun
its usable
Anonymous
its usable
Quality being?
𝚂𝚑𝚊𝚢𝚊𝚗
𝚂𝚑𝚊𝚢𝚊𝚗
𝚂𝚑𝚊𝚢𝚊𝚗
Guys, do you have any Idea for launch TLauncher in FreeBSD? I have this errors. Already installed openjdk 16 and 8
𝚂𝚑𝚊𝚢𝚊𝚗
Oh okay then. I'm waiting for your helps
𝚂𝚑𝚊𝚢𝚊𝚗
are you sure that you can run it ?
𝚂𝚑𝚊𝚢𝚊𝚗
wtf