Skip to content

Instantly share code, notes, and snippets.

View boegel's full-sized avatar

Kenneth Hoste boegel

View GitHub Profile
@boegel
boegel / Path64 build problem
Created April 5, 2011 13:24
Path64 build problem
cmake:
cmake -DCMAKE_INSTALL_PREFIX=/path/to/installdir -DPATH64_ENABLE_TARGETS=x86_64 -DCMAKE_BUILD_TYPE=Release -DPATH64_ENABLE_MATHLIBS=ON -DPATH64_ENABLE_FORTRAN=ON -DPSC_CRT_PATH_x86_64=/usr/lib64 -DPSC_DYNAMIC_LINKER_x86_64=/lib/ld-linux.so.2 -DPSC_LIBSUPCPP_PATH_x86_64=/usr/lib/gcc/x86_64-redhat-linux/4.1.2 -DPSC_LIBSTDCPP_PATH_x86_64=/usr/lib/gcc/x86_64-redhat-linux/4.1.2 -DPSC_LIBGCC_PATH_x86_64=/usr/lib/gcc/x86_64-redhat-linux/4.1.2 -DPSC_LIBGCC_EH_PATH_x86_64=/usr/lib/gcc/x86_64-redhat-linux/4.1.2 -DPSC_LIBGCC_S_PATH_x86_64=/usr/lib/gcc/x86_64-redhat-linux/4.1.2 /path/to/Path64-20110404
build error:
/path/to/Path64obj/bin/pathcc -c -o malloc_opt_c.o -m64 -DTARG_X8664 -I//path/to/Path64obj/src/include -I/path/to/Path64-20110404/src/include -I/path/to/Path64obj/src/../lib/include -fpic -DHAVE_ALLOCA_H=1 -DX86_WHIRL_OBJECTS -D_SGI_SOURCE -D__GNU_BUG_WORKAROUND -DKEY -DFE_GNU_4_2_0 -D_LONGLONG -D_MIPSEL -DTARG_LINUX -DHOST_IS_BIG_ENDIAN=0 -DHOST_IS_LITTLE_ENDIAN=1 -D_LANGUAGE_C /path/to/Path64-20110
diff --git a/easybuild/main.py b/easybuild/main.py
index 8b41b18..28ac11e 100644
--- a/easybuild/main.py
+++ b/easybuild/main.py
@@ -248,7 +248,7 @@ def parse_options():
return options, paths, log, logfile, hn, parser
-def main(options):
+def main(options, orig_paths, log, logfile, hn, parser):
import easybuild.framework
import site
site.addsitedir('/prefix/to/easybuild/lib/python2.6/site-packages')
import easybuild.framework
@boegel
boegel / gist:5204622
Last active December 15, 2015 04:50
EasyBuild test: installing CUDA on CentOS
#!/bin/bash
export MYTMPDIR=/tmp/test_eb
export EASYBUILDSOURCEPATH=$MYTMPDIR
export EASYBUILDBUILDPATH=$MYTMPDIR
export EASYBUILDINSTALLPATH=$MYTMPDIR
export MODULEPATH=$MYTMPDIR/modules/all
# prep
mkdir -p $MYTMPDIR/lib/python2.6/site-packages
try:
from easybuild.tools.module_naming_scheme import det_full_module_name as det_custom_full_module_name
CUSTOM_MODULE_NAMING_SCHEME = True
except ImportError, err:
_log.debug("Failed to import custom module naming scheme: %s" % err)
CUSTOM_MODULE_NAMING_SCHEME = False
@boegel
boegel / gist:7639845
Created November 25, 2013 11:16
WPS tarball changed upstream
# bis is the more recent WPS v3.5.1 tarball
$ md5 WPS*gz
MD5 (WPSV3.5.1-bis.TAR.gz) = ce0eb551d29e04f688e02d522d327c2c
MD5 (WPSV3.5.1.TAR.gz) = 0dd6b0b51321c836d3e60764f00ecb85
$ diff -ru WPS.bis WPS
diff -ru WPS.bis/configure WPS/configure
--- WPS.bis/configure 2013-10-04 02:09:42.000000000 +0200
+++ WPS/configure 2013-01-24 01:44:41.000000000 +0100
@boegel
boegel / gist:7658603
Created November 26, 2013 13:54
legacy Charm++ easyblock
import glob, os, shutil, re
from easybuild.apps.Application import Application
from easybuild.buildsoft.fileTools import runrun, convertName
class Charm(ConfigureMake):
"""
Charm++
"""
def configure(self):
$ cat qiime.py
import os, shutil
from easybuild.apps.Application import Application
from easybuild.apps.Precompiled import Tarball
from easybuild.apps.Toolbox import PythonModuleSeparate
from easybuild.apps.Compiler import CMake
from easybuild.buildsoft.fileTools import convertName, runrun, runqanda
from distutils.version import LooseVersion
# PythonPackage should do here (not verified)
@boegel
boegel / gist:7766422
Created December 3, 2013 09:16
i3-tools-v4 portfile
$ cat /tmp/i3//var/db/dports/sources/rsync.code.icecube.wisc.edu_icecube-tools-ports/icecube/i3-tools-v4/Portfile
# -*- mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 317 2007-03-09 17:10:59Z cgils $
# Dummy 'metaport' that installs Icecube packages for Icetray
PortSystem 1.0
name i3-tools-v4
version trunk
@boegel
boegel / GAMESS-US-20100325-r2-ictce-3.2.1.015.u4.eb
Created December 4, 2013 09:53
EasyBuild support for GAMESS-US
name='GAMESS-US'
version='20100325-r2'
homepage='http://www.msg.ameslab.gov/gamess/'
description="""The General Atomic and Molecular Electronic Structure System (GAMESS)
is a general ab initio quantum chemistry package."""
toolkit={'name':'ictce','version':'3.2.1.015.u4'}
toolkitopts={'usempi':True}