[PATCH] dist: include manual page sources

2015-01-22 Thread Lubomir Rintel
Omitted by mistake with an errorneous substitution.

https://mail.gnome.org/archives/networkmanager-list/2015-January/msg00066.html
---
 man/Makefile.am | 16 
 1 file changed, 8 insertions(+), 8 deletions(-)

On Thu, 2015-01-22 at 04:14 +0100, Michael Biebl wrote:
hi,
> 
> I just noticed that the 1.0.0 tarball failed to build twice in a row
> (./configure && make && make clean * 2)
> due to man/{NetworkManager.xml,nmcli-examples.xml} missing in the dist
> tarball.
> The tarball only contains the generated man pages but should also
> contains the xml sources.

Good catch, Michael, thank you. Unless anyone objects I'll apply this patch and 
future releases (from 1.0 branch too) will contain the files.

Regards,
Lubo

diff --git a/man/Makefile.am b/man/Makefile.am
index 4577cb4..e7262e7 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -71,14 +71,14 @@ docbook_autogenerated_man_pages =   \
nm-settings-keyfile.5   \
nm-settings-ifcfg-rh.5
 
-EXTRA_DIST +=  \
-   nm-settings.xml \
-   nm-settings.xsl \
-   nm-settings-keyfile.xml \
-   nm-settings-keyfile.xsl \
-   nm-settings-ifcfg-rh.xml\
-   nm-settings-ifcfg-rh.xsl\
-   $(docbook_generated_man_pages:.%=.xml)  \
+EXTRA_DIST +=  \
+   nm-settings.xml \
+   nm-settings.xsl \
+   nm-settings-keyfile.xml \
+   nm-settings-keyfile.xsl \
+   nm-settings-ifcfg-rh.xml\
+   nm-settings-ifcfg-rh.xsl\
+   $(addsuffix .xml,$(basename $(docbook_generated_man_pages)))\
$(docbook_autogenerated_man_pages)
 
 man_MANS += $(configure_generated_man_pages)
-- 
2.1.0

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


[PATCH] libnm: drop libdbus-glib from pkg-config file

2015-01-22 Thread Lubomir Rintel
libnm uses GIO DBus library instead.

https://mail.gnome.org/archives/networkmanager-list/2015-January/msg00065.html
---
 libnm/libnm.pc.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

On Thu, 2015-01-22 at 03:40 +0100, Michael Biebl wrote:
Hi,
> 
> the libnm.pc file for the new libnm library has
> 
> Requires: gio-2.0 dbus-glib-1
> 
> This looks incorrect, especially the dependency on dbus-glib-1.
> Is this a C&P error? Especially since the Description is the same as for
> libnm-util.pc.

Yes, that looks like a mistake. Unless anyone objects I'll remove it.

Thank you
Lubo

diff --git a/libnm/libnm.pc.in b/libnm/libnm.pc.in
index 6392799..5fe26b6 100644
--- a/libnm/libnm.pc.in
+++ b/libnm/libnm.pc.in
@@ -6,7 +6,7 @@ includedir=@includedir@
 Name: libnm
 Description: Convenience library for clients of NetworkManager
 Version: @VERSION@
-Requires: gio-2.0 dbus-glib-1
+Requires: gio-2.0
 Cflags: -I${includedir}/libnm
 Libs: -L${libdir} -lnm
 
-- 
2.1.0

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: [PATCH] libnm: drop libdbus-glib from pkg-config file

2015-01-22 Thread Dan Winship
Yes, this is correct

