update singularity definitions for readline 6/7 to have a pkg-config file

This commit is contained in:
Axel Kohlmeyer 2020-10-14 15:06:57 -04:00
parent 234f27514f
commit 865b159d16
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
6 changed files with 93 additions and 2 deletions

View File

@ -17,6 +17,21 @@ From: ubuntu:16.04
python3-setuptools python3-virtualenv \
enchant
# create missing readline pkgconfig file
cat > /usr/lib/x86_64-linux-gnu/pkgconfig/readline.pc <<EOF
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib/x86_64-linux-gnu
includedir=/usr/include
Name: Readline
Description: GNU Readline library for command line editing
URL: http://tiswww.cwru.edu/php/chet/readline/rltop.html
Version: 6.3
Requires.private: tinfo
Libs: -L\${libdir} -lreadline
Cflags: -I\${includedir}/readline
EOF
# set custom prompt indicating the container name
CUSTOM_PROMPT_ENV=/.singularity.d/env/99-zz_custom_prompt.sh
cat >$CUSTOM_PROMPT_ENV <<EOF

View File

@ -123,6 +123,21 @@ From: ubuntu:18.04
# Customizations
###########################################################################
# create missing readline pkgconfig file
cat > /usr/lib/x86_64-linux-gnu/pkgconfig/readline.pc <<EOF
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib/x86_64-linux-gnu
includedir=/usr/include
Name: Readline
Description: GNU Readline library for command line editing
URL: http://tiswww.cwru.edu/php/chet/readline/rltop.html
Version: 7.0
Requires.private: tinfo
Libs: -L\${libdir} -lreadline
Cflags: -I\${includedir}/readline
EOF
# set custom prompt indicating the container name
CUSTOM_PROMPT_ENV=/.singularity.d/env/99-zz_custom_prompt.sh
cat >$CUSTOM_PROMPT_ENV <<EOF

View File

@ -57,8 +57,8 @@ From: ubuntu:18.04
libopenblas-dev \
libnuma-dev \
libpng-dev \
libreadline-dev \
libproj-dev \
libreadline-dev \
libvtk6-dev \
libyaml-dev \
libzstd-dev \
@ -147,6 +147,21 @@ From: ubuntu:18.04
# Customizations
###########################################################################
# create missing readline pkgconfig file
cat > /usr/lib/x86_64-linux-gnu/pkgconfig/readline.pc <<EOF
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib/x86_64-linux-gnu
includedir=/usr/include
Name: Readline
Description: GNU Readline library for command line editing
URL: http://tiswww.cwru.edu/php/chet/readline/rltop.html
Version: 7.0
Requires.private: tinfo
Libs: -L\${libdir} -lreadline
Cflags: -I\${includedir}/readline
EOF
# set custom prompt indicating the container name
CUSTOM_PROMPT_ENV=/.singularity.d/env/99-zz_custom_prompt.sh
cat >$CUSTOM_PROMPT_ENV <<EOF

View File

@ -179,6 +179,21 @@ From: ubuntu:18.04
# Customizations
###########################################################################
# create missing readline pkgconfig file
cat > /usr/lib/x86_64-linux-gnu/pkgconfig/readline.pc <<EOF
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib/x86_64-linux-gnu
includedir=/usr/include
Name: Readline
Description: GNU Readline library for command line editing
URL: http://tiswww.cwru.edu/php/chet/readline/rltop.html
Version: 7.0
Requires.private: tinfo
Libs: -L\${libdir} -lreadline
Cflags: -I\${includedir}/readline
EOF
# set custom prompt indicating the container name
CUSTOM_PROMPT_ENV=/.singularity.d/env/99-zz_custom_prompt.sh
cat >$CUSTOM_PROMPT_ENV <<EOF

View File

@ -34,6 +34,7 @@ From: ubuntu:18.04
libhwloc-dev \
libjpeg-dev \
liblapack-dev \
libnetcdf-dev \
libomp-dev \
libopenblas-dev \
libnuma-dev \
@ -123,6 +124,21 @@ From: ubuntu:18.04
# Customizations
###########################################################################
# create missing readline pkgconfig file
cat > /usr/lib/x86_64-linux-gnu/pkgconfig/readline.pc <<EOF
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib/x86_64-linux-gnu
includedir=/usr/include
Name: Readline
Description: GNU Readline library for command line editing
URL: http://tiswww.cwru.edu/php/chet/readline/rltop.html
Version: 7.0
Requires.private: tinfo
Libs: -L\${libdir} -lreadline
Cflags: -I\${includedir}/readline
EOF
# set custom prompt indicating the container name
CUSTOM_PROMPT_ENV=/.singularity.d/env/99-zz_custom_prompt.sh
cat >$CUSTOM_PROMPT_ENV <<EOF
@ -138,7 +154,6 @@ EOF
# clean cache
rm -rf /var/lib/apt/lists/*
%environment
LC_ALL=C
export LC_ALL

View File

@ -34,6 +34,7 @@ From: nvidia/cuda:11.0-devel-ubuntu18.04
libhwloc-dev \
libjpeg-dev \
liblapack-dev \
libnetcdf-dev \
libomp-dev \
libopenblas-dev \
libnuma-dev \
@ -122,6 +123,21 @@ From: nvidia/cuda:11.0-devel-ubuntu18.04
# Customizations
###########################################################################
# create missing readline pkgconfig file
cat > /usr/lib/x86_64-linux-gnu/pkgconfig/readline.pc <<EOF
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib/x86_64-linux-gnu
includedir=/usr/include
Name: Readline
Description: GNU Readline library for command line editing
URL: http://tiswww.cwru.edu/php/chet/readline/rltop.html
Version: 7.0
Requires.private: tinfo
Libs: -L\${libdir} -lreadline
Cflags: -I\${includedir}/readline
EOF
# set custom prompt indicating the container name
CUSTOM_PROMPT_ENV=/.singularity.d/env/99-zz_custom_prompt.sh
cat >$CUSTOM_PROMPT_ENV <<EOF