Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 480666 - app-cdr/cdrtools-3.01_alpha16 - cdda2wav: Permission denied. Could not open audio sample file audio_01.wav.
Summary: app-cdr/cdrtools-3.01_alpha16 - cdda2wav: Permission denied. Could not open a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-11 19:34 UTC by Thomas Maguin
Modified: 2013-10-12 08:49 UTC (History)
1 user (show)

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


Attachments
output emerge cdrtools-3.01a16 (output-cdrtools-a16.txt,345.78 KB, text/plain)
2013-08-14 21:17 UTC, Thomas Maguin
Details
output cdda2wav 3.00 (out_300.txt,1.45 KB, text/plain)
2013-08-28 18:42 UTC, Thomas Maguin
Details
output cdda2wav 3.01a15 (out_301a15.txt,1.67 KB, text/plain)
2013-08-28 18:43 UTC, Thomas Maguin
Details
output cdda2wav 3.01a16 (out_3.01a16.txt,1.67 KB, text/plain)
2013-08-28 18:43 UTC, Thomas Maguin
Details
output sudo cdda2wav (out_sudo_a16,1.15 KB, text/plain)
2013-08-29 16:00 UTC, Thomas Maguin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Maguin 2013-08-11 19:34:56 UTC
cdda2wav has permission problems with cdda2wav / is refusing to sample audio from audio cd

cdrtools-3.01.a15 (~amd64): cdda2wav: Operation not permitted. Cannot set process capabilities. 

cdrtools-3.01.a16 (~amd64): cdda2wav: Permission denied. Could not open audio sample file audio_01.wav.

cdrtools-3.0 (stable): cdda2wav is doing fine

Reproducible: Always

Steps to Reproduce:
1. install ~amd64 cdrtools
2. cdda2wav dev=12,0,0 -vall -B -paranoia -paraopts=minoverlap=16 

Actual Results:  
does not sample wav files correctly / is completly refusing to sample wav files

Expected Results:  
should resulting in wav files. Downgrading to cdrtool-3,0 results in accurate wav files.

sudo emerge --info
Portage 2.1.12.2 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.9.11-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.9.11-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.2
KiB Mem:     8176216 total,    514608 free
KiB Swap:    8388604 total,   8375716 free
Timestamp of tree: Sun, 11 Aug 2013 11:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5, 3.2.5-r1
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.4.7, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo gentoo-china zugaina vdr-devel dberkholz bitcoin x-local-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -msse4 -mcx16 -msahf -mpopcnt -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gentoo-china /var/lib/layman/zugaina /var/lib/layman/vdr-devel /var/lib/layman/dberkholz /var/lib/layman/bitcoin /usr/portage/local/local-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 archive audiofile bash-completition berkdb bluetooth bluray branding bzip2 cairo cdda cdparanoia cdr cli consolekit cracklib cracklibcrypt crypt css cups curl cxx dbus declarative device-mapper dga dri dts dv dvb dvd dvdr emboss emovix encode exif faac faad fam ffmpeg firefox flac foomaticdb fortran g3dvl gdbm gif gimp gnome gnutls gphoto2 gpm gtk gzip hddtemp iconv icq ieee1394 imlib ipv6 jabber jpeg kde kipi kontact kvm lame lcms ldap libnotify loop-aes lvm lzma lzo mad matroska mbox mikmod mime mjpeg mmx mmxext mng modules motif mp3 mp4 mpeg mplayer mudflap multilib musepack mysql ncurses nls nntp nptl nsplugin numa ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qemu qt3support qt4 raw readline rss scanner sdl semantic-desktop session shorten sndfile spell sse sse2 sse3 sse4 ssl startup-notification svg syslog taglib tcpd theora threads tidy tiff tls truetype udev udisks unicode upower usb v4l v4l2 vcd vdpau vim-with-x vorbis wav wavpack win32codecs wma wxwidgets x264 xcb xcomposite xinerama xml xml2 xorg xosd xpm xscreensaver xv xvid xvmc yv12 zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Thomas Maguin 2013-08-11 19:37:19 UTC
sudo emerge --info
Portage 2.1.12.2 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.9.11-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.9.11-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.2
KiB Mem:     8176216 total,    514608 free
KiB Swap:    8388604 total,   8375716 free
Timestamp of tree: Sun, 11 Aug 2013 11:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5, 3.2.5-r1
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.4.7, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo gentoo-china zugaina vdr-devel dberkholz bitcoin x-local-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -msse4 -mcx16 -msahf -mpopcnt -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gentoo-china /var/lib/layman/zugaina /var/lib/layman/vdr-devel /var/lib/layman/dberkholz /var/lib/layman/bitcoin /usr/portage/local/local-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 archive audiofile bash-completition berkdb bluetooth bluray branding bzip2 cairo cdda cdparanoia cdr cli consolekit cracklib cracklibcrypt crypt css cups curl cxx dbus declarative device-mapper dga dri dts dv dvb dvd dvdr emboss emovix encode exif faac faad fam ffmpeg firefox flac foomaticdb fortran g3dvl gdbm gif gimp gnome gnutls gphoto2 gpm gtk gzip hddtemp iconv icq ieee1394 imlib ipv6 jabber jpeg kde kipi kontact kvm lame lcms ldap libnotify loop-aes lvm lzma lzo mad matroska mbox mikmod mime mjpeg mmx mmxext mng modules motif mp3 mp4 mpeg mplayer mudflap multilib musepack mysql ncurses nls nntp nptl nsplugin numa ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qemu qt3support qt4 raw readline rss scanner sdl semantic-desktop session shorten sndfile spell sse sse2 sse3 sse4 ssl startup-notification svg syslog taglib tcpd theora threads tidy tiff tls truetype udev udisks unicode upower usb v4l v4l2 vcd vdpau vim-with-x vorbis wav wavpack win32codecs wma wxwidgets x264 xcb xcomposite xinerama xml xml2 xorg xosd xpm xscreensaver xv xvid xvmc yv12 zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Daniel Pielmeier gentoo-dev 2013-08-14 19:46:19 UTC
Please provide "emerge --info =app-cdr/cdrtools-3.01_alpha16" and the full build log.

