Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build problem on Fedora #19

Open
hearnsj opened this issue Jul 18, 2020 · 1 comment
Open

Build problem on Fedora #19

hearnsj opened this issue Jul 18, 2020 · 1 comment

Comments

@hearnsj
Copy link

hearnsj commented Jul 18, 2020

Fedora 32 OS

(@V1.5) pkg> build GridapGmsh
Building CodecZlib ─→ ~/.julia/packages/CodecZlib/5t9zO/deps/build.log
Building GridapGmsh → ~/.julia/packages/GridapGmsh/Kh2vV/deps/build.log

I look at the build log:
cat ~/.julia/packages/GridapGmsh/Kh2vV/deps/build.log
[ Info: Using the gmsh Julia API found in /usr/lib/gmsh.jl
┌ Warning: gmsh Julia API not found
└ @ Main ~/.julia/packages/GridapGmsh/Kh2vV/deps/build.jl:21

$ locate gmsh.jl
/home/hearnsj/.julia/packages/Gmsh/eZVOZ/deps/usr/lib/gmsh.jl
/usr/share/gmsh/gmsh.jl

$ rpm -q --whatprovides /usr/share/gmsh/gmsh.jl
gmsh-common-4.5.4-1.fc32.noarch

The Fedora RPM puts gmsh.jl into /usr/share/gmsh
build.jl assumes gmsh.jl is in the same directory root as the gmsh executable

gmsh_root = dirname(gmsh)[1:end-4]
gmsh_jl = joinpath(gmsh_root,"lib","gmsh.jl")
@info "Using the gmsh Julia API found in $gmsh_jl"

@hearnsj
Copy link
Author

hearnsj commented Jul 18, 2020

If I look at the Feodora source RPM for gmsh 4.5.4
The spec file contains:

Install Julia API to share/gmsh

Patch3: gmsh_julia.patch

cat gmsh_julia.patch
diff -rupN --no-dereference gmsh-4.5.4-source/CMakeLists.txt gmsh-4.5.4-source-new/CMakeLists.txt
--- gmsh-4.5.4-source/CMakeLists.txt 2020-03-02 11:12:53.787187870 +0100
+++ gmsh-4.5.4-source-new/CMakeLists.txt 2020-03-02 11:12:53.940188572 +0100
@@ -1874,7 +1874,7 @@ endif()
if(ENABLE_BUILD_LIB OR ENABLE_BUILD_SHARED OR ENABLE_BUILD_DYNAMIC)
install(FILES ${GMSH_API} DESTINATION ${GMSH_INC})
install(FILES ${GMSH_PY} DESTINATION ${PYTHON3_SITE_PACKAGES})

  • install(FILES ${GMSH_JL} DESTINATION ${GMSH_LIB})
  • install(FILES ${GMSH_JL} DESTINATION share/gmsh)
    if(ENABLE_PRIVATE_API)
    install(FILES ${GMSH_PRIVATE_API} DESTINATION ${GMSH_INC}/gmsh)
    endif()

The DESTINATION has been changed from ${GMSH_LIB} to share/gmsh
I have no idea why this has been done

I am happy to open an issue with the Fedora maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant