Latest opkg fails on Darwin

35 views
Skip to first unread message

Jo-Philipp Wich

unread,
Apr 12, 2011, 5:57:00 AM4/12/11
to opkg-...@googlegroups.com
Hi,

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?

Reagrds,
Jow

Javier Palacios

unread,
Apr 12, 2011, 10:50:33 AM4/12/11
to opkg-...@googlegroups.com, Jo-Philipp Wich
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.

Javier Palacios

Jo-Philipp Wich

unread,
Apr 13, 2011, 8:59:25 AM4/13/11
to opkg-...@googlegroups.com
Hi Javier,

thank you very much, I just tried the proposed changes on OS X and it
seems to work correctly, I can compile and run opkg-cl correctly.

~ Jow

Reply all
Reply to author
Forward
0 new messages