Did you enable the XATTR option for your filesystem and mounted it with the user_xattr option? Also is FS_SECURITY enabled in the kernel?
Comment 3 Thomas Maguin 2013-08-14 20:08:30 UTC
sudo grep -i xattr /usr/src/linux/.config
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_TMPFS_XATTR=y

sudo grep -i fs_security /usr/src/linux/.config
# CONFIG_EXT2_FS_SECURITY is not set
CONFIG_EXT3_FS_SECURITY=y
# CONFIG_EXT4_FS_SECURITY is not set

tried to remount /home with user_xattr, but it doesn't help. cdrtools-3.00 is doing fine without changing filesystemoptions.
The problem exists with usb and sata drives.


sudo emerge --info =app-cdr/cdrtools-3.01_alpha16
Portage 2.1.12.2 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.9.11-gentoo-r1 x86_64)                                                                                                         
=================================================================                                                                                                                                                  
                        System Settings                                                                                                                                                                            
=================================================================                                                                                                                                                  
System uname: Linux-3.9.11-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.2                                                                                                                 
KiB Mem:     8176216 total,   6407392 free                                                                                                                                                                         
KiB Swap:   16990204 total,  16990204 free                                                                                                                                                                         
Timestamp of tree: Wed, 14 Aug 2013 18:30:01 +0000                                                                                                                                                                 
ld GNU ld (GNU Binutils) 2.23.1                                                                                                                                                                                    
ccache version 3.1.9 [enabled]                                                                                                                                                                                     
app-shells/bash:          4.2_p45                                                                                                                                                                                  
dev-java/java-config:     2.1.12-r1                                                                                                                                                                                
dev-lang/python:          2.7.5, 3.2.5-r1                                                                                                                                                                          
dev-util/ccache:          3.1.9                                                                                                                                                                                    
dev-util/cmake:           2.8.10.2-r2                                                                                                                                                                              
dev-util/pkgconfig:       0.28                                                                                                                                                                                     
sys-apps/baselayout:      2.2                                                                                                                                                                                      
sys-apps/openrc:          0.11.8                                                                                                                                                                                   
sys-apps/sandbox:         2.6-r1                                                                                                                                                                                   
sys-devel/autoconf:       2.13, 2.69                                                                                                                                                                               
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6                                                                                                                                                                   
sys-devel/binutils:       2.23.1                                                                                                                                                                                   
sys-devel/gcc:            4.4.7, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo gentoo-china zugaina vdr-devel dberkholz bitcoin x-local-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -msse4 -mcx16 -msahf -mpopcnt -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gentoo-china /var/lib/layman/zugaina /var/lib/layman/vdr-devel /var/lib/layman/dberkholz /var/lib/layman/bitcoin /usr/portage/local/local-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 archive audiofile bash-completition berkdb bluetooth bluray branding bzip2 cairo cdda cdparanoia cdr cli consolekit cracklib cracklibcrypt crypt css cups curl cxx dbus declarative device-mapper dga dri dts dv dvb dvd dvdr emboss emovix encode exif faac faad fam ffmpeg firefox flac foomaticdb fortran g3dvl gdbm gif gimp gnome gnutls gphoto2 gpm gtk gzip hddtemp iconv icq ieee1394 imlib ipv6 jabber jpeg kde kipi kontact kvm lame lcms ldap libnotify loop-aes lvm lzma lzo mad matroska mbox mikmod mime mjpeg mmx mmxext mng modules motif mp3 mp4 mpeg mplayer mudflap multilib musepack mysql ncurses nls nntp nptl nsplugin numa ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qemu qt3support qt4 raw readline rss scanner sdl semantic-desktop session shorten sndfile spell sse sse2 sse3 sse4 ssl startup-notification svg syslog taglib tcpd theora threads tidy tiff tls truetype udev udisks unicode upower usb v4l v4l2 vcd vdpau vim-with-x vorbis wav wavpack win32codecs wma wxwidgets x264 xcb xcomposite xinerama xml xml2 xorg xosd xpm xscreensaver xv xvid xvmc yv12 zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

