FS#52984 - {networkmanager] pacman update errors

Attached to Project: Arch Linux
Opened by jb (jb.1234abcd) - Thursday, 16 February 2017, 06:41 GMT
Last edited by Jan de Groot (JGC) - Thursday, 16 February 2017, 13:51 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
# pacman -Syu
...
libnm-1.6.2-1-x86_64 731.4 KiB 201K/s 00:04 [######################] 100%
libnm-glib-1.6.2-1-... 622.0 KiB 165K/s 00:04 [######################] 100%
networkmanager-1.6.... 2.1 MiB 207K/s 00:10 [######################] 100
...
(8/8) checking available disk space [######################] 100%
warning: could not get file information for usr/share/gtk-doc/html/libnm/NMAccessPoint.html
...
warning: could not get file information for usr/share/gtk-doc/html/libnm-util/up.png
:: Processing package changes...
...
(3/8) upgrading libnm [######################] 100%
(4/8) upgrading libnm-glib [######################] 100%
(5/8) upgrading networkmanager [######################] 100%
warning: directory permissions differ on /etc/NetworkManager/system-connections/
filesystem: 755 package: 700
...
#

Additional info:
* package version(s)
libnm 1.6.2-1
libnm-glib 1.6.2-1
networkmanager 1.6.2-1

* config and/or log files etc.
$ stat /usr/share/gtk-doc/html/libnm/NMAccessPoint.html
File: /usr/share/gtk-doc/html/libnm/NMAccessPoint.html
Size: 42410 Blocks: 88 IO Block: 4096 regular file
Device: 807h/2055d Inode: 683462 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2017-02-16 07:06:41.530312933 +0100
Modify: 2017-02-15 17:46:41.000000000 +0100
Change: 2017-02-16 07:01:48.068569418 +0100
Birth: -
$
$ ls -al /etc/NetworkManager/
...
drwxr-xr-x 2 root root 4096 Feb 11 08:39 system-connections

Steps to reproduce:
pacman -Syu networkmanager libnm
This task depends upon

Closed by  Jan de Groot (JGC)
Thursday, 16 February 2017, 13:51 GMT
Reason for closing:  Not a bug
Comment by Bartłomiej Piotrowski (Barthalion) - Thursday, 16 February 2017, 08:42 GMT
Sounds like you (or something/someone else) removed these files before the upgrade.
Comment by jb (jb.1234abcd) - Thursday, 16 February 2017, 10:13 GMT
According to pacman.log this "warning: could not get file information ..." should not happen:
...
[2017-01-29 09:19] [ALPM] installed libnm (1.6.0-4)
[2017-01-29 09:19] [ALPM] upgraded libnm-glib (1.4.4-1 -> 1.6.0-4)
[2017-01-29 09:19] [ALPM] upgraded nm-connection-editor (1.4.4-1 -> 1.4.4-3)
[2017-01-29 09:19] [ALPM] upgraded network-manager-applet (1.4.4-1 -> 1.4.4-3)
[2017-01-29 09:19] [ALPM] warning: directory permissions differ on /etc/NetworkManager/system-connections/
...
[2017-02-16 07:01] [ALPM] upgraded libnm (1.6.0-4 -> 1.6.2-1)
[2017-02-16 07:01] [ALPM] upgraded libnm-glib (1.6.0-4 -> 1.6.2-1)
[2017-02-16 07:01] [ALPM] warning: directory permissions differ on /etc/NetworkManager/system-connections/
filesystem: 755 package: 700
[2017-02-16 07:01] [ALPM] upgraded networkmanager (1.6.0-4 -> 1.6.2-1)
...
$ pkgfile /usr/share/gtk-doc/html/libnm/NMAccessPoint.html
extra/libnm

Anyway, I will pay attention if it happens again.

Regarding that "warning: directory permissions differ ...", is it really necessary to have 700 on that dir (the file contents inside it are already protected) ?
$ ls -al /etc/NetworkManager/
total 32
drwxr-xr-x 7 root root 4096 Feb 16 07:01 .
drwxr-xr-x 58 root root 4096 Feb 16 07:01 ..
drwxr-xr-x 2 root root 4096 Jan 29 00:56 conf.d
drwxr-xr-x 5 root root 4096 Aug 31 09:09 dispatcher.d
drwxr-xr-x 2 root root 4096 Aug 31 09:10 dnsmasq.d
drwxr-xr-x 2 root root 4096 Feb 15 17:46 dnsmasq-shared.d
-rw-r--r-- 1 root root 88 Feb 15 17:46 NetworkManager.conf
drwxr-xr-x 2 root root 4096 Feb 11 08:39 system-connections
$ ls -al /etc/NetworkManager/system-connections/
total 16
drwxr-xr-x 2 root root 4096 Feb 16 10:44 .
drwxr-xr-x 7 root root 4096 Feb 16 07:01 ..
-rw------- 1 root root 523 Sep 13 16:18 AP-jb
-rw------- 1 root root 375 Sep 6 07:13 'Wired connection 1'
Comment by Jan de Groot (JGC) - Thursday, 16 February 2017, 13:51 GMT
The warnings are printed because pacman expects to find files on your system, but these files are not present on your system. This is not a pacman bug, it's a side effect of removing files from your system. As this is about gtk-doc, I can imaging you removed those files to save some disk space.

As for the permissions, https://bugs.archlinux.org/task/52759

Loading...