Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479920 - media-sound/abcde-2.5.2 - syntax error while processing tracks in audio CDs
Summary: media-sound/abcde-2.5.2 - syntax error while processing tracks in audio CDs
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-06 11:50 UTC by zlg (RETIRED)
Modified: 2014-09-19 06:43 UTC (History)
0 users

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 zlg (RETIRED) gentoo-dev 2013-08-06 11:50:44 UTC
I went to rip an audio CD and got the following error message:

abcde: syntax error while processing track numbers (/media/dvd)

abcde comes with debug output with the -D flag, so I tried that:



Reproducible: Always

Steps to Reproduce:
1. Install abcde with cdparanoia support (may not be related, but it's what I have)
2. Put an audio CD into your optical drive, ensure your user is in the optical group
3. Try to rip it with `abcde /path/to/cdrom`
Actual Results:  
$ abcde -Dk /media/dvd/
+ getopts 1a:bBc:C:d:Defghj:klLmMnNo:pPq:r:s:S:t:T:UvVxX:w:W:z opt
+ case "$opt" in
+ KEEPWAVS=y
+ getopts 1a:bBc:C:d:Defghj:klLmMnNo:pPq:r:s:S:t:T:UvVxX:w:W:z opt
+ shift 1
+ '[' n = y ']'
+ echo /dev/cdrom
+ grep -i '.flac$'
+ '[' -n '' ']'
+ '[' '' = flac ']'
+ '[' '' = '' ']'
+ for DEFAULT_CDROMREADER in '$DEFAULT_CDROMREADERS'
+ new_checkexec cdparanoia
+ '[' '!' cdparanoia = '' ']'
++ echo cdparanoia
++ cut '-d ' -f2
+ X=cdparanoia
++ which cdparanoia
+ '[' /usr/bin/cdparanoia = '' ']'
++ which cdparanoia
+ '[' '!' -x /usr/bin/cdparanoia ']'
+ return 0
+ CDROMREADERSYNTAX=cdparanoia
+ break
+ '[' cdparanoia = '' ']'
+ '[' '' = y ']'
+ '[' 1 -gt 0 ']'
+ '[' media/dvd/ '!=' /media/dvd/ ']'
+ log error 'syntax error while processing track numbers (/media/dvd/)'
+ BLURB=error
+ shift
+ case $BLURB in
+ echo '[ERROR] abcde: syntax error while processing track numbers (/media/dvd/)'
[ERROR] abcde: syntax error while processing track numbers (/media/dvd/)
+ exit 1

Expected Results:  
It should've used cdparanoia to rip the tracks.

The -D flag is for debug output, -k was to keep the wav files afterwards. In the debug output, I noticed an inconsistency in the way the paths are compared:

+ '[' media/dvd/ '!=' /media/dvd/ ']'

The left side of this part should have the leading forward slash. Messing around with it, I noticed that the left side knocks off the first character in the string. This seems to be an off-by-one error.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2014-09-18 17:26:18 UTC
Hmm. Old bug.

Try latest media-sound/abcde, and preferably libcdio-paranoia, with libcdio-paranoia selected as cdparanoia backend in eselect
Comment 2 zlg (RETIRED) gentoo-dev 2014-09-19 02:40:41 UTC
(In reply to Samuli Suominen from comment #1)
> Hmm. Old bug.
> 
> Try latest media-sound/abcde, and preferably libcdio-paranoia, with
> libcdio-paranoia selected as cdparanoia backend in eselect

After retrying the steps I outlined a year ago, I decided to read the manpage again. The path to the disc block device must be preceded with `-d`, otherwise it'll be interpreted as a set of tracks to rip.

This was purely user error, haha. Sorry to take up your time. I have no clue why I overlooked that...
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2014-09-19 06:43:08 UTC
no worries, no time was wasted really, to be honest, after reading your first post, i still wasn't 100% sure if i understood the problem correctly :-)

no open abcde bugs left open in our bugzilla now o/

thanks for your quick response!