SuperNEMO-DBD / homebrew-cadfael

Instructions on using/installing the SuperNEMO Software are now at: https://github.com/SuperNEMO-DBD/brew
MIT License
2 stars 1 forks source link

homebrew-cadfael broken on CentOS7 #50

Closed emchauve closed 6 years ago

emchauve commented 6 years ago

Impossible to tap homebrew/core on CentOS7 (so can not run brew update, doctor, etc.) when doing a new install from scratch. Issue is related to an unitialised variable Homebrew::DEFAULT_PREFIX in the formula given bellow :

==> Tapping homebrew/core
Cloning into '/home/chauveau/cadfaelbrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 4901, done.
remote: Counting objects: 100% (4901/4901), done.
remote: Compressing objects: 100% (4696/4696), done.
remote: Total 4901 (delta 50), reused 330 (delta 13), pack-reused 0
Receiving objects: 100% (4901/4901), 4.27 MiB | 1.57 MiB/s, done.
Resolving deltas: 100% (50/50), done.
Checking out files: 100% (4917/4917), done.
Error: Invalid formula: /home/chauveau/cadfaelbrew/Library/Taps/homebrew/homebrew-core/Formula/curl.rb
uninitialized constant Homebrew::DEFAULT_PREFIX
Error: Invalid formula: /home/chauveau/cadfaelbrew/Library/Taps/homebrew/homebrew-core/Formula/fontconfig.rb
uninitialized constant Homebrew::DEFAULT_PREFIX
Error: Invalid formula: /home/chauveau/cadfaelbrew/Library/Taps/homebrew/homebrew-core/Formula/gcc.rb
uninitialized constant Homebrew::DEFAULT_PREFIX
Error: Invalid formula: /home/chauveau/cadfaelbrew/Library/Taps/homebrew/homebrew-core/Formula/llvm@4.rb
uninitialized constant Homebrew::DEFAULT_PREFIX
Error: Invalid formula: /home/chauveau/cadfaelbrew/Library/Taps/homebrew/homebrew-core/Formula/llvm@5.rb
uninitialized constant Homebrew::DEFAULT_PREFIX
emchauve commented 6 years ago

some additionnal information:

$ lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-ia32:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-ia32:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-ia32:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-ia32:printing-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.5.1804 (Core) 
Release:    7.5.1804
Codename:   Core

emchauve@cca002:~ $ uname -a
Linux cca002 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

emchauve@cca002:~ $ cat /etc/redhat-release 
CentOS Linux release 7.5.1804 (Core) 

emchauve@cca002:~ $ which gcc
/usr/bin/gcc

emchauve@cca002:~ $ gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

emchauve@cca002:~ $ python --version
Python 2.7.5

emchauve@cca002:~ $ cvmfs_config probe
Probing /cvmfs/config-egi.egi.eu... OK
Probing /cvmfs/atlas.cern.ch... OK
Probing /cvmfs/atlas-condb.cern.ch... OK
Probing /cvmfs/lhcb.cern.ch... OK
Probing /cvmfs/cms.cern.ch... OK
Probing /cvmfs/alice.cern.ch... OK
Probing /cvmfs/alice-ocdb.cern.ch... OK
Probing /cvmfs/sft.cern.ch... OK
Probing /cvmfs/ams.cern.ch... OK
Probing /cvmfs/ilc.desy.de... OK
Probing /cvmfs/auger.egi.eu... OK
Probing /cvmfs/cta.in2p3.fr... OK
Probing /cvmfs/dirac.egi.eu... OK
Probing /cvmfs/km3net.egi.eu... OK
Probing /cvmfs/euclid.in2p3.fr... OK
Probing /cvmfs/oasis.opensciencegrid.org... OK
Probing /cvmfs/atlas-nightlies.cern.ch... OK
Probing /cvmfs/francegrilles.in2p3.fr... OK
Probing /cvmfs/euclid-dev.in2p3.fr... OK
Probing /cvmfs/ligo.osgstorage.org... Failed!
Probing /cvmfs/sw.lsst.eu... OK
Probing /cvmfs/singularity.opensciencegrid.org... OK
Probing /cvmfs/grid.cern.ch... OK
Probing /cvmfs/singularity.in2p3.fr... OK
Probing /cvmfs/glast.cern.ch... OK
Probing /cvmfs/xenon.opensciencegrid.org... OK
Probing /cvmfs/fermilab.opensciencegrid.org... OK
Probing /cvmfs/lhcb-condb.cern.ch... OK
Probing /cvmfs/ligo-containers.opensciencegrid.org... OK
Probing /cvmfs/larsoft.opensciencegrid.org... OK
Probing /cvmfs/dune.opensciencegrid.org... OK
drbenmorgan commented 6 years ago

Excellent, thanks @emchauve! As noted offline, the error is down to our fork of brew needing an update. Whilst I've looked at this, it's going to be a bit cleaner to fully migrate to use upstream linuxbrew. I've tested the following on our local CentOS7 system, so if you could try it at Lyon that should help find any issues related to the system rather than brew:

I can't guarantee that this will totally succeed, but let's see where it gets too. One place it did fail on my machine was with the expat formula, so it's possible that may do so here, but depends on exactly what rpms are installed. To guarantee that it doesn't, you can do

$ brew edit expat

and update the def install method to read:

  def install
      system "./configure", "--prefix=#{prefix}",
                            "--mandir=#{man}",
                            "--without-docbook",
                            *("--with-libbsd" unless OS.mac?)
     system "make", "install"
   end

i.e., just adding the --without-docbook arg.

If the install fails along the way, just post here with which formula caused the issue, and the config, doctor and gist-logs as requested in https://github.com/SuperNEMO-DBD/homebrew-cadfael/blob/master/.github/ISSUE_TEMPLATE.md#bug-reports

emchauve commented 6 years ago

this is working in this way (having same failure with expat formula but fixed without docbook)

drbenmorgan commented 6 years ago

O.k., if you could just check that things can run with:

$ brew test bayeux
$ brew test falaise

you should then be good to go. The same installation procedure can be used to create a common install under a directory of choice.

emchauve commented 6 years ago

test succeed

i notice 2 issues during installation :

drbenmorgan commented 6 years ago

Thanks, the first is unavoidable unfortunately, unless a faster mirror can be found.

For the second, I'll update the qt5-base formula to not pick up the system mysql.

drbenmorgan commented 6 years ago

Closing in favour of #56 to track ongoing issues