<russell-->
nah, those are mostly setting up files at run-time
<dwfreed>
you'd have to
<karlp>
hrm, I'm building 22.03 to test a package update, and a fresh pull half an hour ago is giving me flex build failues with "c compiler can't create exectuables" which sounds like ccache problems, that PaulFertser and co werw working on a while ago?
schwicht has joined #openwrt-devel
<karlp>
I _thought_ this was all fixed, was it not pushed back to the 22.03 branch?
cmonroe has joined #openwrt-devel
<karlp>
even so, I've turned off cccache and run make again, and it's still on the same error, and "make package/flex/{clean,compile}" isn't working, andi've tried putting "host" into various places there, is there any way of rebuilding just flex?
<dwfreed>
russell--: but that doesn't affect ownership; that would have to be done differently
<dwfreed>
a postinst script could do it when installing the package at runtime; you'd probably also need to use an initscript to fix ownership when the package is baked into the image
<dwfreed>
(postinst scripts are run while making an image as well, and there chown would not work correctly; so you'd need to condition them on IPKG_INSTROOT being empty)
<karlp>
right ok, make clean; disable ccache, make and I still can't build flex on openwrt-22.03 branch?!
<karlp>
this is the config.log from the flex build that fails, anyone have any ideas?
<dwfreed>
karlp: you didn't provide the actual log link
<karlp>
I've done a dirclean now and rebuilding from scratch, we'll see where it gets to...
<dwfreed>
configure:14670: checking whether the C compiler works
<dwfreed>
configure:14692: conftest.c >&5
<dwfreed>
you've probably got a bad env
<dwfreed>
like CC="" or something
<karlp>
I mena, I had ccache, it failed, I menuconfied and re-ran, failed, make clean; make -> failed :) we're on a dirclean;make now...
<karlp>
and this was the same shell I had built 23.05 and master in, just updating feeds branches for package build tests :|
rua has joined #openwrt-devel
<dwfreed>
clean checkout?
<dwfreed>
I never trust buildsystems to properly clean up, especially one as complex as openwrt's
rua has quit []
<karlp>
well, yeah, dirclean build is still running, so... probably past flex now?
rua has joined #openwrt-devel
minimal has joined #openwrt-devel
bookworm has quit []
bookworm has joined #openwrt-devel
<dwfreed>
philipp64: russell--: I dug deeper; can use PKG_FILE_MODES to specify ownership and mode for files that go into the ipk; see busybox for an example (used to make busybox setuid root)