Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 809605

Summary: etc-update gets confused by symlinked dirs
Product: Portage Development Reporter: Toralf Förster <toralf>
Component: Core - ConfigurationAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: vapier
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Toralf Förster gentoo-dev 2021-08-22 16:24:41 UTC
but etc-update cannot handle it:

17_1_desktop_systemd-j4-20210820-143805 /var/tmp/tb # etc-update 
Scanning Configuration files...
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
1) /etc/chromium/native-messaging-hosts (1)
Please select a file to edit by entering the corresponding number.
              (don't use -3, -5, -7 or -9 if you're unsure what to do)
              (-1 to exit) (-3 to auto merge all files)
                           (-5 to auto-merge AND not use 'mv -i')
                           (-7 to discard all updates)
                           (-9 to discard all updates AND not use 'rm -i'): -3
Replacing /etc/chromium/native-messaging-hosts with /etc/chromium/._cfg0000_native-messaging-hosts
rmdir: failed to remove '/etc/chromium/native-messaging-hosts': Directory not empty
Exiting: Nothing left to do; exiting. :)
NOTE: 1 updates remaining




17_1_desktop_systemd-j4-20210820-143805 /var/tmp/tb # ls -l /etc/chromium/native-messaging-hosts/com.github.browserpass.native.json 
-rw-r--r-- 1 root root 417 Aug 22 12:57 /etc/chromium/native-messaging-hosts/com.github.browserpass.native.json
17_1_desktop_systemd-j4-20210820-143805 /var/tmp/tb # ls -l /etc/chromium/.
./                                ../                               ._cfg0000_native-messaging-hosts/ 
17_1_desktop_systemd-j4-20210820-143805 /var/tmp/tb # ls -l /etc/chromium/._cfg0000_native-messaging-hosts
lrwxrwxrwx 1 root root 36 Aug 22 18:07 /etc/chromium/._cfg0000_native-messaging-hosts -> ../opt/chrome/native-messaging-hosts
Comment 1 SpanKY gentoo-dev 2021-09-02 03:01:58 UTC
chrome-remote-desktop doesn't install any files into /etc/chromium/native-messaging-hosts.  that's a symlink to the dir that it actually installs into.

$ qlist -v chrome-remote-desktop | grep /etc
/etc/opt/chrome/native-messaging-hosts/com.google.chrome.remote_desktop.json
/etc/opt/chrome/native-messaging-hosts/com.google.chrome.remote_assistance.json
/etc/chromium/native-messaging-hosts -> ../opt/chrome/native-messaging-hosts

looks like a shortcoming in etc-update