On 01/22/2015 05:00 AM, Lubomir Rintel wrote:
> libnm uses GIO DBus library instead.
> 
> https://mail.gnome.org/archives/networkmanager-list/2015-January/msg00065.html
> ---
>  libnm/libnm.pc.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> On Thu, 2015-01-22 at 03:40 +0100, Michael Biebl wrote:
> Hi,
>>
>> the libnm.pc file for the new libnm library has
>>
>> Requires: gio-2.0 dbus-glib-1
>>
>> This looks incorrect, especially the dependency on dbus-glib-1.
>> Is this a C&P error? Especially since the Description is the same as for
>> libnm-util.pc.
> 
> Yes, that looks like a mistake. Unless anyone objects I'll remove it.
> 
> Thank you
> Lubo
> 
> diff --git a/libnm/libnm.pc.in b/libnm/libnm.pc.in
> index 6392799..5fe26b6 100644
> --- a/libnm/libnm.pc.in
> +++ b/libnm/libnm.pc.in
> @@ -6,7 +6,7 @@ includedir=@includedir@
>  Name: libnm
>  Description: Convenience library for clients of NetworkManager
>  Version: @VERSION@
> -Requires: gio-2.0 dbus-glib-1
> +Requires: gio-2.0
>  Cflags: -I${includedir}/libnm
>  Libs: -L${libdir} -lnm
>  
> 
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: [PATCH] dist: include manual page sources

2015-01-22 Thread Dan Winship
On 01/22/2015 04:54 AM, Lubomir Rintel wrote:
> - $(docbook_generated_man_pages:.%=.xml)  \

> + $(addsuffix .xml,$(basename $(docbook_generated_man_pages)))\

That seems like it should be the same thing... what does the first one do?

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


outdated version requirements in libnm-gtk.pc.in

2015-01-22 Thread Michael Biebl
Hi,

had a look at nm-applet 1.0.0, specifically src/libnm-gtk/libnm-gtk.pc.in.

It contains


> nmversion=0.8.998
> Requires: NetworkManager >= ${nmversion} libnm-util >= ${nmversion} 
> libnm-glib >= ${nmversion} gtk+-3.0 >= 2.91.4


That nmversion looks outdated, so does the gtk version.

Would be great if those version requirements could be updated.


Btw, is there a libnm port of nm-applet planned?

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


automake warnings about "option 'subdir-objects' is disabled"

2015-01-22 Thread Michael Biebl
Hi,

during build, I get the following warning:

> automake: warning: possible forward-incompatibility.
> automake: At least a source file is in a subdirectory, but the 
> 'subdir-objects'
> automake: automake option hasn't been enabled.  For now, the corresponding 
> output
> automake: object file(s) will be placed in the top-level directory.  However,
> automake: this behaviour will change in future Automake versions: they will
> automake: unconditionally cause object files to be placed in the same 
> subdirectory
> automake: of the corresponding sources.
> automake: You are advised to start using 'subdir-objects' option throughout 
> your
> automake: project, to avoid future incompatibilities.
> clients/cli/Makefile.am:49: warning: source file 
> '$(srcdir)/../common/nm-polkit-listener.c' is in a subdirectory,
> clients/cli/Makefile.am:49: but option 'subdir-objects' is disabled
> clients/tui/Makefile.am:35: warning: source file 
> '$(srcdir)/../common/nm-secret-agent-simple.c' is in a subdirectory,
...

and then hundred of those warnings.

Not sure if simply adding "subdir-objects" to AM_INIT_AUTOMAKE is the
right fix for this. The build seems to fail with that option set. So
this probably needs some more work.


Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: outdated version requirements in libnm-gtk.pc.in

2015-01-22 Thread Thomas Haller
On Thu, 2015-01-22 at 15:55 +0100, Michael Biebl wrote:

> Btw, is there a libnm port of nm-applet planned?

yes it is: https://bugzilla.gnome.org/show_bug.cgi?id=736911

It will be done, but there is not a major urgency to it,
because libnl-util is supposed to work fine.



Thomas


signature.asc
Description: This is a digitally signed message part
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: [PATCH] dist: include manual page sources

2015-01-22 Thread Lubomir Rintel
On Thu, 2015-01-22 at 09:50 -0500, Dan Winship wrote:
> On 01/22/2015 04:54 AM, Lubomir Rintel wrote:
> > -   $(docbook_generated_man_pages:.%=.xml)  \
> 
> > +   $(addsuffix .xml,$(basename $(docbook_generated_man_pages)))\
> 
> That seems like it should be the same thing... what does the first one do?

