Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132728 - sci-libs/torch has some problems with sed during src_install()
Summary: sci-libs/torch has some problems with sed during src_install()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-08 14:34 UTC by f5d8fd51ed1e804c9e8d0357e8614e0493b06e96
Modified: 2006-06-01 21:42 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 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2006-05-08 14:34:51 UTC
what I see while emerging sci-libs/torch is the following:

>>> Install torch-3 into /var/tmp/portage/torch-3/image/ category sci-libs
sed: couldn't write -1 items to ./sedm5oCxi: Inappropriate ioctl for device
>>> Completed installing torch-3 into /var/tmp/portage/torch-3/image/

I tracked it down to happen in line 47 of the ebuild:
    sed -i \
        -e "s:^LIBS_DIR.*:LIBS_DIR=/usr/$(get_libdir):" \
        -e 's|^INCS := .*|INCS := -I /usr/include/torch $(MYINCS)|' \
        -e '/^INCS +=/c\' \
        Makefile_options_Linux

I'd presume the problem might be related to the fact that Makefile_options_Linux is allready "sed -i"'ed during src_compile().


The second sed'ing in src_install() (arround line 60 of the ebuild) also doesn't seem to do what it should (at least if I guessed right what it should do) - remove the lines containing the words MAKE or VERSION_KEY from the example Makefile. Instead it replace the line containing the word MAKE with the totally useless line: /VERSION_KEY/c

Both errors together make it impossible to even compile the included examples.



For the sake of completeness:
therion aaron # emerge --info
Portage 2.1_pre10-r4 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r2, 2.6.16-gentoo-r2 i686)
=================================================================
System uname: 2.6.16-gentoo-r2 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.12.0_pre19
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="de_DE"
LC_ALL="de_DE.utf8"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 16bit 3dnow 3dnowext X Xaw3d a52 aac aalib acpi alsa apache2 apm arts asf audiofile avi bash-completion berkdb bidi bitmap-fonts browserplugin bzip2 bzlib c++ cdb cdio cdparanoia cdr cdrom chroot cjk cli codecs cpudetection crypt css ctype cups curl dba dbus dga dhcp dio directfb divx4linux dlloader dri dts dvd dvdr dvdread ecc eds emacs emboss encode erandom esd exif expati exscalibar faac faad fam fb fbcon fbdev ffmpeg flac font-server foomaticdb fortran freetds freetype gd gdbm gif gmp gpm graphviz gstreamer gtk gtk2 hal iconv imap imlib ipv6 isdnlog java javascript jpeg jpeg2k junit kde kipi libcaca libg++ libwww logitech-mouse mad matroska mhash mikmod mime mjpegmpeg mmx mmxext mng motif mp3 mpeg mpeg4 mplayer mpm-worker musicbrainz mysql ncurses network nls nptl nptlonly nsplugin nvidia odbc ogg opengl oscar oss pam pcre pdf pdflib perl php pic pie png postgres pppd python qt quicktime rar readline real reflection rtc samba sasl sdl session slang slq speex spell spl sqlite sse ssl stencil-buffer subversion svg svga sysfs tcpd tetex tga theora threads tidy tiff toolbari truetype truetype-fonts type1 type1-fonts udev unicode usb userlocales vidix vim-with-x visualization vorbis win32codecs winbind wxgtk1 wxwindows xine xml xml2 xorg xsl xslt xv xvid xvmc zeroconf zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_de userland_GNU video_cards_nvidia video_cards_vesa video_cards_fbdev"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Markus Dittrich (RETIRED) gentoo-dev 2006-06-01 21:42:51 UTC
Hi Olaf,

Thanks for your bug report and I believe I just fixed this in cvs.
The sed error is gone and I can compile the examples.
Please let us know if you continue to encounter problems.

Best,
Markus