[PATCH] mbimcli: report IP configuration on connect

Joe joe.on.list at gmail.com
Thu May 7 08:03:20 PDT 2015


On Thursday 07 May 2015 12:28:22 Aleksander Morgado wrote:
> On Thu, May 7, 2015 at 11:32 AM, Joe <joe.on.list at gmail.com> wrote:
> >
> > Ok, I've done... after created my local libmbim dir:
> >
> > git clone git://anongit.freedesktop.org/libmbim/libmbim
> 
> > However I was'nt able to obtain a tarball like those in stable repo...
> > http://www.freedesktop.org/software/libmbim/
> >
> > How have you create them starting from git branch?  Could you let me know?
> 
> I usually do this:
> 
> $ .NOCONFIGURE=1 /autogen.sh
> $ ./configure
> $ make
> $ make distcheck
> 
> The distcheck phase will run tests and if all goes well, create a tarball.





I've tried to follow your instructions, but ther are some little troubles:

$ NOCONFIGURE=1 ./autogen.sh
$ ./configure 
$ make

1- make command seems to generate empty manpages for:
mbimcli.1
mbim-network.1
---

Anyway, let's go on:

$ make distcheck

2- but it returns an error:

make[4]: Entering directory
`/root/build/git/libmbim/docs/reference/libmbim-glib'
*** gtk-doc must be installed and enabled in order to make dist
---

this error is solved adding "--enable-gtk-doc" at configure time.

So we finally have:

$ NOCONFIGURE=1 ./autogen.sh
$ ./configure --enable-gtk-doc
$ make
$ make distcheck

And we obtain a tarball "tar.xz".
But it doesn't contains manpages for mbimcli and mbim-network,
in fact there are but empty...

Where's the mistake?





> > But why not to add two otpions more to mbimcli, something like:
> >
> > --configure-net-interface
> >
> > --use-peer-dns (if one want to overwrite his resolv.conf...)
> >
> > And automagically obtain our interface up and configured with
> > our IP and our routing table properly setted to use our new wwan.
> >
> > I think it is a good chioce to let the user pass those options
> > instead of introduce this feature by default, because one is free
> > to use DHCP if prefers and if is his dongle supports it.
> >
> > What do you think about?
> 
> That is a good thing, yes. I've been meaning to do this already in
> e.g. mbim-network, but doing it via mbimcli for the static IP config
> would also be a good thing I guess.




Please to read you agree!
Hope my simple user hints could be help you developers somehow!  :)



More information about the libmbim-devel mailing list