The ".%" pattern is applied to the complete string (think ^\..*$). It
thus does not match and nothing is substituted (which is why the
generate manual pages got included and not the source).

Lubo

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: outdated version requirements in libnm-gtk.pc.in

2015-01-22 Thread Dan Williams
On Thu, 2015-01-22 at 15:55 +0100, Michael Biebl wrote:
> Hi,
> 
> had a look at nm-applet 1.0.0, specifically src/libnm-gtk/libnm-gtk.pc.in.
> 
> It contains
> 
> 
> > nmversion=0.8.998
> > Requires: NetworkManager >= ${nmversion} libnm-util >= ${nmversion} 
> > libnm-glib >= ${nmversion} gtk+-3.0 >= 2.91.4
> 
> 
> That nmversion looks outdated, so does the gtk version.
> 
> Would be great if those version requirements could be updated.

Done in git master and nma-1-0.

Dan

> 
> Btw, is there a libnm port of nm-applet planned?
> 
> ___
> networkmanager-list mailing list
> networkmanager-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/networkmanager-list


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: automake warnings about "option 'subdir-objects' is disabled"

2015-01-22 Thread Dan Williams
On Thu, 2015-01-22 at 16:03 +0100, Michael Biebl wrote:
> Hi,
> 
> during build, I get the following warning:
> 
> > automake: warning: possible forward-incompatibility.
> > automake: At least a source file is in a subdirectory, but the 
> > 'subdir-objects'
> > automake: automake option hasn't been enabled.  For now, the corresponding 
> > output
> > automake: object file(s) will be placed in the top-level directory.  
> > However,
> > automake: this behaviour will change in future Automake versions: they will
> > automake: unconditionally cause object files to be placed in the same 
> > subdirectory
> > automake: of the corresponding sources.
> > automake: You are advised to start using 'subdir-objects' option throughout 
> > your
> > automake: project, to avoid future incompatibilities.
> > clients/cli/Makefile.am:49: warning: source file 
> > '$(srcdir)/../common/nm-polkit-listener.c' is in a subdirectory,
> > clients/cli/Makefile.am:49: but option 'subdir-objects' is disabled
> > clients/tui/Makefile.am:35: warning: source file 
> > '$(srcdir)/../common/nm-secret-agent-simple.c' is in a subdirectory,
> ...

I get that too with subdir-objects and automake 1.13.4.  Maybe it's
related to http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13928 ?  If so,
then we can't use subdir-objects until automake 1.16...

Dan

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: [PATCH] dist: include manual page sources

2015-01-22 Thread Dan Winship
On 01/22/2015 12:24 PM, Lubomir Rintel wrote:
> On Thu, 2015-01-22 at 09:50 -0500, Dan Winship wrote:
>> On 01/22/2015 04:54 AM, Lubomir Rintel wrote:
>>> -   $(docbook_generated_man_pages:.%=.xml)  \
>>
>>> +   $(addsuffix .xml,$(basename $(docbook_generated_man_pages)))\
>>
>> That seems like it should be the same thing... what does the first one do?
> 
> The ".%" pattern is applied to the complete string (think ^\..*$). It
> thus does not match and nothing is substituted (which is why the
> generate manual pages got included and not the source).

ah... patch looks good then
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


ANN: NetworkManager 0.9.10.1 (0.9.10.2-rc1) testing release

2015-01-22 Thread Dan Williams
Hi,

It's past time for a bug-fix release for NetworkManager 0.9.10, so
here's a testing release candidate.  Please help test if you're using
0.9.10 already, so that we can get the release out next week.

There are a ton of fixes, many already cherry-picked by distros, but
many new ones as well.  Lets make it solid!

https://download.gnome.org/sources/NetworkManager/0.9/NetworkManager-0.9.10.1.tar.xz
https://download.gnome.org/sources/network-manager-applet/0.9/network-manager-applet-0.9.10.1.tar.xz

Thanks!
Dan

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Interaction between systemd-networkd and NetworkManager

2015-01-22 Thread Paul Menzel
Dear NetworkManager folks,


