-
farhan
Having trouble with my first port...
-
farhan
-
farhan
I am expecting it to download the code from github, the tag is specified, then run the MAKE_CMD command, which is ./build
-
farhan
Instead, it seems to give me the output as listed.
-
farhan
It correctly downloads the code (great), but doesn't run the `build` script.
-
ivy
farhan: it's probably trying to pass -f to your MAKE_CMD, you may need to set MAKEFILE and/or _MAKE_JOBS like boost-jam does
-
farhan
-
ivy
-f is the flag to tell make what makefile to use, by setting MAKEFILE to an empty value, it prevents that flag from being passed (i assume)
-
farhan
I do not see that in the Makefile I pasted.
-
farhan
Am I missing something?
-
ivy
this is from ports itself, it's running ${MAKE_CMD} -f ${MAKEFILE} -j ${_MAKE_JOBS}
-
ivy
but your build script doesn't understand -f, which is what causes the error
-
farhan
so, run `make -f`?
-
farhan
I'm not following you.
-
farhan
Where is the `-f` you are referencing?
-
ivy
in the output you pasted: [error] invalid option: -f
-
ivy
this is because ports is running "${MAKE_CMD} -f ${MAKEFILE}", to make it not do that, you need to set MAKEFILE to an empty value, which is what boost-jam's makefile does
-
farhan
ohhhh
-
farhan
-
ivy
hmm, try setting MAKE_FLAGS as well, an empty value should be fine
-
ivy
if that doesn't work you may need to dig into ports/Mk/ to see how ${MAKE_CMD} is actually invoked
-
farhan
I tried both blank and -I/usr/local/include. It fails saying unexpected flag I
-
farhan
so yes, I will have to dig into this...
-
farhan
the empty value returned the error...[error] unexpected positional argument
-
farhan
I"ll dig into it
-
ivy
there's a make flag (-d something) that will show the actual command it's running, which might also help
-
ivy
(put that on your make command line, not in the makefile)
-
farhan
hm...what is the path of ports/Mk?
-
farhan
oh, I was searching in /usr/src :/
-
ivy
Mk/ is in the top-level ports directory
-
farhan
I think I have to call it for the evening...
-
farhan
I know the basics of gmake, but not bsdmake. Maybe I can just write a bsdmake Makefile, might be easier...
-
nimaje
farhan: you should write a do-build target instead of misusing MAKE_CMD for that
-
nimaje
(and it is really nice that the ports framework ignores the rule about being verbose while building, so that you can debug what went wrong)
-
nimaje
print/hyperlatex seems to be a better example port, just forget what devel/boost-jam does
-
Tikosh
Hello! I recently installed freebsd and using synth for my ports. I got a minisforum v3 and i cannot seem to get the touchpad to work. Touchscreen and keyboard works, though. Any place i can be guided to?
-
Tikosh
I come from linux, so please be patient with me
-
mason
Tikosh: A good place for X questions is the #freebsd-xorg channel on EFnet. A lot of folks who work on the stuff are there. There's also the freebsd-x11 mailing list:
lists.freebsd.org/subscription/freebsd-x11
-
Tikosh
Even for if im using wayland?
-
Tikosh
Even if im using wayland?
-
Tikosh
Thank you
-
Tikosh
mason: thank you
-
mason
Tikosh: Sure! Hope it helps.
-
mason
Tikosh: Ah, I know nothing about Wayland. I don't see Wayland-specific lists or channels but I bet the X folks are still the best resource.
-
seti_
I thought wayland wasnt a thing yet on freebsd?
-
Tikosh
seti_ : i saw the handbook talking about wayland
-
Tikosh
Yea. I come from gentoo linux. So im a linux soyguy lol
-
Tikosh
Jk
-
Tikosh
Freebsd is cool. Its similar to linux but different
-
Tikosh
Does anybody have experience using synth for building ports?
-
Tikosh
Im accustomed to gentoo. And i see a bit of similarity to portage and synth a bit. Is there another port mgr that similar to portage?
-
mason
Ah, he left before I got a chance to recommend Poudriere.
-
dacav
Hi. According to
forums.freebsd.org/threads/ipfw-or-pf.46706 ipfw seems to better supported (?) than pf. But the Handbook lists pf first (which I interpret as a recommendation). Which one to pick?
-
scoobybejesus_tl
I chose pf because I found it easier to find resources for. But that could have been dumb luck. At least a couple knowledgeable people here use ipfw
-
mason
dacav: I use ipfw, but probably more people really like pf. Really up to you. Look at the syntax of each and see what you prefer.
-
dacav
mason: I'm currently only using it for fail2ban
-
dacav
I managed btw to have it triggered, and `ipfw list` shows me the rule I wanted to see
-
dacav
65100 unreach port tcp from 192.168.122.1 to 127.0.0.1 80,443
-
dacav
I think I'm missing something though, because the rule is not effective
-
dacav
perhaps firewall_type="open" is too liberal, I've got to RT.M
-
dacav
;-)
-
dacav
Anyway, I understand that pf and ipfw are equally powerful, in the end?
-
mason
dacav: Hm, might be worth looking at tables too, rather than raw rules for things.
-
mason
Tables are a fantastic tool.
-
dacav
I don't know yet what they are
-
dacav
I'm currently just a first day user! :D
-
dacav
(first hour, actually)
-
dacav
Ah, nice! They seem to be very convenient
-
dacav
fail2ban seems to use rules, and grep for the correct rule before deleting it
-
dacav
I suppose I could do it removing the unbanned IP from the table instead
-
dacav
(probably after having it working with basic rules though... keeping it simple first ;-)
-
rtprio
i have a mfi0 in raid mode but i think i should flash it to jbod mode (PERC H700 Integrated). what's the best way to go about doing that
-
mason
dacav: Sorry, missed this. Tables are entities that contain a list of addresses or CIDR ranges, and you treat them with a single ipfw (or I guess pf) rule, rather than having a large number of separate rules.
-
mason
They're particularly useful for both blocklists and allowlists.
-
rtprio
hrm, i broke my vm-bhyve bridges
-
rtprio
looks like net.link.bridge.member_ifaddrs >:|
-
rtprio
ivy: who did this