Hi there,

this code fragment, seems to break the auto-generated .eb files:

$ git blame easybuild/build.py
[...]
3337c44d (Toon Willems      2012-08-09 11:46:08 +0200 414)
  # ensure the pathname is equal to the module
9027b88b (Kenneth Hoste     2012-08-14 21:52:54 +0200 415)
  base_name, _ = os.path.splitext(os.path.basename(spec))
3337c44d (Toon Willems      2012-08-09 11:46:08 +0200 416)
  module_name = "-".join(package['module'])
3337c44d (Toon Willems      2012-08-09 11:46:08 +0200 417)
  if base_name.lower() != module_name.lower():
3337c44d (Toon Willems      2012-08-09 11:46:08 +0200 418)
  log.error("easyconfig file: %s does not contain module %s" % (spec,
module_name))

Can you state what was the original intention behind it?

I am not sure this should correspond to a ticket,
although it would, if it has to be overriden in such instances!

See below for an example case.

thanks,
Fotis

fgeorgatos@access:~$ module install
easybuild_ebfiles_repo/lzip/1.13-goalf-1.1.0-no-OFED-20120724.eb
ERROR: EasyBuild crashed with an error (at easybuild/easybuild/build.py:418 in
processEasyconfig): easyconfig file:
/home/clusterusers/fgeorgatos/easybuild_ebfiles_repo/lzip/1.13-goalf-1.1.0-no-OFED-20120724.eb
does not contain module lzip-1.13-goalf-1.1.0-no-OFED-20120724
fgeorgatos@access:~$ cat
easybuild_ebfiles_repo/lzip/1.13-goalf-1.1.0-no-OFED-20120724.eb
# Built with 0.8-r4e88888e561721be4a079119c8ed27d4ca163bc6 on 
2012-07-24_18-51-07
# This file is an EasyBuild recipy as per https://github.com/hpcugent/easybuild
# It has been automatically produced via
/home/clusterusers/fgeorgatos/arena/pkg2eb/pkg2eb.sh ; ie. no warranty, AS-IS, 
etc
#
# Copyright:: Copyright (c) 2012 University of Luxembourg / LCSB
# Author::    Fotis Georgatos <[email protected]>
# License::   MIT/GPL
# File::      lzip-1.13.eb
# Date::      Tue Jul 24 18:42:20 CEST 2012

# The following are best-guess, which may be overriden further on
name='lzip'
version='1.13'
versionsuffix='-20120724'

# The following are automatically calculated - cross fingers
sources=['lzip-1.13.tar.gz']
sourceURLs=['http://download.savannah.gnu.org/releases/lzip/']
homepage='http://www.nongnu.org/lzip/lzip.html'

toolkit={'name':'goalf','version':'1.1.0-no-OFED'}
toolkitopts={'optarch':True, 'pic':True}

sanityCheckPaths={
                  'files':[],
                  'dirs':['.']
                 }

description="lzip-1.13 description:
Lossless_data_compressor_based_on_the_LZMA_algorithm"

parallel=1

moduleclass='base'


# # $NetBSD: Makefile,v 1.5 2012/03/14 14:39:59 wiz Exp $
# #
#
# DISTNAME=     lzip-1.13
# CATEGORIES=   archivers
# MASTER_SITES= http://download.savannah.gnu.org/releases/lzip/
#
# MAINTAINER=   [email protected]
# HOMEPAGE=     http://www.nongnu.org/lzip/lzip.html
# COMMENT=      Lossless data compressor based on the LZMA algorithm
# LICENSE=      gnu-gpl-v3
#
# PKG_DESTDIR_SUPPORT=  user-destdir
#
# USE_LANGUAGES=                c++
# HAS_CONFIGURE=                yes
# CONFIGURE_ARGS=               --prefix=${PREFIX}
# CONFIGURE_ARGS+=      --infodir=${PREFIX}/${PKGINFODIR}
# CONFIGURE_ARGS+=      --mandir=${PREFIX}/${PKGMANDIR}
# INFO_FILES=           YES
#
# .include "../../mk/bsd.pkg.mk"

#Build statistics
buildstats=[{'timestamp': 1343148667, 'cpu_model': 'Intel(R) Xeon(R) CPU
     L5640  @ 2.27GHz', 'build_time': 6.4400000000000004, 'platform':
'Linux-2.6.32-5-amd64-x86_64-with-debian-6.0.3', 'host': 'gaia-52',
'install_size': 117297, 'core_count': 12}]



-- 
echo "sysadmin know better bash than english" | sed s/min/mins/ \
        | sed 's/better bash/bash better/' # Yelling in a CERN forum

Reply via email to