I'd like to draw your attention to https://dev.openwrt.org/ticket/9223 . As you might know, we use opkg within the OpenWrt buildroot to predeploy packages into the root file system. Since we also support Darwin and FreeBSD we have to ensure that opkg runs there.
The recent work on "dist" support made by Javier Palacios introduced a non portable getline() call which should be replaced with another standard function.
Graham or Javier, would you be willing to rework that or should I look into it?
On Tue, Apr 12, 2011 at 11:57 AM, Jo-Philipp Wich <goo...@wwsnet.net> wrote: > The recent work on "dist" support made by Javier Palacios introduced a > non portable getline() call which should be replaced with another > standard function.
There was already working code for parsing, that I didn't modify mainly due to laziness.
I've attached a patch with the required changes to the openwrt ticket. I have checked that it compiles, but I've not performed any other test yet. If you can confirm that it allows compilation on Darwin/FreeBSD, I will split it in a couple of easier to understand patches and apply to trunk.