LibPQ.jl icon indicating copy to clipboard operation
LibPQ.jl copied to clipboard

Problem on install in container

Open mSamiolo opened this issue 1 year ago • 0 comments

Hi Guys,

I noticed that when the package is to be installed into a container (namely Apptainer) the installation fails because of:

... [09:26:37] tar: ./share/man/man3/X509_STORE_CTX_set0_untrusted.3: Cannot change ownership to uid 261840, gid 261840: Invalid argument [09:26:37] tar: ./share/man/man3/X509_STORE_CTX_set0_verified_chain.3: Cannot change ownership to uid 261840, gid 261840: Invalid argument [09:26:37] tar: ./share/man/man3/X509_STORE_CTX_set_cert.3: Cannot change ownership to uid 261840, gid 261840: Invalid argument [09:26:37] tar: ./share/man/man3/X509_STORE_CTX_set_current_cert.3: Cannot change ownership to uid 261840, gid 261840: Invalid argument [09:26:37] tar: ./share/man/man3/X509_STORE_CTX_set_default.3: Cannot change ownership to uid 261840, gid 261840: Invalid argument [09:26:37] tar: ./share/man/man3/X509_STORE_CTX_set_error.3: Cannot change ownership to uid 261840, gid 261840: Invalid ...


There is a walkaround. Basically you execute
alias tar='tar --no-same-owner' And the build up will works nicely. I was wonder if one of you can replicate the problem. I leave below the container instruction to build it with `apptainer build xxx.sif xxx.def:

` Bootstrap: docker From: julia:1.10.4-bookworm

%files script.jl /opt/script.jl

%post apt update apt install libpq-dev -y export JULIA_DEPOT_PATH="/usr/local/julia/local/share/julia" alias tar='tar --no-same-owner' julia --project="." -e 'using Pkg;
Pkg.add("LibPQ");
Pkg.add("Tables");
Pkg.build();
Pkg.instantiate();
Pkg.precompile();'

%runscript julia /opt/script.jl "$@" `

mSamiolo avatar Jul 11 '24 09:07 mSamiolo