Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689998 - sci-libs/cantera-2.4.0 : fatal: not a git repository (or any parent up to mount point /var/tmp)
Summary: sci-libs/cantera-2.4.0 : fatal: not a git repository (or any parent up to mou...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sergey Torokhov
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-07-16 15:55 UTC by Toralf Förster
Modified: 2019-07-19 16:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.29 KB, text/plain)
2019-07-16 15:55 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,179.04 KB, text/plain)
2019-07-16 15:55 UTC, Toralf Förster
Details
environment (environment,127.40 KB, text/plain)
2019-07-16 15:55 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,18.22 KB, application/x-bzip)
2019-07-16 15:55 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,1.26 KB, application/x-bzip)
2019-07-16 15:55 UTC, Toralf Förster
Details
sci-libs:cantera-2.4.0:20190716-124137.log (sci-libs:cantera-2.4.0:20190716-124137.log,4.22 KB, text/plain)
2019-07-16 15:55 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,28.60 KB, application/x-bzip)
2019-07-16 15:55 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-07-16 15:55:13 UTC
scons: Reading SConscript files ...
INFO: SCons is using the following Python interpreter: /usr/bin/python3.6
fatal: not a git repository (or any parent up to mount point /var/tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Configuration variables read from 'cantera.conf' and command line:
    CXX = 'x86_64-pc-linux-gnu-g++'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-libressl-20190713-133107

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.1.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.36.0 *



emerge -qpvO sci-libs/cantera
[ebuild   R   ] sci-libs/cantera-2.4.0  USE="cti python -fortran (-pch) -test" PYTHON_SINGLE_TARGET="python3_6 -python3_5" PYTHON_TARGETS="python3_6 -python3_5"
Comment 1 Toralf Förster gentoo-dev 2019-07-16 15:55:15 UTC
Created attachment 583076 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-07-16 15:55:18 UTC
Created attachment 583078 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-07-16 15:55:21 UTC
Created attachment 583080 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-07-16 15:55:23 UTC
Created attachment 583082 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-07-16 15:55:26 UTC
Created attachment 583084 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-07-16 15:55:29 UTC
Created attachment 583086 [details]
sci-libs:cantera-2.4.0:20190716-124137.log
Comment 7 Toralf Förster gentoo-dev 2019-07-16 15:55:32 UTC
Created attachment 583088 [details]
temp.tbz2
Comment 8 Sergey Torokhov 2019-07-16 18:14:56 UTC
As I could see from emerge log the SConscript can't find system installed sci-libs/sundials package and try to download via git but there is no .git directory as it's isn't git clone.

Why do you use "-O" option during emerge that prevent installation of dependencies?
Comment 9 Toralf Förster gentoo-dev 2019-07-16 19:25:30 UTC
(In reply to Sergey Torokhov from comment #8)
> Why do you use "-O" option during emerge that prevent installation of
> dependencies?

-O is only used to to produce for the info message the information about the USE flags and the info [R] or [N]
Comment 10 Sergey Torokhov 2019-07-16 23:33:39 UTC
At the build log there are 

> Checking for CVodeCreate(CV_BDF, CV_NEWTON) in C++ library sundials_cvodes... no
> ERROR: Expected system installation of Sundials, but it could not be found.
See 'config.log' for details.

What is the version of sci-libs/sundials was installed at the moment of error?
It was quite recently updated for versions bump in portage tree.

If it's greater than 3.1.2 it's strange because there is additional check in SConscript for sundials version.
Comment 11 Sergey Torokhov 2019-07-16 23:38:13 UTC
Is this issue is reproduced for cantera-2.4.0-r1.ebuild from the last commit of https://github.com/gentoo/gentoo/pull/12303

Please note, there is also was external patch was added for ebuild in mentioned pull request.
Comment 12 Sergey Torokhov 2019-07-17 04:23:28 UTC
In the emerge history the last sundials is
4.1.0, so the ebuild with patch from mentioned pr should prevent of build cantera against unsupported versions of sundials. Could you check this on yout environment?
Comment 13 Sergey Torokhov 2019-07-17 07:26:35 UTC
Actually there are two messages

1. 
> fatal: not a git repository (or any parent up to mount point /var/tmp)

that isn't critical and doesn't stop emerge process. The SConstruct script just try to evaluate `git rev-parse --short HEAD` and return the mentioned warning from git command itself if it's is installed in system. It could be avoid just by removing of "try" section from SConstruct file. But it just could confuse without fail the emerge.

2. The second error that is about Sundials is critical and results in emerge failure. Because the in >=sundials-4.0 the CV_NEWTON input parameter was removed and cantera check for this in sundials_cvodes library is failed.

Ref: https://github.com/Cantera/cantera/issues/620
Comment 14 Larry the Git Cow gentoo-dev 2019-07-19 16:45:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa0bc77060e83768e5e5620fdf6ecbfd6546bd99

commit fa0bc77060e83768e5e5620fdf6ecbfd6546bd99
Author:     band-a-prend <torokhov-s-a@yandex.ru>
AuthorDate: 2019-07-17 15:03:27 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2019-07-19 16:44:56 +0000

    sci-libs/cantera: 2.4.0-r1. Fix 'fatal' warning
    
    The SConstruct script contains block that tries to evaluate
    'git rev-parse --short HEAD` comand and returns the
    "fatal: not a git repository (or any parent up to mount point /var/tmp)"
    warning from git command itself if git is installed in system.
    It occurs because the release package archive doesn't contain ".git" directory.
    This behaviour doesn't affect emerge process but can confuse
    in the case of other issues.
    
    Closes: https://bugs.gentoo.org/689998
    Signed-off-by: Sergey Torokhov <torokhov_s_a@mail.ru>
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 sci-libs/cantera/files/cantera_2.4.0_env.patch | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)