Welcome, Guest. Please Login or Register
UGENE Bulletin Board
  Welcome to our forum.
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Gentoo ebuild and questions about building from source (Read 2884 times)
Eugene Shatsky
YaBB Newbies
*
Offline



Posts: 2

Gentoo ebuild and questions about building from source
May 23rd, 2010, 11:04pm
 
I've decided to write a Gentoo ebuild for UGENE.
A few questions:
-is CONFIG+=x64 qmake option for amd64 CPUs only, or for all 64-bit (that have "lm" in /proc/cpuinfo "flags" string)?
-have I understood correctly, CellBE/CUDA/AMD Stream aren't autodetected, so I have write proper checks followed with sedding ugene_globals.pri?
It would probably be a good idea to make it possible disabling certain plugins and translations via useflags.
Back to top
 
 
IP Logged
 
Mikhail Fursov
YaBB Administrator
*****
Offline



Posts: 162

Gender: male
Re: Gentoo ebuild and questions about building from source
Reply #1 - May 24th, 2010, 7:31pm
 
Hi!

Eugene Shatsky wrote on May 23rd, 2010, 11:04pm:
-is CONFIG+=x64 qmake option for amd64 CPUs only, or for all 64-bit (that have "lm" in /proc/cpuinfo "flags" string)?

We use it only for x86_64 platform

Eugene Shatsky wrote on May 23rd, 2010, 11:04pm:
-have I understood correctly, CellBE/CUDA/AMD Stream aren't autodetected, so I have write proper checks followed with sedding ugene_globals.pri?

Yes, user should point environment variables to CUDA or ATI SDKs before building UGENE.


Eugene Shatsky wrote on May 23rd, 2010, 11:04pm:
It would probably be a good idea to make it possible disabling certain plugins and translations via useflags.


Really good idea! Thanks for the feedback. We will plan adding this feature to one of the nearest versions.
Back to top
 

---
UGENE team
 
IP Logged
 
Eugene Shatsky
YaBB Newbies
*
Offline



Posts: 2

Re: Gentoo ebuild and questions about building from source
Reply #2 - May 25th, 2010, 12:21am
 
I don't have CUDA-compliant hardware, so I can't test what I'm writing for its support, I'll ask Gentoo Bugzilla members about it after posting my ebuild there when it will be clean enough...
Currently nvidia-cuda-toolkit is available through Portage, and its ebuild seems to create a file /etc/env.d/99cuda containing:
Code:
PATH=/opt/cuda/bin
ROOTPATH=/opt/cuda/bin
LDPATH=/opt/cuda/lib
MANPATH=/opt/cuda/man

It is then used by init scripts. PATH is added to users' PATH vars, and LDPATH is used to populate /etc/ld.so.conf.
But in ugene_globals.pri I see:
Code:
UGENE_CUDA_LIB_DIR = $$(CUDA_LIB_PATH)
UGENE_CUDA_INC_DIR = $$(CUDA_INC_PATH)

So these 2 vars are still needed, but during build-time only, while CUDA_BIN_PATH and LD_LIBRARY_PATH aren't at all, right?
Back to top
 
 
IP Logged
 
Ivan Efremov
YaBB Administrator
*****
Offline



Posts: 46
Novosibirsk
Gender: male
Re: Gentoo ebuild and questions about building from source
Reply #3 - May 27th, 2010, 4:03pm
 
Hi Eugene!
Definitely, these variables are needed during build-time only. They must be set in order to build ugene with CUDA support.
Back to top
 

UGENE team
WWW WWW  
IP Logged
 
Myckel Habets
YaBB Newbies
*
Offline



Posts: 13

Re: Gentoo ebuild and questions about building from source
Reply #4 - Aug 27th, 2010, 6:47pm
 
@Eugene, how is this ebuild progressing? Do you have it somewhere on a repository?
Back to top
 
 
IP Logged
 
Aleksandr
YaBB Newbies
*
Offline



Posts: 4

Re: Gentoo ebuild and questions about building from source
Reply #5 - Aug 9th, 2011, 2:40am
 
Code:
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

inherit qt4-r2

DESCRIPTION="free cross-platform genome analysis suite"
HOMEPAGE="http://ugene.unipro.ru/"
SRC_URI="http://${PN}.unipro.ru/downloads/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="cuda sse2"

DEPEND="x11-libs/qt-gui:4
cuda? ( dev-util/nvidia-cuda-sdk )"
RDEPEND="${DEPEND}"

src_configure() {
eqmake4 INSTALL_LIBDIR="/usr/$(get_libdir)" CONFIG+="x64" -r
}

src_install() {
make INSTALL_ROOT="${D}" install || die "emake install failed"
#cp -pPR src/_release/plugins/lib* "${D}/usr/$(get_libdir)/${PN}/plugins/"
}
Back to top
 
 
IP Logged
 
Bela
YaBB Newbies
*
Offline



Posts: 1

Re: Gentoo ebuild and questions about building from source
Reply #6 - Oct 24th, 2012, 3:28am
 
Thanks for the ebuild! Cheesy Works for me on amd64.

I added it to my layman overlay, so itís easier to access (layman -a and3k-sunrise).

Best regards from Vienna,
Bela
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1