using Debian Sid/unstable with systemd 215-10 and NetworkManager
0.9.10.0-5, I set up systemd-networkd for the only physical interface
`eth0`. I left NetworkManager installed in case someone plugs in some
USB device.

The interface `eth0` is configured over DHCP.

Running `systemd-analyze blame`, it shows that the service
NetworkManager still needs 580 ms to finish. Note that this is smaller
than the actual needed time.

Looking at the journal with `sudo journalctl -a --full` the following is
looged for systemd-networkd.

Jan 23 06:54:17 my-asrock-a780-fullhd systemd-networkd[381]: lo 
 : gained carrier
Jan 23 06:54:17 my-asrock-a780-fullhd systemd-networkd[381]: eth0   
 : link configured
Jan 23 06:54:19 my-asrock-a780-fullhd systemd-networkd[381]: eth0   
 : gained carrier
Jan 23 06:54:20 my-asrock-a780-fullhd systemd-networkd[381]: eth0   
 : DHCPv4 address 192.168.178.38/24 via 192.168.178.1
Jan 23 06:54:20 my-asrock-a780-fullhd systemd-networkd[381]: eth0   
 : link configured

During the same time, NetworkManager is trying to configure the device
too over DHCP. At least a `dhclient` process for the interface `eth0` is
started by it.

$ systemctl --full status NetworkManager
● NetworkManager.service - Network Manager
   Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled)
   Active: active (running) since Fr 2015-01-23 06:54:17 CET; 4min 45s 
ago
 Main PID: 366 (NetworkManager)
   CGroup: /system.slice/NetworkManager.service
   ├─366 /usr/sbin/NetworkManager --no-daemon
   └─470 /sbin/dhclient -d -q -sf 
/usr/lib/NetworkManager/nm-dhcp-helper -pf /var/run/dhclient-eth0.pid -lf 
/var/lib/NetworkManager/dhclient-acfa208e-dbb9-4236-86f3-6e06d6615220-eth0.lease
 -cf /var/lib/NetworkManager/dhclient-eth0.conf eth0

Please find the output of `sudo journalctl -a --full -u NetworkManager`
pasted below.

Could you please confirm that this is the expected behavior? If not, has
this been fixed in later versions or do I need to configure something
differently?


Thanks,

Paul


-- Logs begin at Fr 2015-01-23 06:54:16 CET, end at Fr 2015-01-23 07:00:41 CET. 
--
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  
NetworkManager (version 0.9.10.0) is starting...
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  Read config: 
/etc/NetworkManager/NetworkManager.conf
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  WEXT support 
is enabled
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  init!
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  
update_system_hostname
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:
interface-parser: parsing file /etc/network/interfaces
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:
interface-parser: finished parsing file /etc/network/interfaces
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  management 
mode: unmanaged
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  devices added 
(path: /sys/devices/pci:00/:00:0a.0/:04:00.0/net/eth0, iface: eth0)
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  device added 
(path: /sys/devices/pci:00/:00:0a.0/:04:00.0/net/eth0, iface: 
eth0): no ifupdown configuration found.
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  devices added 
(path: /sys/devices/virtual/net/lo, iface: lo)
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  device added 
(path: /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found.
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  end _init.
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  Loaded plugin 
ifupdown: (C) 2008 Canonical Ltd.  To report bugs please use the NetworkManager 
mailing list.
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  Loaded plugin 
keyfile: (c) 2007 - 2013 Red Hat, Inc.  To report bugs please use the 
NetworkManager mailing list.
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  (21303456) 
... get_connections.
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  (21303456) 
... get_connections (managed=false): return empty list.
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  get unmanaged 
devices count: 0
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  monitoring 
kernel firmware directory '/lib/firmware'.
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  monitoring 
ifupdown state file '/run/network/ifstate'.
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  WiFi hardware 
radio set enabled
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  WWAN hardware 
radio set enabled
Jan 23 06:54:17 my-asrock-a780-fullhd NetworkManager[366]:  Loaded device 
plugin: 
/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-de