Re: [easybuild] path / not relocatable

2020-12-09 Thread Alan O'Cais
Hi Loris,

When I looked at this a long time ago for the some NVIDIA RPMs (see this old 
issue), the 
restrictions on being relocatable come typically from the package itself. 
Usually only a subset of things are not relocatable (like soft links) but you 
would need to look inside to know what's holding you back...and things can get 
very messy trying to pick things apart.

Alan

On Wed, 9 Dec 2020 at 10:29, Loris Bennett 
mailto:loris.benn...@fu-berlin.de>> wrote:
Hi,

Loris Bennett mailto:loris.benn...@fu-berlin.de>> 
writes:

> Hi,
>
> I am trying to install an RPM with EB and am getting the following
> error:
>
>   path / in package openbugs-3.2.3-1.x86_64 is not relocatable
>
> What am I missing?

I have had another look at this.  The full error is

  == 2020-12-01 16:22:41,217 build_log.py:169 ERROR EasyBuild crashed with
  an error (at
  
easybuild/software/EasyBuild/4.3.1/lib/python2.7/site-packages/easybuild/base/exceptions.py:124
  in __init__): cmd "rpm -i --dbpath
  /trinity/shared/easybuild/software/OpenBUGS/3.2.3/rpm --relocate
  /=/trinity/shared/easybuild/software/OpenBUGS/3.2.3 --nopre --nopost
  --nodeps --ignorearch
  
/trinity/shared/easybuild/build/OpenBUGS/3.2.3/system-system/x86_64/openbugs-3.2.3-1.x86_64.rpm"
  exited with exit code 1 and output:
  path / in package openbugs-3.2.3-1.x86_64 is not relocatable

The rebuilding of the RPM was successful, but the package is not relocatable:

  [build@admin easyconfigs]$ rpm -qpi 
/trinity/shared/easybuild/build/OpenBUGS/3.2.3/system-system/x86_64/openbugs-3.2.3-1.x86_64.rpm
 | grep -i relocations
  Relocations : (not relocatable)

In easybuild/easyblocks/generic/rpm.py there is the following comment:

  # replace whathever prefix is set with '/'

but it seems that my version of 'rpm', which is 4.11.3 on CentOS
7.9.2009, doesn't accept '/' as being a valid path which can be replaced
via relocation.

Can anyone comment on my analysis?

Cheers,

Loris

--
Dr. Loris Bennett (Hr./Mr.)
ZEDAT, Freie Universität Berlin Email 
loris.benn...@fu-berlin.de


--
Dr. Alan O'Cais
E-CAM Software Manager
Juelich Supercomputing Centre
Forschungszentrum Juelich GmbH
52425 Juelich, Germany

Phone: +49 2461 61 5213
Fax: +49 2461 61 6656
E-mail: a.oc...@fz-juelich.de
WWW:http://www.fz-juelich.de/ias/jsc/EN




Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Volker Rieke
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt





Re: [easybuild] path / not relocatable

2020-12-09 Thread Loris Bennett
Hi,

Loris Bennett  writes:

> Hi,
>
> I am trying to install an RPM with EB and am getting the following
> error:
>
>   path / in package openbugs-3.2.3-1.x86_64 is not relocatable
>
> What am I missing?

I have had another look at this.  The full error is

  == 2020-12-01 16:22:41,217 build_log.py:169 ERROR EasyBuild crashed with
  an error (at
  
easybuild/software/EasyBuild/4.3.1/lib/python2.7/site-packages/easybuild/base/exceptions.py:124
  in __init__): cmd "rpm -i --dbpath
  /trinity/shared/easybuild/software/OpenBUGS/3.2.3/rpm --relocate
  /=/trinity/shared/easybuild/software/OpenBUGS/3.2.3 --nopre --nopost
  --nodeps --ignorearch
  
/trinity/shared/easybuild/build/OpenBUGS/3.2.3/system-system/x86_64/openbugs-3.2.3-1.x86_64.rpm"
  exited with exit code 1 and output:
  path / in package openbugs-3.2.3-1.x86_64 is not relocatable 

The rebuilding of the RPM was successful, but the package is not relocatable:

  [build@admin easyconfigs]$ rpm -qpi 
/trinity/shared/easybuild/build/OpenBUGS/3.2.3/system-system/x86_64/openbugs-3.2.3-1.x86_64.rpm
 | grep -i relocations
  Relocations : (not relocatable)

In easybuild/easyblocks/generic/rpm.py there is the following comment:

  # replace whathever prefix is set with '/'

but it seems that my version of 'rpm', which is 4.11.3 on CentOS
7.9.2009, doesn't accept '/' as being a valid path which can be replaced
via relocation.

Can anyone comment on my analysis?

Cheers,

Loris

-- 
Dr. Loris Bennett (Hr./Mr.)
ZEDAT, Freie Universität Berlin Email loris.benn...@fu-berlin.de