app-cdr/cdrtools-3.01_alpha16 was built with the following:
USE="acl filecaps nls unicode"
CFLAGS="-march=native -msse4 -mcx16 -msahf -mpopcnt -O2 -pipe -finput-charset=ISO-8859-1 -fexec-charset=UTF-8"
CXXFLAGS="-O2 -pipe -finput-charset=ISO-8859-1 -fexec-charset=UTF-8"
Comment 4 Daniel Pielmeier gentoo-dev 2013-08-14 20:23:55 UTC
(In reply to Thomas Maguin from comment #3)
> 
> tried to remount /home with user_xattr, but it doesn't help. cdrtools-3.00
> is doing fine without changing filesystemoptions.
> The problem exists with usb and sata drives.

It's about the filesystem were the cdda2wav binary lies not the files you are trying to work with. However if you mount it with the default options user_xattr should be enabled anyway.

Please attach the build log!
Comment 5 Thomas Maguin 2013-08-14 21:05:53 UTC
since I try to sample an audio cd, I don't mount it all. Do you meen the complete output of emerge cdrtools?
Comment 6 Thomas Maguin 2013-08-14 21:17:19 UTC
Created attachment 356044 [details]
output emerge cdrtools-3.01a16
Comment 7 Thomas Maguin 2013-08-14 21:28:04 UTC
hm, with out sudo (s-bit is set by default), no it looks like this:

cdda2wav dev=1,0,0 -vall -B -paranoia -paraopts=minoverlap=16
cdda2wav: Operation not permitted. Cannot set process capabilities.
Type: ROM, Vendor 'Optiarc ' Model 'DVD RW AD-7280S ' Revision '1.01' MMC+CDDA
569344 bytes buffer memory requested, transfer size 131072 bytes, 4 buffers, 55 sectors
#Cdda2wav version 3.01a16_linux_3.9.11-gentoo-r1_x86_64_intel-r--core-tm--i7-cpu-860-@-2.80ghz, real time sched., soundcard, libparanoia support
32 sectors of audio data before track #0
AUDIOtrack pre-emphasis  copy-permitted tracktype channels
      1- 2           no              no     audio    2
Table of Contents: total tracks:2, (total time 28:43.08)
  1.(16:52.28),  2.(11:50.55)

Table of Contents: starting sectors
  1.(      32),  2.(   75960), lead-out(  129265)
CDINDEX discid: .kJiPh_DHLObIQBpeJ2OI7y2Upc-
CDDB discid: 0x0806bb02
CD-Text: not detected
CD-Extra: not detected
No media catalog number present.
scanning for ISRCs: 1 ...
...
scanning for ISRCs: 2 ...
...

index scan: 2...
samplefile size will be 303956060 bytes.
recording 1723.1066 seconds stereo with 16 bits @ 44100.0 Hz ->'audio'...
using lib paranoia for reading.
cdda2wav: Operation not permitted. Cannot set process capabilities.
cdda2wav: Operation not permitted. Cannot set posix realtime scheduling policy.
percent_done:
 34% ...
Comment 8 Daniel Pielmeier gentoo-dev 2013-08-14 21:51:14 UTC
(In reply to Thomas Maguin from comment #5)
> since I try to sample an audio cd, I don't mount it all. Do you meen the
> complete output of emerge cdrtools?

I meant the filesystem on which cdda2wav lies must be mounted with the user_xattr option.
Comment 9 Thomas Maguin 2013-08-14 22:07:26 UTC
-o remount on / FS shows no user_xattr, while /home is doing finde - going down for reboot.

Added s-bit to cdda2wav (like in 3.00), which gave me two results:

$ ls -l /usr/bin/cdda2wav 
-rws--x--x 1 root root 204952 Aug 14 23:51 /usr/bin/cdda2wav

a) ----------------------
$ cdda2wav dev=8,0,0 -vall -B -paranoia -paraopts=minoverlap=16
cdda2wav: Insufficient 'file read' privileges. You will not be able to open all needed devices.
cdda2wav: Insufficient 'file write' privileges. You will not be able to open all needed devices.
cdda2wav: Insufficient 'device' privileges. You may not be able to send all needed SCSI commands, this my cause various unexplainable problems.
cdda2wav: Insufficient 'priocntl' privileges. You may get jitter.
cdda2wav: Insufficient 'network' privileges. You will not be able to do remote SCSI.
cdda2wav: Operation not permitted. Cannot set process capabilities.
Type: ROM, Vendor 'PLEXTOR ' Model 'CD-R   PREMIUM2 ' Revision '1.03' MMC+CDDA
536576 bytes buffer memory requested, transfer size 122880 bytes, 4 buffers, 52 sectors
#Cdda2wav version 3.01a16_linux_3.9.11-gentoo-r1_x86_64_intel-r--core-tm--i7-cpu-860-@-2.80ghz, real time sched., soundcard, libparanoia support
32 sectors of audio data before track #0
AUDIOtrack pre-emphasis  copy-permitted tracktype channels
      1- 2           no              no     audio    2
Table of Contents: total tracks:2, (total time 28:43.08)
  1.(16:52.28),  2.(11:50.55)

Table of Contents: starting sectors
  1.(      32),  2.(   75960), lead-out(  129265)
CDINDEX discid: .kJiPh_DHLObIQBpeJ2OI7y2Upc-
CDDB discid: 0x0806bb02
CD-Text: not detected
CD-Extra: not detected
No media catalog number present.
scanning for ISRCs: 1 ...
Illegal ISRC for track 1, skipped: 60 60 60 60 60 30 30 30 30 30 30 30 00 00 00 
scanning for ISRCs: 2 ...
Illegal ISRC for track 1, skipped: 60 60 60 60 60 30 30 30 30 30 30 30 00 00 00 

index scan: 2...
samplefile size will be 303956060 bytes.
recording 1723.1066 seconds stereo with 16 bits @ 44100.0 Hz ->'audio'...
using lib paranoia for reading.
cdda2wav: Operation not permitted. Cannot set process capabilities.
percent_done:
 63% ...


b) ---------------
$ sudo cdda2wav dev=8,0,0 -vall -B -paranoia -paraopts=minoverlap=16
Type: ROM, Vendor 'PLEXTOR ' Model 'CD-R   PREMIUM2 ' Revision '1.03' MMC+CDDA
536576 bytes buffer memory requested, transfer size 122880 bytes, 4 buffers, 52 sectors
#Cdda2wav version 3.01a16_linux_3.9.11-gentoo-r1_x86_64_intel-r--core-tm--i7-cpu-860-@-2.80ghz, real time sched., soundcard, libparanoia support
32 sectors of audio data before track #0
AUDIOtrack pre-emphasis  copy-permitted tracktype channels
      1- 2           no              no     audio    2
