Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258359 - sys-block/mbuffer-20090113 fails to make - missing ksh
Summary: sys-block/mbuffer-20090113 fails to make - missing ksh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-09 19:31 UTC by Volker Hemmann
Modified: 2009-02-16 17:57 UTC (History)
2 users (show)

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


Attachments
the build.log (build.log,4.08 KB, text/plain)
2009-02-09 19:32 UTC, Volker Hemmann
Details
Patch to the Makefile.in to only use /bin/ksh if no shell is defined. (mbuffer-20090113-shell-default.patch,320 bytes, patch)
2009-02-12 02:36 UTC, John R. Graham
Details | Diff
New ebuild that applies the patch. (mbuffer-20090113-r1.ebuild,986 bytes, text/plain)
2009-02-12 02:40 UTC, John R. Graham
Details
Better patch. (mbuffer-20090113-auto-shell-select.patch,834 bytes, patch)
2009-02-13 00:27 UTC, John R. Graham
Details | Diff
Update to ebuild. (mbuffer-20090113-r1.ebuild,1011 bytes, text/plain)
2009-02-13 00:27 UTC, John R. Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Hemmann 2009-02-09 19:31:26 UTC
sys-block/mbuffer-20090113 fails to install because its make is looking for ksh:
make -j3
x86_64-pc-linux-gnu-gcc -march=k8-sse3 -O2 -msse3 -pipe -DHAVE_CONFIG_H   -c -o mbuffer.o mbuffer.c
make: /bin/ksh: Command not found
make: *** [mbuffer.o] Error 127


Reproducible: Always

Steps to Reproduce:
1. just try to install mbuffer
2. without ksh installed
3.




 emerge --info
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.                  
Portage 2.2_rc23 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.27.14r4 x86_64)
=================================================================                                           
System uname: Linux-2.6.27.14r4-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-glibc2.2.5       
Timestamp of tree: Mon, 09 Feb 2009 15:30:01 +0000                                                          
ccache version 2.4 [enabled]                                                                                
app-shells/bash:     3.2_p48-r1                                                                             
dev-java/java-config: 1.3.7-r1, 2.1.7                                                                       
dev-lang/python:     2.5.4-r2                                                                               
dev-util/ccache:     2.4-r8                                                                                 
dev-util/cmake:      2.6.2-r1                                                                               
sys-apps/baselayout: 2.0.0                                                                                  
sys-apps/openrc:     0.4.2                                                                                  
sys-apps/sandbox:    1.3.5                                                                                  
sys-devel/autoconf:  2.13, 2.63                                                                             
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                              
sys-devel/binutils:  2.19.1                                                                                 
sys-devel/gcc-config: 1.4.1                                                                                 
sys-devel/libtool:   2.2.6a                                                                                 
virtual/os-headers:  2.6.28-r1                                                                              
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                              
CBUILD="x86_64-pc-linux-gnu"                                                                                
CFLAGS="-march=k8-sse3 -O2 -msse3 -pipe"
CHOST="x86_64-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/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config"
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/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8-sse3 -O2 -msse3 -pipe"
DISTDIR="/var/portage/distfiles"
FEATURES="autoconfig buildpkg candy ccache collision-protect distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="C"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/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="/var/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/games /usr/local/portage/layman/qting-edge /usr/local/portage/layman/kde-testing /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip S3TC X Xaw3d a52 aac acpi addbookmarks aiglx aim aio akode alias alsa altenburgcards amarok amd64 amr amrnb amrwb aotuv aqua_theme archive asf athena audiofile autoreplace avahi bash-completion berkdb binary-drivers bluetooth boost branding bzip2 cairo captury cdaudio cdda cddb cdinstall cdparanoia cdr cdrom cdsound cegui clamav cli connectionstatus consolekit contactnotes cracklib crypt css cups curl dbus depth32 dhcp dio divx dnd double-precision dpms dri dts dv dvb dvbplayer dvbsetup dvd dvdr dvdread eds emboss emerald emovix emul-linux-x86 encode evo exif exiv2 expat exscalibar extra-cardsets fame fasttrack ffmpeg fftw file filter_default filter_legacy filter_light firefox fits flac fontconfig foomaticdb fortran ftp gadu gammu gd gdbm gif gimp gimpprint glitz glut glx gnokii gnutella gpgme gpm hal hddtemp highlighthistory iconv icq icu id3 id3tag ieee1394 imagemagick inotify ipv6 irc irmc isdnlog jabber java javascript jce joystick jpeg jpeg2k kate kcal kde kdecards kdeenablefinal kdehiddenvisibility kdepim kdeprefix kdm kexi kipi lame lapack lcms lesstif libnotify libsamplerate libssh2 libwww lirc lm_sensors logitech-mouse lzo lzw mad magic mailbox maildir maps matroska mbox mdnsresponder-compat metric midi mikmod mime mixer mjpeg mmap mmx mmxext mng mp3 mp4 mpeg mpeg2 mplayer msn mtp mudflap mule multilib musepack music nano-syntax ncurses neXt nepomuk net network newspr ngui nls no-old-linux nocd nosendmail nova nowin nowlistening npp nptl nptlonly nsplugin ntfs obex offensive ogg ogg123 ogm openexr opengl openmp oscar otr pam paste64 pch pcre pda pdf perl physfs pixmaps plasma player plugins png pnm posix ppds pppd python qt3 qt3support qt4 quicktime rar readline recode reflection reiser4 reiserfs remix resolvconf rogue rtc samba sametime sasl scanner scenarios schedule scsi sdl sdl-image sdl-sound sdlaudio sendfile server session slp smp sms sndfile sockets sounds spell spl sqlite sqlite3 srt sse sse-filters sse2 sse3 ssh ssl ssse3 startup-notification statistics stats stencil-buffer stroke subp subtitles svg sysfs sysvipc szip tcpd texteffect textures tga theora threads threadsafe tiff timidity tk tomsfastmath toolbar tools transcode translator truetype tv tv_check tv_combiner tv_pick_cgi tvtime type1 unicode unzip usb userlocales utempter v4l v4l2 vcd videos visualization vorbis webdav webkit webpresence wifi wireshark wmf wmp wxwindows x264 xanim xcb xcomposite xemacs xext xface xft xine xml xorg xosd xpm xrandr xrender xscreensaver xskatcards xulrunner xv xvid xvmc yahoo yiff yv12 zip zlib zsh-completion zvbi" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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 davdav_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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="vesa v4l fglrx radeon radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Volker Hemmann 2009-02-09 19:32:15 UTC
Created attachment 181474 [details]
the build.log
Comment 2 John R. Graham gentoo-dev 2009-02-12 02:36:54 UTC
Created attachment 181726 [details, diff]
Patch to the Makefile.in to only use /bin/ksh if no shell is defined.

