Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 512804 - media-sound/mpd logrotate script fails to run due to stray bytes
Summary: media-sound/mpd logrotate script fails to run due to stray bytes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christoph Mende (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-09 06:55 UTC by Dimitrios Semitsoglou-Tsiapos
Modified: 2014-09-05 14:44 UTC (History)
3 users (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 Dimitrios Semitsoglou-Tsiapos 2014-06-09 06:55:11 UTC
media-sound/mpd contains mpd.logrotate that always fails like so:
cat: /var/run/mpd.pid : No such file or directory
logrotate_script: line 1: $'\342\200\212xargs': command not found
error: error running non-shared postrotate script for /var/lib/mpd/log of '/var/lib/mpd/log '

$hexdump -c mpd.logrotate:
0000000   /   v   a   r   /   l   i   b   /   m   p   d   /   l   o   g
0000010       {  \n  \t   m   i   s   s   i   n   g   o   k  \n  \t   p
0000020   o   s   t   r   o   t   a   t   e  \n  \t   [       -   f
0000030   /   v   a   r   /   r   u   n   /   m   p   d   .   p   i   d
0000040       ]       &   &       c   a   t       /   v   a   r   /   r
0000050   u   n   /   m   p   d   .   p   i   d 342 200 212   | 342 200  # Stray bytes around "|"
0000060 212   x   a   r   g   s       /   b   i   n   /   k   i   l   l
0000070       -   H   U   P  \n  \t   [       -   f       /   v   a   r
0000080   /   l   i   b   /   m   p   d   /   p   i   d       ]       &
0000090   &       c   a   t       /   v   a   r   /   l   i   b   /   m
00000a0   p   d   /   p   i   d 342 200 212   | 342 200 212   x   a   r  # Stray bytes around "|"
00000b0   g   s       /   b   i   n   /   k   i   l   l       -   H   U
00000c0   P  \n  \t   e   n   d   s   c   r   i   p   t  \n   }  \n
00000cf

Reproducible: Always

Steps to Reproduce:
1. eval $(/bin/grep 'mpd.pid' /etc/logrotate.d/mpd)
Actual Results:  
Log rotation fails.

Expected Results:  
Log rotation occurs.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-09 13:42:55 UTC
Fixed without a revision bump. I'll leave this bug open for now.
Comment 2 acmondor 2014-08-08 22:57:40 UTC
I noticed this problem today on an amd64 system. After a bit of research I discovered the problem file (/usr/portage/media-sound/mpd/files/mpd.logrotate) was actually fixed in on July 14, however the revision of the ebuild (mpd-0.18.10-r1.ebuild) was not changed so there is nothing to trigger the application of the fix.

Re-emerging mpd fixes the problem.

The rev of ebuild should be increased (ie change mpd-0.18.10-r1.ebuild to mpd-0.18.10-r2.ebuild), so the fix gets applied automatically during an 'emerge --update...'.
Comment 3 Christoph Mende (RETIRED) gentoo-dev 2014-09-05 14:44:21 UTC
0.18.13 includes the fixed file