Table of Contents: total tracks:2, (total time 28:43.08)
  1.(16:52.28),  2.(11:50.55)

Table of Contents: starting sectors
  1.(      32),  2.(   75960), lead-out(  129265)
CDINDEX discid: .kJiPh_DHLObIQBpeJ2OI7y2Upc-
CDDB discid: 0x0806bb02
CD-Text: not detected
CD-Extra: not detected
No media catalog number present.
scanning for ISRCs: 1 ...
Illegal ISRC for track 1, skipped: 60 60 60 60 60 30 30 30 30 30 30 30 00 00 00 
scanning for ISRCs: 2 ...
Illegal ISRC for track 1, skipped: 60 60 60 60 60 30 30 30 30 30 30 30 00 00 00 

index scan: 2...
cdda2wav: Permission denied. Could not open audio sample file audio_01.wav.
Comment 10 Daniel Pielmeier gentoo-dev 2013-08-14 22:29:08 UTC
What does "getcap /usr/bin/cdda2wav" return?
Comment 11 Thomas Maguin 2013-08-14 22:36:15 UTC
/usr/bin/cdda2wav = cap_dac_override,cap_net_bind_service,cap_sys_rawio,cap_sys_admin,cap_sys_nice+ep
Comment 12 Daniel Pielmeier gentoo-dev 2013-08-28 17:54:24 UTC
I finally had time to test this. I get the same messages like:

