Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 226087

Summary: app-text/texlive-core-2007-r13 - cp: listing attributes of `/dev/null': Invalid argument
Product: Gentoo Linux Reporter: Alexey Shvetsov <alexxy>
Component: New packagesAssignee: Alexis Ballier <aballier>
Status: RESOLVED INVALID    
Severity: enhancement CC: tex
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
patch

Description Alexey Shvetsov archtester gentoo-dev 2008-06-12 15:26:12 UTC
Portage 2.2_pre8 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-rc5-zen1.0 i686)
=================================================================
System uname: Linux-2.6.26-rc5-zen1.0-i686-Intel-R-_Pentium-R-_M_processor_1400MHz-with-glibc2.0
Timestamp of tree: Thu, 12 Jun 2008 12:36:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=native -mtune=native"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://172.16.0.1"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="ru en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage/layman/zen-overlay /usr/local/portage/layman/kdesvn-portage /usr/local/overlays/portage /usr/local/overlays/mpi /usr/local/overlays/cross"
SYNC="rsync://172.16.0.1/gentoo-portage"
USE="7zip X a52 aac acl acpi ads alsa amr amrnb amrwb apache2 athena audit bash-completion berkdb blas branding bzip2 cairo calendar caps captury cdf cdr chm chroot cli clucene cmkopt color-console connectionstatus consolekit contactnotes cpudetection cracklib crypt cscope cups curl cviewer cvs cyrillic dbus device-mapper dga dia dialup djvu double-precision dri dts dvd dvdnav dvdr dvdread emboss enca encode evo exif exiv2 expat fam fbcon fbcondecor fbsplash ffmpeg fftw fits flac fontconfig fortran ftp fuse garmin ggz gif git glitz gmail gmp gnuplot gnutls gpg gphoto2 gpm graphics gs gtk hal hdaps hddtemp hibernate-script highlight history httpd iconv icq ieee1394 imagemagick imap inotify iproute2 ipv6 irda isdnlog java javacomm javascript jingle jpeg jpeg2k kcal kde kdepim kerberos ksolver lapack laptop latex lcms ldap libffi libnotify lm_sensors logrotate mad maps math midi mikmod mktemp mmx mmxext mng mp2 mp3 mp4 mp4live mpd mpeg mpeg2 mpi mplayer mudflap musepack mysql ncurses nepomuk networkmanager nfs nls nova nowlistening nptl nptlonly nsplugin ntp odbc office ogg omega openexr opengl openmp optimisememory oscar pam passwdqc pcmcia pcre pdf perl pertty php plasma plotutils png povray ppds pppd prelude print profile pstricks publishers pygrub python qt-copy qt3 qt3support qt4 quicktime rar rdesktop readline reflection reiser4 reiserfs resolvconf rewrite rpm rtc rtsp ruby samba sasl sbcl sbig science sco_flowcontrol screen sdl sensord server session skins slang slp sms solver sound speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg symlink sysfs taglib tcl tcpd tetex tga theora threads threadsonly tidy tiff tk toolbar tools tpctl transcode translator truetype unicode unzip urandom usb userlocales utempter vcd vhosts vidix vim vim-syntax visualization vnc vorbis webpresence wifi win32codecs winbind winpopup wma wmf wxwindows x264 x86 x86emu xanim xattr xcb xcomposite xft xine xinerama xml xorg xpm xscreensaver xulrunner xv xvid xvmc zip zlib zsh-completion" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="evdev mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="radeon r200"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexey Shvetsov archtester gentoo-dev 2008-06-12 15:27:07 UTC
Created attachment 156507 [details]
build.log

build.log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-12 15:36:12 UTC
Personally I feel doing `cp /dev/null sedscript' isn't a good idea. :)
Comment 3 Alexey Shvetsov archtester gentoo-dev 2008-06-12 15:43:39 UTC
(In reply to comment #2)
> Personally I feel doing `cp /dev/null sedscript' isn't a good idea. :)
> 
me too =)
alexxy@thinkpad ~ $ ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 Июн 10 10:20 /dev/null
alexxy@thinkpad ~ $ cp /dev/null sedscript
cp: listing attributes of `/dev/null': Invalid argument
Comment 4 Alexis Ballier gentoo-dev 2008-06-16 08:03:07 UTC
Created attachment 157051 [details, diff]
patch

weird... your dev/null seems a bit broken. Could you please try with the attached patch ?

Also, what happens if you do: echo foo > /dev/null ?
Comment 5 Alexey Shvetsov archtester gentoo-dev 2008-06-16 09:07:21 UTC
(In reply to comment #4)
> Created an attachment (id=157051) [edit]
> patch
> 
> weird... your dev/null seems a bit broken. Could you please try with the
> attached patch ?
> 
> Also, what happens if you do: echo foo > /dev/null ?
> 
dev null works =) 
yes this this patch all works fine =) thanks ;-)
Comment 6 Alexis Ballier gentoo-dev 2008-06-16 18:53:46 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Created an attachment (id=157051) [edit]
> > patch
> > 
> > weird... your dev/null seems a bit broken. Could you please try with the
> > attached patch ?
> > 
> > Also, what happens if you do: echo foo > /dev/null ?
> > 
> dev null works =) 
> yes this this patch all works fine =) thanks ;-)


