Opened 9 years ago

Last modified 8 years ago

#49605 new enhancement

mpd will not install if /opt/local/var/lib/mpd/music is a symlink to my music

Reported by: bnilsson11 Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port: mpd

Description (last modified by ryandesign (Ryan Carsten Schmidt))

After a successful installation of mpd, the easiest way to introduce the music library is replace /opt/local/var/lib/mpd/music with a symlink to your existing music library:

user $ cd /opt/local/var/lib/mpd 
user $ ls -la 
total 816 
drwxrwxrwx  8 root      admin     272 26 Sep 17:39 . 
drwxr-xr-x  5 root      admin     170  6 Nov 02:33 .. 
-rw-r--r--@ 1 user  admin    6148 22 Feb  2015 .DS_Store 
-rwxrwxrwx  1 user  admin  397023 16 Okt 22:43 database 
drwxr-xr-x  4 user  admin     136 22 Feb  2015 hide 
lrwxr-xr-x  1 user  admin      19 26 Sep 17:38 music -> /Volumes/htpc/Musik 
lrwxr-xr-x  1 user  admin      29 26 Sep 17:39 playlists -> /Volumes/htpc/Musik/Playlists 
-rw-r--r--  1 avahi     admin     581 16 Feb  2015 state 

If mpd is upgraded or re-installed, the installation fails because "music" and "playlists" symlinks cannot be overwritten. I need to manually remove the symlinks and try again. After installation I need to replace music and playlists with symlinks again.

Life would be much easier if the installation/upgrade procedure would be more tolerant and check the status of these directories, and don't overwrite if they exist or if they are not writeable. The install/upgrade would then be more straight forward and transparent.

Change History (3)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to rmstonecipher@…

comment:2 Changed 9 years ago by mf2k (Frank Schima)

Owner: changed from rmstonecipher@… to macports-tickets@…
Version: 2.3.4

rmstonecipher has retired. See #51138.

comment:3 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added

I can't reproduce this error. Also, the files should be listed as _mpd _mpd if installed via macports

Here's mine - the link is owned by root since I had to sudo to generate it

ls -l /opt/local/var/lib/mpd/                       
-rw-r--r--  1 _mpd  _mpd  205 Mar  4 11:31 database
lrwxr-xr-x  1 root  _mpd   13 Mar  4 13:04 music@ -> /tmp/tmux-501
drwxr-xr-x  3 _mpd  _mpd  102 Mar  4 13:04 playlists/
-rw-r--r--  1 _mpd  _mpd  193 Mar  4 11:33 state
Note: See TracTickets for help on using tickets.