Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342269 - cdrom.eclass: cdrom_get_cds fails to perform check when CD_ROOT supplied
Summary: cdrom.eclass: cdrom_get_cds fails to perform check when CD_ROOT supplied
Status: RESOLVED DUPLICATE of bug 195868
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-23 06:36 UTC by Daniel Santos
Modified: 2017-04-09 20:52 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 Daniel Santos 2010-10-23 06:36:22 UTC
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.
Comment 1 SpanKY gentoo-dev 2010-11-22 01:09:11 UTC
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.
Comment 2 James Le Cuirot gentoo-dev 2017-04-05 20:41:18 UTC
This is a dupe but it's hopefully about to get fixed.

*** This bug has been marked as a duplicate of bug 195868 ***
Comment 3 Daniel Santos 2017-04-09 20:52:43 UTC
(In reply to James Le Cuirot from comment #2)
> This is a dupe but it's hopefully about to get fixed.

Awesome!