UGENE Forum
https://forum.ugene.net/forum/YaBB.pl
General Category >> Help and How-to >> Gentoo ebuild and questions about building from source
https://forum.ugene.net/forum/YaBB.pl?num=1274630676

Message started by Eugene Shatsky on May 23rd, 2010 at 11:04pm

Title: Gentoo ebuild and questions about building from source
Post by Eugene Shatsky on May 23rd, 2010 at 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.

Title: Re: Gentoo ebuild and questions about building from source
Post by Mikhail Fursov on May 24th, 2010 at 7:31pm
Hi!


Eugene Shatsky wrote on May 23rd, 2010 at 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 at 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 at 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.

Title: Re: Gentoo ebuild and questions about building from source
Post by Eugene Shatsky on May 25th, 2010 at 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?

Title: Re: Gentoo ebuild and questions about building from source
Post by Ivan Efremov on May 27th, 2010 at 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.

Title: Re: Gentoo ebuild and questions about building from source
Post by Myckel Habets on Aug 27th, 2010 at 6:47pm
@Eugene, how is this ebuild progressing? Do you have it somewhere on a repository?

Title: Re: Gentoo ebuild and questions about building from source
Post by Aleksandr on Aug 9th, 2011 at 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/"
}

Title: Re: Gentoo ebuild and questions about building from source
Post by Bela on Oct 24th, 2012 at 3:28am
Thanks for the ebuild! :D 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

UGENE Forum » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.