Here's an example and it's easy to try. pkg_setup() { local checkFile="a_file_on_my_cd" cdrom_get_cds "${checkFile}" test -e "${CDROM_ROOT}/${checkFile}" || die "OMG!" } Now run the ebuild supplying CD=ROOT="/some/trashy/path" This may be a side effect of bug 195868, but I haven't looked at the code, so I dunno. NOTE: You might want to check this both with the real CD-ROM actually mounted & not. My CD-ROM drive is kinda screwed (I need to use pliers and a small awl each time to open it each time), so I would rather not remove my CD to test this theory right now.
the idea was that people supplying their own CD_ROOT know what they're doing. from the actual code: # now we see if the user gave use CD_ROOT ... # if they did, let's just believe them that it's correct so it isnt really a side effect of any bug, but by design.
This is a dupe but it's hopefully about to get fixed. *** This bug has been marked as a duplicate of bug 195868 ***
(In reply to James Le Cuirot from comment #2) > This is a dupe but it's hopefully about to get fixed. Awesome!