danitool has quit [Quit: Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos]
minimal has quit [Quit: Leaving]
goliath has quit [Quit: SIGSEGV]
tSYS has quit [Quit: *squeak*]
tSYS has joined #openwrt-devel
<hgl>
dwfreed: thanks for the explanation, that was what I thought, but I tried this example and the whole recipe was on a single line: https://pastebin.com/ZehCXaRJ
<hgl>
in my case the output was "foo echo bar echo baz", i used the latest gnu make 4.4.1
<hgl>
should I use some dot target or set some flags to make it work?
<dwfreed>
what if you used $(call $(a))
<dwfreed>
the examples I've seen all used that
<hgl>
doesn't seem to make a difference...
<hgl>
and "$(if $(sep),echo true,echo false)" gives false
<hgl>
I'm trying to do something similar for a package's Makefile I'm changing. so I'm wondering how openwrt does it
<hgl>
I tried swapping $(sep) with $(newline), and it actually made the Makefile invalid, because foreach joins items with space, that made the following recipe lines start with a space...
<dwfreed>
idk
<dwfreed>
it's honestly got to be doing something, or things would not actually work right (eg, autotools.mk uses hooks, and that would not work right otherwise)
<dwfreed>
make is pretty twisted sometimes
<hgl>
yeah, it's a miracle that openwrt made the whole thing work :)
<dwfreed>
perhaps the blame from the sep addition explains it
<dwfreed>
note it moved files about 15 years ago
<hgl>
yeah, i saw that too, moved from package to rules, but still couldn't figure out how it was made to work
<dwfreed>
there's probably an eval in there somewhere doing some serious heavy lifting
bluew has quit [Ping timeout: 480 seconds]
<dwfreed>
that's exactly it
<dwfreed>
put your all in a function, and wrap it with eval
<oliv3r[m]>
I know this is my fault, I don't know how/why/where though: Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: i2cdev_ioctl_smbus I'm dumping the results from my function calls, but everything seems fine; what causes this? where can I find my fault? (trigger is i2cget, where byte access works fine, but doing word access pukes)
<hgl>
nbd: do you happen to know the difference between empty and sep in rules.mk? In my testing they're exactly the same, an empty string.
<nbd>
hgl: empty is primarily used to define space, which contains a whitespace. sep should contain a newline
<nbd>
which is useful for templates that define commands
Guest12498 has quit [Ping timeout: 480 seconds]
<hgl>
nbd: since there is only a single line between define and endef, sep seems to contain nothing. newline, since there are two lines, contains a new line, if I'm not wrong
<nbd>
hmm... not sure
<nbd>
need to look into this again, but don't have time for it at the moment
<nbd>
i'm heading out in a few minutes
<hgl>
ok, thanks, no worries
<hgl>
I'm trying to change a package's Makefile, could use a trick like sep to use foreach in a recipe
<Borromini>
(I hope this is your IRC nick since your forum handle is different)
<hgl>
nbd: even if sep is a newline, I'm not sure it works in a recipe, because foreach joins items with a space, lines >=2 actually start with a space: https://pastebin.com/yDrNJRv8
<hgl>
this gives "*** missing separator" error
rua has quit [Quit: Leaving.]
rua has joined #openwrt-devel
Borromini has quit [Ping timeout: 480 seconds]
rua has quit [Remote host closed the connection]
tidalf has joined #openwrt-devel
rua has joined #openwrt-devel
<nick[m]1234>
Borromini: did not see that. Indeed it can be very helpful! I always wanted to support ipv6 also.
goliath has joined #openwrt-devel
tidalf_ has quit [Ping timeout: 480 seconds]
KGB-0 has quit [Quit: KGB-0]
KGB-0 has joined #openwrt-devel
rua has quit [Quit: Leaving.]
rua has joined #openwrt-devel
rua1 has joined #openwrt-devel
rua has quit [Remote host closed the connection]
rua1 has quit [Quit: Leaving.]
bluew has joined #openwrt-devel
djfe_ has joined #openwrt-devel
djfe has quit [Ping timeout: 480 seconds]
Tapper1 has joined #openwrt-devel
Tapper has quit [Ping timeout: 480 seconds]
cbeznea has joined #openwrt-devel
dangole has joined #openwrt-devel
nixuser has joined #openwrt-devel
tidalf_ has joined #openwrt-devel
Borromini has joined #openwrt-devel
tidalf has quit [Ping timeout: 480 seconds]
rua has joined #openwrt-devel
_0x4a6f_ has joined #openwrt-devel
_0x4a6f has quit [Read error: Connection reset by peer]