On Wed, Aug 08, 2007 at 11:40:00PM +0100, Edd Barrett wrote: >>> Whilst testing disc-cover-1.5.2p1 (-current) with texlive, I am unable to >>> have disc-cover read the cdrom drive. It has correctly guessed the device >>> node, but is unable to read the cd. I have checked the permissions on the >>> node and even 777'd /dev/cd0c. >>> >>> Any ideas? >> No, but ktrace(1) may be helpful in diagnosing the problem further. > OK, heres the problem. > > 22834 perl CALL ioctl(0x3,CDIOCREADSUBCHANNEL,0xcfbf66d0) > 22834 perl RET ioctl -1 errno 22 Invalid argument > > man errno say sthe following about error code 22: > > 22 EINVAL Invalid argument. Some invalid argument was supplied. (For > example, specifying an undefined signal to a signal(3) or kill(2) > function). > > This might not be fault of disc-cover, but perhaps instead the fault of > p5-Audio-CD-0.04 > > The abcde port functions perfectly, so we can rule out bad hardware / bad > cd. > > Basically this port is quite broken
Unfortunately the situation is even worse than simply disc-cover (or p5-Audio-CD's) inability to read CDs. Even if one fudges things and manually feeds it a CDDB entry (via the -f flag), the TeX file generated fails to compile under latex correctly, and so the program barfs, deleting the temporary .tex file created. This happens under both teTeX and texLive. One then has to use the "-t tex" flag to get it to output a .tex file without running latex. Manually fixing the .tex file is relatively simple (one simply needs to remove the "isolatin1" flag located in the first 2 or 3 lines), but all this messing around does suggest that it's been a long time since anyone used this port (and, possibly, a long time since anyone used p5-Audio-CD). I'd suggest that removing this port from 4.2 is unlikely to effect anyone, and it will save us from an unused, buggy, program being in the ports tree. Laurie -- http://tratt.net/laurie/ -- Personal http://convergepl.org/ -- The Converge programming language