Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500138 - games-fps/quake2-data-3.20: Fails, no access to files on CD
Summary: games-fps/quake2-data-3.20: Fails, no access to files on CD
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-02 21:36 UTC by Tango
Modified: 2014-08-04 23:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info (file_500138.txt,4.72 KB, text/plain)
2014-02-02 21:36 UTC, Tango
Details
quake2-data-3.20 build log (file_500138.txt,2.50 KB, text/plain)
2014-08-04 22:57 UTC, Tango
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tango 2014-02-02 21:36:59 UTC
Created attachment 369388 [details]
emerge info

The quake2-data-3.20.ebuild Dies with

 * 	dodoc: /run/media/michael/Quake2/Docs/* does not exist
 * 	doins: /run/media/michael/Quake2/setup/Data/baseq2/pak0.pak does not exist

While I am unable to confirm this I believe portage simply dose not have any access to /dev/sr0 when it is mounted or auto-mounted as a normal user. It dose not matter if I let the emerge process try to find the CD or if I use the "export CD_ROOT=". I fails to find the required files.

I was able to work around the problem by creating, as my user, the necessary directories on a drive partition and then copying the entire Game CD to the new location. Then the "export CD_ROOT=" worked and portage found the files and the ebuild completed as expected. This defeats the purpose of ebuilds?

I have attempted to locate the exact cause of the problem. See the forum topic http://forums.gentoo.org/viewtopic.php?p=7483634#7483634 for in depth details. It appears that udisks, polkit and gvfs or some combination of these may set very restrictive policies on user mounts.

It might be better to have IUSE="cdinstall" set in the ebuild giving folks the option of using the Interactive mode or copying the files manually. Maintance, updates and rebuilds would be a lot easier.
Comment 1 SpanKY gentoo-dev 2014-08-04 11:24:34 UTC
please attach the full build.log, and post the output of `mount`
Comment 2 Tango 2014-08-04 22:57:48 UTC
Created attachment 382288 [details]
quake2-data-3.20 build log
Comment 3 Tango 2014-08-04 23:01:00 UTC
Output of mount
# mount
rootfs on / type rootfs (rw)
/dev/sda3 on / type ext4 (rw,noatime,commit=0)
devtmpfs on /dev type devtmpfs (rw,relatime,size=16418500k,nr_inodes=4104625,mode=755)
proc on /proc type proc (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,size=3290512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
/dev/sdb2 on /mnt/windows type ntfs (ro,umask=022)
/dev/sdc1 on /home/backup type ext3 (rw,noatime,noexec,nosuid,nodev,commit=0,user)
/dev/sdd1 on /home/shared type ext4 (rw,noatime,noexec,nosuid,nodev,commit=0,user)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nodev,noexec,nosuid)
/dev/sr0 on /media/Quake2 type iso9660 (ro,nodev,nosuid,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks2)

For kicks I inserted the Quake2 CD before running 'mount'

I have changed the default udisks mount directory from /run/media/user?/some-directory/ to /media/some-directory, but it should not matter where it is mounted as long as the "export CD_ROOT=" is correct.