cdda2wav: Operation not permitted. Cannot set process capabilities.
cdda2wav: Operation not permitted. Cannot set process capabilities.
cdda2wav: Operation not permitted. Cannot set posix realtime scheduling policy.

But cdda2wav does produce perfectly fine wav files. This is with cdrtools-3.01_alpha16.

Can you please provide the complete console output for your command

"cdda2wav dev=12,0,0 -vall -B -paranoia -paraopts=minoverlap=16"

for the unmodified (no messing with permissions) build of cdrtools-3.01_alpha16 with USE="acl filecaps nls unicode" and the same for cdrtools-3.01_alpha15.

BTW: Do you really have three devices installed? I mean dev=12,0,0 dev=1,0,0 and dev=8,0,0.
Comment 13 Thomas Maguin 2013-08-28 18:42:12 UTC
Created attachment 357268 [details]
output cdda2wav 3.00
Comment 14 Thomas Maguin 2013-08-28 18:43:05 UTC
Created attachment 357270 [details]
output cdda2wav 3.01a15
Comment 15 Thomas Maguin 2013-08-28 18:43:47 UTC
Created attachment 357274 [details]
output cdda2wav 3.01a16
Comment 16 Thomas Maguin 2013-08-28 18:45:08 UTC
looks like the permission messages occured with cdrtools-3.01alpha
Comment 17 Thomas Maguin 2013-08-28 19:23:20 UTC
yes, currently there are four devices connected via SATA and two devices via USB.
Comment 18 Daniel Pielmeier gentoo-dev 2013-08-29 08:41:39 UTC
What about the: "Permission denied. Could not open audio sample file audio_01.wav." message. I thought cdrtools-3.01.a16 does not work at all. Do you get wav files with all versions? Is anything wrong with the wav files and are you just worried about the messages?
Comment 19 Daniel Pielmeier gentoo-dev 2013-08-29 08:44:02 UTC
The functionality which produces this message was added in recent (In reply to Thomas Maguin from comment #16)
> looks like the permission messages occured with cdrtools-3.01alpha

The functionality (posix capabilities) which is responsible for this messages was added in recent alpha versions.
Comment 20 Thomas Maguin 2013-08-29 16:00:10 UTC
Created attachment 357336 [details]
output sudo cdda2wav

cdda2wav: Permission denied. Could not open audio sample file audio_01.wav

occurs, when I try to prevent the posix capabilities permission problem with using sudo.
Comment 21 Daniel Pielmeier gentoo-dev 2013-08-30 07:30:14 UTC
(In reply to Thomas Maguin from comment #20)
> Created attachment 357336 [details]
> output sudo cdda2wav
> 
> cdda2wav: Permission denied. Could not open audio sample file audio_01.wav
> 
> occurs, when I try to prevent the posix capabilities permission problem with
> using sudo.

You can either use cdrtools with posix file capabilities (with USE=filecaps) or with the old suid root permissions by disabling the USE flag.
With filecaps you can execute cdrtools/cdda2wav/readcd as normal user, without you need sudo or to be root.
So building the cdrtools with filecaps and changing the permissions to suid root wont help.


Please answer my questions:
Do you get working wav files as desired?
Are you just worrying about the messages.

From your console output it looks like the wav files are written. If everything works as it should and this is just about the messages I do not really consider this as a bug. What I can do however is asking the author of cdrtools if this is a serious issue and if something has to be done against the messages.
Comment 22 Thomas Maguin 2013-08-30 07:54:27 UTC
without sudo I get wav files. I was worried and confused because of the error messages. Thank you.
Comment 23 schily 2013-10-06 20:15:44 UTC
This sounds very confusing.

Are you sure you have a consistent installation?

Is it possible that the kernel does not work correctly? e.g. file caps do not work...

BTW: there are no POSIX CAPS, this is from a POSIX draft that was withdrawn in 1997.

The reports in this bug give a lot of contradicting information and it is only possible to analyse the problem if there is _complete_ information on the _relevant_ parameters of the installation.

Nobody is interested in unrelated software like cmake, but the state of the linux capabilities is if course important.
Comment 24 schily 2013-10-07 09:22:32 UTC
Maybe it helps to com,ment the first report:

cdda2wav is not installed correctly.

It is neither installed suid root nor installed with the needed capabilities.
This is why the first error message is printed.

The second error message is printed because the current directory is not writable by the caller of cdda2wav.
Comment 25 Daniel Pielmeier gentoo-dev 2013-10-12 08:49:52 UTC
Jörg Schilling and I have debugged the issue. I have committed a new revision including a patch which should fix the issue. Please test and reopen if there are still problems.