then please explain me what weird setup you are on before I merge the patch and send it upstream.
Here I have:
crwxrwxrwx 1 root root 1, 3 2008-06-04 12:31 /dev/null

and 'cp /dev/null foo' works

is that something new in 2.6.26 kernels ? is that a "zen-sources" patch ?

Comment 7 Alexey Shvetsov archtester gentoo-dev 2008-06-16 19:01:09 UTC
> then please explain me what weird setup you are on before I merge the patch and
> send it upstream.
> Here I have:
> crwxrwxrwx 1 root root 1, 3 2008-06-04 12:31 /dev/null
> 
> and 'cp /dev/null foo' works
> 
> is that something new in 2.6.26 kernels ? is that a "zen-sources" patch ?
> 
looks like it was bug in 2.6.26_rc5 since on 2.6.26_rc6 
i have the same permissions as you have
but btw it more simple to use touch or echo to create empty file isn't it? 
Comment 8 Alexey Shvetsov archtester gentoo-dev 2008-06-16 19:03:46 UTC
(In reply to comment #7)
> > then please explain me what weird setup you are on before I merge the patch and
> > send it upstream.
> > Here I have:
> > crwxrwxrwx 1 root root 1, 3 2008-06-04 12:31 /dev/null
> > 
> > and 'cp /dev/null foo' works
> > 
> > is that something new in 2.6.26 kernels ? is that a "zen-sources" patch ?
> > 
> looks like it was bug in 2.6.26_rc5 since on 2.6.26_rc6 
> i have the same permissions as you have
> but btw it more simple to use touch or echo to create empty file isn't it? 
> 

or may be bug in udev since it was used to set permissions for devnodes
Comment 9 Alexis Ballier gentoo-dev 2008-06-16 19:04:23 UTC
(In reply to comment #7)
> looks like it was bug in 2.6.26_rc5 since on 2.6.26_rc6 
> i have the same permissions as you have

does it still fail without the patch ?

> but btw it more simple to use touch or echo to create empty file isn't it? 

I prefer to merge patches and annoy upstream while they're in the middle of a new release only if we're not blaming the wrong package ;)

(btw touch wont create the empty file if it already exists afaik)

Comment 10 Alexey Shvetsov archtester gentoo-dev 2008-06-16 19:10:02 UTC
(In reply to comment #9)
> does it still fail without the patch ?
> I prefer to merge patches and annoy upstream while they're in the middle of a
> new release only if we're not blaming the wrong package ;)
> 
> (btw touch wont create the empty file if it already exists afaik)
> 

for now it can work without patch ;)
it is strange bug for me =)
Comment 11 Alexis Ballier gentoo-dev 2008-07-03 19:15:22 UTC
answer from Karl (upstream):
"if cp /dev/null doesn't work, it seems to me the system is fundamentally broken."


so, closing as invalid.