Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223955 - [science-overlay] openib-userspace-1.2.5.1-r2 what can be used with in kernel drivers
Summary: [science-overlay] openib-userspace-1.2.5.1-r2 what can be used with in kernel...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 223957
  Show dependency tree
 
Reported: 2008-05-28 14:00 UTC by Alexey Shvetsov
Modified: 2010-11-08 18:07 UTC (History)
2 users (show)

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


Attachments
openib-userspace-1.2.5.1-r2.ebuild (openib-userspace-1.2.5.1-r2.ebuild,6.08 KB, text/plain)
2008-05-28 14:01 UTC, Alexey Shvetsov
Details
openib (openib,25.41 KB, text/plain)
2008-05-28 14:01 UTC, Alexey Shvetsov
Details
openib.modprobe (openib.modprobe,350 bytes, text/plain)
2008-05-28 14:01 UTC, Alexey Shvetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Shvetsov archtester gentoo-dev 2008-05-28 14:00:32 UTC
openib-userspace-1.2.5.1-r2 
It works for me with drivers in 2.6.24-2.6.25 kernels


Portage 2.2_pre7 (default/linux/amd64/2008.0/desktop, gcc-4.2.4, glibc-2.7-r2, 2.6.25-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r4 x86_64 Intel(R) Xeon(R) CPU E5345 @ 2.33GHz
Timestamp of tree: Tue, 27 May 2008 07:36:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.7.9-r1, 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:   1.5.26
virtual/os-headers:  2.6.25-r3
ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ALSA_CARDS=""
ALSA_PCM_PLUGINS=""
APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias version"
APACHE2_MPMS="event"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CCACHE_SIZE="5G"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-O3 -pipe -march=nocona -mtune=nocona -ftree-vectorize"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLUMNS="129"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/env.d /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/terminfo /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-O3 -pipe -march=nocona -mtune=nocona -ftree-vectorize"
DCCC_PATH="/usr/lib/distcc/bin"
DEFAULT_ABI="amd64"
DISTCC_LOG=""
DISTCC_VERBOSE="0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="-v --with-bdeps y"
EMERGE_WARNING_DELAY="10"
FEATURES="distcc distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/getdelta.sh ${URI}"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
HOME="/root"
IBPATH="/usr/bin"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.2.4/info"
INPUT_DEVICES="keyboard mouse evdev"
KDEDIRS="/usr:/usr/local:/usr/kde/3.5"
KERNEL="linux"
LANG="ru_RU.UTF-8"
LCD_DEVICES="ncurses text"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_x86="lib32"
LINES="52"
LINGUAS="ru en"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:"
MAKEOPTS="-j128"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.2.4/man:/opt/intel/cce/10.1.013/man:/opt/intel/fce/10.1.013/man:/opt/intel/idbe/10.1.013/man:/usr/lib64/php5/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man:/usr/dx/man"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
MVAPICH_HCA_TYPE="_MLX_PCI_EX_DDR_"
NOCOLOR="true"
NPTL_KERN_VER="2.6.22"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.2.4:/opt/intel/cce/10.1.013/bin:/opt/intel/fce/10.1.013/bin:/opt/intel/idbe/10.1.013/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
PBS_SERVER_HOME="/var/spool/torque"
PKGDIR="/usr/portage/packages"
PKG_CONFIG_PATH="/usr/qt/3/lib64/pkgconfig"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_TMPFS="/dev/shm"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/science /usr/local/overlays/portage /usr/local/overlays/mpi"
PWD="/usr/local/overlays/portage/sys-cluster/openib-userspace"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.2.4:/opt/intel/cce/10.1.013/bin:/opt/intel/fce/10.1.013/bin:/opt/intel/idbe/10.1.013/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
RPMDIR="/usr/portage/rpm"
SHELL="/bin/bash"
SHLVL="3"
STAGE1_USE="multilib nptl nptlonly unicode"
STY="6250.pts-0.head"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="screen"
TERMCAP="SC|screen|VT 100/ANSI X3.64 virtual terminal:\
	:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
	:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
	:do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
	:le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
	:li#53:co#129:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\
	:cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\
	:im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\
	:ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
	:ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\
	:se=\E[23m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\
	:Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\
	:vb=\Eg:G0:as=\E(0:ae=\E(B:\
	:ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\
	:po=\E[5i:pf=\E[4i:Z0=\E[?3h:Z1=\E[?3l:k0=\E[10~:\
	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:\
	:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:F1=\E[23~:\
	:F2=\E[24~:F3=\E[2P:F4=\E[2Q:F5=\E[2R:F6=\E[2S:\
	:F7=\E[15;2~:F8=\E[17;2~:F9=\E[18;2~:FA=\E[19;2~:kb=^H:\
	:K2=\EOE:kB=\E[Z:kF=\E[1;2B:kR=\E[1;2A:*4=\E[3;2~:\
	:*7=\E[1;2F:#2=\E[1;2H:#3=\E[2;2~:#4=\E[1;2D:%c=\E[6;2~:\
	:%e=\E[5;2~:%i=\E[1;2C:kh=\E[1~:@1=\E[1~:kH=\E[4~:\
	:@7=\E[4~:kN=\E[6~:kP=\E[5~:kI=\E[2~:kD=\E[3~:ku=\EOA:\
	:kd=\EOB:kr=\EOC:kl=\EOD:km:"
USE="7zip X acl acpi alsa amd64 apache2 audit bash-completion berkdb blas bluetooth branding bzip2 cairo cdr cli client cluster cpusets cracklib crypt ctype dapl dbus double-precision dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif glibc-omitfp gmp gpm gstreamer hal iconv iproute2 ipv6 isdnlog iser jpeg kde large-cluster libffi libnotify lm_sensors mad midi mikmod mmx mp3 mpeg mpi mudflap multilib ncurses nls no-old-linux nptl nptlonly nxclient ogg opengl openib openmp opensm pam pcre pdf perl png ppds pppd profile python qt3 qt3support qt4 quicktime readline reflection resolvconf sdl sensord server session slang snmp solver spell spl sqlite srp srptools sse sse2 ssl startup-notification svg symlink syslog tcpd threads tiff truetype unicode vim vim-syntax vorbis xattr xml xorg xv zlib" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias version" APACHE2_MPMS="event" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="ati fbdev vesa"
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="ati fbdev vesa"
WINDOW="1"
XDG_DATA_DIRS="/usr/share:/usr/kde/3.5/share:/usr/local/share"
_="/usr/bin/emerge"
Comment 1 Alexey Shvetsov archtester gentoo-dev 2008-05-28 14:01:04 UTC
Created attachment 154581 [details]
openib-userspace-1.2.5.1-r2.ebuild

ebuild
Comment 2 Alexey Shvetsov archtester gentoo-dev 2008-05-28 14:01:29 UTC
Created attachment 154583 [details]
openib

openib.init.d
Comment 3 Alexey Shvetsov archtester gentoo-dev 2008-05-28 14:01:44 UTC
Created attachment 154585 [details]
openib.modprobe

openib.modprobe
Comment 4 Justin Bronder (RETIRED) gentoo-dev 2008-05-29 00:15:39 UTC
Is there any reason to be using sys-cluster/openib-drivers given that the drivers are already in the kernel?  I'd rather use the linux eclass's to check for openib support in the kernel and then install just the userspace items.

Also, consider using "cat <<-EOF >${t}/openib.conf" instead of all of those crazy echos! :)  For instance:

cat <<-EOF >${T}/openib.conf
# Load UCM module
echo "UCM_LOAD=no
EOF

That, or just distribute a conf file with the ebuild in the filesdir.
Comment 5 Bryan Green 2008-05-29 00:29:06 UTC
(In reply to comment #4)
> Is there any reason to be using sys-cluster/openib-drivers given that the
> drivers are already in the kernel?  I'd rather use the linux eclass's to check
> for openib support in the kernel and then install just the userspace items.

The openib-drivers ebuild installs the drivers provided by a particular OFED release, which is generally more current that what is in the kernel.  In addition, some modules, such as SDP, are not yet in the kernel mainline.
By using openib-drivers with openib-userspace, you are getting a complete OFED distribution.

Comment 6 Alexey Shvetsov archtester gentoo-dev 2008-05-29 07:11:37 UTC
(In reply to comment #5)
>
> The openib-drivers ebuild installs the drivers provided by a particular OFED
> release, which is generally more current that what is in the kernel.  In
> addition, some modules, such as SDP, are not yet in the kernel mainline.
> By using openib-drivers with openib-userspace, you are getting a complete OFED
> distribution.
> 

Yes. But openib-drivers works only with 2.6.21 and 2.6.22 kernels. So if you have newer one you intended to use in kernel drivers.

So please commit this ebuild to science overlay

BTW ofed-1.3 was out about two mouth ago.
Comment 7 Bryan Green 2008-05-29 17:47:21 UTC
(In reply to comment #6)
> 
> So please commit this ebuild to science overlay

I'm running into a little problem with this ebuild.
I have openib-drivers and openib-userspace installed,
and when I try to upgrade with the new ebuild, it gets a conflict and fails (after completing the entire compilation) because it detects a file colision with the '/etc/init.d/openib' file installed by openib-drivers.
The solution of course is to set the new 'modules' use flag.  But the random user isn't going to know this - they'll see it as a breakage.  It would be nice to either maintain the current default behavior, which is to assume the openib init script and configuration are provided by openib-drivers, or else to fail early (if openib-drivers is already installed) with a message to the user to add the 'modules' use flag.
Thoughts?

> BTW ofed-1.3 was out about two mouth ago.

I know.  I took a quick look at it, and they seem to have changed the package layout substantially.  Creating a new ebuild will be somewhat non-trivial.  Unfortunately, I don't have the time resources to jump on that myself right now. :(
Comment 8 Bryan Green 2008-05-29 17:58:11 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > 
> > So please commit this ebuild to science overlay
> 
> I'm running into a little problem with this ebuild.
> I have openib-drivers and openib-userspace installed,
> and when I try to upgrade with the new ebuild, it gets a conflict and fails
> (after completing the entire compilation) because it detects a file colision
> with the '/etc/init.d/openib' file installed by openib-drivers.
> The solution of course is to set the new 'modules' use flag.  But the random
> user isn't going to know this - they'll see it as a breakage.  It would be nice
> to either maintain the current default behavior, which is to assume the openib
> init script and configuration are provided by openib-drivers, or else to fail
> early (if openib-drivers is already installed) with a message to the user to
> add the 'modules' use flag.
> Thoughts?

One suggestion I can offer: instead of the 'modules' use flag, have a 'nomodules' or 'initscripts' use flag.  Would that work for you?
Comment 9 Alexey Shvetsov archtester gentoo-dev 2008-05-29 18:33:31 UTC
(In reply to comment #8)
> 
> One suggestion I can offer: instead of the 'modules' use flag, have a
> 'nomodules' or 'initscripts' use flag.  Would that work for you?
> 

May its better to check kernel version
And if its greater than 2.6.22 then warn user that opeib-kernel doesn't work
And as partial solution: modules may be enabled by default.
Comment 10 Bryan Green 2008-05-29 18:38:28 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > 
> > One suggestion I can offer: instead of the 'modules' use flag, have a
> > 'nomodules' or 'initscripts' use flag.  Would that work for you?
> > 
> 
> May its better to check kernel version
> And if its greater than 2.6.22 then warn user that opeib-kernel doesn't work

Thats a good idea, but it doesn't address the problem of maintaining current behavior (for someone with openib-drivers already installed).

> And as partial solution: modules may be enabled by default.

I'm not aware that that is possible.
Comment 11 Alexey Shvetsov archtester gentoo-dev 2008-05-29 18:53:06 UTC
(In reply to comment #10)
> > May its better to check kernel version
> > And if its greater than 2.6.22 then warn user that opeib-kernel doesn't work
> 
> Thats a good idea, but it doesn't address the problem of maintaining current
> behavior (for someone with openib-drivers already installed).
> 
> > And as partial solution: modules may be enabled by default.
> 
> I'm not aware that that is possible.
> 

Another solution is check if openib-kernel already installed and check if modules use set or unset. If openib-kernel is instlled and modules not set then stop merging userspace this error and war user about use flag and in kernel drivers. 

PS i can try to make split ebuilds for ofed-1.3 
Comment 12 Bryan Green 2008-05-29 19:28:08 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > > May its better to check kernel version
> > > And if its greater than 2.6.22 then warn user that opeib-kernel doesn't work
> > 
> > Thats a good idea, but it doesn't address the problem of maintaining current
> > behavior (for someone with openib-drivers already installed).
> > 
> > > And as partial solution: modules may be enabled by default.
> > 
> > I'm not aware that that is possible.
> > 
> 
> Another solution is check if openib-kernel already installed and check if
> modules use set or unset. If openib-kernel is instlled and modules not set then
> stop merging userspace this error and war user about use flag and in kernel
> drivers. 

I could perhaps do that as an intermediate solution, but I think the longer term solution is to update the 'openib-files' package to provide the up-to-date versions of these files, instead of duplicating them in openib-drivers and -userspace.
Do you happen to recall offhand what the ebuild function is the test for the presence of another installed package?

> PS i can try to make split ebuilds for ofed-1.3 

Any contributions are welcome. :)
Comment 13 Justin Bronder (RETIRED) gentoo-dev 2008-05-29 19:36:34 UTC
(In reply to comment #12)
> I could perhaps do that as an intermediate solution, but I think the longer
> term solution is to update the 'openib-files' package to provide the up-to-date
> versions of these files, instead of duplicating them in openib-drivers and
> -userspace.

For what it's worth, I concur :)

> Do you happen to recall offhand what the ebuild function is the test for the
> presence of another installed package?

portageq or has_version, both in ebuild.sh
Comment 14 Bryan Green 2008-06-06 00:51:20 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > I could perhaps do that as an intermediate solution, but I think the longer
> > term solution is to update the 'openib-files' package to provide the up-to-date
> > versions of these files, instead of duplicating them in openib-drivers and
> > -userspace.
> 
> For what it's worth, I concur :)
>

Okay, I've added ebuilds for the 1.2.5.5 release.  The new -userspace and -drivers ebuilds pull in openib-files for the system files.  This should fix the problem.  Hopefully I can put together 1.3.* ebuilds before too long.

Please try openib-usrespace-1.2.5.5, and see if it addresses your needs.
Comment 15 Bryan Green 2008-06-06 02:13:36 UTC
(In reply to comment #4)
> Also, consider using "cat <<-EOF >${t}/openib.conf" instead of all of those
> crazy echos! :)  For instance:
> 
> cat <<-EOF >${T}/openib.conf
> # Load UCM module
> echo "UCM_LOAD=no
> EOF
> 
> That, or just distribute a conf file with the ebuild in the filesdir.

I agree that the above is nicer.
Actually, the reason for the echos is that it is a fairly straightforward cut-and-paste from the OFED ofa_kernel.spec file, which is what creates the openib.conf file during RPM installation.
I think the best thing would be a sed/awk script to automate the cut/paste.

Comment 16 Alexey Shvetsov archtester gentoo-dev 2008-06-06 08:20:07 UTC
Thanks =) I'll gonna try this today =)
BTW I can try to make split ebuilds for 1.3.1 
may be it will be more simple then monolitic one =)
Comment 17 Alexey Shvetsov archtester gentoo-dev 2008-06-06 09:06:38 UTC
BTW I think that openib files needs to install newenvd also
with 
---------CUT HERE--------
IBPATH="/usr/bin"
---------CUT HERE--------

something like .etc/env.d/02openib

This env varieble needed because it used by some scripts like ibnetdoscover and so on 
Comment 18 Bryan Green 2008-06-06 17:00:15 UTC
(In reply to comment #17)
> BTW I think that openib files needs to install newenvd also
> with 
> ---------CUT HERE--------
> IBPATH="/usr/bin"
> ---------CUT HERE--------
> 
> something like .etc/env.d/02openib
> 
> This env varieble needed because it used by some scripts like ibnetdoscover and
> so on 
> 

Looks fine to me.  I updated the existing ebuild.
Comment 19 Bryan Green 2008-06-06 17:02:10 UTC
(In reply to comment #16)
> Thanks =) I'll gonna try this today =)
> BTW I can try to make split ebuilds for 1.3.1 
> may be it will be more simple then monolitic one =)
> 

I just updated several of the split ebuilds, up to the latest versions I could find on openfabrics.org/downloads.
Comment 20 Alexey Shvetsov archtester gentoo-dev 2008-06-06 17:06:37 UTC
(In reply to comment #19)

> I just updated several of the split ebuilds, up to the latest versions I could
> find on openfabrics.org/downloads.
> 

OFED-1.3 tarbol contains srpms with soure tarbolls  for now 
So if anybody can host this tarbolls this will be great =)
Comment 21 Bryan Green 2008-06-06 17:19:14 UTC
(In reply to comment #20)
> (In reply to comment #19)
> 
> > I just updated several of the split ebuilds, up to the latest versions I could
> > find on openfabrics.org/downloads.
> > 
> 
> OFED-1.3 tarbol contains srpms with soure tarbolls  for now 
> So if anybody can host this tarbolls this will be great =)
> 

Its actually not so bad to extract the tarballs from SRPMS.  The download of OFED-*.tgz takes a while, but it's a least a one-time download if you are installing several packages.
the openib-userspace and openib-drivers ebuilds are a good examples of how to install from the SRPMS.
Comment 22 Alexey Shvetsov archtester gentoo-dev 2008-06-06 17:49:18 UTC
(In reply to comment #21)
> 
> Its actually not so bad to extract the tarballs from SRPMS.  The download of
> OFED-*.tgz takes a while, but it's a least a one-time download if you are
> installing several packages.
> the openib-userspace and openib-drivers ebuilds are a good examples of how to
> install from the SRPMS.
> 

OK =) 
I'll try to make split ebuilds soon 
Thanks 
Comment 23 Alexey Shvetsov archtester gentoo-dev 2010-11-08 18:07:10 UTC
Actualy already works in tree