01:29:30 why can freebsd get ipv6 address with wire network card, but can not get address with wireless device ? 01:30:00 both ways use dhcp to get address. 01:30:36 where might it be wrong ? 01:32:04 using freebsd 13.x 01:34:03 iirc, dhcpv6 is not supported in the base system 01:34:38 this is because ipv6 is not supposed to use it, it has its own address discovery mechanisms, and dhcpv6 is a hack 01:35:16 what makes you think it's using dhcp when on wire? 01:36:47 sorry, I don't know that. 01:37:57 how to setup ipv6 connect with wireless connection? 01:39:06 I don't know, sorry 01:39:59 I searched some web pages on how to configure dhcpv6 on wireless network but I can't duplicate that. 01:43:58 ifconfig_vtnet0_ipv6="accept_rtadv" 01:44:16 Add that to your rc.conf, only switch vtnet0 for your wifi interface. 01:54:05 occ: did you see CrtxReavr's response? 01:56:23 I have yet to find a public use (coffee shop) WiFi Access Point that passes IPv6 through. Here they are all IPv4 only. 02:03:03 RhodiumToad: I was finding more information on accept_rtadv ... 02:08:54 rwp: in my case, I happened seeing the phenomenon that freebsd could get ipv6 address with wire connection but only ipv4 address with wireless connection at the same time. freebsd can visit public network with above both connections. 02:09:23 s/both/two 02:11:21 two default routes work fine, one is ipv6 ,the other is ipv4. 02:11:27 The more I learn about IPv6 the more I think DHCPv6 is the better option over SLAAC/RA 02:24:15 I didn't use ifconfig_vtnet0_ipv6 in /etc/rc.conf. 02:25:47 just ifconfig_(device)="DHCP" 02:35:43 I didn't use ifconfig_vtnet0_ipv6 like options in /etc/rc.conf. 03:21:54 dammit, what's a good way to compare a constant like SIZE_MAX against a value without triggering -Wtautological-constant-out-of-range-compare 04:06:26 they make compilers out of warnings now 04:39:35 RhodiumToad, Hmm... SIZE_MAX is the largest size possible, right? So won't by definition all values either be equal to it or less than it? Can't ever be larger. 04:40:46 In other words... Does it make much useful sense to ever compare against it? 04:41:22 yes 04:41:55 assume you have a variable foo which is of an (assumed unsigned) type defined by some library header 04:42:14 you want to know if you can safely cast (size_t)foo preserving the value 04:42:42 now, size_t isn't guaranteed to be the largest unsigned type, in particular on 32-bit sustems it's not 04:43:41 so you might try if (foo <= SIZE_MAX) on the assumption that whichever of the two sides is a smaller type should be promoted to the larger one 04:44:00 on 32 bit where foo is a uint64_t, this works without error 04:44:08 but on 64 bit, you get the warning 04:44:12 I'll play Devil's Advocate here and say then that sizeof target needs to be >= sizeof source. 04:44:38 sizeof isn't really the right tool to compare type ranges 04:44:59 Well... Neither is foo <= SIZE_MAX either. 04:45:16 Since that must always be true. 04:45:17 and it's explicitly OK for foo to be of a larger _size_ than size_t, as long as the actual value fits in a size_t 04:45:47 no, foo <= SIZE_MAX is not always true since foo can be of a larger sized type than size_t 04:49:40 the other method is if ((size_t)foo == foo) 04:50:08 (assuming foo's type is unsigned, this is well-defined) 04:50:51 if foo's type is no larger than size_t then the cast preserves the value and the result is true, 04:51:12 whereas if foo's type is larger and the value fits in size_t, the result is still true, 04:51:39 but if foo's type is larger and the value doesn't fit, then the cast reduces the value mod 2^N for some N, and the comparison is now false 05:05:30 but annoyingly, that version generates much worse code 06:42:09 how do you run du -b on fbsd? 06:52:03 welp, installed busybox I guess 07:51:57 nmz-: if it comes from gnu du, install sysutils/coreutils 09:02:03 <_xor> I have to admit, I had a "Eureka!" moment earlier today that I think is pretty cool. 09:02:20 * _xor is working on an implementation for orchestrating jails across a cluster using pkg as the image repository 09:52:28 how do i install a man page for my port? 09:53:06 do i have to do it myself in the source Makefile or can i set something in the port Makefile? 09:53:21 https://docs.freebsd.org/en/books/porters-handbook/makefiles/#makefile-manpages 09:53:22 Title: Chapter 5. Configuring the Makefile | FreeBSD Documentation Portal 09:55:26 thanks. i only read the quick ports part :[ 09:55:57 it should be installed by source Makefile, yes, ports are not really a build system, rather a wrapper around original one and patching as needed 09:56:47 is there a freebsd way to do that? 09:56:53 i don't see something like `install-man` 09:57:58 if you use the system mk files, it's MANx= something.x, where x is the section 09:59:24 (ugh, or is it only MAN= something.x now, correctly parsing the .x for section) 10:00:06 both should work anyway :) 10:42:49 Hi, I'm struggling with a devd rule where my action can't resolve a variable: https://bsd.to/LkHX 10:42:50 Title: dpaste/LkHX (Plain Text) 10:43:34 sorry, better formatting: https://bsd.to/nWev 10:43:35 Title: dpaste/nWev (Bash) 10:53:40 I guess it's more a problem with su shell and my bad shell scripting skills in general than devd :) 11:14:09 espen_: devd.conf(5) has a "Notes on Variable Expansion" subsection 11:16:13 (and i think the bottom line there is "don't use single quotes" :) 11:26:40 yuripv, thanks! and yes you're right.. now I need to figure out how to replace those o_O 11:28:52 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240411 11:28:54 Title: 240411 – devd behaves odd when action uses single quotes 11:29:53 I think I'll have to get rid of the variable and have one rule per device :/ 11:30:35 espen_: you need single quotes for -c argument to su? 11:32:24 espen_: may be try using escaped double quotes in place of single ones? i.e. -c \"...\" 11:32:39 Not necessarily I think, but I'm failing to escape it and devd accept it. 11:32:45 Yeah that doesn't work.. 12:26:59 for install(1), is it true that you can't actually do -d to create parent dirs and install files at the same time? 12:29:10 fwiw on (other) systems man install shows for -d: treat all arguments as directory names; create all components of the specified directories 12:29:19 Which vaguely goes back to my distant memories of POSIX 12:32:00 istr there was a pr for it 12:32:19 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230620 12:32:22 Title: 230620 – "install -d" issue 12:34:22 rustyaxe: the problem seems to be creating directories *and* installing files at the same time 12:34:40 yea i think posix says -d treats all args s directories 12:34:53 thus GNU's behavior and what i remember from 30 years ago :) 12:35:21 * rustyaxe pops into openbsd box and looks 12:36:14 -d Create directories. Missing parent directories are created as required. This option cannot be used with the -B, -b, -C, -c, -f, -p, or -s options. 12:36:36 im thinking htats expected behaviour 12:36:43 Deal with directories first, then deal with files 12:36:50 yuripv: yep that's it. thanks 12:37:12 i just used mkdir -p instead 12:37:16 extra step but whatever 12:37:18 if not expected, at least the most common behavior -- ie if you care of portability, dont do it 13:10:05 why would you need to have `make package` succeed as non-root if the ports dir is /usr/ports? 13:10:15 (following quick port steps) 13:18:33 hey folks, where do i find the libc-devel package/sources? im building the linux kernel from scratch and its complaining that it cant find bytewswap.h header 13:23:31 gzar: wrong channel? 13:24:26 no 13:24:31 im on freebsd 13:28:48 basically just looking for the libc devel files 13:31:03 i'm curious as huge as linux kernel has grown if cross compiling has even been tested in decades :P 13:33:18 oh, well i guess i am testing it now 13:34:04 i've been thinking of an experiment for a while with the linux kernel 13:34:34 but will probably ask in some linux channel 16:03:49 if my printer (samsung M2026) has no drivers for FreeBSD, is there chance to get any support beyond ascii printing? 16:22:28 hubertm: cups has some generic drivers when I tried that on my printer it worked fine 16:23:05 so thought it didn't show my specific model it still worked when I looked around for something more generic