Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 767436 - media-sound/mpd-0.22.4 creates log dir that blocks log file
Summary: media-sound/mpd-0.22.4 creates log dir that blocks log file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-27 10:39 UTC by Arve Barsnes
Modified: 2021-01-27 11:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arve Barsnes 2021-01-27 10:39:06 UTC
The new mpd-0.22.4.ebuild added:
keepdir /var/lib/mpd/log

This first creates a file collision that moves the old log file, which is fine if this is intended:

 * Installation of a directory is blocked by a file:
 *   '/var/lib/mpd/log'
 * This file will be renamed to a different name:
 *   '/var/lib/mpd/log.backup.0000'

But the same ebuild also ensures that the mpd config sets '/var/lib/mpd/log' as the log file (in src_prepare). When re-starting the mpd service, it fails:

# rc-service mpd start
 * Starting mpd ...
exception: failed to open log file "/var/lib/mpd/log" (config line 37): Is a directory
 * start-stop-daemon: failed to start `/usr/bin/mpd'
Comment 1 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2021-01-27 11:54:27 UTC
Indeed, I forgot to drop this line before committing, now fixed in a new revision.