At some point the author defaulted the SHELL to "/bin/ksh".  It didn't used to be that way.  Patch submitted to upstream as well.

- John
Comment 3 John R. Graham gentoo-dev 2009-02-12 02:40:37 UTC
Created attachment 181728 [details]
New ebuild that applies the patch.

This ebuild applies the patch and re-runs the autotools before compiling.

- John
Comment 4 SpanKY gentoo-dev 2009-02-12 05:59:14 UTC
yeah, using anything other than /bin/sh is just stupid imo.  thanks for contacting upstream about the issue.
Comment 5 John R. Graham gentoo-dev 2009-02-13 00:27:00 UTC
Created attachment 181819 [details, diff]
Better patch.

More sophisticated patch, moves the selection of the build shell into the autotools, prefers ksh if available but falls back to bash and then sh (in that order) if not available.
Comment 6 John R. Graham gentoo-dev 2009-02-13 00:27:56 UTC
Created attachment 181820 [details]
Update to ebuild.

Just changes the patch name, bolsters the comments somewhat.
Comment 7 SpanKY gentoo-dev 2009-02-14 07:32:22 UTC
i'll just sed the Makefile.in to /bin/sh to avoid having to run autotools.  thanks for getting this resolved upstream.

http://sources.gentoo.org/sys-block/mbuffer/mbuffer-20090113.ebuild?r1=1.1&r2=1.2
Comment 8 John R. Graham gentoo-dev 2009-02-16 17:57:08 UTC
Fixed upstream as well in a new release: mbuffer-20090215.  Current mbuffer-20090113 tarball remains unmodified (as it should).

- John