diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/about.json b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..7b07a9d36812966ef7e47f55141179fcfbc9b955 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/about.json @@ -0,0 +1,96 @@ +{ + "channels": [ + "https://repo.anaconda.com/pkgs/main" + ], + "conda_build_version": "3.21.8", + "conda_private": false, + "conda_version": "4.11.0", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "flow_run_id": "2f66d621-ebda-4fb5-92c1-4e86fe27c916", + "parent_recipe": { + "name": "gcc-compiler", + "path": "/feedstock/recipe", + "version": "11.2.0" + }, + "recipe-maintainers": [ + "katietz" + ], + "remote_url": "git@github.com:AnacondaRecipes/gcc_toolchain-feedstock.git", + "sha": "4c0a4d997795b643346dd071598ce13578be7b1e" + }, + "home": "https://github.com/AnacondaRecipes/gcc-compiler-feedstock", + "identifiers": [], + "keywords": [], + "license": "BSD-3-Clause", + "license_file": "../LICENSE", + "root_pkgs": [ + "_libgcc_mutex 0.1 main", + "_openmp_mutex 4.5 1_gnu", + "brotlipy 0.7.0 py39h27cfd23_1003", + "chardet 4.0.0 py39h06a4308_1003", + "conda-package-handling 1.7.3 py39h27cfd23_1", + "ld_impl_linux-64 2.35.1 h7274673_9", + "libffi 3.3 he6710b0_2", + "libgcc-ng 9.3.0 h5101ec6_17", + "libgomp 9.3.0 h5101ec6_17", + "libstdcxx-ng 9.3.0 hd4cf53a_17", + "pycosat 0.6.3 py39h27cfd23_0", + "pysocks 1.7.1 py39h06a4308_0", + "ruamel_yaml 0.15.100 py39h27cfd23_0", + "xz 5.2.5 h7b6447c_0", + "yaml 0.2.5 h7b6447c_0", + "beautifulsoup4 4.10.0 pyh06a4308_0", + "bzip2 1.0.8 h7b6447c_0", + "ca-certificates 2022.2.1 h06a4308_0", + "certifi 2021.10.8 py39h06a4308_2", + "cffi 1.15.0 py39hd667e15_1", + "charset-normalizer 2.0.4 pyhd3eb1b0_0", + "conda 4.11.0 py39h06a4308_0", + "conda-build 3.21.8 py39h06a4308_1", + "cryptography 36.0.0 py39h9ce1e76_0", + "filelock 3.6.0 pyhd3eb1b0_0", + "glob2 0.7 pyhd3eb1b0_0", + "icu 58.2 he6710b0_3", + "idna 3.3 pyhd3eb1b0_0", + "jinja2 2.11.3 pyhd3eb1b0_0", + "libarchive 3.4.2 h62408e4_0", + "liblief 0.10.1 h2531618_1", + "libxml2 2.9.12 h03d6c58_0", + "lz4-c 1.9.3 h295c915_1", + "markupsafe 2.0.1 py39h27cfd23_0", + "ncurses 6.3 h7f8727e_2", + "openssl 1.1.1m h7f8727e_0", + "patchelf 0.13 h295c915_0", + "pip 21.2.4 py39h06a4308_0", + "pkginfo 1.8.2 pyhd3eb1b0_0", + "psutil 5.8.0 py39h27cfd23_1", + "py-lief 0.10.1 py39h2531618_1", + "pycparser 2.21 pyhd3eb1b0_0", + "pyopenssl 22.0.0 pyhd3eb1b0_0", + "python 3.9.7 h12debd9_1", + "python-libarchive-c 2.9 pyhd3eb1b0_1", + "pytz 2021.3 pyhd3eb1b0_0", + "pyyaml 6.0 py39h7f8727e_1", + "readline 8.1.2 h7f8727e_1", + "requests 2.27.1 pyhd3eb1b0_0", + "ripgrep 12.1.1 0", + "setuptools 58.0.4 py39h06a4308_0", + "six 1.16.0 pyhd3eb1b0_1", + "soupsieve 2.3.1 pyhd3eb1b0_0", + "sqlite 3.38.0 hc218d9a_0", + "tk 8.6.11 h1ccaba5_0", + "tqdm 4.62.3 pyhd3eb1b0_1", + "tzdata 2021e hda174b7_0", + "urllib3 1.26.8 pyhd3eb1b0_0", + "wheel 0.37.1 pyhd3eb1b0_0", + "zlib 1.2.11 h7f8727e_4", + "zstd 1.4.9 haebb681_0" + ], + "summary": "OpenMP Implementation Mutex", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/files b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/files new file mode 100644 index 0000000000000000000000000000000000000000..b05774803a927e1fc77033d824283ba0faee0795 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/files @@ -0,0 +1 @@ +lib/libgomp.so.1 diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/git b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/hash_input.json b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..169dd757df7a7614582a87bf24ebf622e745d2a7 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/hash_input.json @@ -0,0 +1,7 @@ +{ + "channel_targets": "defaults", + "libgomp_ver": "1.0.0", + "openmp_ver": "5.1", + "target_platform": "linux-64", + "_libgcc_mutex": "0.1 main" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/index.json b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..22ebf54d8d67033dc567b23f5251dcb4e5cb6346 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/index.json @@ -0,0 +1,18 @@ +{ + "arch": "x86_64", + "build": "1_gnu", + "build_number": 0, + "constrains": [ + "openmp_impl 9999" + ], + "depends": [ + "_libgcc_mutex 0.1 main", + "libgomp >=7.5.0" + ], + "license": "BSD-3-Clause", + "name": "_openmp_mutex", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1652859733309, + "version": "5.1" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/licenses/LICENSE0.txt b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/licenses/LICENSE0.txt new file mode 100644 index 0000000000000000000000000000000000000000..589129b6ab8725c988cab52d0b7d5795bfcc23cb --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/licenses/LICENSE0.txt @@ -0,0 +1,13 @@ +BSD 3-clause license +Copyright (c) 2022, Anaconda +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/paths.json b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..26ecb57939308662685a2cd3a2a601ce610332f2 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/paths.json @@ -0,0 +1,11 @@ +{ + "paths": [ + { + "_path": "lib/libgomp.so.1", + "path_type": "softlink", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "size_in_bytes": 0 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/conda_build_config.yaml b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..397c1c889ac7f519946d3d08fb6c8eb72c5b4ac2 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/conda_build_config.yaml @@ -0,0 +1,119 @@ +VERBOSE_AT: V=1 +VERBOSE_CM: VERBOSE=1 +_libgcc_mutex: 0.1 main +apr: 1.6.3 +blas_impl: openblas +boost: '1.73' +boost_cpp: '1.73' +bzip2: '1.0' +c_compiler: gcc +c_compiler_version: 7.5.0 +cairo: '1.14' +channel_targets: defaults +clang_variant: clang +conda_glibc_ver: '2.17' +cpu_arch: x86_64 +cpu_optimization_target: nocona +cran_mirror: https://mran.microsoft.com/snapshot/2018-01-01 +cxx_compiler: gxx +cxx_compiler_version: 7.5.0 +cyrus_sasl: 2.1.26 +dbus: '1' +duma_version: 2.5.15 +expat: '2.2' +extend_keys: +- ignore_version +- extend_keys +- pin_run_as_build +- ignore_build_only_deps +fontconfig: '2.13' +fortran_compiler: gfortran +fortran_compiler_version: 7.5.0 +freetype: '2.10' +g2clib: '1.6' +gcc_version: 11.2.0 +gcc_version_build_number: '0' +gdb_server_version: '11.2' +gdb_version: '11.2' +geos: 3.8.0 +giflib: '5' +glib: '2' +gmp: '6.1' +gnu: '2.17' +gst_plugins_base: '1.14' +gstreamer: '1.14' +harfbuzz: '2.4' +hdf4: '4.2' +hdf5: 1.10.6 +hdfeos2: '2.20' +hdfeos5: '5.1' +icu: '58' +ignore_build_only_deps: +- python +- numpy +jpeg: '9' +kernel_version: 3.10.0 +libdap4: '3.19' +libffi: '3.3' +libgd: 2.2.5 +libgdal: '3.0' +libgfortran_soname: '5' +libgomp_ver: 1.0.0 +libgsasl: '1.8' +libkml: '1.3' +libnetcdf: '4.8' +libpng: '1.6' +libprotobuf: 3.11.2 +libtiff: '4.1' +libwebp: 1.2.0 +libxml2: '2.9' +libxslt: '1.1' +llvm_variant: llvm +ltrace_version: 0.7.3 +lua: '5' +lzo: '2' +mkl: '2021' +mpfr: '4' +numpy: '1.21' +openblas: 0.3.3 +openjpeg: '2.3' +openmp_ver: '5.1' +openssl: 1.1.1 +perl: '5.26' +pin_run_as_build: + python: + min_pin: x.x + max_pin: x.x + r-base: + min_pin: x.x + max_pin: x.x + libboost: + max_pin: x.x.x +pixman: '0.30' +proj: 6.2.1 +proj4: 5.2.0 +python: '3.10' +python_impl: cpython +python_implementation: cpython +qtwebkit: 'true' +r_base: '3.5' +r_implementation: r-base +r_version: 3.5.0 +readline: '8.0' +rust_compiler: rust +rust_compiler_version: 1.56.0 +serf: 1.3.9 +sqlite: '3' +strace_version: '5.16' +target_platform: linux-64 +tk: '8.6' +xz: '5' +zip_keys: +- - gcc_version + - libgfortran_soname +- - kernel_version + - conda_glibc_ver + - cpu_arch +- - python + - numpy +zlib: '1.2' diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/install_scripts/install-openmp_impl.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/install_scripts/install-openmp_impl.sh new file mode 100644 index 0000000000000000000000000000000000000000..65fcddfb06c7ab17c4e638d57fa58c14769fdf9b --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/install_scripts/install-openmp_impl.sh @@ -0,0 +1,9 @@ +set -e -x + +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) + +mkdir -p ${PREFIX}/lib + +pushd ${PREFIX}/lib/ +ln -s libgomp.so.${libgomp_ver} libgomp.so.${libgomp_ver:0:1} +popd diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/meta.yaml b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..186d5f9f22c72d9edf5031d7b1b9e2493c6293da --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/meta.yaml @@ -0,0 +1,38 @@ +# This file created by conda-build 3.21.8 +# ------------------------------------------------ + +package: + name: _openmp_mutex + version: 5.1 +source: + path: /feedstock/recipe +build: + number: 0 + run_exports: + strong: + - _openmp_mutex >=5.1 + string: 1_gnu +requirements: + build: [] + run: + - _libgcc_mutex 0.1 main + - libgomp >=7.5.0 + run_constrained: + - openmp_impl 9999 +test: + commands: + - test -f ${PREFIX}/lib/libgomp.so.1 + - test `readlink ${PREFIX}/lib/libgomp.so.1` == "libgomp.so.1.0.0" +about: + home: https://github.com/AnacondaRecipes/gcc-compiler-feedstock + license: BSD-3-Clause + license_file: ../LICENSE + summary: OpenMP Implementation Mutex +extra: + copy_test_source_files: true + final: true + flow_run_id: 2f66d621-ebda-4fb5-92c1-4e86fe27c916 + recipe-maintainers: + - katietz + remote_url: git@github.com:AnacondaRecipes/gcc_toolchain-feedstock.git + sha: 4c0a4d997795b643346dd071598ce13578be7b1e diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3b4e4c5489daaf11addd05ff9be04243906bdde --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +set -ex + +# debugging ... +if [ -z "${RECIPE_DIR}" ]; then + RECIPE_DIR=$PWD +fi + +if [[ ${target_platform} =~ osx-.* ]]; then + if [[ ! -f ${BUILD_PREFIX}/bin/llvm-objcopy ]]; then + echo "no llvm-objcopy" + exit 1 + fi + ln -s ${BUILD_PREFIX}/bin/llvm-objcopy ${BUILD_PREFIX}/bin/x86_64-apple-darwin19.6.0-objcopy + chmod +x ${BUILD_PREFIX}/bin/x86_64-apple-darwin19.6.0-objcopy + ln -s ${BUILD_PREFIX}/bin/llvm-objcopy ${BUILD_PREFIX}/bin/objcopy + chmod +x ${BUILD_PREFIX}/bin/objcopy + unset CC CXX +fi + +if [[ $(uname) == Linux ]]; then + ulimit -s 32768 || true +fi + +if [[ "${bootstrapping}" != "yes" ]]; then + # Use own compilers instead of relying on ones from the docker image/system + conda create -p $SRC_DIR/compilers gcc_${target_platform} gxx_${target_platform} binutils \ + make gawk sed libtool --yes --quiet +fi + +${RECIPE_DIR}/build_scripts/build.sh + +exit 0 diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/binutils_host.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/binutils_host.sh new file mode 100644 index 0000000000000000000000000000000000000000..01dd06055e78b1de05b7d24f44605cbebdba3aba --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/binutils_host.sh @@ -0,0 +1,64 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +EXTRA_CONFIG="--enable-ld=yes --enable-gold=no" +case "${CFG_ARCH}" in + arm*) + EXTRA_CONFIG="--enable-ld=default --enable-gold=yes --enable-threads" + ;; +esac + +rm -rf "${WDIR}/build/binutils-host" +mkdir "${WDIR}/build/binutils-host" +pushd "${WDIR}/build/binutils-host" + + export ac_cv_func_glob=no + + CC_FOR_BUILD="${HOST}-gcc" \ + CFLAGS_FOR_BUILD="${HOST_CFLAG}" \ + CXXFLAGS_FOR_BUILD="${HOST_CFLAG}" \ + LDFLAGS_FOR_BUILD="${HOST_LDFLAG}" \ + CFLAGS="-pipe ${HOST_CFLAG}" \ + CXXFLAGS="-pipe ${HOST_CFLAG}" \ + LDFLAGS="${HOST_LDFLAG}" \ + bash "${WDIR}/binutils/configure" \ + --build=${HOST} \ + --host=${HOST} \ + --target=${CFG_TARGET} \ + --prefix=${WDIR}/gcc_built \ + --with-sysroot=${WDIR}/gcc_built/${CFG_TARGET}/sysroot \ + --disable-gdb --disable-multilib \ + --disable-nls --disable-sim --disable-werror \ + --enable-deterministic-archives --enable-plugins \ + --with-pkgversion="Anaconda binutils" \ + ${EXTRA_CONFIG} + + echo "Building binutils ..." + make + + echo "Installing binutils ..." + make install + +popd + +mkdir -p "${WDIR}/gcc_built/lib/bfd-plugins" +mkdir -p "${WDIR}/buildtools/bin" +pushd "${WDIR}/gcc_built/bin" + for t in "${CFG_TARGET}-"*; do + if [ "${t}" = "${CFG_TARGET}-*" ]; then + break + fi + _t="${CFG_TARGET}-${t#${CFG_TARGET}-}" + ln -sfv "${WDIR}/gcc_built/bin/${t}" "${WDIR}/buildtools/bin/${_t}" + done +popd + +mkdir -p "${WDIR}/buildtools/${CFG_TARGET}" +ln -sv "${WDIR}/gcc_built/${CFG_TARGET}/bin" "${WDIR}/buildtools/${CFG_TARGET}/bin" + +# clean up ... +rm -rf "${WDIR}/build/binutils-host" + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/build.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..05faa8e904525245c495890a68d0c5a014f0055a --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/build.sh @@ -0,0 +1,121 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +if [ $(id -u) -eq 0 ]; then + echo "WARNING: You cannot run this script as root and expecting save results" + # exit 1 +fi + +n_open_files=$(ulimit -n) +if [ "${n_open_files}" -lt 2048 ]; then + echo "Number of open files ${n_open_files} may not be sufficient to build the toolchain; increasing to 2048" + ulimit -n 2048 +fi + +${RECIPE_DIR}/decompress.sh + +mkdir -p "${WDIR}/build" +mkdir -p "${WDIR}/buildtools/bin" + +echo "Preparing working directories ..." + +rm -rf "${WDIR}/build" "${WDIR}/buildtools" "${WDIR}/gcc_built" + +mkdir -p "${WDIR}/gcc_built" +chmod -R u+w "${WDIR}/gcc_built" + +mkdir -p "${WDIR}/gcc_built/lib" +ln -s "${WDIR}/gcc_built/lib" "${WDIR}/gcc_built/lib64" + +mkdir -p "${WDIR}/gcc_built/${CFG_TARGET}/debug-root/usr/lib" +ln -s "${WDIR}/gcc_built/${CFG_TARGET}/debug-root/usr/lib" "${WDIR}/gcc_built/${CFG_TARGET}/debug-root/usr/lib64" + +mkdir -p "${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/include" +mkdir -p "${WDIR}/gcc_built/${CFG_TARGET}/lib" +ln -s "${WDIR}/gcc_built/${CFG_TARGET}/lib" "${WDIR}/gcc_built/${CFG_TARGET}/lib64" +mkdir -p "${WDIR}/gcc_built/${CFG_TARGET}/sysroot/lib" +ln -s "${WDIR}/gcc_built/${CFG_TARGET}/sysroot/lib" "${WDIR}/gcc_built/${CFG_TARGET}/sysroot/lib64" +mkdir -p "${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/lib" +ln -s "${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/lib" "${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/lib64" + +mkdir -p "${WDIR}/build" +mkdir -p "${WDIR}/buildtools/bin" + +echo "Making build system tools available with poisoned name" +for tool in ar as dlltool c++ c++filt cpp cc gcc gcc-ar gcc-nm gcc-ranlib \ + g++ gcj gnatbind gnatmake ld libtool nm objcopy objdump ranlib \ + strip windres; do + where=$(which "${ORG_HOST}-${tool}" 2>/dev/null || true) + [ -z "${where}" ] && where=$(which "${tool}" 2>/dev/null || true) + + if [ -n "${where}" ]; then + printf "#!/bin/bash\nexec '${where}' \"\${@}\"\n" >"${WDIR}/buildtools/bin/${HOST}-${tool}" + chmod 700 "${WDIR}/buildtools/bin/${HOST}-${tool}" + fi +done + +# for ncurses sake on powerpc and s390x we create a symlink for gcc +pushd "${WDIR}/buildtools/bin" +ln -s "${HOST}-gcc" gcc +ln -s "${HOST}-g++" g++ || true +popd + +printf "#!/bin/bash\n$(which makeinfo 2>/dev/null || true) --force \"\${@}\"\ntrue\n" >"${WDIR}/buildtools/bin/makeinfo" +chmod 700 "${WDIR}/buildtools/bin/makeinfo" + +echo "Checking that we can run gcc --version and being able to compile program ..." +echo " ${HOST}-gcc --version ..." +"${HOST}-gcc" --version || (ls compilers/bin && exit 1) + +printf "int main()\n{\n return 0;\n}\n" >"${WDIR}/build/test.c" +"${HOST}-gcc" -pipe ${HOST_CFLAG} ${HOST_LDFLAG} "${WDIR}/build/test.c" -o "${WDIR}/build/out" +rm -f "${WDIR}/build/test.c" "${WDIR}/build/out" + +echo "Starting the build ..." +bash ${RECIPE_DIR}/build_scripts/ncurses_build.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/zlib_host.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/gmp_host.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/mpfr_host.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/isl_host.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/mpc_host.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/expat_host.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/ncurses_host.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/libiconv_host.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/gettext_host.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/binutils_host.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/kernel_headers.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/gcc_core.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/glibc_core.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/gcc_host.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/gmp_target.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/expat_target.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/ncurses_target.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/libelf_target.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/debug.sh + [ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/final.sh + [ $? -eq 0 ] + +exit 0 diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/build_env.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/build_env.sh new file mode 100644 index 0000000000000000000000000000000000000000..e1a157b4dfbea675c1a51b0e14d77f183e3c68c9 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/build_env.sh @@ -0,0 +1,146 @@ +#!/bin/bash + +# prevent to set variables more then once + +if [ -z "${CFG_TARGET}" ]; then + +set -e + +nuke_dot_in_path() { + local new + local p + local IFS=: + for p in $PATH; do + if [ -n "${p}" -a -z "${p%%/*}" ]; then + new="${new}${new:+:}${p}" + fi + done + PATH="${new}" +} + +export WDIR=$PWD + +CFG_GLIBC_VER="2.17.0" + +case "${target_platform}" in + *linux-64*|*osx-64*) CFG_ARCH="x86";; + *aarch64*|*arm64*) + CFG_ARCH="arm" + CFG_GLIBC_VER="2.26.0" + ;; + *ppc64le*) CFG_ARCH="powerpc";; + *s390x*) CFG_ARCH="s390";; + *) + echo "unsupported target architecture ${target_platform}" + exit 1 + ;; +esac + +export CFG_GLIBC_VER +export CFG_ARCH + +unset ARCH_CFLAG +unset ARCH_LDFLAG + +case "${CFG_ARCH}" in + arm*) + CFG_TARGET="aarch64-conda-linux-gnu" + ARCH_CFLAG="-mlittle-endian" + ARCH_LDFLAG="-Wl,-EL" + ;; + s390*) + CFG_TARGET="s390x-conda-linux-gnu" + ;; + powerpc*) + CFG_TARGET="powerpc64le-conda-linux-gnu" + ARCH_CFLAG="-mlittle-endian" + ARCH_LDFLAG="-Wl,-EL" + ;; + x86*) + CFG_TARGET="x86_64-conda-linux-gnu" + ;; +esac + +if [[ "${bootstrapping}" != "yes" ]]; then + export PATH=$WDIR/compilers/bin:$PATH + if [ "${CFG_ARCH}" = "powerpc" ]; then + HOST="powerpc64le-conda_cos7-linux-gnu" + else + HOST="${CFG_TARGET}" + fi +fi + +# we can't use conda's HOST compiler ... +# so we pick system-compiler instead +if [ -z "${HOST}" ]; then + HOST=$(gcc -dumpmachine) +fi + +export CFG_TARGET +export ARCH_CFLAG +export ARCH_LDFLAG + +export LC_ALL=C +export LANG=C + +# make sure path does not contain current dir '.' +nuke_dot_in_path + +unset GREP_OPTIONS +export CONFIG_SITE= + +mkdir -p "${WDIR}/build" +mkdir -p "${WDIR}/buildtools/bin" + +unset MAKEFLAGS +export SHELL="/bin/bash" + +echo "Preparing working directories ..." + +export ORG_HOST="${HOST}" + +# poison name for enforcing cross-build +export HOST="${HOST/-/-build_}" + +export PATH="${WDIR}/gcc_built/bin:${WDIR}/buildtools/bin:${PATH}" + +CLANG_CFLAGS= +OSX_CFLAGS= +OSX_LDFLAGS= +if ${HOST}-gcc --version 2>&1 | grep clang; then + CLANG_CFLAGS=" -Qunused-arguments" +fi +case "${HOST}" in + *darwin*) + OSX_CLFAGS=" -fno-common" + OSX_LDFLAGS=" -framework CoreFoundation" + ;; +esac + +export HOST_CFLAG="-O2 -g -I${WDIR}/buildtools/include ${CLANG_CFLAGS} ${OSX_CFLAGS}" +export HOST_LDFLAG="-L${WDIR}/buildtools/lib ${OSX_LDFLAGS}" + +# the prefix flags .. +export TARGET_LDFLAG="-Wl,-rpath,${WDIR}/gcc_built/lib -Wl,-rpath-link,${WDIR}/gcc_built/lib -L${WDIR}/gcc_built/lib" + +for d in CFLAGS LDFLAGS CPPFLAGS CXXFLAGS; do + eval export ${d}= + eval export DEBUG_${d}= + eval export ${d}_USED= + eval export DEBUG_${d}_USED= +done + + +for d in ADDR2LINE AR AS CC CPP CXX CXXFILT ELFEDIT GCC GCC_AR GCC_NM GCC_RANLIB \ + GPROF GXX LD LD_GOLD NM RANLIB READELF SIZE STRINGS STRIP \ + CMAKE_PREFIX_PATH CMAKE_ARGS OBJCOPY OBJDUMP \ + host_alias build_aliasa \ + CC_FOR_BUILD CXX_FOR_BUILD LD_FOR_BUILD CPP_FOR_BUILD; do + eval export ${d}= + eval unset ${d} +done + +export BUILD= +export HOST=$HOST + +fi diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/debug.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/debug.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c1bab6029fa650925d2b4b1bbe1eaffbd46c074 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/debug.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +bash ${RECIPE_DIR}/build_scripts/duma_target.sh +[ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/ltrace_target.sh +[ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/strace_target.sh +[ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/gdb_server.sh +[ $? -eq 0 ] +bash ${RECIPE_DIR}/build_scripts/gdb_target.sh +[ $? -eq 0 ] + +exit 0 diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/duma_target.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/duma_target.sh new file mode 100644 index 0000000000000000000000000000000000000000..289ebbb071161615048b069df777cef85b272f94 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/duma_target.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/duma-target" +mkdir -p "${WDIR}/build/duma-target" +pushd "${WDIR}/build/duma-target" + cp -r "${WDIR}"/duma/* . + + echo "Building duma ..." + make DUMA_CPP=1 DUMASO= OS="linux" \ + CC="${CFG_TARGET}-gcc ${ARCH_CFLAG}" \ + CXX="${CFG_TARGET}-g++ ${ARCH_CFLAG}" \ + HOSTCC="${HOST}-gcc" \ + RANLIB="${CFG_TARGET}-ranlib" \ + LDFLAGS="${TARGET_LDFLAG}" \ + prefix="${WDIR}/gcc_built/${CFG_TARGET}/debug-root/usr" \ + all + + echo "Installing duma ..." + make DUMA_CPP=1 DUMASO= OS="linux" \ + CC="${CFG_TARGET}-gcc ${ARCH_CFLAG}" \ + CXX="${CFG_TARGET}-g++ ${ARCH_CFLAG}" \ + HOSTCC="${HOST}-gcc" \ + RANLIB="${CFG_TARGET}-ranlib" \ + LDFLAGS="${TARGET_LDFLAG}" \ + prefix="${WDIR}/gcc_built/${CFG_TARGET}/debug-root/usr" \ + install + +popd + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/expat_host.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/expat_host.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc8da96b72938252e45fac37108ed6a80496d892 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/expat_host.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/expat-host" +mkdir "${WDIR}/build/expat-host" +pushd "${WDIR}/build/expat-host" + + CFLAGS="-pipe ${HOST_CFLAG}" \ + LDFLAGS="${HOST_LDFLAG}" \ + bash "${WDIR}/expat/configure" \ + --build=${HOST} \ + --host=${HOST} \ + --prefix="${WDIR}/buildtools" \ + --enable-static \ + --disable-shared \ + --without-docbook + + echo "Building expat ..." + make + + echo "Installing expat ..." + make install + +popd + +# clean up ... +rm -rf "${WDIR}/build/expat-host" + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/expat_target.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/expat_target.sh new file mode 100644 index 0000000000000000000000000000000000000000..be68a717afc98e965e284a00a713cce4c5f3b6e0 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/expat_target.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/expat-target" +mkdir "${WDIR}/build/expat-target" +pushd "${WDIR}/build/expat-target" + + CFLAGS="${ARCH_CFLAG}" \ + LDFLAGS="${TARGET_LDFLAG} ${ARCH_LDFLAG}" \ + bash "${WDIR}/expat/configure" \ + --build=${HOST} \ + --host=${CFG_TARGET} \ + --prefix="/usr" \ + --enable-static \ + --enable-shared \ + --without-docbook + + echo "Building expat ..." + make + + echo "Installing expat ..." + make install DESTDIR="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" + +popd + +# clean up ... +rm -rf "${WDIR}/build/expat-target" + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/final.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/final.sh new file mode 100644 index 0000000000000000000000000000000000000000..78ed6692f67172e444442f50b5ef331a64b45d01 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/final.sh @@ -0,0 +1,50 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +echo "Finalizing the toolchain's directories ..." + +STRIP_ARG="--strip-unneeded -v" +case "$HOST" in + *darwin*) + STRIP_ARG="" + ;; +esac + +echo "Stripping all executables in prefix ..." +pushd "${WDIR}/gcc_built" + + if [ -f "${CFG_TARGET}/debug-root/usr/bin/gdbserver" ]; then + "${CFG_TARGET}-strip" ${STRIP_ARG} "${CFG_TARGET}/debug-root/usr/bin/gdbserver" + fi + gcc_version=$(cat "${WDIR}/gcc/gcc/BASE-VER") + for _t in "bin/${CFG_TARGET}-"* \ + "${CFG_TARGET}/bin/"* \ + "libexec/gcc/${CFG_TARGET}/${gcc_version}/"* \ + "libexec/gcc/${CFG_TARGET}/${gcc_version}/install-tools/"* \ + ; do + _type="$( file "${_t}" |cut -d ' ' -f 2- )" + case "${_type}" in + *script*executable*) + ;; + *executable*|*shared*object*) + ${HOST}-strip ${STRIP_ARG} "${_t}" + ;; + esac + done +popd + +rm -rf "${WDIR}/gcc_built/"{,usr/}{,share/}{man,info} +rm -rf "${WDIR}/gcc_built/${CFG_TARGET}/sysroot/"{,usr/}{,share/}{man,info} +rm -rf "${WDIR}/gcc_built/${CFG_TARGET}/debug-root/"{,usr/}{,share/}{man,info} + +for licfile in $( find "${WDIR}" -follow -type f -a \( -name "COPYING*" -o -name "LICENSE*" \) ); do + dstdir="${licfile%/*}" + dstdir="${WDIR}/gcc_built/share/licenses${dstdir#${WDIR}}" + mkdir -p "${dstdir}" + cp -av "${licfile}" "${dstdir}/" +done + +shopt -u nullglob diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gcc_core.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gcc_core.sh new file mode 100644 index 0000000000000000000000000000000000000000..12cf8e28f82f721acd1838764f795bdc3dbcaefd --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gcc_core.sh @@ -0,0 +1,99 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/gcc-core" +mkdir -p "${WDIR}/build/gcc-core" +pushd "${WDIR}/build/gcc-core" + + glibc_version=`echo "${CFG_GLIBC_VER}" | sed 's/\([1-9][0-9]*\.[1-9][0-9]*\).*/\1/'` + + CLANG_CFLAG= + if ${HOST}-gcc --version 2>&1 | grep clang; then + CLANG_CFLAG="-fbracket-depth=512" + fi + + CC_FOR_BUILD="${HOST}-gcc" \ + CFLAGS="${HOST_CFLAG} ${CLANG_CFLAG}" \ + CFLAGS_FOR_BUILD="${HOST_CFLAG} ${CLANG_CFLAG}" \ + CXXFLAGS="${HOST_CFLAG} ${CLANG_CFLAG}" \ + CXXFLAGS_FOR_BUILD="${HOST_CFLAG} ${CLANG_CFLAG}" \ + LDFLAGS="${HOST_LDFLAG} -lstdc++ -lm" \ + CFLAGS_FOR_TARGET="-g -O2 ${ARCH_CFLAG}" \ + CXXFLAGS_FOR_TARGET="" \ + LDFLAGS_FOR_TARGET="${TARGET_LDFLAG}" \ + bash "${WDIR}/gcc/configure" \ + --build=${HOST} \ + --host=${HOST} \ + --target=${CFG_TARGET} \ + --prefix="${WDIR}/buildtools" \ + --exec_prefix="${WDIR}/buildtools" \ + --with-local-prefix="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" \ + --with-sysroot="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" \ + --enable-languages="c" \ + --disable-multilib \ + --disable-nls \ + --with-gmp="${WDIR}/buildtools" \ + --with-mpfr="${WDIR}/buildtools" \ + --with-mpc="${WDIR}/buildtools" \ + --with-isl="${WDIR}/buildtools" \ + --without-zstd \ + --with-glibc-version=${glibc_version} \ + --with-newlib \ + --enable-threads=no \ + --disable-shared \ + --enable-__cxa_atexit \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libmpx \ + --enable-libquadmath \ + --enable-libquadmath-support \ + --disable-libstdcxx-verbose \ + --disable-libstdcxx \ + --with-pkgversion="Anaconda bootstrap gcc" \ + --enable-lto + + make configure-gcc configure-libcpp configure-build-libiberty + make all-libcpp all-build-libiberty + if [ -d "${WDIR}/gcc/libdecnumber" ]; then + make configure-libdecnumber + make -C libdecnumber libdecnumber.a + fi + if [ -d "${WDIR}/gcc/libbacktrace" ]; then + make configure-libbacktrace + make -C libbacktrace + fi + + make -C gcc libgcc.mvars + sed -r -i -e 's@-lc@@g' gcc/libgcc.mvars + + echo "Building gcc core ..." + CFLAGS="${CFLAGS} -I${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/include" + make all-gcc all-target-libgcc + + echo "Installing gcc core ..." + make install-gcc install-target-libgcc + + pushd "${WDIR}/buildtools" + find . -type f -name "*.la" -exec rm {} \; + popd + + if [ -f "${WDIR}/buildtools/bin/${CFG_TARGET}-gcc" ]; then + ln -sfv "${CFG_TARGET}-gcc" "${WDIR}/buildtools/bin/${CFG_TARGET}-cc" + fi + + multi_root=$( "${WDIR}/buildtools/bin/${CFG_TARGET}-gcc" -print-sysroot ) + if [ ! -e "${multi_root}/lib" ]; then + ln -sfv lib "${multi_root}/lib" + fi + if [ ! -e "${multi_root}/usr/lib" ]; then + ln -sfv lib "${multi_root}/usr/lib" + fi + +popd + +# clean up ... +rm -rf "${WDIR}/build/gcc-core" + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gcc_host.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gcc_host.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e604530c2f4b3c777b4b88c75d4aa684ab3dbe5 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gcc_host.sh @@ -0,0 +1,122 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/gcc-final" +mkdir "${WDIR}/build/gcc-final" +pushd "${WDIR}/build/gcc-final" + + ARCH_CONFIG= + if [ "${CFG_ARCH}" = "x86" ]; then + ARCH_CONFIG="--enable-libmpx" + elif [ "${CFG_ARCH}" = "arm" ]; then + ARCH_CONFIG="--enable-gold" + fi + + CLANG_CFLAG= + if ${HOST}-gcc --version 2>&1 | grep clang; then + CLANG_CFLAG="-fbracket-depth=512" + fi + + CC_FOR_BUILD="${HOST}-gcc" \ + CFLAGS="${HOST_CFLAG} ${CLANG_CFLAG}" \ + CFLAGS_FOR_BUILD="${HOST_CFLAG} ${CLANG_CFLAG}" \ + CXXFLAGS="${HOST_CFLAG} ${CLANG_CFLAG}" \ + CXXFLAGS_FOR_BUILD="${HOST_CFLAG} ${CLANG_CFLAG}" \ + LDFLAGS="${HOST_LDFLAG} -lstdc++ -lm" \ + CFLAGS_FOR_TARGET="-g -O2 ${ARCH_CFLAG}" \ + CXXFLAGS_FOR_TARGET="${ARCH_CFLAG}" \ + LDFLAGS_FOR_TARGET="${TARGET_LDFLAG} ${ARCH_LDFLAG}" \ + bash "${WDIR}/gcc/configure" \ + --build=${HOST} \ + --host=${HOST} \ + --target=${CFG_TARGET} \ + --prefix="${WDIR}/gcc_built" \ + --exec_prefix="${WDIR}/gcc_built" \ + --with-sysroot="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" \ + --with-local-prefix="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" \ + --enable-long-long \ + --disable-multilib \ + --disable-nls \ + --with-gmp=${WDIR}/buildtools \ + --with-mpfr=${WDIR}/buildtools \ + --with-mpc=${WDIR}/buildtools \ + --with-isl=${WDIR}/buildtools \ + --without-zstd \ + --enable-languages="c,c++,fortran,objc,obj-c++" \ + --enable-__cxa_atexit \ + --disable-libmudflap \ + --enable-libgomp \ + --enable-libquadmath \ + --enable-libquadmath-support \ + --enable-libsanitizer \ + --disable-libstdcxx-verbose \ + --enable-lto --enable-libcc1 \ + --enable-threads=posix \ + --enable-plugin \ + --with-pkgversion="Anaconda gcc" \ + "${ARCH_CONFIG}" + + echo "Building final gcc compiler ..." + make all + + echo "Installing final gcc compiler ..." + make install-strip + + make install-target-libobjc + + pushd "${WDIR}/gcc_built" + find . -type f -name "*.la" -exec rm {} \; + popd + + if [ -f "${WDIR}/gcc_built/bin/${CFG_TARGET}-gcc" ]; then + ln -sfv "${WDIR}/gcc_built/bin/${CFG_TARGET}-gcc" "${WDIR}/gcc_built/bin/${CFG_TARGET}-cc" + fi + + multi_root=$( "${WDIR}/gcc_built/bin/${CFG_TARGET}-gcc" -print-sysroot ) + if [ ! -e "${multi_root}/lib" ]; then + ln -sfv lib "${multi_root}/lib" + fi + if [ ! -e "${multi_root}/usr/lib" ]; then + ln -sfv lib "${multi_root}/usr/lib" + fi + echo $multi_root + if [ -d "${WDIR}/gcc_built/lib/bfd-plugins" ]; then + gcc_version=$(cat "${WDIR}/gcc/gcc/BASE-VER" ) + ln -sfv "../../libexec/gcc/${CFG_TARGET}/${gcc_version}/liblto_plugin.so" "${WDIR}/gcc_built/lib/bfd-plugins/liblto_plugin.so" + fi + +popd + +multi_root=$( "${CFG_TARGET}-gcc" -print-sysroot ) + +canon_root=$( cd "${multi_root}" && pwd -P ) +canon_prefix=$( cd "${WDIR}/gcc_built" && pwd -P ) + +gcc_dir="${WDIR}/gcc_built/${CFG_TARGET}/lib" +if [ ! -d "${gcc_dir}" ]; then + return +fi +dst_dir="${canon_root}/lib" +rel=$( echo "${gcc_dir#${WDIR}/gcc_built/}" | sed 's#[^/]\{1,\}#..#g' ) + +ls "${gcc_dir}" | while read f; do + case "${f}" in + *.ld) + continue + ;; + esac + if [ -f "${gcc_dir}/${f}" ]; then + mkdir -p "${dst_dir}" + mv "${gcc_dir}/${f}" "${dst_dir}/${f}" + ln -sf "${rel}/${dst_dir#${canon_prefix}/}/${f}" "${gcc_dir}/${f}" + fi +done + +# require working host "gcc" tool for successful configuration of ncurses, strace, ... +pushd "gcc_built/bin" +ln -s ${CFG_TARGET}-gcc gcc +popd + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gdb_server.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gdb_server.sh new file mode 100644 index 0000000000000000000000000000000000000000..0470a8bcd255ebcf3abc6b3c4c6b2a27afc7f6ff --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gdb_server.sh @@ -0,0 +1,61 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/gdb-server" +mkdir -p "${WDIR}/build/gdb-server" +pushd "${WDIR}/build/gdb-server" + + export ac_cv_func_strncmp_works=yes + + export CONFIG_SHELL="/bin/bash" + export SHELL="/bin/bash" + + CC_FOR_BUILD="${HOST}-gcc" \ + CPP="${CFG_TARGET}-cpp" \ + CC="${CFG_TARGET}-gcc" \ + CXX="${CFG_TARGET}-g++" \ + LD="${CFG_TARGET}-ld" \ + CFLAGS="${ARCH_CFLAG}" \ + CXXFLAGS="${ARCH_CFLAG}" \ + LDFLAGS="${TARGET_LDFLAG} ${ARCH_LDFLAG}" \ + bash "${WDIR}/gdb/configure" \ + --build=${HOST} \ + --host=${CFG_TARGET} \ + --target=${CFG_TARGET} \ + --prefix="/usr" --disable-multilib \ + --with-build-sysroot="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" \ + --includedir="${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/include" \ + --without-uiout \ + --disable-gdb \ + --disable-gdbtk \ + --without-x \ + --disable-sim \ + --without-included-gettext \ + --without-develop \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-werror \ + --enable-64bit-bfd \ + --enable-deterministic-archives \ + --program-prefix= \ + --enable-gdbserver \ + --disable-inprocess-agent \ + --disable-binutils \ + --disable-ld \ + --disable-gas \ + --enable-threads \ + --disable-nls + + echo "Building gdb ..." + make + + echo "Installing gdb ..." + make DESTDIR="${WDIR}/gcc_built/${CFG_TARGET}/debug-root" install + + unset ac_cv_func_strncmp_works + +popd + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gdb_target.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gdb_target.sh new file mode 100644 index 0000000000000000000000000000000000000000..fafe4c45c00087a87fc6b79d27c29d02f5f39662 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gdb_target.sh @@ -0,0 +1,67 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/gdb-cross" +mkdir -p "${WDIR}/build/gdb-cross" +pushd "${WDIR}/build/gdb-cross" + + export ac_cv_func_strncmp_works=yes + + export CONFIG_SHELL="/bin/bash" + export SHELL="/bin/bash" + + CC_FOR_BUILD="${HOST}-gcc" \ + CPP="${CFG_TARGET}-cpp" \ + CC="${CFG_TARGET}-gcc" \ + CXX="${CFG_TARGET}-g++" \ + LD="${CFG_TARGET}-ld" \ + CFLAGS="${ARCH_CFLAG}" \ + CXXFLAGS="${ARCH_CFLAG}" \ + LDFLAGS="${HOST_LDFLAG} ${ARCH_LDFLAG}" \ + bash "${WDIR}/gdb/configure" \ + --build=${HOST} \ + --host=${CFG_TARGET} \ + --target=${CFG_TARGET} \ + --prefix=${WDIR}/gcc_built \ + --with-sysroot=${WDIR}/gcc_built/${CFG_TARGET}/sysroot/ \ + --with-build-sysroot="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" \ + --includedir="${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/include" \ + --disable-werror \ + --without-uiout \ + --disable-gdbtk \ + --without-x \ + -disable-sim \ + --without-included-gettext \ + --without-develop \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --program-prefix= \ + --disable-gdbserver \ + --with-curses \ + --with-expat \ + --without-libexpat-prefix \ + --enable-64bit-bfd \ + --disable-multilib \ + --disable-binutils \ + --disable-ld \ + --disable-gas \ + --enable-threads \ + --disable-nls \ + --disable-inprocess-agent \ + --with-python=no + + # --with-python=$PYTHON ... + echo "Building gdb ..." + make + + echo "Installing gdb ..." + + make DESTDIR=${WDIR}/gcc_built/${CFG_TARGET}/debug-root install + + unset ac_cv_func_strncmp_works + +popd + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gettext_host.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gettext_host.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a2a3d85ff9c3a2f3e8a17cf964c1daaa1cbf470 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gettext_host.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +case "${HOST}" in + *linux*) + exit 0 + ;; +esac + +rm -rf "${WDIR}/build/gettext-host" +mkdir "${WDIR}/build/gettext-host" +pushd "${WDIR}/build/gettext-host" + + CFLAGS="-pipe ${HOST_CFLAG}" \ + LDFLAGS="${HOST_LDFLAG}" \ + bash "${WDIR}/gettext/configure" \ + --build=${HOST} \ + --host="${HOST}" \ + --prefix="${WDIR}/buildtools" \ + --enable-static \ + --disable-java \ + --disable-native-java \ + --disable-csharp \ + --without-emacs \ + --disable-openmp \ + --with-included-libxml \ + --with-included-gettext \ + --with-included-glib \ + --with-included-libcroco \ + --with-included-libunistring \ + --with-libncurses-prefix="${WDIR}/buildtools" \ + --with-libiconv-prefix="${WDIR}/buildtools" \ + --without-libpth-prefix + + echo "Building gettext ..." + make + + echo "Installing gettext ..." + make install + +popd + +# save space ... clean up +rm -rf "${WDIR}/build/gettext-host" diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/glibc_core.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/glibc_core.sh new file mode 100644 index 0000000000000000000000000000000000000000..236afcada735570d25f4f8f9fa6346da3f10b1db --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/glibc_core.sh @@ -0,0 +1,117 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +get_min_kernel_config() +{ + version_file="${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/include/linux/version.h" + if [ ! -f "${version_file}" -o ! -r "${version_file}" ]; then + echo "The linux version header is unavailable in installed headers" + exit 1 + fi + v=$(grep -E LINUX_VERSION_CODE "${version_file}" | cut -d' ' -f 3) + v1=$(((v>>16)&0xFF)) + v2=$(((v>>8)&0xFF)) + v3=$((v&0xFF)) + echo "--enable-kernel=${v1}.${v2}.${v3}" +} + +rm -rf "${WDIR}/build/glibc-core" +mkdir -p "${WDIR}/build/glibc-core" +pushd "${WDIR}/build/glibc-core" + + EXTRA_ADDONS="nptl" + EXTRA_CFLAGS= + EXTRA_CONFIG= + EXTRA_ASFLAG= + if [ "${CFG_ARCH}" = "x86" ]; then + EXTRA_CONFIG="--enable-obsolete-rpc" + EXTRA_CFLAGS="-fcommon -Wno-missing-attributes -Wno-array-bounds -Wno-array-parameter -Wno-stringop-overflow -Wno-maybe-uninitialized" + elif [ "${CFG_ARCH}" = "powerpc" ]; then + EXTRA_CFLAGS="-fcommon -Wno-missing-attributes -Wno-array-bounds -Wno-array-parameter -Wno-stringop-overflow -Wno-maybe-uninitialized" + EXTRA_ADDONS="ports,nptl" + EXTRA_ASFLAG="-DBROKEN_PPC_8xx_CPU15" + elif [ "${CFG_ARCH}" = "arm" ]; then + EXTRA_CFLAGS="-fcommon -Wno-missing-attributes -Wno-array-bounds -Wno-array-parameter -Wno-stringop-overflow -Wno-maybe-uninitialized" + # building glibc >=2.26 + EXTRA_ADDONS="" + fi + + touch config.cache + + echo "libc_cv_ssp=no" >>config.cache + echo "libc_cv_ssp_strong=no" >>config.cache + echo "libc_cv_forced_unwind=yes" >>config.cache + echo "libc_cv_c_cleanup=yes" >>config.cache + + printf "\n" > configparms + + echo "ac_cv_path_BASH_SHELL=/bin/bash" >>config.cache + + mkdir -p "${WDIR}/gcc_built/${CFG_TARGET}/sysroot" + + pushd "${WDIR}/gcc_built/bin" + for t in "${CFG_TARGET}-"*; do + if [ "${t}" = "${CFG_TARGET}-*" ]; then + break + fi + _t="${CFG_TARGET}-${t#${CFG_TARGET}-}" + ln -sfv "${WDIR}/gcc_built/bin/${t}" "${WDIR}/buildtools/bin/${_t}" + done + popd + + export LDFLAGS="${TARGET_LDFLAG} ${ARCH_LDFLAG}" + + BUILD_CC="${HOST}-gcc" \ + CC="${CFG_TARGET}-gcc -g -O2 -U_FORTIFY_SOURCE ${ARCH_CFLAG} ${EXTRA_CFLAGS}" \ + CPPFLAGS="-U_FORTIFY_SOURCE" \ + CFLAGS="-U_FORTIFY_SOURCE" \ + AR="${CFG_TARGET}-ar" \ + RANLIB="${CFG_TARGET}-ranlib" LIBS="" \ + bash "${WDIR}/glibc/configure" \ + --prefix=/usr \ + --build=${HOST} \ + --host=${CFG_TARGET} \ + --cache-file="$(pwd)/config.cache" \ + --without-cvs \ + --disable-profile \ + --without-gd \ + --with-headers="${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/include" \ + --with-binutils="${WDIR}/gcc_built/bin" \ + --disable-debug --disable-sanity-checks \ + $(get_min_kernel_config) \ + --with-__thread --with-tls \ + --enable-shared \ + --enable-add-ons="${EXTRA_ADDONS}" \ + --with-pkgversion="Anaconda glibc" \ + --disable-werror ${EXTRA_CONFIG} + + OSX_CPP= + OSX_LD= + case "$HOST" in + *darwin*) + OSX_CPP="-I${WDIR}/buildtools/include/" + OSX_LD="-lintl -liconv" + ;; + esac + + echo "Building glibc library ..." + + ASFLAGS="${EXTRA_ASFLAG}" \ + make default_cflags= CXX= BUILD_CFLAGS="${HOST_CFLAG}" \ + BUILD_CPPFLAGS="${OSX_CPP}" BUILD_LDFLAGS="${HOST_LDFLAG} ${OSX_LD}" \ + all + + echo "Installing glibc library ..." + + make default_cflags= CXX= BUILD_CFLAGS="${HOST_CFLAG}" \ + BUILD_CPPFLAGS="${OSX_CPP}" BUILD_LDFLAGS="${HOST_LDFLAG} ${OSX_LD}" \ + install_root="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" \ + install +popd + +# save space ... clean up +rm -rf "${WDIR}/build/glibc-core" + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gmp_host.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gmp_host.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e7cbf123519382d0ea4f4a241f552ccf65868b8 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gmp_host.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +GMP_HOST=$HOST +OSX_CONFIG= +case "${HOST}" in + *darwin*) + OSX_CONFIG="--with-pic" + ;; + *power*) + GMP_HOST="power8-pc-linux-gnu" + ;; +esac + +rm -rf "${WDIR}/build/gmp-host" +mkdir "${WDIR}/build/gmp-host" +pushd "${WDIR}/build/gmp-host" + + CC="${HOST}-gcc" \ + CFLAGS="-pipe ${HOST_CFLAG} -fexceptions" \ + LDFLAGS="${HOST_LDFLAG}" \ + bash "${WDIR}/gmp/configure" \ + --build=${HOST} \ + --host=${GMP_HOST} \ + --prefix="${WDIR}/buildtools" \ + --enable-fft \ + --enable-cxx \ + --disable-shared \ + --enable-static ${OSX_CONFIG} + + echo "Building gmp ..." + make + + echo "Checking gmp ..." + make -s check + + echo "Installing gmp ..." + make install + +popd + +# clean up ... +rm -rf "${WDIR}/build/gmp-host" + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gmp_target.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gmp_target.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b13dd2dcafc94c257311da408dc44071c39bef5 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gmp_target.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +GMP_HOST=$CFG_TARGET +OSX_CONFIG= +case "${CFG_TARGET}" in + *darwin*) + OSX_CONFIG="--with-pic" + ;; + *power*) + GMP_HOST="power8-pc-linux-gnu" + ;; +esac + +rm -rf "${WDIR}/build/gmp-target" +mkdir "${WDIR}/build/gmp-target" +pushd "${WDIR}/build/gmp-target" + + CC="${CFG_TARGET}-gcc" \ + CXX="${CFG_TARGET}-g++" \ + CFLAGS="${ARCH_CFLAG} -fexceptions" \ + CXXFLAGS="${ARCH_CFLAG}" \ + LDFLAGS="${TARGET_LDFLAG} ${ARCH_LDFLAG}" \ + bash "${WDIR}/gmp/configure" \ + --build=${HOST} \ + --host=${GMP_HOST} \ + --prefix=/usr \ + --enable-fft \ + --enable-cxx \ + --enable-shared \ + --enable-static ${OSX_CONFIG} + + echo "Building gmp ..." + make + + # don't test here as C++ runtime is not working + # for built toolchain at this point + + echo "Installing gmp ..." + make install DESTDIR="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" + +popd + +# clean up ... +rm -rf "${WDIR}/build/gmp-target" + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/isl_host.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/isl_host.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb4ccd86229ade21440a6195e071b48f2d6254e8 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/isl_host.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/isl-host" +mkdir "${WDIR}/build/isl-host" +pushd "${WDIR}/build/isl-host" + + CFLAGS="-pipe ${HOST_CFLAG}" \ + CXXFLAGS="-pipe ${HOST_CFLAG}" \ + LDFLAGS="${HOST_LDFLAG}" \ + bash "${WDIR}/isl/configure" \ + --build=${HOST} \ + --host=${HOST} \ + --prefix="${WDIR}/buildtools" \ + "${extra_config[@]}" \ + --disable-shared \ + --enable-static \ + --with-gmp=system \ + --with-gmp-prefix="${WDIR}/buildtools" \ + --with-clang=no + + echo "Building ISL ..." + make + + echo "Checking ISL ..." + make -s check + + echo "Installing ISL ..." + make install + +popd + +# clean up ... +rm -rf "${WDIR}/build/isl-host" + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/kernel_headers.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/kernel_headers.sh new file mode 100644 index 0000000000000000000000000000000000000000..48a956fd07f167af6b17c8c4026ba2af6c98b983 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/kernel_headers.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/kernel-headers" +mkdir -p "${WDIR}/build/kernel-headers" +pushd "${WDIR}/build/kernel-headers" + + case "${CFG_ARCH}:64" in + arm:64) kernel_arch="arm64";; + *) kernel_arch="${CFG_ARCH}";; + esac + + echo "Installing kernel headers" + make -C "${WDIR}/linux" \ + BASH="$(which bash)" \ + HOSTCC="${HOST}-gcc" \ + CROSS_COMPILE="${CFG_TARGET}-" \ + O="${WDIR}/build/kernel-headers" \ + ARCH=${kernel_arch} \ + INSTALL_HDR_PATH="${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr" \ + V=0 \ + headers_install + + echo "Checking installed headers" + make -C "${WDIR}/linux" \ + BASH="$(which bash)" \ + HOSTCC="${HOST}-gcc" \ + CROSS_COMPILE="${CFG_TARGET}-" \ + O="${WDIR}/build/kernel-headers" \ + ARCH=${kernel_arch} \ + INSTALL_HDR_PATH="${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr" \ + V=0 \ + headers_check + + find "${WDIR}/gcc_built/${CFG_TARGET}/sysroot" -type f \ + \( -name '.install' -o -name '..install.cmd' -o -name '.check' -o -name '..check.cmd' \) -exec rm {} \; + +popd + +# clean up ... +rm -rf "${WDIR}/build/kernel-headers" diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/libelf_target.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/libelf_target.sh new file mode 100644 index 0000000000000000000000000000000000000000..25d05d6edb4a1a09352e466fa5b89cde7f15353d --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/libelf_target.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/libelf-target" +mkdir -p "${WDIR}/build/libelf-target" +pushd "${WDIR}/build/libelf-target" + + CC="${CFG_TARGET}-gcc" \ + RANLIB="${CFG_TARGET}-ranlib" \ + CFLAGS="${ARCH_CFLAG} -fPIC" \ + LDFLAGS="${TARGET_LDFLAG}" \ + bash "${WDIR}/libelf/configure" \ + --build=${HOST} \ + --host=${CFG_TARGET} \ + --target=${CFG_TARGET} \ + --prefix=/usr \ + --enable-compat \ + --enable-elf64 \ + --enable-extended-format \ + --enable-static \ + --enable-shared + + echo "Building libelf ..." + make + + echo "Installing libelf ..." + make instroot="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" install +popd + +# clean up ... +rm -rf "${WDIR}/build/libelf-target" + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/libiconv_host.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/libiconv_host.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8cdb849d35fa0873a2a1d0e51418150fae328cc --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/libiconv_host.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +case "${HOST}" in + *linux*) + exit 0 + ;; +esac + +rm -rf "${WDIR}/build/libiconv-host" +mkdir "${WDIR}/build/libiconv-host" +pushd "${WDIR}/build/libiconv-host" + + CFLAGS="-pipe ${HOST_CFLAG}" \ + LDFLAGS="${HOST_LDFLAG}" \ + bash "${WDIR}/libiconv/configure" \ + --build=${HOST} \ + --host="${HOST}" \ + --prefix="${WDIR}/buildtools" \ + --enable-static \ + --disable-shared \ + --disable-nls + + echo "Building libiconv ..." + make CC="${HOST}-gcc -pipe ${HOST_CFLAG}" + + echo "Installing libiconv ..." + make CC="${HOST}-gcc -pipe ${HOST_CFLAG}" install + +popd + +# clean up ... +rm -rf "${WDIR}/build/libiconv-host" + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ltrace_target.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ltrace_target.sh new file mode 100644 index 0000000000000000000000000000000000000000..492722e0389222d3fe1b59819243edb0128f8a96 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ltrace_target.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/ltrace-target" +mkdir -p "${WDIR}/build/ltrace-target" +pushd "${WDIR}/build/ltrace-target" + cp -r "${WDIR}"/ltrace/* . + + EXTRA_CONFIG= + if [ "${CFG_ARCH}" = "arm" ]; then + cp $BUILD_PREFIX/share/libtool/build-aux/config.* config/autoconf/. + EXTRA_CONFIG="--disable-werror" + fi + # fixes a quirk in makefile, which uses cpu part of triplet + # to determine subfolder name ... + pushd "sysdeps/linux-gnu" + ln -s ppc powerpc64le + popd + + CONFIG_SHELL="/bin/bash" \ + LDFLAGS="${TARGET_LDFLAG}" \ + bash ./configure \ + --build=${HOST} \ + --host=${CFG_TARGET} \ + --prefix=/usr \ + ${EXTRA_CONFIG} \ + --with-gnu-ld + + echo "Building ltrace ..." + make + + echo "Installing ltrace ..." + make DESTDIR="${WDIR}/gcc_built/${CFG_TARGET}/debug-root" install + +popd + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/mpc_host.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/mpc_host.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b30bb9e5935d021f82f8873829e9d0594f23e38 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/mpc_host.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/mpc-host" +mkdir "${WDIR}/build/mpc-host" +pushd "${WDIR}/build/mpc-host" + + CFLAGS="-pipe ${HOST_CFLAG}" \ + LDFLAGS="${HOST_LDFLAG}" \ + bash "${WDIR}/mpc/configure" \ + --build=${HOST} \ + --host=${HOST} \ + --prefix="${WDIR}/buildtools" \ + --with-gmp="${WDIR}/buildtools" \ + --with-mpfr="${WDIR}/buildtools" \ + --disable-shared \ + --enable-static + + echo "Building mpc ..." + make + + echo "Checking mpc ..." + make -s check + + echo "Installing mpc ..." + make install + +popd + +# clean up ... +rm -rf "${WDIR}/build/mpc-host" + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/mpfr_host.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/mpfr_host.sh new file mode 100644 index 0000000000000000000000000000000000000000..3af6b4e1d867ae8d67c4b78d6541db24f57373b5 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/mpfr_host.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +EXTRA_CONFIG="--enable-thread-safe" +case "${HOST}" in + *darwin*) EXTRA_CONFIG="--disable-thread-safe";; +esac + +rm -rf "${WDIR}/build/mpfr-host" +mkdir "${WDIR}/build/mpfr-host" +pushd "${WDIR}/build/mpfr-host" + + CC="${HOST}-gcc" \ + CFLAGS="-pipe ${HOST_CFLAG}" \ + LDFLAGS="${HOST_LDFLAG}" \ + bash "${WDIR}/mpfr/configure" \ + --build=${HOST} \ + --host=${HOST} \ + --prefix="${WDIR}/buildtools" \ + --with-gmp="${WDIR}/buildtools" \ + --disable-shared \ + --enable-static \ + ${EXTRA_CONFIG} + + echo "Building mpfr ..." + make + + # on s390x there are runtime failures with some c++ tests, so ignore them ... + echo "Checking mpfr ..." + make -s check || true + + echo "Installing mpfr ..." + make install + +popd + +# clean up ... +rm -rf "${WDIR}/build/mpfr-host" + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ncurses_build.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ncurses_build.sh new file mode 100644 index 0000000000000000000000000000000000000000..0cac7b995fc9c3e0bb27b835560c259e06414240 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ncurses_build.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/ncurses-build" +mkdir "${WDIR}/build/ncurses-build" +pushd "${WDIR}/build/ncurses-build" + + CFLAGS="${HOST_CFLAG}" \ + LDFLAGS="${HOST_LDFLAG}" \ + bash "${WDIR}/ncurses/configure" \ + --build=${HOST} \ + --host=${HOST} \ + --prefix="" \ + --with-install-prefix="${WDIR}/buildtools" \ + --without-debug \ + --enable-termcap \ + --enable-symlinks \ + --without-manpages \ + --without-tests \ + --without-cxx \ + --without-cxx-binding \ + --without-ada \ + --without-fallbacks + + echo "Building ncurses ..." + make + + echo "Installing ncurses ..." + STRIP="${HOST}-strip" make "install.progs" + +popd + +# clean up ... +rm -rf "${WDIR}/build/ncurses-build" + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ncurses_host.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ncurses_host.sh new file mode 100644 index 0000000000000000000000000000000000000000..f58eb83f5d4eb8e0f7b4b5bef25fe1b2c25549d3 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ncurses_host.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/ncurses-host" +mkdir "${WDIR}/build/ncurses-host" +pushd "${WDIR}/build/ncurses-host" + + CFLAGS="-pipe ${HOST_CFLAG}" \ + LDFLAGS="${HOST_LDFLAG}" \ + bash "${WDIR}/ncurses/configure" \ + --build=${HOST} \ + --host=${HOST} \ + --prefix="${WDIR}/buildtools" \ + --with-install-prefix="${destdir}" \ + --without-debug \ + --enable-termcap \ + --enable-symlinks \ + --without-manpages \ + --without-tests \ + --without-cxx \ + --without-cxx-binding \ + --without-ada \ + --disable-database \ + --disable-db-install \ + --with-fallbacks="linux,xterm,xterm-color,xterm-256color,vt100" + + echo "Building ncurses ..." + make + + echo "Installing ncurses ..." + STRIP="${HOST}-strip" make install + +popd + +# clean up ... +rm -rf "${WDIR}/build/ncurses-host" diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ncurses_target.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ncurses_target.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f99d2e315c448f60616ab2438888ccef91ae46c --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ncurses_target.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/ncurses-target" +mkdir "${WDIR}/build/ncurses-target" +pushd "${WDIR}/build/ncurses-target" + + CFLAGS="${ARCH_CFLAG}" \ + LDFLAGS="${TARGET_LDFLAG}" \ + bash "${WDIR}/ncurses/configure" \ + --build=${HOST} \ + --host=${CFG_TARGET} \ + --prefix="/usr" \ + --with-install-prefix="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" \ + --without-debug \ + --enable-termcap \ + --with-shared \ + --without-sysmouse + + echo "Building ncurses ..." + make + + echo "Installing ncurses ..." + STRIP="${CFG_TARGET}-strip" make install + +popd + +# clean up ... +rm -rf "${WDIR}/build/ncurses-target" + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/strace_target.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/strace_target.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc4030f6d4983aa33efc3cf4d12b1ba426f0da38 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/strace_target.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +set -e + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/strace-target" +mkdir -p "${WDIR}/build/strace-target" +pushd "${WDIR}/build/strace-target" + + CC="${CFG_TARGET}-gcc" \ + CFLAGS="${ARCH_CFLAG}" \ + LDFLAGS="${TARGET_LDFLAG} ${ARCH_LDFLAG}" \ + CPP="${CFG_TARGET}-cpp" \ + LD="${CFG_TARGET}-ld" \ + bash "${WDIR}/strace/configure" \ + --build=${HOST} \ + --host=${CFG_TARGET} \ + --prefix=/usr \ + --enable-mpers=check + + echo "Building strace ..." + make + + echo "Installing strace ..." + make DESTDIR="${WDIR}/gcc_built/${CFG_TARGET}/debug-root" install + +popd + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/zlib_host.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/zlib_host.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b8c90160583ceeed3c9c26a948eb3a51962dc81 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/zlib_host.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +set -ex + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +rm -rf "${WDIR}/build/zlib-host" +mkdir -p "${WDIR}/build/zlib-host" +pushd "${WDIR}/build/zlib-host" + + CFLAGS="-pipe ${HOST_CFLAG}" \ + LDFLAGS="${HOST_LDFLAG}" \ + CHOST="${HOST}" \ + bash "${WDIR}/zlib/configure" \ + --prefix="${WDIR}/buildtools" \ + --static + + echo "Building zlib ..." + make + + echo "Checking zlib ..." + make -s test + + echo "Installing zlib ..." + make install + +popd + +# clean up ... +rm -rf "${WDIR}/build/zlib-host" + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/c11threads.c b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/c11threads.c new file mode 100644 index 0000000000000000000000000000000000000000..1d0b34c8662f7eca07c573c32eadbdf35a8427e3 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/c11threads.c @@ -0,0 +1,6 @@ +#include +int main() { + mtx_t mutex; + mtx_init(&mutex, mtx_plain); +} + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/cleanup.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/cleanup.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab48ae229dfee6bb6befdaf5e5950f96d6b0e3b9 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/cleanup.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -e + +printf "Cleaning up intermediate files ..." + +for f in build gcc_built buildtools binutils gcc_toolchain-sources \ + libelf mpfr expat glibc glibc-ports gmp linux ncurses gcc \ + isl mpc zlib libiconv gettext duma ltrace strace gdb; do + printf "\rCleaning up intermediate files ... \r" + printf "Cleaning up intermediate files ... $f" + rm -rf $f +done + +printf "\rCleaning up intermediate files done \n" + +exit 0 diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/conda_build_config.yaml b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e62134f48b22369934fb112a62bb84c31de2794f --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/conda_build_config.yaml @@ -0,0 +1,49 @@ +c_compiler_version: + - 7.5.0 +cxx_compiler_version: + - 7.5.0 +cpu_arch: + - x86_64 # [linux and x86_64] + - s390x # [linux and s390x] + - powerpc64le # [linux and ppc64le] + - aarch64 # [linux and aarch64] + - dummy # [not linux] +gcc_version: + - 11.2.0 +libgfortran_soname: + - 5 +gcc_version_build_number: + - 0 +_libgcc_mutex: + - 0.1 main +duma_version: + - 2.5.15 +gnu: + - 2.17 # [not aarch64] + - 2.26 # [aarch64] +conda_glibc_ver: + - 2.17 # [not aarch64] + - 2.26 # [aarch64] +kernel_version: + - 3.10.0 # [not aarch64] + - 4.18.20 # [aarch64] +gdb_version: + - 11.2 +gdb_server_version: + - 11.2 +strace_version: + - 5.16 +ltrace_version: + - 0.7.3 # [not aarch64] + - 0.7.91 # [aarch64] +openmp_ver: + - 5.1 +libgomp_ver: + - 1.0.0 + +zip_keys: + - - kernel_version + - conda_glibc_ver + - cpu_arch + - - gcc_version + - libgfortran_soname diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/decompress.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/decompress.sh new file mode 100644 index 0000000000000000000000000000000000000000..f404fc43486e5d275f0dcd618f1fde2ffde61a7a --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/decompress.sh @@ -0,0 +1,71 @@ +#!/bin/bash + +. ${RECIPE_DIR}/build_scripts/build_env.sh + +set -e +echo "Fetching sources ..." + +rm -rf gcc_toolchain-sources +git clone -b "gcc-11.2-${target_platform}" https://github.com/AnacondaRecipes/gcc_toolchain-sources + +echo "Extracting sources ..." + +pushd "gcc_toolchain-sources" + +for f in *.tar.*; do + H=${f/\.tar.*/} + B="$(sed -r -e 's/(\-|_)+[0-9].*//' <<<"${H}" )" + H="$(sed -r -e 's/\.[a-z].*//' <<<"${H}" )" + HH=${H/_/\-} + H="$(sed -r -e 's/\.[a-z].*//' <<<"${H}" )" + F="$(sed -r -e 's/.*\.tar.(.*)/\1/' <<<"${f}" )" + C="" + if [ "${F}" == bz2 ]; then + C="j" + elif [ "${F}" == xz ]; then + C="J" + elif [ "${F}" == gz ]; then + C="z" + fi + printf "\rUncompress \rUncompress ${H} ... " + rm -rf ${WDIR}/${B} ${WDIR}/${H} ${WDIR}/${HH} + cp $f ${WDIR}/. + pushd "${WDIR}" + tar -x${C}f $f + if [ -d ./${H} ]; then + mv $H $B + elif [ -d ./${HH} ]; then + mv $HH $B + else + echo "\nCannot find extracted $H nor $HH ... please check" + exit 1 + fi + # remove copied tar file after decompression ... + rm -f $f + popd +done + +printf "\rUncompressed all source packages successful! \n" + +# create ports support for glibc +ln -s §{WDIR}/glibc-ports ${WDIR}/glibc/ports + +CUR=$PWD/patches + +for f in binutils duma gcc gdb glibc "glibc-ports" gmp libelf ltrace; do + echo "Patching $f ..." + pushd "${WDIR}/${f}" + for g in ${CUR}/${f}/*.patch; do echo "proocess ${g}"; patch -f -p1 -g0 -F1 -i $g; done + popd +done + +case "${HOST}" in + *linux*) + # we don't need them on linux architectures ... part of glibc + rm -rf ${WDIR}/gettext ${WDIR}/libiconv + ;; +esac + +popd + +exit 0 diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/hello-world.cpp b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/hello-world.cpp new file mode 100644 index 0000000000000000000000000000000000000000..abdfa651565e60579d61d05bc45afd98be1d3457 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/hello-world.cpp @@ -0,0 +1,7 @@ +#include + +int main(int argc, char * argv[]) +{ + std::cout << "Hello World!\n" << std::endl; + return 0; +} diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-duma.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-duma.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f66305013269cd692d3f435fc780240dfd78cd7 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-duma.sh @@ -0,0 +1,10 @@ +set -e -x + +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) +export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:${PATH} + +pushd ${SRC_DIR}/build/duma-target + make prefix=${PREFIX} HOSTCC=$(uname -m)-build_pc-linux-gnu-gcc CC=${CHOST}-gcc CXX=${CHOST}-g++ RANLIB=${CHOST}-ranlib OS=linux DUMA_CPP=1 install +popd + +source ${RECIPE_DIR}/install_scripts/make_tool_links.sh diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-g++.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-g++.sh new file mode 100644 index 0000000000000000000000000000000000000000..5fd4cce7e3ebd4a84b7b71b31d837d005011cc41 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-g++.sh @@ -0,0 +1,56 @@ +set -e -x + +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) +declare -a COMMON_MAKE_OPTS=() +COMMON_MAKE_OPTS+=(prefix=${PREFIX} exec_prefix=${PREFIX}) + +_libdir=libexec/gcc/${CHOST}/${PKG_VERSION} +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:${PATH} + +pushd ${SRC_DIR}/build/gcc-final/ + +make -C gcc "${COMMON_MAKE_OPTS[@]}" c++.install-common + +# How it used to be: +# install -m755 -t ${PREFIX}/bin/ gcc/{cc1plus,lto1} +for file in cc1plus; do + if [[ -f gcc/${file} ]]; then + install -c gcc/${file} ${PREFIX}/${_libdir}/${file} + fi +done + +# Following 3 are in libstdcxx-devel +#make -C $CHOST/libstdc++-v3/src "${COMMON_MAKE_OPTS[@]}" install +#make -C $CHOST/libstdc++-v3/include "${COMMON_MAKE_OPTS[@]}" install +#make -C $CHOST/libstdc++-v3/libsupc++ "${COMMON_MAKE_OPTS[@]}" install +make -C $CHOST/libstdc++-v3/python "${COMMON_MAKE_OPTS[@]}" install + +# Probably don't want to do this for cross-compilers +# mkdir -p ${PREFIX}/share/gdb/auto-load/usr/lib/ +# cp ${SRC_DIR}/gcc_built/${CHOST}/sysroot/lib/libstdc++.so.6.*-gdb.py ${PREFIX}/share/gdb/auto-load/usr/lib/ + +make -C libcpp "${COMMON_MAKE_OPTS[@]}" install + +popd + +set +x +# Strip executables, we may want to install to a different prefix +# and strip in there so that we do not change files that are not +# part of this package. +pushd ${PREFIX} + _files=$(find . -type f) + for _file in ${_files}; do + _type="$( file "${_file}" | cut -d ' ' -f 2- )" + case "${_type}" in + *script*executable*) + ;; + *executable*) + ${SRC_DIR}/gcc_built/bin/${CHOST}-strip --strip-unneeded -v "${_file}" || : + ;; + esac + done +popd + +source ${RECIPE_DIR}/install_scripts/make_tool_links.sh diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gcc.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e367bf606ee25b924d6a486a838e568d5a19de8 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gcc.sh @@ -0,0 +1,211 @@ +set -e -x + +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) +declare -a COMMON_MAKE_OPTS=() +COMMON_MAKE_OPTS+=(prefix=${PREFIX} exec_prefix=${PREFIX}) + +_libdir=libexec/gcc/${CHOST}/${PKG_VERSION} +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:${PATH} + +pushd ${SRC_DIR}/build/gcc-final/ + # We may not have built with plugin support so failure here is not fatal: + make "${COMMON_MAKE_OPTS[@]}" install-lto-plugin || true + make -C gcc "${COMMON_MAKE_OPTS[@]}" install-driver install-cpp install-gcc-ar install-headers install-plugin install-lto-wrapper install-collect2 + # not sure if this is the same as the line above. Run both, just in case + make -C lto-plugin "${COMMON_MAKE_OPTS[@]}" install + install -dm755 ${PREFIX}/lib/bfd-plugins/ + + # statically linked, so this so does not exist + # ln -s $PREFIX/lib/gcc/$CHOST/liblto_plugin.so ${PREFIX}/lib/bfd-plugins/ + + make -C libcpp "${COMMON_MAKE_OPTS[@]}" install + + # Include languages we do not have any other place for here (and also lto1) + for file in gnat1 brig1 cc1 go1 lto1 cc1obj cc1objplus; do + if [[ -f gcc/${file} ]]; then + install -c gcc/${file} ${PREFIX}/${_libdir}/${file} + fi + done + + # https://github.com/gcc-mirror/gcc/blob/gcc-7_3_0-release/gcc/Makefile.in#L3481-L3526 + # Could have used install-common, but it also installs cxx binaries, which we + # don't want in this package. We could patch it, or use the loop below: + for file in gcov{,-tool,-dump}; do + if [[ -f gcc/${file} ]]; then + install -c gcc/${file} ${PREFIX}/bin/${CHOST}-${file} + fi + done + + # make -C ${CHOST}/libgcc "${COMMON_MAKE_OPTS[@]}" install + + # mkdir -p $PREFIX/$CHOST/sysroot/lib + + # cp ${SRC_DIR}/gcc_built/$CHOST/sysroot/lib/libgomp.so* $PREFIX/$CHOST/sysroot/lib + # if [ -e ${SRC_DIR}/gcc_built/$CHOST/sysroot/lib/libquadmath.so* ]; then + # cp ${SRC_DIR}/gcc_built/$CHOST/sysroot/lib/libquadmath.so* $PREFIX/$CHOST/sysroot/lib + # fi + + make prefix=${PREFIX}/lib/gcc/${CHOST}/${gcc_version} \ + exec_prefix=${PREFIX}/lib/gcc/${CHOST}/${gcc_version} install-libcc1 + install -d ${PREFIX}/share/gdb/auto-load/usr/lib + + make "${COMMON_MAKE_OPTS[@]}" install-fixincludes + make -C gcc "${COMMON_MAKE_OPTS[@]}" install-mkheaders + + if [[ -d ${CHOST}/libgomp ]]; then + make -C ${CHOST}/libgomp "${COMMON_MAKE_OPTS[@]}" install-nodist_{libsubinclude,toolexeclib}HEADERS + fi + + if [[ -d ${CHOST}/libitm ]]; then + make -C ${CHOST}/libitm "${COMMON_MAKE_OPTS[@]}" install-nodist_toolexeclibHEADERS + fi + + if [[ -d ${CHOST}/libquadmath ]]; then + make -C ${CHOST}/libquadmath "${COMMON_MAKE_OPTS[@]}" install-nodist_libsubincludeHEADERS + fi + + if [[ -d ${CHOST}/libsanitizer ]]; then + make -C ${CHOST}/libsanitizer "${COMMON_MAKE_OPTS[@]}" install-nodist_{saninclude,toolexeclib}HEADERS + fi + + if [[ -d ${CHOST}/libsanitizer/asan ]]; then + make -C ${CHOST}/libsanitizer/asan "${COMMON_MAKE_OPTS[@]}" install-nodist_toolexeclibHEADERS + fi + + if [[ -d ${CHOST}/libsanitizer/tsan ]]; then + make -C ${CHOST}/libsanitizer/tsan "${COMMON_MAKE_OPTS[@]}" install-nodist_toolexeclibHEADERS + fi + + make -C libiberty "${COMMON_MAKE_OPTS[@]}" install + # install PIC version of libiberty + install -m644 libiberty/pic/libiberty.a ${PREFIX}/lib/gcc/${CHOST}/${gcc_version} + + make -C gcc "${COMMON_MAKE_OPTS[@]}" install-man install-info + + make -C gcc "${COMMON_MAKE_OPTS[@]}" install-po + + # many packages expect this symlink + [[ -f ${PREFIX}/bin/${CHOST}-cc ]] && rm ${PREFIX}/bin/${CHOST}-cc + pushd ${PREFIX}/bin + ln -s ${CHOST}-gcc ${CHOST}-cc + popd + + # POSIX conformance launcher scripts for c89 and c99 + cat > ${PREFIX}/bin/${CHOST}-c89 <<"EOF" +#!/bin/sh +fl="-std=c89" +for opt; do + case "$opt" in + -ansi|-std=c89|-std=iso9899:1990) fl="";; + -std=*) echo "`basename $0` called with non ANSI/ISO C option $opt" >&2 + exit 1;; + esac +done +exec gcc $fl ${1+"$@"} +EOF + + cat > ${PREFIX}/bin/${CHOST}-c99 <<"EOF" +#!/bin/sh +fl="-std=c99" +for opt; do + case "$opt" in + -std=c99|-std=iso9899:1999) fl="";; + -std=*) echo "`basename $0` called with non ISO C99 option $opt" >&2 + exit 1;; + esac +done +exec gcc $fl ${1+"$@"} +EOF + + chmod 755 ${PREFIX}/bin/${CHOST}-c{8,9}9 + + rm ${PREFIX}/bin/${CHOST}-gcc-${PKG_VERSION} + +popd + +# Install kernel headers +kernel_arch=${cpu_arch} +if [[ ${kernel_arch} == aarch64 ]]; then + kernel_arch=arm64 +elif [[ ${kernel_arch} == i686 ]]; then + kernel_arch=x86 +elif [[ ${kernel_arch} == s390x ]]; then + kernel_arch=s390 +fi + + +# generate specfile so that we can patch loader link path +# link_libgcc should have the gcc's own libraries by default (-R) +# so that LD_LIBRARY_PATH isn't required for basic libraries. +# +# GF method here to create specs file and edit it. The other methods +# tried had no effect on the result. including: +# setting LINK_LIBGCC_SPECS on configure +# setting LINK_LIBGCC_SPECS on make +# setting LINK_LIBGCC_SPECS in gcc/Makefile +specdir=$PREFIX/lib/gcc/$CHOST/${gcc_version} +$PREFIX/bin/${CHOST}-gcc -dumpspecs > $specdir/specs +# We use double quotes here because we want $PREFIX and $CHOST to be expanded at build time +# and recorded in the specs file. It will undergo a prefix replacement when our compiler +# package is installed. +sed -i -e "/\*link_libgcc:/,+1 s+%.*+& -rpath ${PREFIX}/lib+" $specdir/specs + +# Install Runtime Library Exception +install -Dm644 $SRC_DIR/gcc/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/gcc/$CHOST/RUNTIME.LIBRARY.EXCEPTION + +# Next problem: macOS targetting uClibc ends up with broken symlinks in sysroot/usr/lib: +if [[ $(uname) == Darwin ]]; then + pushd ${PREFIX}/${CHOST}/sysroot/usr/lib64 + links=$(find . -type l | cut -c 3-) + for link in ${links}; do + target=$(readlink ${link} | sed 's#^/##' | sed 's#//#/#') + rm ${link} + ln -s ${target} ${link} + done + popd +fi + +# Install the crosstool-ng config program to help with reproducibility: +# cp ${SRC_DIR}/gcc_built/bin/${CHOST}-ct-ng.config ${PREFIX}/bin + +set +x +# Strip executables, we may want to install to a different prefix +# and strip in there so that we do not change files that are not +# part of this package. +pushd ${PREFIX} + _files=$(find . -type f) + for _file in ${_files}; do + _type="$( file "${_file}" | cut -d ' ' -f 2- )" + case "${_type}" in + *script*executable*) + ;; + *executable*) + ${SRC_DIR}/gcc_built/bin/${CHOST}-strip --strip-unneeded -v "${_file}" || : + ;; + esac + done +popd + +#${PREFIX}/bin/${CHOST}-gcc "${RECIPE_DIR}"/c11threads.c -std=c11 + +# making these this way so conda build doesn't muck with them +pushd ${PREFIX}/${CHOST}/sysroot/lib64 + ln -sf ../../../lib/libgomp.so libgomp.so +popd + +# make links to libs in the sysroot +for lib in libgcc_s libstdc++ libgfortran libatomic libquadmath libitm lib{a,l,ub,t}san; do + ln -s ${PREFIX}/lib/${lib}.so* ${PREFIX}/${CHOST}/sysroot/lib64/ +done + +# Copy the liblto_plugin.so from the build tree. This is something of a hack and, on OSes other +# than the build OS, may cause segfaults. This plugin is used by gcc-ar, gcc-as and gcc-ranlib. +pushd ${SRC_DIR}/build/gcc-final/gcc/ + mkdir -p ${PREFIX}/libexec/gcc/${CHOST}/${TOP_PKG_VERSION}/ + cp -a liblto* ${PREFIX}/libexec/gcc/${CHOST}/${TOP_PKG_VERSION}/ +popd + +source ${RECIPE_DIR}/install_scripts/make_tool_links.sh diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gdb-server.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gdb-server.sh new file mode 100644 index 0000000000000000000000000000000000000000..89b92843669cb5c4af78d3f75186ec8195b71a5f --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gdb-server.sh @@ -0,0 +1,33 @@ +set -e -x + +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) + +# libtool wants to use ranlib that is here +# for psuedo-cross, depending on the build and host, +# build-gdb-native could be used (it will have been built +# with the newer GCC instead of the system one). +pushd ${SRC_DIR}/build/gdb-server + export PATH=${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:$PATH + make prefix=${PREFIX} install + # Gets installed by binutils: + rm ${PREFIX}/share/info/bfd.info +popd + +set +x +# Strip executables, we may want to install to a different prefix +# and strip in there so that we do not change files that are not +# part of this package. +pushd ${PREFIX} + _files=$(find . -type f) + for _file in ${_files}; do + _type="$( file "${_file}" | cut -d ' ' -f 2- )" + case "${_type}" in + *script*executable*) + ;; + *executable*) + ${SRC_DIR}/gcc_built/bin/${CHOST}-strip --strip-unneeded -v "${_file}" || : + ;; + esac + done +popd + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gdb.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gdb.sh new file mode 100644 index 0000000000000000000000000000000000000000..f013408ac996394233236257b500378c28f0cb36 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gdb.sh @@ -0,0 +1,34 @@ +set -e -x + +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) + +# libtool wants to use ranlib that is here +# for psuedo-cross, depending on the build and host, +# build-gdb-native could be used (it will have been built +# with the newer GCC instead of the system one). +pushd ${SRC_DIR}/build/gdb-cross + export PATH=${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:$PATH + make prefix=${PREFIX} install + # Gets installed by binutils: + rm ${PREFIX}/share/info/bfd.info +popd + +set +x +# Strip executables, we may want to install to a different prefix +# and strip in there so that we do not change files that are not +# part of this package. +pushd ${PREFIX} + _files=$(find . -type f) + for _file in ${_files}; do + _type="$( file "${_file}" | cut -d ' ' -f 2- )" + case "${_type}" in + *script*executable*) + ;; + *executable*) + ${SRC_DIR}/gcc_built/bin/${CHOST}-strip --strip-unneeded -v "${_file}" || : + ;; + esac + done +popd + +source ${RECIPE_DIR}/install_scripts/make_tool_links.sh diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gfortran.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gfortran.sh new file mode 100644 index 0000000000000000000000000000000000000000..c35ab6bea2d684dea40f02c98eec93c6f7b57f1b --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gfortran.sh @@ -0,0 +1,76 @@ +set -e -x + +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) +declare -a COMMON_MAKE_OPTS=() +COMMON_MAKE_OPTS+=(prefix=${PREFIX} exec_prefix=${PREFIX}) + +_libdir=libexec/gcc/${CHOST}/${PKG_VERSION} +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:${PATH} + +pushd ${SRC_DIR}/build/gcc-final/ + +# adapted from Arch install script from https://github.com/archlinuxarm/PKGBUILDs/blob/master/core/gcc/PKGBUILD +# We cannot make install since .la files are not relocatable so libtool deliberately prevents it: +# libtool: install: error: cannot install `libgfortran.la' to a directory not ending in ${SRC_DIR}/work/gcc_built/${CHOST}/lib/../lib +make -C ${CHOST}/libgfortran "${COMMON_MAKE_OPTS[@]}" all-multi libgfortran.spec ieee_arithmetic.mod ieee_exceptions.mod ieee_features.mod config.h +make -C gcc "${COMMON_MAKE_OPTS[@]}" fortran.install-{common,man,info} + +# How it used to be: +# install -Dm755 gcc/f951 ${PREFIX}/${_libdir}/f951 +for file in f951; do + if [[ -f gcc/${file} ]]; then + install -c gcc/${file} ${PREFIX}/${_libdir}/${file} + fi +done + +cp ${CHOST}/libgfortran/libgfortran.spec ${PREFIX}/${CHOST}/sysroot/lib64 + +pushd ${PREFIX}/bin + ln -s ${CHOST}-gfortran ${CHOST}-f95 +popd + +popd + +mkdir -p $PREFIX/lib/gcc/${CHOST}/${gcc_version}/finclude +rsync -av ${SRC_DIR}/gcc_built/lib/gcc/${CHOST}/${gcc_version}/finclude/ $PREFIX/lib/gcc/${CHOST}/${gcc_version}/finclude + +# Install Runtime Library Exception +install -Dm644 $SRC_DIR/gcc/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/gcc-fortran/RUNTIME.LIBRARY.EXCEPTION + +# generate specfile so that we can patch loader link path +# link_libgcc should have the gcc's own libraries by default (-R) +# so that LD_LIBRARY_PATH isn't required for basic libraries. +# +# GF method here to create specs file and edit it. The other methods +# tried had no effect on the result. including: +# setting LINK_LIBGCC_SPECS on configure +# setting LINK_LIBGCC_SPECS on make +# setting LINK_LIBGCC_SPECS in gcc/Makefile +specdir=`dirname $($PREFIX/bin/${CHOST}-gfortran -print-libgcc-file-name -no-canonical-prefixes)` +mv $PREFIX/bin/${CHOST}-gfortran $PREFIX/bin/${CHOST}-gfortran.bin +echo '#!/bin/sh' > $PREFIX/bin/${CHOST}-gfortran +echo $PREFIX/bin/${CHOST}-gfortran.bin -specs=$specdir/specs '"$@"' >> $PREFIX/bin/${CHOST}-gfortran +chmod +x $PREFIX/bin/${CHOST}-gfortran + +set +x +# Strip executables, we may want to install to a different prefix +# and strip in there so that we do not change files that are not +# part of this package. +pushd ${PREFIX} + _files=$(find . -type f) + for _file in ${_files}; do + _type="$( file "${_file}" | cut -d ' ' -f 2- )" + case "${_type}" in + *script*executable*) + ;; + *executable*) + ${SRC_DIR}/gcc_built/bin/${CHOST}-strip --strip-unneeded -v "${_file}" || : + ;; + esac + done +popd + +source ${RECIPE_DIR}/install_scripts/make_tool_links.sh diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libgcc-devel.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libgcc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e4f817ff535a25399cceea8526783d19db09d2e --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libgcc-devel.sh @@ -0,0 +1,21 @@ +set -e -x + +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) +declare -a COMMON_MAKE_OPTS=() +COMMON_MAKE_OPTS+=(prefix=${PREFIX} exec_prefix=${PREFIX}) + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:${PATH} + +pushd ${SRC_DIR}/build/gcc-final/ + +make -C ${CHOST}/libgcc "${COMMON_MAKE_OPTS[@]}" install + +# These go into libgcc output +rm -rf ${PREFIX}/${CHOST}/lib +# This is in gcc_impl as it is gcc specific and clang has the same header +rm -rf ${PREFIX}/lib/gcc/${CHOST}/${gcc_version}/include/unwind.h + +popd + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libgcc-no-gomp.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libgcc-no-gomp.sh new file mode 100644 index 0000000000000000000000000000000000000000..834d0225194438f5a17f417cd89a356d9c17805f --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libgcc-no-gomp.sh @@ -0,0 +1,26 @@ +set -e -x + +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) + +# we have to remove existing links/files so that the libgcc install works +rm -rf ${PREFIX}/lib/* +rm -rf ${PREFIX}/share/* +rm -f ${PREFIX}/${CHOST}/sysroot/lib64/libgomp* + +# now run install of libgcc +# this reinstalls the wrong symlinks for openmp +source ${RECIPE_DIR}/install_scripts/install-libgcc.sh + +# remove and relink things for openmp +rm -f ${PREFIX}/lib/libgomp.so +rm -f ${PREFIX}/${CHOST}/sysroot/lib64/libgomp.so +rm -f ${PREFIX}/lib/libgomp.so.${libgomp_ver:0:1} +rm -f ${PREFIX}/${CHOST}/sysroot/lib64/libgomp.so.${libgomp_ver:0:1} +rm -f ${PREFIX}/${CHOST}/sysroot/lib64/libgomp.so.${libgomp_ver} + +# (re)make the right links +# note that this code is remaking more links than the ones we want in this +# package but that is ok +pushd ${PREFIX}/lib + ln -s libgomp.so.${libgomp_ver} libgomp.so.${libgomp_ver:0:1} +popd diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libgcc.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libgcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7089cbe5b27b489b7558cbc284aa1f427f4d5480 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libgcc.sh @@ -0,0 +1,53 @@ +set -e -x + +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) +declare -a COMMON_MAKE_OPTS=() +COMMON_MAKE_OPTS+=(prefix=${PREFIX} exec_prefix=${PREFIX}) + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:${PATH} + +pushd ${SRC_DIR}/build/gcc-final/ + + make -C ${CHOST}/libgcc "${COMMON_MAKE_OPTS[@]}" install-shared + + # TODO :: Also do this for libgfortran (and libstdc++ too probably?) + sed -i.bak 's/.*cannot install.*/func_warning "Ignoring libtool error about cannot install to a directory not ending in"/' \ + ${CHOST}/libsanitizer/libtool + for lib in libatomic libgomp libquadmath libitm libvtv libsanitizer/{a,l,ub,t}san; do + # TODO :: Also do this for libgfortran (and libstdc++ too probably?) + if [[ -f ${CHOST}/${lib}/libtool ]]; then + sed -i.bak 's/.*cannot install.*/func_warning "Ignoring libtool error about cannot install to a directory not ending in"/' \ + ${CHOST}/${lib}/libtool + fi + if [[ -d ${CHOST}/${lib} ]]; then + make -C ${CHOST}/${lib} "${COMMON_MAKE_OPTS[@]}" install-toolexeclibLTLIBRARIES + make -C ${CHOST}/${lib} "${COMMON_MAKE_OPTS[@]}" install-nodist_fincludeHEADERS || true + fi + done + + for lib in libgomp libquadmath; do + if [[ -d ${CHOST}/${lib} ]]; then + make -C ${CHOST}/${lib} "${COMMON_MAKE_OPTS[@]}" install-info + fi + done + +popd + +mkdir -p ${PREFIX}/lib + +# no static libs +find ${PREFIX}/${CHOST}/lib64 -name "*\.a" -exec rm -rf {} \; +# no libtool files +find ${PREFIX}/${CHOST}/lib64 -name "*\.la" -exec rm -rf {} \; + +if [[ "${PKG_NAME}" != gcc_impl* ]]; then + mv ${PREFIX}/${CHOST}/lib64/* ${PREFIX}/lib + # clean up empty folder + rm -rf ${PREFIX}/lib/gcc + + # Install Runtime Library Exception + install -Dm644 ${SRC_DIR}/gcc/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION +fi diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libgfortran.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libgfortran.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0092bb03533088da02dc533e0c8a54fee42613d --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libgfortran.sh @@ -0,0 +1,18 @@ +set -e -x + +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:${PATH} + +mkdir -p ${PREFIX}/lib/ +rm -f ${PREFIX}/lib/libgfortran* || true + +cp -f --no-dereference ${SRC_DIR}/build/gcc-final/${CHOST}/libgfortran/.libs/libgfortran*.so* ${PREFIX}/lib/ + +# patchelf --set-rpath '$ORIGIN' ${PREFIX}/lib/libgfortran*.so* + +# Install Runtime Library Exception +install -Dm644 $SRC_DIR/gcc/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/libgfortran/RUNTIME.LIBRARY.EXCEPTION diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libgomp.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libgomp.sh new file mode 100644 index 0000000000000000000000000000000000000000..8bbb4d726ce1e5c71bf31256da2f3df5b71c4769 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libgomp.sh @@ -0,0 +1,26 @@ +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) + +# stash what we need and rm -rf the rest +tmp_dir=$(mktemp -d -t ci-XXXXXXXXXX) +cp -r ${PREFIX}/${CHOST}/sysroot ${tmp_dir}/sysroot + +source ${RECIPE_DIR}/install_scripts/install-libgcc.sh + +# stash what we need and rm -rf the rest +cp ${PREFIX}/lib/libgomp.so.${libgomp_ver} ${tmp_dir}/libgomp.so.${libgomp_ver} +cp -r ${PREFIX}/conda-meta ${tmp_dir}/conda-meta +rm -rf ${PREFIX}/* + +# copy back and make the right links +cp -r ${tmp_dir}/conda-meta ${PREFIX}/conda-meta +mkdir -p ${PREFIX}/${CHOST} +cp -r ${tmp_dir}/sysroot ${PREFIX}/${CHOST}/sysroot +mkdir -p ${PREFIX}/lib +cp ${tmp_dir}/libgomp.so.${libgomp_ver} ${PREFIX}/lib/libgomp.so.${libgomp_ver} +ln -s ${PREFIX}/lib/libgomp.so.${libgomp_ver} ${PREFIX}/lib/libgomp.so + +# Install Runtime Library Exception +install -Dm644 ${SRC_DIR}/gcc/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION.gomp_copy + +rm -rf ${tmp_dir} diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libstdc++-devel.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libstdc++-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..336d5dc0325878d3314883d18da06c1110d5fcd2 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libstdc++-devel.sh @@ -0,0 +1,18 @@ +set -e -x + +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) +declare -a COMMON_MAKE_OPTS=() +COMMON_MAKE_OPTS+=(prefix=${PREFIX} exec_prefix=${PREFIX}) + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:${PATH} + +pushd ${SRC_DIR}/build/gcc-final/ + +make -C $CHOST/libstdc++-v3/src "${COMMON_MAKE_OPTS[@]}" install +make -C $CHOST/libstdc++-v3/include "${COMMON_MAKE_OPTS[@]}" install +make -C $CHOST/libstdc++-v3/libsupc++ "${COMMON_MAKE_OPTS[@]}" install + +popd + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libstdc++.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libstdc++.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4a82288f8298f9d7d775ae44a0ec6dec88c996e --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-libstdc++.sh @@ -0,0 +1,30 @@ +set -e -x + +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) +declare -a COMMON_MAKE_OPTS=() +COMMON_MAKE_OPTS+=(prefix=${PREFIX} exec_prefix=${PREFIX}) + +# libtool wants to use ranlib that is here, macOS install doesn't grok -t etc +# .. do we need this scoped over the whole file though? +export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:${PATH} + +pushd ${SRC_DIR}/build/gcc-final/ + + make -C ${CHOST}/libstdc++-v3/src "${COMMON_MAKE_OPTS[@]}" install-toolexeclibLTLIBRARIES + make -C ${CHOST}/libstdc++-v3/po "${COMMON_MAKE_OPTS[@]}" install + +popd + +mkdir -p ${PREFIX}/lib +mv ${PREFIX}/${CHOST}/lib64/* ${PREFIX}/lib + +# patchelf --set-rpath '$ORIGIN' ${PREFIX}/lib/libstdc++.so + +# no static libs +find ${PREFIX}/lib -name "*\.a" -exec rm -rf {} \; +# no libtool files +find ${PREFIX}/lib -name "*\.la" -exec rm -rf {} \; + +# Install Runtime Library Exception +install -Dm644 ${SRC_DIR}/gcc/COPYING.RUNTIME \ + ${PREFIX}/share/licenses/libstdc++/RUNTIME.LIBRARY.EXCEPTION diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-ltrace.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-ltrace.sh new file mode 100644 index 0000000000000000000000000000000000000000..efb8a234051d7aee5b75167e2f53fc51f9195a6d --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-ltrace.sh @@ -0,0 +1,11 @@ +set -e -x + +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) +export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:${PATH} + +pushd ${SRC_DIR}/build/ltrace-target + make DESTDIR="${PREFIX}" install +popd + +source ${RECIPE_DIR}/install_scripts/make_tool_links.sh + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-openmp_impl.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-openmp_impl.sh new file mode 100644 index 0000000000000000000000000000000000000000..65fcddfb06c7ab17c4e638d57fa58c14769fdf9b --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-openmp_impl.sh @@ -0,0 +1,9 @@ +set -e -x + +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) + +mkdir -p ${PREFIX}/lib + +pushd ${PREFIX}/lib/ +ln -s libgomp.so.${libgomp_ver} libgomp.so.${libgomp_ver:0:1} +popd diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-strace.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-strace.sh new file mode 100644 index 0000000000000000000000000000000000000000..2089efdfde63b588301da77318126ed555411861 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-strace.sh @@ -0,0 +1,11 @@ +set -e -x + +CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine) +export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:${PATH} + +pushd ${SRC_DIR}/build/strace-target + make DESTDIR="${PREFIX}" install +popd + +source ${RECIPE_DIR}/install_scripts/make_tool_links.sh + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/make_tool_links.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/make_tool_links.sh new file mode 100644 index 0000000000000000000000000000000000000000..057037c25561d09865d4187fc63f9409993ebbdb --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/make_tool_links.sh @@ -0,0 +1,13 @@ +# There are now just centos 7 variants +old_vendor="-conda_cos7-linux-gnu-" + +if [ -d "${PREFIX}/bin" ]; then + for exe in $(ls ${PREFIX}/bin/*-conda-linux-gnu-* || true); do + nm=`basename ${exe}` + new_nm=${nm/"-conda-linux-gnu-"/${old_vendor}} + if [ ! -f ${PREFIX}/bin/${new_nm} ]; then + ln -s ${exe} ${PREFIX}/bin/${new_nm} + fi +done +fi + diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/meta.yaml b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ad0d03311e78ef0a9461461e5534c07d695b4b1c --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/meta.yaml @@ -0,0 +1,528 @@ +{% set build_num = gcc_version_build_number %} + +# You can use this to allow investigating errors in more recent glibcs than +# you have RPMs to make the sysroot packages from. +{% set hack_sysroot_ver = False %} +# {% set hack_sysroot_ver = '2.17' %} + +{% set build_string = 'h' + PKG_HASH + '_' + PKG_BUILDNUM %} + +package: + name: gcc-compiler + version: {{ gcc_version }} + +source: + path: . + +build: + merge_build_host: False + # defined in conda_build_config.yaml so that we can keep it associated + # with a particular GCC version number + number: {{ build_num | default(0) }} + string: {{ build_string }} + skip: True # [not linux] + # The CentOS7 system libraries should be used for everything here. + # We do not have CDT packages yet, nor compilers that would use them! + missing_dso_whitelist: + - "*" + +requirements: + build: + # due a conda-build issue compiler-activation can't be used as + # it leads to direct conflicts ... + # - {{ compiler('c') }} + # - {{ compiler('cxx') }} + # instead we install this dependency during build + - llvm-tools # [osx] + - make + - bash # [not (ppc64le or s390x or aarch64)] + - autoconf + - automake + - libtool + - bison + - flex + - sed + - patch + - gawk + - m4 + - help2man + - texinfo + - git + # Need something here so that build does not get installed to a long prefix + # as that breaks on some systems. + host: + - bison + +outputs: + - name: libgcc-devel_{{ target_platform }} + script: install_scripts/install-libgcc-devel.sh + build: + number: {{ build_num }} + string: {{ build_string }} + detect_binary_files_with_prefix: False + binary_relocation: False + missing_dso_whitelist: + - "*" + requirements: + host: + - sysroot_{{ target_platform }} + test: + commands: + - test -f ${PREFIX}/lib/gcc/{{ cpu_arch }}-conda-linux-gnu/{{ gcc_version }}/crtbegin.o + about: + summary: The GNU C development libraries and object files + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libstdcxx-devel_{{ target_platform }} + script: install_scripts/install-libstdc++-devel.sh + build: + number: {{ build_num }} + string: {{ build_string }} + detect_binary_files_with_prefix: False + binary_relocation: False + missing_dso_whitelist: + - "*" + test: + commands: + - test -f ${PREFIX}/{{ cpu_arch }}-conda-linux-gnu/lib64/libstdc++.a + about: + summary: The GNU C++ headers and development libraries + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: gcc_impl_{{ target_platform }} + script: install_scripts/install-gcc.sh + build: + number: {{ build_num }} + string: {{ build_string }} + detect_binary_files_with_prefix: False + binary_relocation: + - 'bin/*' + - 'lib/*.so*' + - 'libexec/**/*.so*' + - 'libexec/**/cc1*' + - 'libexec/**/collect2' + - 'libexec/**/gcc' + - 'libexec/**/lto*' + - 'libexec/**/plugin/gengtype' + missing_dso_whitelist: + - '*' + runpath_whitelist: + - "x86_64-conda-linux-gnu/sysroot/lib/libpthread-2.12.2.so" + - "aarch64-conda-linux-gnu/sysroot/lib64/libpthread-2.26.so" + ignore_run_exports: + - __glibc + - libgomp + - sysroot_{{ target_platform }} + requirements: + host: + - {{ pin_subpackage("libgomp", exact=True) }} + - {{ pin_subpackage("libstdcxx-ng", exact=True) }} + - {{ pin_subpackage("libgcc-ng", exact=True) }} + - {{ pin_subpackage("libgfortran" ~ libgfortran_soname) }} + - sysroot_{{ target_platform }} {{ conda_glibc_ver }} + run: + - binutils_impl_{{ target_platform }} >=2.38 + - {{ pin_subpackage("libgcc-devel_" ~ target_platform, exact=True) }} + # libstdcxx-ng is a runtime dep of gcc because LTO requires it. + - {{ pin_subpackage("libstdcxx-ng", max_pin=None) }} + - {{ pin_subpackage("libgcc-ng", max_pin=None) }} + - {{ pin_subpackage("libgomp", max_pin=None) }} + - sysroot_{{ target_platform }} + - libstdcxx-ng >=4.9 + - libgcc-ng >=4.9 + run_exports: + # impose this requirement across the build/host boundary + strong: + - libgcc-ng >={{ gcc_version }} + test: + requires: +{% if hack_sysroot_ver %} + - sysroot_{{ target_platform }} {{ hack_sysroot_ver }}.* +{% else %} + - sysroot_{{ target_platform }} {{ conda_glibc_ver }}.* +{% endif %} + files: + - tests + commands: + - echo {{ target_platform }} + - echo {{ conda_glibc_ver }} + - echo conda + - echo {{ kernel_version }} + - test -f ${PREFIX}/{{ cpu_arch }}-conda-linux-gnu/sysroot/lib/libgomp.so + - test `readlink ${PREFIX}/{{ cpu_arch }}-conda-linux-gnu/sysroot/lib/libgomp.so` == "../../../lib/libgomp.so" + - test `readlink ${PREFIX}/lib/libgomp.so` == "libgomp.so.1.0.0" + - test -f ${PREFIX}/bin/{{ cpu_arch }}-conda_cos7-linux-gnu-gcc + - CC=$(${PREFIX}/bin/*-gcc -dumpmachine)-gcc + - ${CC} -Wall tests/aligned_alloc.c -c -o c_aligned.o -v + - ${CC} -Wall c_aligned.o -o c_aligned -v && ./c_aligned + about: + summary: GNU C Compiler + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: gxx_impl_{{ target_platform }} + script: install_scripts/install-g++.sh + build: + number: {{ build_num }} + string: {{ build_string }} + detect_binary_files_with_prefix: False + binary_relocation: + - 'bin/*' + - 'lib/*.so' + - 'libexec/**/*.so*' + - 'libexec/**/cc1*' + missing_dso_whitelist: + - "*" + ignore_run_exports: + - __glibc + - sysroot_{{ target_platform }} + requirements: + host: + # For cpp and crt{i,n}.o + - {{ pin_subpackage("gcc_impl_" ~ target_platform, exact=True) }} + run: + # For cpp and crt{i,n}.o + - {{ pin_subpackage("gcc_impl_" ~ target_platform, exact=True) }} + # not needed due to pinning above but marks this build as using the new sysroots + - sysroot_{{ target_platform }} + - {{ pin_subpackage("libstdcxx-devel_" ~ target_platform, exact=True) }} + run_exports: + # impose this requirement across the build/host boundary + strong: + - libstdcxx-ng >={{ gcc_version }} + test: + requires: +{% if hack_sysroot_ver %} + - sysroot_{{ target_platform }} {{ hack_sysroot_ver }}.* +{% else %} + - sysroot_{{ target_platform }} {{ conda_glibc_ver }}.* +{% endif %} + files: + - tests + commands: + - test -f ${PREFIX}/bin/{{ cpu_arch }}-conda_cos7-linux-gnu-g++ + - test -f ${PREFIX}/bin/{{ cpu_arch }}-conda-linux-gnu-g++ + - CXX=$(${PREFIX}/bin/*-gcc -dumpmachine)-g++ + - ${CXX} -Wall tests/aligned_alloc.cpp -c -o cpp_aligned.o --std=c++17 + - ${CXX} -Wall cpp_aligned.o -o cpp_aligned --std=c++17 && ./cpp_aligned + about: + summary: GNU C++ Compiler + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: gfortran_impl_{{ target_platform }} + script: install_scripts/install-gfortran.sh + build: + number: {{ build_num }} + string: {{ build_string }} + detect_binary_files_with_prefix: False + binary_relocation: + - 'bin/*' + - 'lib/*.so' + - 'libexec/**/*.so*' + - 'libexec/**/f951' + missing_dso_whitelist: + - "*" + ignore_run_exports: + - __glibc + - sysroot_{{ target_platform }} + requirements: + build: + # For cpp and crt{i,n}.o + - {{ pin_subpackage("gcc_impl_" ~ target_platform, exact=True) }} + host: + - {{ pin_subpackage("gcc_impl_" ~ target_platform, exact=True) }} + # not needed due to pinning above but marks this build as using the new sysroots + - sysroot_{{ target_platform }} + run: + # For cpp and crt{i,n}.o + - gcc_impl_{{ target_platform }} >={{ gcc_version }} + - {{ pin_subpackage("libgfortran" ~ libgfortran_soname) }} + - {{ pin_subpackage("libgcc-ng", max_pin=None) }} + - sysroot_{{ target_platform }} + - libgcc-ng >=4.9 + - libstdcxx-ng >=4.9 + run_exports: + # impose this requirement across the build/host boundary + strong: + - libgfortran{{ libgfortran_soname }} {{ gcc_version }}.* + - libgcc-ng >={{ gcc_version }} + test: + requires: + - cmake +{% if hack_sysroot_ver %} + - sysroot_{{ target_platform }} {{ hack_sysroot_ver }}.* +{% else %} + - sysroot_{{ target_platform }} {{ conda_glibc_ver }}.* +{% endif %} + commands: + - test -f ${PREFIX}/bin/{{ cpu_arch }}-conda_cos7-linux-gnu-gfortran + - test -f ${PREFIX}/bin/{{ cpu_arch }}-conda-linux-gnu-gfortran + - find $PREFIX/lib -iname omp_lib.mod | grep '.' + - find $PREFIX/lib -iname omp_lib.h | grep '.' + - pushd tests/fortomp || exit 1 + - sh test_fort.sh || true + - popd + files: + - tests/fortomp/* + about: + summary: GNU Fortran Compiler + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libstdcxx-ng + target: {{ target_platform }} + script: install_scripts/install-libstdc++.sh + build: + number: {{ build_num }} + string: {{ build_string }} + detect_binary_files_with_prefix: False + binary_relocation: False + missing_dso_whitelist: + - "*" + ignore_run_exports: + - __glibc + requirements: + host: + - sysroot_{{ target_platform }} + test: + commands: + - test -f ${PREFIX}/lib/libstdc++.so + about: + summary: The GNU C++ Runtime Library + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libgcc-ng + target: {{ target_platform }} + script: install_scripts/install-libgcc-no-gomp.sh + requirements: + host: + - {{ pin_subpackage("libgomp", exact=True) }} + - {{ pin_subpackage('_openmp_mutex', exact=True) }} + - sysroot_{{ target_platform }} + run: + - _libgcc_mutex {{ _libgcc_mutex }} + - _openmp_mutex + run_constrained: + - {{ pin_subpackage("libgomp", exact=True) }} + - _libgcc_mutex {{ _libgcc_mutex }} + - _openmp_mutex + build: + number: {{ build_num }} + string: {{ build_string }} + detect_binary_files_with_prefix: False + binary_relocation: False + missing_dso_whitelist: + - "*" + ignore_run_exports: + - __glibc + - _openmp_mutex + test: + requires: + - sysroot_{{ target_platform }} + commands: + - test -f ${PREFIX}/lib/libgcc_s.so + - test -f ${PREFIX}/lib/libgomp.so.{{ libgomp_ver[0:1] }} + - test `readlink ${PREFIX}/lib/libgomp.so.{{ libgomp_ver[0:1] }}` == "libgomp.so.{{ libgomp_ver }}" + about: + summary: The GCC low-level runtime library + home: https://gcc.gnu.org/onlinedocs/gccint/Libgcc.html + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libgomp + target: {{ target_platform }} + script: install_scripts/install-libgomp.sh + requirements: + host: + - sysroot_{{ target_platform }} + run: + - _libgcc_mutex {{ _libgcc_mutex }} + build: + number: {{ build_num }} + string: {{ build_string }} + detect_binary_files_with_prefix: False + binary_relocation: False + missing_dso_whitelist: + - "*" + run_exports: + strong: + - {{ pin_subpackage("_openmp_mutex", max_pin=None) }} + ignore_run_exports: + - __glibc + test: + requires: + - sysroot_{{ target_platform }} + commands: + - test -f ${PREFIX}/lib/libgomp.so.{{ libgomp_ver }} + - test ! -f ${PREFIX}/lib/libgomp.so.{{ libgomp_ver[0:1] }} + about: + summary: The GCC OpenMP implementation. + home: https://gcc.gnu.org/onlinedocs/gccint/Libgcc.html + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: _openmp_mutex + script: install_scripts/install-openmp_impl.sh + version: {{ openmp_ver }} + requirements: + run: + - _libgcc_mutex {{ _libgcc_mutex }} + - libgomp >=7.5.0 + run_constrained: + # conflict with previous name + - openmp_impl 9999 + build: + string: 1_gnu + run_exports: + strong: + - {{ pin_subpackage("_openmp_mutex", max_pin=None) }} + test: + commands: + - test -f ${PREFIX}/lib/libgomp.so.{{ libgomp_ver[0:1] }} + - test `readlink ${PREFIX}/lib/libgomp.so.{{ libgomp_ver[0:1] }}` == "libgomp.so.{{ libgomp_ver }}" + about: + summary: OpenMP Implementation Mutex + license: BSD-3-Clause + license_file: ../LICENSE + home: https://github.com/AnacondaRecipes/gcc-compiler-feedstock + + - name: libgfortran-ng + target: {{ target_platform }} + build: + requirements: + run: + - libgfortran{{ libgfortran_soname }} {{ gcc_version }}.* + test: + commands: + - test -f ${PREFIX}/lib/libgfortran.so + about: + summary: The GNU Fortran Runtime Library + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + - name: libgfortran{{ libgfortran_soname }} + target: {{ target_platform }} + script: install_scripts/install-libgfortran.sh + build: + number: {{ build_num }} + string: {{ build_string }} + detect_binary_files_with_prefix: False + binary_relocation: False + missing_dso_whitelist: + - "*" + ignore_run_exports: + - __glibc + requirements: + host: + - sysroot_{{ target_platform }} + run_constrained: + - libgfortran-ng {{ gcc_version }} *_{{ build_num | default(0) }} + test: + commands: + - test -f ${PREFIX}/lib/libgfortran.so + about: + summary: The GNU Fortran Runtime Library + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + + {% if gdb_version is defined %} + - name: gdb_{{ target_platform }} + target: {{ target_platform }} + version: {{ gdb_version }} + script: install_scripts/install-gdb.sh + build: + number: {{ build_num }} + string: {{ build_string }} + missing_dso_whitelist: + - "*" + about: + summary: The GNU Project Debugger + home: https://www.gnu.org/software/gdb/ + license: GPL + {% endif %} + + {% if gdb_server_version is defined %} + - name: gdb_server_{{ target_platform }} + target: {{ target_platform }} + version: {{ gdb_server_version }} + script: install_scripts/install-gdb-server.sh + build: + number: {{ build_num }} + string: {{ build_string }} + missing_dso_whitelist: + - "*" + about: + summary: The GNU Project Debugger + home: https://www.gnu.org/software/gdb/ + license: GPL + {% endif %} + + {% if ltrace_version is defined %} + - name: ltrace_{{ target_platform }} + target: {{ target_platform }} + version: {{ ltrace_version }} + script: install_scripts/install-ltrace.sh + build: + number: {{ build_num }} + string: {{ build_string }} + missing_dso_whitelist: + - "*" + about: + summary: Ltrace is a debugging tool for recording library calls, and signals + home: https://alioth.debian.org/projects/ltrace/ + license: GPL + {% endif %} + + {% if strace_version is defined %} + - name: strace_{{ target_platform }} + target: {{ target_platform }} + script: install_scripts/install-strace.sh + build: + number: {{ build_num }} + string: {{ build_string }} + missing_dso_whitelist: + - "*" + about: + summary: Strace is a linux diagnostic, and debugging utility with cli + home: https://strace.io + license: GPL + {% endif %} + + {% if duma_version is defined %} + - name: duma_{{ target_platform }} + target: {{ target_platform }} + version: {{ duma_version }} + script: install_scripts/install-duma.sh + build: + number: {{ build_num }} + string: {{ build_string }} + detect_binary_files_with_prefix: False + binary_relocation: + - 'bin/*' + - 'lib/*.so*' + - 'libexec/**/*.so*' + missing_dso_whitelist: + - "*" + about: + summary: DUMA is an open-source library to detect buffer overruns and under-runs in C and C++ programs. + home: http://duma.sourceforge.net/ + license: GPL + {% endif %} + +# make the linter happy +about: + summary: GNU Compiler Collection + home: https://gcc.gnu.org/ + license: GPL-3.0-only WITH GCC-exception-3.1 + license_file: + - gcc/COPYING + - gcc/COPYING.lib + - gcc/COPYING.RUNTIME + - gcc/COPYING3 + - COPYING3.lib + +extra: + recipe-maintainers: + - katietz diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/tests/aligned_alloc.c b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/tests/aligned_alloc.c new file mode 100644 index 0000000000000000000000000000000000000000..287be94c7340a134a5d9a56ddc0f6c20acc0af74 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/tests/aligned_alloc.c @@ -0,0 +1,9 @@ +#include +#include + +int main(void) +{ + int *p2 = (int*)aligned_alloc(1024, 1024*sizeof *p2); + printf("1024-byte aligned addr: %p\n", (void*)p2); + free(p2); +} diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/tests/aligned_alloc.cpp b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/tests/aligned_alloc.cpp new file mode 100644 index 0000000000000000000000000000000000000000..1379c7547ae63e12433db910d243f159657aa0b6 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/tests/aligned_alloc.cpp @@ -0,0 +1,18 @@ +#include +#include +#include +//#include + +int main(void) +{ + /// int *p2 = (int*)memalign(1024, 1024 * sizeof *p2); + int *p2; + int err = posix_memalign((void**)&p2, 1024, sizeof *p2); + printf("1024-byte aligned addr: %p\n", (void*)p2); + free(p2); + p2 = (int*)std::aligned_alloc(1024, 1); + printf("1024-byte aligned addr: %p\n", (void*)p2); + std::free(p2); + p2 = (int*)aligned_alloc(1024, 1024); + printf("1024-byte aligned addr: %p\n", (void*)p2); +} diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/tests/fortomp/CMakeLists.txt b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/tests/fortomp/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..491a48b42cb3ddfef5f8541f8db848e0ba844f84 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/tests/fortomp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.3 FATAL_ERROR) +project(fortomp + LANGUAGES Fortran) + +find_package(OpenMP REQUIRED) diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/tests/fortomp/test_fort.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/tests/fortomp/test_fort.sh new file mode 100644 index 0000000000000000000000000000000000000000..75731b653df023e75c4d2b73b2c345a3510faad9 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/tests/fortomp/test_fort.sh @@ -0,0 +1,11 @@ +GFORTRAN=$(${PREFIX}/bin/*-gcc -dumpmachine)-gfortran +FFLAGS="-fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe" + +cmake \ + -H${SRC_DIR} \ + -Bbuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_Fortran_COMPILER=${GFORTRAN} \ + -DCMAKE_Fortran_FLAGS="${FFLAGS}" \ + . diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/repodata_record.json b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..ba64a9974dabdcb12f0d26dacf752176320f3c23 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/repodata_record.json @@ -0,0 +1,24 @@ +{ + "arch": "x86_64", + "build": "1_gnu", + "build_number": 0, + "channel": "https://repo.anaconda.com/pkgs/main/linux-64/", + "constrains": [ + "openmp_impl 9999" + ], + "depends": [ + "_libgcc_mutex 0.1 main", + "libgomp >=7.5.0" + ], + "fn": "_openmp_mutex-5.1-1_gnu.conda", + "license": "BSD-3-Clause", + "md5": "71d281e9c2192cb3fa425655a8defb85", + "name": "_openmp_mutex", + "platform": "linux", + "sha256": "576011048d23f2e03372263493c5529f802286ff53e8426df99a5b11cc2572f3", + "size": 21315, + "subdir": "linux-64", + "timestamp": 1652859733000, + "url": "https://repo.anaconda.com/pkgs/main/linux-64/_openmp_mutex-5.1-1_gnu.conda", + "version": "5.1" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/run_exports.json b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/run_exports.json new file mode 100644 index 0000000000000000000000000000000000000000..651209d88e837325f2878435ec222d56b5b5bdf4 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/run_exports.json @@ -0,0 +1 @@ +{"strong": ["_openmp_mutex >=5.1"]} \ No newline at end of file diff --git a/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/test/run_test.sh b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..6008c8ce770d1bfec230dd7fa5ad8452379233e4 --- /dev/null +++ b/data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/test/run_test.sh @@ -0,0 +1,9 @@ + + +set -ex + + + +test -f ${PREFIX}/lib/libgomp.so.1 +test `readlink ${PREFIX}/lib/libgomp.so.1` == "libgomp.so.1.0.0" +exit 0 diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/bin/crt/link.stub b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/bin/crt/link.stub new file mode 100644 index 0000000000000000000000000000000000000000..4522ad3dfd14089e94e0a81d0b4dee996fc10dc0 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/bin/crt/link.stub @@ -0,0 +1,186 @@ +/* + * NVIDIA_COPYRIGHT_BEGIN + * + * Copyright (c) 2011-2024, NVIDIA CORPORATION. All rights reserved. + * + * NVIDIA CORPORATION and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA CORPORATION is strictly prohibited. + * + * NVIDIA_COPYRIGHT_END + */ + +#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__) +#if defined(_MSC_VER) +#pragma message("crt/link.stub is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.") +#else +#warning "crt/link.stub is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead." +#endif +#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__ +#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_LINK_STUB__ +#endif + +#include /* for size_t */ +#include "crt/host_defines.h" + +#if defined(__GNUC__) +#if defined(__clang__) || (!defined(__PGIC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))) +#pragma GCC diagnostic push +#endif +#if defined(__clang__) || (!defined(__PGIC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))) +#pragma GCC diagnostic ignored "-Wcast-qual" +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-variable" +#pragma GCC diagnostic ignored "-Wunused-function" +#endif +#endif + +static void **__cudaFatCubinHandle; +extern "C" { +extern void** CUDARTAPI __cudaRegisterFatBinary( + void *fatCubin +); + +extern void CUDARTAPI __cudaRegisterFatBinaryEnd( + void **fatCubinHandle +); + +extern void CUDARTAPI __cudaUnregisterFatBinary( + void **fatCubinHandle +); +static void __cudaUnregisterBinaryUtil(void) +{ + __cudaUnregisterFatBinary(__cudaFatCubinHandle); +} +#if defined(__HORIZON__) + +#define atexit(p) + +#elif defined(__GNUC__) && !defined(__ANDROID__) + +#if __cplusplus >= 201103L + +extern int atexit(void(*)(void)) noexcept; + +#else /* __cplusplus < 201103L */ + +extern int atexit(void(*)(void)) throw(); + +#endif /* __cplusplus >= 201103L */ + +#else /* __GNUC__ && !__ANDROID__ */ + +extern int __cdecl atexit(void(__cdecl *)(void)); + +#endif /* __GNUC__ && !__ANDROID__ */ + +} + +#include + +static inline void __cudaRegisterLinkedBinary (const __fatBinC_Wrapper_t *prelinked_fatbinc, void (*callback_fp)(void **), void *); + +#define __REGISTERFUNCNAME_CORE(X) __cudaRegisterLinkedBinary##X +#define __REGISTERFUNCNAME(X) __REGISTERFUNCNAME_CORE(X) +#define __DEFSTRNAME_CORE(X) def_module_id_str##X +#define __DEFSTRNAME(X) __DEFSTRNAME_CORE(X) +#define __TO_STRING_CORE(X) #X +#define __TO_STRING(X) __TO_STRING_CORE(X) +#define __FATIDNAME_CORE(X) __fatbinwrap##X +#define __FATIDNAME(X) __FATIDNAME_CORE(X) + +#if defined(_WIN32) +#define DEFINE_REGISTER_FUNC(id) \ +extern const __fatBinC_Wrapper_t __FATIDNAME(id); \ +static const __declspec(align(1)) __declspec(allocate("__nv_module_id")) unsigned char __DEFSTRNAME(id) [] = "def " __TO_STRING(id); \ +void __REGISTERFUNCNAME(id) (void (*callback_fp)(void **), void *prelinked_fatbinc, void *, void (*dummy_ref)(void *)) \ +{ \ + volatile static const unsigned char *__p; \ + __p = __DEFSTRNAME(id); \ + dummy_ref((void *)&__p); \ + __cudaRegisterLinkedBinary(&__FATIDNAME(id), callback_fp, (void *)&__DEFSTRNAME(id)); \ +} +#elif defined(__APPLE__) +#define DEFINE_REGISTER_FUNC(id) \ +extern const __fatBinC_Wrapper_t __FATIDNAME(id); \ +static const unsigned char __DEFSTRNAME(id) [] __attribute__((aligned(1))) __attribute__((section ("__NV_CUDA,__nv_module_id"))) = "def " __TO_STRING(id); \ +void __REGISTERFUNCNAME(id) (void (*callback_fp)(void **), void *prelinked_fatbinc, void *, void (*dummy_ref)(void *)) \ +{ \ + volatile static const unsigned char *__p; \ + __p = __DEFSTRNAME(id); \ + dummy_ref((void *)&__p); \ + __cudaRegisterLinkedBinary(&__FATIDNAME(id), callback_fp, (void *)&__DEFSTRNAME(id)); \ +} +#else /* linux */ +#define DEFINE_REGISTER_FUNC(id) \ +extern const __fatBinC_Wrapper_t __FATIDNAME(id); \ +static const unsigned char __DEFSTRNAME(id) [] __attribute__((aligned(1))) __attribute__((section ("__nv_module_id"))) = "def " __TO_STRING(id); \ +void __REGISTERFUNCNAME(id) (void (*callback_fp)(void **), void *prelinked_fatbinc, void *, void (*dummy_ref)(void *)) \ +{ \ + volatile static const unsigned char *__p; \ + __p = __DEFSTRNAME(id); \ + dummy_ref((void *)&__p); \ + __cudaRegisterLinkedBinary(&__FATIDNAME(id), callback_fp, (void *)&__DEFSTRNAME(id)); \ +} +#endif + +extern "C" { +#if defined(_WIN32) +#pragma data_seg("__nv_module_id") +#endif /* _WIN32 */ +#include REGISTERLINKBINARYFILE +#if defined(_WIN32) +#pragma data_seg() +#endif /* _WIN32 */ +} + +static void* __cudaPrelinkedFatbins[NUM_PRELINKED_OBJECTS+1]; + +#include FATBINFILE + +#if defined(__PGI) +__attribute__((unused)) +#endif /* __PGI */ +static inline void __cudaRegisterLinkedBinary ( + const __fatBinC_Wrapper_t *prelinked_fatbinc, + void (*callback_fp)(void **), + void *) +{ + static void (*__callback_array[NUM_PRELINKED_OBJECTS+1])(void **); + static int __i = 0; + __cudaPrelinkedFatbins[__i] = (void*)prelinked_fatbinc->data; + __callback_array[__i] = callback_fp; + ++__i; + if (__i == NUM_PRELINKED_OBJECTS) { + __NV_EXTRA_INITIALIZATION + __cudaPrelinkedFatbins[__i] = NULL; + __cudaFatCubinHandle = __cudaRegisterFatBinary((void*)&__fatDeviceText); + atexit(__cudaUnregisterBinaryUtil); + __NV_EXTRA_FINALIZATION + for (__i = 0; __i < NUM_PRELINKED_OBJECTS; ++__i) { + (*(__callback_array[__i]))(__cudaFatCubinHandle); + } + __cudaRegisterFatBinaryEnd(__cudaFatCubinHandle); + } +} + +#if defined(__GNUC__) +#if defined(__clang__) || (!defined(__PGIC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))) +#pragma GCC diagnostic pop +#endif +#endif + +#if defined(__REGISTERFUNCNAME_CORE) && defined(__REGISTERFUNCNAME) && \ + defined(__DEFSTRNAME_CORE) && defined(__DEFSTRNAME) && \ + defined(__TO_STRING_CORE) && defined(__TO_STRING) && \ + defined(__FATIDNAME_CORE) && defined(__FATIDNAME) && \ + defined(DEFINE_REGISTER_FUNC) +/* Nothing; used to silence "-Wunused-macros" warnings, if specified. */ +#endif + +#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_LINK_STUB__) +#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__ +#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_LINK_STUB__ +#endif diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/bin/crt/prelink.stub b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/bin/crt/prelink.stub new file mode 100644 index 0000000000000000000000000000000000000000..82c1246b3cc87c688e5083c8cc39eab4f1e5fbf4 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/bin/crt/prelink.stub @@ -0,0 +1,95 @@ +/* + * NVIDIA_COPYRIGHT_BEGIN + * + * Copyright (c) 2012-2021, NVIDIA CORPORATION. All rights reserved. + * + * NVIDIA CORPORATION and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA CORPORATION is strictly prohibited. + * + * NVIDIA_COPYRIGHT_END + */ + +#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__) +#if defined(_MSC_VER) +#pragma message("crt/prelink.stub is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.") +#else +#warning "crt/prelink.stub is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead." +#endif +#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__ +#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_PRELINK_STUB__ +#endif + +#if defined(__GNUC__) +#if defined(__clang__) || (!defined(__PGIC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))) +#pragma GCC diagnostic push +#endif +#if defined(__clang__) || (!defined(__PGIC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))) +#pragma GCC diagnostic ignored "-Wcast-qual" +#endif +#endif + +#include FATBINFILE + +#if defined(_WIN32) +__declspec(selectany) void *__nv__fatDeviceText_dummy = (void *)&__FATIDNAME(__NV_MODULE_ID); +#else +void *__nv__fatDeviceText_dummy __attribute__((weak)) = (void *)&__FATIDNAME(__NV_MODULE_ID); +; +#endif + +#define __TO_STRING_CORE(X) #X +#define __TO_STRING(X) __TO_STRING_CORE(X) +#define __REGISTER_IDNAME_CORE(X) __sti__cudaRegisterLocal_##X +#define __REGISTER_IDNAME(X) __REGISTER_IDNAME_CORE(X) +#define __REGISTER_LINKED_IDNAME_CORE(X) __cudaRegisterLinkedBinary##X +#define __REGISTER_LINKED_IDNAME(X) __REGISTER_LINKED_IDNAME_CORE(X) + +static void ____nv_dummy_param_ref(void *param) { +#if defined(__GNUC__) + volatile static void **__ref __attribute__((unused)); +#else + volatile static void **__ref; +#endif + __ref = (volatile void **)param; } + +extern "C" { +#if defined(_WIN32) +#pragma data_seg("__nv_module_id") +static const __declspec(allocate("__nv_module_id")) unsigned char __module_id_str[] = __TO_STRING(__NV_MODULE_ID); +#pragma data_seg() +#elif defined(__APPLE__) +static const unsigned char __module_id_str[] __attribute__((section ("__NV_CUDA,__nv_module_id"))) = __TO_STRING(__NV_MODULE_ID); +#else /* linux */ +static const unsigned char __module_id_str[] __attribute__((section ("__nv_module_id"))) = __TO_STRING(__NV_MODULE_ID); +#endif +} + +extern "C" void __REGISTER_LINKED_IDNAME(__NV_MODULE_ID) ( void (*)(void **), void *, void *, void (*)(void *)); +static void __nv_cudaEntityRegisterCallback(void **){} + +#if defined(_WIN32) +static void __sti____cudaRegisterAll_14_simple_cpp1_ii__Z3foov(void); +static void __REGISTER_IDNAME(__NV_MODULE_ID) (void); +#pragma section(".CRT$XCT",read) +#define __DUMMY_INIT_CORE(X) __dumY_static_init__sti__cudaRegisterLocal_##X +#define __DUMMY_INIT(X) __DUMMY_INIT_CORE(X) +__declspec(allocate(".CRT$XCT")) static void (*__DUMMY_INIT(__NV_MODULE_ID)[])(void) = {__REGISTER_IDNAME(__NV_MODULE_ID)}; +#else +static void __REGISTER_IDNAME(__NV_MODULE_ID) (void) __attribute__((__constructor__)); +#endif + +static void __REGISTER_IDNAME(__NV_MODULE_ID) (void){{ __REGISTER_LINKED_IDNAME(__NV_MODULE_ID)(( void (*)(void **))(__nv_cudaEntityRegisterCallback), (void *)&__FATIDNAME(__NV_MODULE_ID), (void *)&__module_id_str, (void (*)(void *))&____nv_dummy_param_ref); };} + +#if defined(__GNUC__) +#if defined(__clang__) || (!defined(__PGIC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))) +#pragma GCC diagnostic pop +#endif +#endif + +#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_PRELINK_STUB__) +#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__ +#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_PRELINK_STUB__ +#endif diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/about.json b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..e812e0352e671a45fc452f7ae1de07711a0be460 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/about.json @@ -0,0 +1,165 @@ +{ + "channels": [ + "https://repo.anaconda.com/pkgs/main", + "https://repo.anaconda.com/pkgs/r", + "https://repo.anaconda.com/pkgs/main" + ], + "conda_build_version": "25.1.2", + "conda_version": "25.1.1", + "description": "CUDA internal tools.\n", + "doc_url": "https://docs.nvidia.com/cuda/index.html", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "feedstock-name": "cuda-nvcc-impl", + "final": true, + "parent_recipe": { + "name": "cuda-nvcc-impl-split", + "path": "/home/task_175891970154079/cuda-nvcc-impl-feedstock/recipe", + "version": "12.8.93" + }, + "recipe-maintainers": [ + "conda-forge/cuda" + ] + }, + "home": "https://developer.nvidia.com/cuda-toolkit", + "identifiers": [], + "keywords": [], + "license": "LicenseRef-NVIDIA-End-User-License-Agreement", + "license_file": "LICENSE", + "license_url": "https://docs.nvidia.com/cuda/eula/index.html", + "root_pkgs": [ + "_libgcc_mutex 0.1 main", + "ca-certificates 2025.9.9 h06a4308_0", + "ld_impl_linux-64 2.40 h12ee557_0", + "libstdcxx-ng 11.2.0 h1234567_1", + "nlohmann_json 3.11.2 h6a678d5_0", + "pybind11-abi 5 hd3eb1b0_0", + "tzdata 2025a h04d1e81_0", + "libgomp 11.2.0 h1234567_1", + "_openmp_mutex 5.1 1_gnu", + "libgcc-ng 11.2.0 h1234567_1", + "bzip2 1.0.8 h5eee18b_6", + "c-ares 1.19.1 h5eee18b_0", + "cpp-expected 1.1.0 hdb19cb5_0", + "expat 2.6.4 h6a678d5_0", + "fmt 9.1.0 hdb19cb5_1", + "icu 73.1 h6a678d5_0", + "libev 4.33 h7f8727e_1", + "libffi 3.4.4 h6a678d5_1", + "libuuid 1.41.5 h5eee18b_0", + "lz4-c 1.9.4 h6a678d5_1", + "ncurses 6.4 h6a678d5_0", + "liblief 0.12.3 h6a678d5_0", + "reproc 14.2.4 h6a678d5_2", + "simdjson 3.10.1 hdb19cb5_0", + "xz 5.4.6 h5eee18b_1", + "yaml-cpp 0.8.0 h6a678d5_1", + "zlib 1.2.13 h5eee18b_1", + "libedit 3.1.20230828 h5eee18b_0", + "libnghttp2 1.57.0 h2d74bed_0", + "libssh2 1.11.1 h251f7ec_0", + "libxml2 2.13.5 hfdd30dd_0", + "pcre2 10.42 hebb0a14_1", + "readline 8.2 h5eee18b_0", + "reproc-cpp 14.2.4 h6a678d5_2", + "spdlog 1.11.0 hdb19cb5_0", + "tk 8.6.14 h39e8969_0", + "zstd 1.5.6 hc292b87_0", + "krb5 1.20.1 h143b758_1", + "libarchive 3.7.7 hfab0078_0", + "libsolv 0.7.30 he621ea3_1", + "sqlite 3.45.3 h5eee18b_0", + "libcurl 8.11.1 hc9e6f67_0", + "python 3.12.9 h5148396_0", + "libmamba 2.0.5 haf1ee3a_1", + "menuinst 2.2.0 py312h06a4308_1", + "anaconda-anon-usage 0.5.0 py312hfc0e8ea_100", + "annotated-types 0.6.0 py312h06a4308_0", + "archspec 0.2.3 pyhd3eb1b0_0", + "boltons 24.1.0 py312h06a4308_0", + "brotli-python 1.0.9 py312h6a678d5_9", + "charset-normalizer 3.3.2 pyhd3eb1b0_0", + "distro 1.9.0 py312h06a4308_0", + "frozendict 2.4.2 py312h06a4308_0", + "idna 3.7 py312h06a4308_0", + "jsonpointer 2.1 pyhd3eb1b0_0", + "libmambapy 2.0.5 py312hdb19cb5_1", + "mdurl 0.1.0 py312h06a4308_0", + "packaging 24.2 py312h06a4308_0", + "platformdirs 3.10.0 py312h06a4308_0", + "pluggy 1.5.0 py312h06a4308_0", + "pycosat 0.6.6 py312h5eee18b_2", + "pycparser 2.21 pyhd3eb1b0_0", + "pygments 2.15.1 py312h06a4308_1", + "pysocks 1.7.1 py312h06a4308_0", + "ruamel.yaml.clib 0.2.8 py312h5eee18b_0", + "setuptools 75.8.0 py312h06a4308_0", + "tqdm 4.67.1 py312he106c6f_0", + "truststore 0.10.0 py312h06a4308_0", + "typing_extensions 4.12.2 py312h06a4308_0", + "wheel 0.45.1 py312h06a4308_0", + "cffi 1.17.1 py312h1fdaa30_1", + "jsonpatch 1.33 py312h06a4308_1", + "markdown-it-py 2.2.0 py312h06a4308_1", + "pip 25.0 py312h06a4308_0", + "ruamel.yaml 0.18.6 py312h5eee18b_0", + "typing-extensions 4.12.2 py312h06a4308_0", + "urllib3 2.3.0 py312h06a4308_0", + "cryptography 43.0.3 py312h7825ff9_1", + "pydantic-core 2.27.1 py312h4aa5aa6_0", + "requests 2.32.3 py312h06a4308_1", + "rich 13.9.4 py312h06a4308_0", + "zstandard 0.23.0 py312h2c38b39_1", + "conda-content-trust 0.2.0 py312h06a4308_1", + "conda-package-streaming 0.11.0 py312h06a4308_0", + "pydantic 2.10.3 py312h06a4308_0", + "conda-package-handling 2.4.0 py312h06a4308_0", + "conda 25.1.1 py312h06a4308_0", + "conda-anaconda-tos 0.1.2 py312h06a4308_0", + "conda-libmamba-solver 25.1.1 pyhd3eb1b0_0", + "libsodium 1.0.18 h7b6447c_0", + "openssl 3.0.17 h5eee18b_0", + "patch 2.8 hb25bd0a_0", + "patchelf 0.17.2 h6a678d5_0", + "yaml 0.2.5 h7b6447c_0", + "argcomplete 3.6.2 py312h06a4308_0", + "attrs 24.3.0 py312h06a4308_0", + "certifi 2025.8.3 py312h06a4308_0", + "chardet 5.2.0 py312h06a4308_0", + "click 8.2.1 py312h06a4308_0", + "filelock 3.17.0 py312h06a4308_0", + "jmespath 1.0.1 py312h06a4308_0", + "markupsafe 3.0.2 py312h5eee18b_0", + "more-itertools 10.3.0 py312h06a4308_0", + "pkginfo 1.12.0 py312h06a4308_0", + "psutil 7.0.0 py312hee96239_0", + "py-lief 0.12.3 py312h6a678d5_0", + "python-libarchive-c 5.1 pyhd3eb1b0_0", + "pytz 2025.2 py312h06a4308_0", + "pyyaml 6.0.2 py312h5eee18b_0", + "rpds-py 0.22.3 py312h4aa5aa6_0", + "six 1.17.0 py312h06a4308_0", + "soupsieve 2.5 py312h06a4308_0", + "tomlkit 0.13.2 py312h06a4308_0", + "xmltodict 0.14.2 py312h06a4308_0", + "jinja2 3.1.6 py312h06a4308_0", + "python-dateutil 2.9.0post0 py312h06a4308_2", + "referencing 0.30.2 py312h06a4308_0", + "yq 3.4.3 py312h06a4308_0", + "beautifulsoup4 4.13.5 py312h06a4308_0", + "botocore 1.37.10 py312h06a4308_0", + "jsonschema-specifications 2023.7.1 py312h06a4308_0", + "pynacl 1.5.0 py312h5eee18b_1", + "jsonschema 4.25.0 py312h06a4308_0", + "s3transfer 0.11.2 py312h06a4308_0", + "boto3 1.37.10 py312h06a4308_0", + "conda-anaconda-telemetry 0.3.0 pyhd3eb1b0_1", + "conda-index 0.5.0 py312h06a4308_0", + "conda-build 25.1.2 py312h06a4308_0" + ], + "summary": "CUDA internal tools.", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/files b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/files new file mode 100644 index 0000000000000000000000000000000000000000..6c12b15f2fb7b7b6de877a84a00602f483d40306 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/files @@ -0,0 +1,2 @@ +bin/crt/link.stub +bin/crt/prelink.stub diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/git b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/hash_input.json b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..e1489271625fa4f5548417553f3725447d4df321 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/hash_input.json @@ -0,0 +1,4 @@ +{ + "channel_targets": "defaults", + "target_platform": "linux-64" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/index.json b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..e775252d95df17e42bf82098a3be6ada66c9a18c --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/index.json @@ -0,0 +1,14 @@ +{ + "arch": "x86_64", + "build": "h06a4308_3", + "build_number": 3, + "depends": [ + "cuda-version >=12.8,<12.9.0a0" + ], + "license": "LicenseRef-NVIDIA-End-User-License-Agreement", + "name": "cuda-crt-tools", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1758920528949, + "version": "12.8.93" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/licenses/LICENSE b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..6622367aff6567f25c18f500137a36caf101ea50 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/licenses/LICENSE @@ -0,0 +1,1632 @@ +End User License Agreement +-------------------------- + +NVIDIA Software License Agreement and CUDA Supplement to +Software License Agreement. + +The CUDA Toolkit End User License Agreement applies to the +NVIDIA CUDA Toolkit, the NVIDIA CUDA Samples, the NVIDIA +Display Driver, NVIDIA Nsight tools (Visual Studio Edition), +and the associated documentation on CUDA APIs, programming +model and development tools. If you do not agree with the +terms and conditions of the license agreement, then do not +download or use the software. + +Last updated: January 12, 2024. + + +Preface +------- + +The Software License Agreement in Chapter 1 and the Supplement +in Chapter 2 contain license terms and conditions that govern +the use of NVIDIA toolkit. By accepting this agreement, you +agree to comply with all the terms and conditions applicable +to the product(s) included herein. + + +NVIDIA Driver + + +Description + +This package contains the operating system driver and +fundamental system software components for NVIDIA GPUs. + + +NVIDIA CUDA Toolkit + + +Description + +The NVIDIA CUDA Toolkit provides command-line and graphical +tools for building, debugging and optimizing the performance +of applications accelerated by NVIDIA GPUs, runtime and math +libraries, and documentation including programming guides, +user manuals, and API references. + + +Default Install Location of CUDA Toolkit + +Windows platform: + +%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v#.# + +Linux platform: + +/usr/local/cuda-#.# + +Mac platform: + +/Developer/NVIDIA/CUDA-#.# + + +NVIDIA CUDA Samples + + +Description + +CUDA Samples are now located in +https://github.com/nvidia/cuda-samples, which includes +instructions for obtaining, building, and running the samples. +They are no longer included in the CUDA toolkit. + + +NVIDIA Nsight Visual Studio Edition (Windows only) + + +Description + +NVIDIA Nsight Development Platform, Visual Studio Edition is a +development environment integrated into Microsoft Visual +Studio that provides tools for debugging, profiling, analyzing +and optimizing your GPU computing and graphics applications. + + +Default Install Location of Nsight Visual Studio Edition + +Windows platform: + +%ProgramFiles(x86)%\NVIDIA Corporation\Nsight Visual Studio Edition #.# + + +1. License Agreement for NVIDIA Software Development Kits +--------------------------------------------------------- + + +Important Notice—Read before downloading, installing, +copying or using the licensed software: +------------------------------------------------------- + +This license agreement, including exhibits attached +("Agreement”) is a legal agreement between you and NVIDIA +Corporation ("NVIDIA") and governs your use of a NVIDIA +software development kit (“SDK”). + +Each SDK has its own set of software and materials, but here +is a description of the types of items that may be included in +a SDK: source code, header files, APIs, data sets and assets +(examples include images, textures, models, scenes, videos, +native API input/output files), binary software, sample code, +libraries, utility programs, programming code and +documentation. + +This Agreement can be accepted only by an adult of legal age +of majority in the country in which the SDK is used. + +If you are entering into this Agreement on behalf of a company +or other legal entity, you represent that you have the legal +authority to bind the entity to this Agreement, in which case +“you” will mean the entity you represent. + +If you don’t have the required age or authority to accept +this Agreement, or if you don’t accept all the terms and +conditions of this Agreement, do not download, install or use +the SDK. + +You agree to use the SDK only for purposes that are permitted +by (a) this Agreement, and (b) any applicable law, regulation +or generally accepted practices or guidelines in the relevant +jurisdictions. + + +1.1. License + + +1.1.1. License Grant + +Subject to the terms of this Agreement, NVIDIA hereby grants +you a non-exclusive, non-transferable license, without the +right to sublicense (except as expressly provided in this +Agreement) to: + + 1. Install and use the SDK, + + 2. Modify and create derivative works of sample source code + delivered in the SDK, and + + 3. Distribute those portions of the SDK that are identified + in this Agreement as distributable, as incorporated in + object code format into a software application that meets + the distribution requirements indicated in this Agreement. + + +1.1.2. Distribution Requirements + +These are the distribution requirements for you to exercise +the distribution grant: + + 1. Your application must have material additional + functionality, beyond the included portions of the SDK. + + 2. The distributable portions of the SDK shall only be + accessed by your application. + + 3. The following notice shall be included in modifications + and derivative works of sample source code distributed: + “This software contains source code provided by NVIDIA + Corporation.” + + 4. Unless a developer tool is identified in this Agreement + as distributable, it is delivered for your internal use + only. + + 5. The terms under which you distribute your application + must be consistent with the terms of this Agreement, + including (without limitation) terms relating to the + license grant and license restrictions and protection of + NVIDIA’s intellectual property rights. Additionally, you + agree that you will protect the privacy, security and + legal rights of your application users. + + 6. You agree to notify NVIDIA in writing of any known or + suspected distribution or use of the SDK not in compliance + with the requirements of this Agreement, and to enforce + the terms of your agreements with respect to distributed + SDK. + + +1.1.3. Authorized Users + +You may allow employees and contractors of your entity or of +your subsidiary(ies) to access and use the SDK from your +secure network to perform work on your behalf. + +If you are an academic institution you may allow users +enrolled or employed by the academic institution to access and +use the SDK from your secure network. + +You are responsible for the compliance with the terms of this +Agreement by your authorized users. If you become aware that +your authorized users didn’t follow the terms of this +Agreement, you agree to take reasonable steps to resolve the +non-compliance and prevent new occurrences. + + +1.1.4. Pre-Release SDK + +The SDK versions identified as alpha, beta, preview or +otherwise as pre-release, may not be fully functional, may +contain errors or design flaws, and may have reduced or +different security, privacy, accessibility, availability, and +reliability standards relative to commercial versions of +NVIDIA software and materials. Use of a pre-release SDK may +result in unexpected results, loss of data, project delays or +other unpredictable damage or loss. + +You may use a pre-release SDK at your own risk, understanding +that pre-release SDKs are not intended for use in production +or business-critical systems. + +NVIDIA may choose not to make available a commercial version +of any pre-release SDK. NVIDIA may also choose to abandon +development and terminate the availability of a pre-release +SDK at any time without liability. + + +1.1.5. Updates + +NVIDIA may, at its option, make available patches, workarounds +or other updates to this SDK. Unless the updates are provided +with their separate governing terms, they are deemed part of +the SDK licensed to you as provided in this Agreement. You +agree that the form and content of the SDK that NVIDIA +provides may change without prior notice to you. While NVIDIA +generally maintains compatibility between versions, NVIDIA may +in some cases make changes that introduce incompatibilities in +future versions of the SDK. + + +1.1.6. Components Under Other Licenses + +The SDK may come bundled with, or otherwise include or be +distributed with, NVIDIA or third-party components with +separate legal notices or terms as may be described in +proprietary notices accompanying the SDK. If and to the extent +there is a conflict between the terms in this Agreement and +the license terms associated with the component, the license +terms associated with the components control only to the +extent necessary to resolve the conflict. + +Subject to the other terms of this Agreement, you may use the +SDK to develop and test applications released under Open +Source Initiative (OSI) approved open source software +licenses. + + +1.1.7. Reservation of Rights + +NVIDIA reserves all rights, title, and interest in and to the +SDK, not expressly granted to you under this Agreement. + + +1.2. Limitations + +The following license limitations apply to your use of the +SDK: + + 1. You may not reverse engineer, decompile or disassemble, + or remove copyright or other proprietary notices from any + portion of the SDK or copies of the SDK. + + 2. Except as expressly provided in this Agreement, you may + not copy, sell, rent, sublicense, transfer, distribute, + modify, or create derivative works of any portion of the + SDK. For clarity, you may not distribute or sublicense the + SDK as a stand-alone product. + + 3. Unless you have an agreement with NVIDIA for this + purpose, you may not indicate that an application created + with the SDK is sponsored or endorsed by NVIDIA. + + 4. You may not bypass, disable, or circumvent any + encryption, security, digital rights management or + authentication mechanism in the SDK. + + 5. You may not use the SDK in any manner that would cause it + to become subject to an open source software license. As + examples, licenses that require as a condition of use, + modification, and/or distribution that the SDK be: + + a. Disclosed or distributed in source code form; + + b. Licensed for the purpose of making derivative works; + or + + c. Redistributable at no charge. + + 6. You acknowledge that the SDK as delivered is not tested + or certified by NVIDIA for use in connection with the + design, construction, maintenance, and/or operation of any + system where the use or failure of such system could + result in a situation that threatens the safety of human + life or results in catastrophic damages (each, a "Critical + Application"). Examples of Critical Applications include + use in avionics, navigation, autonomous vehicle + applications, ai solutions for automotive products, + military, medical, life support or other life critical + applications. NVIDIA shall not be liable to you or any + third party, in whole or in part, for any claims or + damages arising from such uses. You are solely responsible + for ensuring that any product or service developed with + the SDK as a whole includes sufficient features to comply + with all applicable legal and regulatory standards and + requirements. + + 7. You agree to defend, indemnify and hold harmless NVIDIA + and its affiliates, and their respective employees, + contractors, agents, officers and directors, from and + against any and all claims, damages, obligations, losses, + liabilities, costs or debt, fines, restitutions and + expenses (including but not limited to attorney’s fees + and costs incident to establishing the right of + indemnification) arising out of or related to products or + services that use the SDK in or for Critical Applications, + and for use of the SDK outside of the scope of this + Agreement or not in compliance with its terms. + + 8. You may not reverse engineer, decompile or disassemble + any portion of the output generated using SDK elements for + the purpose of translating such output artifacts to target + a non-NVIDIA platform. + + +1.3. Ownership + + 1. NVIDIA or its licensors hold all rights, title and + interest in and to the SDK and its modifications and + derivative works, including their respective intellectual + property rights, subject to your rights under Section + 1.3.2. This SDK may include software and materials from + NVIDIA’s licensors, and these licensors are intended + third party beneficiaries that may enforce this Agreement + with respect to their intellectual property rights. + + 2. You hold all rights, title and interest in and to your + applications and your derivative works of the sample + source code delivered in the SDK, including their + respective intellectual property rights, subject to + NVIDIA’s rights under Section 1.3.1. + + 3. You may, but don’t have to, provide to NVIDIA + suggestions, feature requests or other feedback regarding + the SDK, including possible enhancements or modifications + to the SDK. For any feedback that you voluntarily provide, + you hereby grant NVIDIA and its affiliates a perpetual, + non-exclusive, worldwide, irrevocable license to use, + reproduce, modify, license, sublicense (through multiple + tiers of sublicensees), and distribute (through multiple + tiers of distributors) it without the payment of any + royalties or fees to you. NVIDIA will use feedback at its + choice. NVIDIA is constantly looking for ways to improve + its products, so you may send feedback to NVIDIA through + the developer portal at https://developer.nvidia.com. + + +1.4. No Warranties + +THE SDK IS PROVIDED BY NVIDIA “AS IS” AND “WITH ALL +FAULTS.” TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND +ITS AFFILIATES EXPRESSLY DISCLAIM ALL WARRANTIES OF ANY KIND +OR NATURE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, +BUT NOT LIMITED TO, ANY WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT, OR THE +ABSENCE OF ANY DEFECTS THEREIN, WHETHER LATENT OR PATENT. NO +WARRANTY IS MADE ON THE BASIS OF TRADE USAGE, COURSE OF +DEALING OR COURSE OF TRADE. + + +1.5. Limitation of Liability + +TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND ITS +AFFILIATES SHALL NOT BE LIABLE FOR ANY (I) SPECIAL, INCIDENTAL, +PUNITIVE OR CONSEQUENTIAL DAMAGES, OR (II) DAMAGES FOR (A) ANY +LOST PROFITS, LOSS OF USE, LOSS OF DATA OR LOSS OF GOODWILL, +OR THE COSTS OF PROCURING SUBSTITUTE PRODUCTS, ARISING OUT OF +OR IN CONNECTION WITH THIS AGREEMENT OR THE USE OR PERFORMANCE +OF THE SDK, WHETHER SUCH LIABILITY ARISES FROM ANY CLAIM BASED +UPON BREACH OF CONTRACT, BREACH OF WARRANTY, TORT (INCLUDING +NEGLIGENCE), PRODUCT LIABILITY OR ANY OTHER CAUSE OF ACTION OR +THEORY OF LIABILITY. IN NO EVENT WILL NVIDIA’S AND ITS AFFILIATES +TOTAL CUMULATIVE LIABILITY UNDER OR ARISING OUT OF THIS +AGREEMENT EXCEED US$10.00. THE NATURE OF THE LIABILITY OR THE +NUMBER OF CLAIMS OR SUITS SHALL NOT ENLARGE OR EXTEND THIS +LIMIT. + +These exclusions and limitations of liability shall apply +regardless if NVIDIA or its affiliates have been advised of +the possibility of such damages, and regardless of whether a +remedy fails its essential purpose. These exclusions and +limitations of liability form an essential basis of the +bargain between the parties, and, absent any of these +exclusions or limitations of liability, the provisions of this +Agreement, including, without limitation, the economic terms, +would be substantially different. + + +1.6. Termination + + 1. This Agreement will continue to apply until terminated by + either you or NVIDIA as described below. + + 2. If you want to terminate this Agreement, you may do so by + stopping to use the SDK. + + 3. NVIDIA may, at any time, terminate this Agreement if: + + a. (i) you fail to comply with any term of this + Agreement and the non-compliance is not fixed within + thirty (30) days following notice from NVIDIA (or + immediately if you violate NVIDIA’s intellectual + property rights); + + b. (ii) you commence or participate in any legal + proceeding against NVIDIA with respect to the SDK; or + + c. (iii) NVIDIA decides to no longer provide the SDK in + a country or, in NVIDIA’s sole discretion, the + continued use of it is no longer commercially viable. + + 4. Upon any termination of this Agreement, you agree to + promptly discontinue use of the SDK and destroy all copies + in your possession or control. Your prior distributions in + accordance with this Agreement are not affected by the + termination of this Agreement. Upon written request, you + will certify in writing that you have complied with your + commitments under this section. Upon any termination of + this Agreement all provisions survive except for the + license grant provisions. + + +1.7. General + +If you wish to assign this Agreement or your rights and +obligations, including by merger, consolidation, dissolution +or operation of law, contact NVIDIA to ask for permission. Any +attempted assignment not approved by NVIDIA in writing shall +be void and of no effect. NVIDIA may assign, delegate or +transfer this Agreement and its rights and obligations, and if +to a non-affiliate you will be notified. + +You agree to cooperate with NVIDIA and provide reasonably +requested information to verify your compliance with this +Agreement. + +This Agreement will be governed in all respects by the laws of +the United States and of the State of Delaware, without regard to the +conflicts of laws principles. The United Nations Convention on +Contracts for the International Sale of Goods is specifically +disclaimed. You agree to all terms of this Agreement in the +English language. + +The state or federal courts residing in Santa Clara County, +California shall have exclusive jurisdiction over any dispute +or claim arising out of this Agreement. Notwithstanding this, +you agree that NVIDIA shall still be allowed to apply for +injunctive remedies or an equivalent type of urgent legal +relief in any jurisdiction. + +If any court of competent jurisdiction determines that any +provision of this Agreement is illegal, invalid or +unenforceable, such provision will be construed as limited to +the extent necessary to be consistent with and fully +enforceable under the law and the remaining provisions will +remain in full force and effect. Unless otherwise specified, +remedies are cumulative. + +Each party acknowledges and agrees that the other is an +independent contractor in the performance of this Agreement. + +The SDK has been developed entirely at private expense and is +“commercial items” consisting of “commercial computer +software” and “commercial computer software +documentation” provided with RESTRICTED RIGHTS. Use, +duplication or disclosure by the U.S. Government or a U.S. +Government subcontractor is subject to the restrictions in +this Agreement pursuant to DFARS 227.7202-3(a) or as set forth +in subparagraphs (c)(1) and (2) of the Commercial Computer +Software - Restricted Rights clause at FAR 52.227-19, as +applicable. Contractor/manufacturer is NVIDIA, 2788 San Tomas +Expressway, Santa Clara, CA 95051. + +The SDK is subject to United States export laws and +regulations. You agree that you will not ship, transfer or +export the SDK into any country, or use the SDK in any manner, +prohibited by the United States Bureau of Industry and +Security or economic sanctions regulations administered by the +U.S. Department of Treasury’s Office of Foreign Assets +Control (OFAC), or any applicable export laws, restrictions or +regulations. These laws include restrictions on destinations, +end users and end use. By accepting this Agreement, you +confirm that you are not located in a country currently +embargoed by the U.S. or otherwise prohibited from receiving +the SDK under U.S. law. + +Any notice delivered by NVIDIA to you under this Agreement +will be delivered via mail, email or fax. You agree that any +notices that NVIDIA sends you electronically will satisfy any +legal communication requirements. Please direct your legal +notices or other correspondence to NVIDIA Corporation, 2788 +San Tomas Expressway, Santa Clara, California 95051, United +States of America, Attention: Legal Department. + +This Agreement and any exhibits incorporated into this +Agreement constitute the entire agreement of the parties with +respect to the subject matter of this Agreement and supersede +all prior negotiations or documentation exchanged between the +parties relating to this SDK license. Any additional and/or +conflicting terms on documents issued by you are null, void, +and invalid. Any amendment or waiver under this Agreement +shall be in writing and signed by representatives of both +parties. + + +2. CUDA Toolkit Supplement to Software License Agreement for +NVIDIA Software Development Kits +------------------------------------------------------------ + +The terms in this supplement govern your use of the NVIDIA +CUDA Toolkit SDK under the terms of your license agreement +(“Agreement”) as modified by this supplement. Capitalized +terms used but not defined below have the meaning assigned to +them in the Agreement. + +This supplement is an exhibit to the Agreement and is +incorporated as an integral part of the Agreement. In the +event of conflict between the terms in this supplement and the +terms in the Agreement, the terms in this supplement govern. + + +2.1. License Scope + +The SDK is licensed for you to develop applications only for +use in systems with NVIDIA GPUs. + + +2.2. Distribution + +The portions of the SDK that are distributable under the +Agreement are listed in Attachment A. + + +2.3. Operating Systems + +Those portions of the SDK designed exclusively for use on the +Linux or FreeBSD operating systems, or other operating systems +derived from the source code to these operating systems, may +be copied and redistributed for use in accordance with this +Agreement, provided that the object code files are not +modified in any way (except for unzipping of compressed +files). + + +2.4. Audio and Video Encoders and Decoders + +You acknowledge and agree that it is your sole responsibility +to obtain any additional third-party licenses required to +make, have made, use, have used, sell, import, and offer for +sale your products or services that include or incorporate any +third-party software and content relating to audio and/or +video encoders and decoders from, including but not limited +to, Microsoft, Thomson, Fraunhofer IIS, Sisvel S.p.A., +MPEG-LA, and Coding Technologies. NVIDIA does not grant to you +under this Agreement any necessary patent or other rights with +respect to any audio and/or video encoders and decoders. + + +2.5. Licensing + +If the distribution terms in this Agreement are not suitable +for your organization, or for any questions regarding this +Agreement, please contact NVIDIA at +nvidia-compute-license-questions@nvidia.com. + + +2.6. Attachment A + +The following CUDA Toolkit files may be distributed with +applications developed by you, including certain +variations of these files that have version number or +architecture specific information embedded in the file name - +as an example only, for release version 9.0 of the 64-bit +Windows software, the file cudart64_90.dll is redistributable. + +Component + +CUDA Runtime + +Windows + +cudart.dll, cudart_static.lib, cudadevrt.lib + +Mac OSX + +libcudart.dylib, libcudart_static.a, libcudadevrt.a + +Linux + +libcudart.so, libcudart_static.a, libcudadevrt.a + +Android + +libcudart.so, libcudart_static.a, libcudadevrt.a + +Component + +CUDA FFT Library + +Windows + +cufft.dll, cufftw.dll, cufft.lib, cufftw.lib + +Mac OSX + +libcufft.dylib, libcufft_static.a, libcufftw.dylib, +libcufftw_static.a + +Linux + +libcufft.so, libcufft_static.a, libcufftw.so, +libcufftw_static.a + +Android + +libcufft.so, libcufft_static.a, libcufftw.so, +libcufftw_static.a + +Component + +CUDA BLAS Library + +Windows + +cublas.dll, cublasLt.dll + +Mac OSX + +libcublas.dylib, libcublasLt.dylib, libcublas_static.a, +libcublasLt_static.a + +Linux + +libcublas.so, libcublasLt.so, libcublas_static.a, +libcublasLt_static.a + +Android + +libcublas.so, libcublasLt.so, libcublas_static.a, +libcublasLt_static.a + +Component + +NVIDIA "Drop-in" BLAS Library + +Windows + +nvblas.dll + +Mac OSX + +libnvblas.dylib + +Linux + +libnvblas.so + +Component + +CUDA Sparse Matrix Library + +Windows + +cusparse.dll, cusparse.lib + +Mac OSX + +libcusparse.dylib, libcusparse_static.a + +Linux + +libcusparse.so, libcusparse_static.a + +Android + +libcusparse.so, libcusparse_static.a + +Component + +CUDA Linear Solver Library + +Windows + +cusolver.dll, cusolver.lib + +Mac OSX + +libcusolver.dylib, libcusolver_static.a + +Linux + +libcusolver.so, libcusolver_static.a + +Android + +libcusolver.so, libcusolver_static.a + +Component + +CUDA Random Number Generation Library + +Windows + +curand.dll, curand.lib + +Mac OSX + +libcurand.dylib, libcurand_static.a + +Linux + +libcurand.so, libcurand_static.a + +Android + +libcurand.so, libcurand_static.a + +Component + +NVIDIA Performance Primitives Library + +Windows + +nppc.dll, nppc.lib, nppial.dll, nppial.lib, nppicc.dll, +nppicc.lib, nppicom.dll, nppicom.lib, nppidei.dll, +nppidei.lib, nppif.dll, nppif.lib, nppig.dll, nppig.lib, +nppim.dll, nppim.lib, nppist.dll, nppist.lib, nppisu.dll, +nppisu.lib, nppitc.dll, nppitc.lib, npps.dll, npps.lib + +Mac OSX + +libnppc.dylib, libnppc_static.a, libnppial.dylib, +libnppial_static.a, libnppicc.dylib, libnppicc_static.a, +libnppicom.dylib, libnppicom_static.a, libnppidei.dylib, +libnppidei_static.a, libnppif.dylib, libnppif_static.a, +libnppig.dylib, libnppig_static.a, libnppim.dylib, +libnppisu_static.a, libnppitc.dylib, libnppitc_static.a, +libnpps.dylib, libnpps_static.a + +Linux + +libnppc.so, libnppc_static.a, libnppial.so, +libnppial_static.a, libnppicc.so, libnppicc_static.a, +libnppicom.so, libnppicom_static.a, libnppidei.so, +libnppidei_static.a, libnppif.so, libnppif_static.a +libnppig.so, libnppig_static.a, libnppim.so, +libnppim_static.a, libnppist.so, libnppist_static.a, +libnppisu.so, libnppisu_static.a, libnppitc.so +libnppitc_static.a, libnpps.so, libnpps_static.a + +Android + +libnppc.so, libnppc_static.a, libnppial.so, +libnppial_static.a, libnppicc.so, libnppicc_static.a, +libnppicom.so, libnppicom_static.a, libnppidei.so, +libnppidei_static.a, libnppif.so, libnppif_static.a +libnppig.so, libnppig_static.a, libnppim.so, +libnppim_static.a, libnppist.so, libnppist_static.a, +libnppisu.so, libnppisu_static.a, libnppitc.so +libnppitc_static.a, libnpps.so, libnpps_static.a + +Component + +NVIDIA JPEG Library + +Windows + +nvjpeg.lib, nvjpeg.dll + +Linux + +libnvjpeg.so, libnvjpeg_static.a + +Component + +Internal common library required for statically linking to +cuBLAS, cuSPARSE, cuFFT, cuRAND, nvJPEG and NPP + +Mac OSX + +libculibos.a + +Linux + +libculibos.a + +Component + +NVIDIA Runtime Compilation Library and Header + +All + +nvrtc.h + +Windows + +nvrtc.dll, nvrtc-builtins.dll + +Mac OSX + +libnvrtc.dylib, libnvrtc-builtins.dylib + +Linux + +libnvrtc.so, libnvrtc-builtins.so, libnvrtc_static.a, libnvrtx-builtins_static.a + +Component + +NVIDIA Optimizing Compiler Library + +Windows + +nvvm.dll + +Mac OSX + +libnvvm.dylib + +Linux + +libnvvm.so + +Component + +NVIDIA JIT Linking Library + +Windows + +libnvJitLink.dll, libnvJitLink.lib + +Linux + +libnvJitLink.so, libnvJitLink_static.a + +Component + +NVIDIA Common Device Math Functions Library + +Windows + +libdevice.10.bc + +Mac OSX + +libdevice.10.bc + +Linux + +libdevice.10.bc + +Component + +CUDA Occupancy Calculation Header Library + +All + +cuda_occupancy.h + +Component + +CUDA Half Precision Headers + +All + +cuda_fp16.h, cuda_fp16.hpp + +Component + +CUDA Profiling Tools Interface (CUPTI) Library + +Windows + +cupti.dll + +Mac OSX + +libcupti.dylib + +Linux + +libcupti.so + +Component + +NVIDIA Tools Extension Library + +Windows + +nvToolsExt.dll, nvToolsExt.lib + +Mac OSX + +libnvToolsExt.dylib + +Linux + +libnvToolsExt.so + +Component + +NVIDIA CUDA Driver Libraries + +Linux + +libcuda.so, libnvidia-ptxjitcompiler.so, libnvptxcompiler_static.a + +Component + +NVIDIA CUDA File IO Libraries and Header + +All + +cufile.h + +Linux + +libcufile.so, libcufile_rdma.so, libcufile_static.a, +libcufile_rdma_static.a + +In addition to the rights above, for parties that are +developing software intended solely for use on Jetson +development kits or Jetson modules, and running Linux for +Tegra software, the following shall apply: + + * The SDK may be distributed in its entirety, as provided by + NVIDIA, and without separation of its components, for you + and/or your licensees to create software development kits + for use only on the Jetson platform and running Linux for + Tegra software. + + +2.7. Attachment B + + +Additional Licensing Obligations + +The following third party components included in the SOFTWARE +are licensed to Licensee pursuant to the following terms and +conditions: + + 1. Licensee's use of the GDB third party component is + subject to the terms and conditions of GNU GPL v3: + + This product includes copyrighted third-party software licensed + under the terms of the GNU General Public License v3 ("GPL v3"). + All third-party software packages are copyright by their respective + authors. GPL v3 terms and conditions are hereby incorporated into + the Agreement by this reference: http://www.gnu.org/licenses/gpl.txt + + Consistent with these licensing requirements, the software + listed below is provided under the terms of the specified + open source software licenses. To obtain source code for + software provided under licenses that require + redistribution of source code, including the GNU General + Public License (GPL) and GNU Lesser General Public License + (LGPL), contact oss-requests@nvidia.com. This offer is + valid for a period of three (3) years from the date of the + distribution of this product by NVIDIA CORPORATION. + + Component License + CUDA-GDB GPL v3 + + 2. Licensee represents and warrants that any and all third + party licensing and/or royalty payment obligations in + connection with Licensee's use of the H.264 video codecs + are solely the responsibility of Licensee. + + 3. Licensee's use of the Thrust library is subject to the + terms and conditions of the Apache License Version 2.0. + All third-party software packages are copyright by their + respective authors. Apache License Version 2.0 terms and + conditions are hereby incorporated into the Agreement by + this reference. + http://www.apache.org/licenses/LICENSE-2.0.html + + In addition, Licensee acknowledges the following notice: + Thrust includes source code from the Boost Iterator, + Tuple, System, and Random Number libraries. + + Boost Software License - Version 1.0 - August 17th, 2003 + . . . . + + Permission is hereby granted, free of charge, to any person or + organization obtaining a copy of the software and accompanying + documentation covered by this license (the "Software") to use, + reproduce, display, distribute, execute, and transmit the Software, + and to prepare derivative works of the Software, and to permit + third-parties to whom the Software is furnished to do so, all + subject to the following: + + The copyright notices in the Software and this entire statement, + including the above license grant, this restriction and the following + disclaimer, must be included in all copies of the Software, in whole + or in part, and all derivative works of the Software, unless such + copies or derivative works are solely in the form of machine-executable + object code generated by a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND + NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR + ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR + OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + 4. Licensee's use of the LLVM third party component is + subject to the following terms and conditions: + + ====================================================== + LLVM Release License + ====================================================== + University of Illinois/NCSA + Open Source License + + Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign. + All rights reserved. + + Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal with the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at Urbana- + Champaign, nor the names of its contributors may be used to endorse or + promote products derived from this Software without specific prior + written permission. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR + OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS WITH THE SOFTWARE. + + 5. Licensee's use of the PCRE third party component is + subject to the following terms and conditions: + + ------------ + PCRE LICENCE + ------------ + PCRE is a library of functions to support regular expressions whose syntax + and semantics are as close as possible to those of the Perl 5 language. + Release 8 of PCRE is distributed under the terms of the "BSD" licence, as + specified below. The documentation for PCRE, supplied in the "doc" + directory, is distributed under the same terms as the software itself. The + basic library functions are written in C and are freestanding. Also + included in the distribution is a set of C++ wrapper functions, and a just- + in-time compiler that can be used to optimize pattern matching. These are + both optional features that can be omitted when the library is built. + + THE BASIC LIBRARY FUNCTIONS + --------------------------- + Written by: Philip Hazel + Email local part: ph10 + Email domain: cam.ac.uk + University of Cambridge Computing Service, + Cambridge, England. + Copyright (c) 1997-2012 University of Cambridge + All rights reserved. + + PCRE JUST-IN-TIME COMPILATION SUPPORT + ------------------------------------- + Written by: Zoltan Herczeg + Email local part: hzmester + Emain domain: freemail.hu + Copyright(c) 2010-2012 Zoltan Herczeg + All rights reserved. + + STACK-LESS JUST-IN-TIME COMPILER + -------------------------------- + Written by: Zoltan Herczeg + Email local part: hzmester + Emain domain: freemail.hu + Copyright(c) 2009-2012 Zoltan Herczeg + All rights reserved. + + THE C++ WRAPPER FUNCTIONS + ------------------------- + Contributed by: Google Inc. + Copyright (c) 2007-2012, Google Inc. + All rights reserved. + + THE "BSD" LICENCE + ----------------- + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name of the University of Cambridge nor the name of Google + Inc. nor the names of their contributors may be used to endorse or + promote products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + 6. Some of the cuBLAS library routines were written by or + derived from code written by Vasily Volkov and are subject + to the Modified Berkeley Software Distribution License as + follows: + + Copyright (c) 2007-2009, Regents of the University of California + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the University of California, Berkeley nor + the names of its contributors may be used to endorse or promote + products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + 7. Some of the cuBLAS library routines were written by or + derived from code written by Davide Barbieri and are + subject to the Modified Berkeley Software Distribution + License as follows: + + Copyright (c) 2008-2009 Davide Barbieri @ University of Rome Tor Vergata. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * The name of the author may not be used to endorse or promote + products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + 8. Some of the cuBLAS library routines were derived from + code developed by the University of Tennessee and are + subject to the Modified Berkeley Software Distribution + License as follows: + + Copyright (c) 2010 The University of Tennessee. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer listed in this license in the documentation and/or + other materials provided with the distribution. + * Neither the name of the copyright holders nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 9. Some of the cuBLAS library routines were written by or + derived from code written by Jonathan Hogg and are subject + to the Modified Berkeley Software Distribution License as + follows: + + Copyright (c) 2012, The Science and Technology Facilities Council (STFC). + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the STFC nor the names of its contributors + may be used to endorse or promote products derived from this + software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE STFC BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 10. Some of the cuBLAS library routines were written by or + derived from code written by Ahmad M. Abdelfattah, David + Keyes, and Hatem Ltaief, and are subject to the Apache + License, Version 2.0, as follows: + + -- (C) Copyright 2013 King Abdullah University of Science and Technology + Authors: + Ahmad Abdelfattah (ahmad.ahmad@kaust.edu.sa) + David Keyes (david.keyes@kaust.edu.sa) + Hatem Ltaief (hatem.ltaief@kaust.edu.sa) + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the King Abdullah University of Science and + Technology nor the names of its contributors may be used to endorse + or promote products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE + + 11. Some of the cuSPARSE library routines were written by or + derived from code written by Li-Wen Chang and are subject + to the NCSA Open Source License as follows: + + Copyright (c) 2012, University of Illinois. + + All rights reserved. + + Developed by: IMPACT Group, University of Illinois, http://impact.crhc.illinois.edu + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal with the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimers in the documentation and/or other materials provided + with the distribution. + * Neither the names of IMPACT Group, University of Illinois, nor + the names of its contributors may be used to endorse or promote + products derived from this Software without specific prior + written permission. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR + IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE + SOFTWARE. + + 12. Some of the cuRAND library routines were written by or + derived from code written by Mutsuo Saito and Makoto + Matsumoto and are subject to the following license: + + Copyright (c) 2009, 2010 Mutsuo Saito, Makoto Matsumoto and Hiroshima + University. All rights reserved. + + Copyright (c) 2011 Mutsuo Saito, Makoto Matsumoto, Hiroshima + University and University of Tokyo. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the Hiroshima University nor the names of + its contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 13. Some of the cuRAND library routines were derived from + code developed by D. E. Shaw Research and are subject to + the following license: + + Copyright 2010-2011, D. E. Shaw Research. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions, and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions, and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of D. E. Shaw Research nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 14. Some of the Math library routines were written by or + derived from code developed by Norbert Juffa and are + subject to the following license: + + Copyright (c) 2015-2017, Norbert Juffa + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 15. Licensee's use of the lz4 third party component is + subject to the following terms and conditions: + + Copyright (C) 2011-2013, Yann Collet. + BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following disclaimer + in the documentation and/or other materials provided with the + distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + 16. The NPP library uses code from the Boost Math Toolkit, + and is subject to the following license: + + Boost Software License - Version 1.0 - August 17th, 2003 + . . . . + + Permission is hereby granted, free of charge, to any person or + organization obtaining a copy of the software and accompanying + documentation covered by this license (the "Software") to use, + reproduce, display, distribute, execute, and transmit the Software, + and to prepare derivative works of the Software, and to permit + third-parties to whom the Software is furnished to do so, all + subject to the following: + + The copyright notices in the Software and this entire statement, + including the above license grant, this restriction and the following + disclaimer, must be included in all copies of the Software, in whole + or in part, and all derivative works of the Software, unless such + copies or derivative works are solely in the form of machine-executable + object code generated by a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND + NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR + ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR + OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + 17. Portions of the Nsight Eclipse Edition is subject to the + following license: + + The Eclipse Foundation makes available all content in this plug-in + ("Content"). Unless otherwise indicated below, the Content is provided + to you under the terms and conditions of the Eclipse Public License + Version 1.0 ("EPL"). A copy of the EPL is available at http:// + www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, "Program" + will mean the Content. + + If you did not receive this Content directly from the Eclipse + Foundation, the Content is being redistributed by another party + ("Redistributor") and different terms and conditions may apply to your + use of any object code in the Content. Check the Redistributor's + license that was provided with the Content. If no such license exists, + contact the Redistributor. Unless otherwise indicated below, the terms + and conditions of the EPL still apply to any source code in the + Content and such source code may be obtained at http://www.eclipse.org. + + 18. Some of the cuBLAS library routines uses code from + OpenAI, which is subject to the following license: + + License URL + https://github.com/openai/openai-gemm/blob/master/LICENSE + + License Text + The MIT License + + Copyright (c) 2016 OpenAI (http://openai.com), 2016 Google Inc. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + + 19. Licensee's use of the Visual Studio Setup Configuration + Samples is subject to the following license: + + The MIT License (MIT) + Copyright (C) Microsoft Corporation. All rights reserved. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, + publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + 20. Licensee's use of linmath.h header for CPU functions for + GL vector/matrix operations from lunarG is subject to the + Apache License Version 2.0. + + 21. The DX12-CUDA sample uses the d3dx12.h header, which is + subject to the MIT license. + + 22. Components of the driver and compiler used for binary management, including + nvFatBin, nvcc, and cuobjdump, use the Zstandard library which is subject to + the following license: + + BSD License + + For Zstandard software + + Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, + are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + * Neither the name Facebook, nor Meta, nor the names of its contributors may + be used to endorse or promote products derived from this software without + specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + +----------------- diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/paths.json b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..bddbdde3cfac4d53338021fa32e7e374ebb8cce0 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/paths.json @@ -0,0 +1,17 @@ +{ + "paths": [ + { + "_path": "bin/crt/link.stub", + "path_type": "hardlink", + "sha256": "d552ae287e4e22ebb7312397574b464779a56f279c613ebbfecfdf122791cf19", + "size_in_bytes": 6451 + }, + { + "_path": "bin/crt/prelink.stub", + "path_type": "hardlink", + "sha256": "fbe3b4d360e6eb77f1bbc7328146522adce98e2ce5045b4aaeaf96eaadea10f3", + "size_in_bytes": 3974 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/conda_build_config.yaml b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c8adb0e92dc9d54ed132f3ff3257231824f7ef57 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/conda_build_config.yaml @@ -0,0 +1,33 @@ +c_compiler: gcc +c_compiler_version: 11.2.0 +c_stdlib: sysroot +c_stdlib_version: '2.28' +channel_targets: defaults +cpu_optimization_target: nocona +cran_mirror: https://cran.r-project.org +cxx_compiler: gxx +cxx_compiler_version: 11.2.0 +extend_keys: +- ignore_version +- pin_run_as_build +- ignore_build_only_deps +- extend_keys +fortran_compiler: gfortran +ignore_build_only_deps: +- python +- numpy +lua: '5' +numpy: '1.26' +perl: 5.26.2 +pin_run_as_build: + python: + max_pin: x.x + min_pin: x.x + r-base: + max_pin: x.x + min_pin: x.x +platform: linux-64 +python: '3.12' +r_base: '3.5' +target_platform: linux-64 +xz: '5' diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/meta.yaml b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5c334b7a9a46abac4fb7ef1d77f01ef44e23e876 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/meta.yaml @@ -0,0 +1,42 @@ +# This file created by conda-build 25.1.2 +# ------------------------------------------------ + +package: + name: cuda-crt-tools + version: 12.8.93 +source: + patches: + - nvcc.profile.patch + sha256: 9961b3484b6b71314063709a4f9529654f96782ad39e72bf1e00f070db8210d3 + url: https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvcc/linux-x86_64/cuda_nvcc-linux-x86_64-12.8.93-archive.tar.xz +build: + binary_relocation: false + noarch: false + noarch_python: false + number: '3' + string: h06a4308_3 +requirements: + host: + - cuda-version 12.8 h30beaf8_3 + run: + - cuda-version >=12.8,<12.9.0a0 +test: + commands: + - test -d $PREFIX/bin/crt + - test -f $PREFIX/bin/crt/link.stub +about: + description: 'CUDA internal tools. + + ' + doc_url: https://docs.nvidia.com/cuda/index.html + home: https://developer.nvidia.com/cuda-toolkit + license: LicenseRef-NVIDIA-End-User-License-Agreement + license_file: LICENSE + license_url: https://docs.nvidia.com/cuda/eula/index.html + summary: CUDA internal tools. +extra: + copy_test_source_files: true + feedstock-name: cuda-nvcc-impl + final: true + recipe-maintainers: + - conda-forge/cuda diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/CMakeLists.txt b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..9298c151b3070363195f7d5674f73c8d15a9f5bc --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/CMakeLists.txt @@ -0,0 +1,37 @@ +cmake_minimum_required(VERSION 3.20 FATAL_ERROR) + +project(verify_cuda_compiler LANGUAGES CUDA) + +if(NOT DEFINED CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES) + message(FATAL_ERROR "CUDA compiler detection failed, no recording of CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES") +endif() + +find_package(CUDAToolkit REQUIRED) +set(should_exist + CUDAToolkit_BIN_DIR + CUDAToolkit_INCLUDE_DIRS + CUDAToolkit_LIBRARY_DIR + CUDAToolkit_LIBRARY_ROOT + ) +foreach (cuda_loc_var IN LISTS should_exist) + foreach(entry IN LISTS ${cuda_loc_var}) + if(NOT EXISTS "${entry}") + message(FATAL_ERROR "${entry} from ${cuda_loc_var} should exist on disk") + endif() + endforeach() +endforeach() + + +set(cuda_libs cudart cuda_driver) +foreach (cuda_lib IN LISTS cuda_libs) + if(NOT CUDA_${cuda_lib}_LIBRARY) + message(FATAL_ERROR "expected CUDAToolkit variable CUDA_${cuda_lib}_LIBRARY not found") + elseif(CUDA_${cuda_lib}_LIBRARY MATCHES [[\.\./]]) + message(FATAL_ERROR "expected CUDAToolkit variable CUDA_${cuda_lib}_LIBRARY[\"${CUDA_${cuda_lib}_LIBRARY}\"] to not contain /..") + endif() + if(NOT TARGET CUDA::${cuda_lib}) + message(FATAL_ERROR "expected CUDAToolkit target CUDA::${cuda_lib} not found") + endif() +endforeach() + +add_executable(verify test.cu) diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/bld.bat b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/bld.bat new file mode 100644 index 0000000000000000000000000000000000000000..9a1db6ee9c6a05d07eef792bfab551ae1cbcdfd0 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/bld.bat @@ -0,0 +1,8 @@ +if not exist %PREFIX% mkdir %PREFIX% + +move lib\x64\* %LIBRARY_LIB% +move bin\* %LIBRARY_BIN% +move bin\crt %LIBRARY_BIN% +move include\* %LIBRARY_INC% +move include\crt %LIBRARY_INC% +move nvvm %PREFIX%\Library diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/build.sh b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..2904e1081a7ea04647c2e1af505ca1c99bc9c37f --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/build.sh @@ -0,0 +1,82 @@ +#!/bin/bash + +# Install to conda style directories +[[ -d lib64 ]] && mv lib64 lib + +[[ ${target_platform} == "linux-64" ]] && targetsDir="targets/x86_64-linux" +[[ ${target_platform} == "linux-ppc64le" ]] && targetsDir="targets/ppc64le-linux" +# https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html?highlight=tegra#cross-compilation +[[ ${target_platform} == "linux-aarch64" && ${arm_variant_type} == "sbsa" ]] && targetsDir="targets/sbsa-linux" +[[ ${target_platform} == "linux-aarch64" && ${arm_variant_type} == "tegra" ]] && targetsDir="targets/aarch64-linux" + +if [ -z "${targetsDir+x}" ]; then + echo "target_platform: ${target_platform} is unknown! targetsDir must be defined!" >&2 + exit 1 +fi + +mkdir -p ${PREFIX}/${targetsDir} + +for i in `ls`; do + [[ $i == "LICENSE" ]] && continue + [[ $i == "build_env_setup.sh" ]] && continue + [[ $i == "conda_build.sh" ]] && continue + [[ $i == "metadata_conda_debug.yaml" ]] && continue + if [[ $i == "bin" ]] || [[ $i == "lib" ]] || [[ $i == "include" ]] || [[ $i == "nvvm" ]]; then + # Headers and libraries are installed to targetsDir + mkdir -p ${PREFIX}/$i + if [[ $i == "bin" ]]; then + for j in `ls "${i}"`; do + [[ -f "bin/${j}" ]] || continue + + if grep -qx "${j}" ${RECIPE_DIR}/patchelf_exclude.txt; then + echo "Skipping bin/${j} as it is in the patchelf exclusion list." + continue + fi + + echo patchelf --force-rpath --set-rpath "\$ORIGIN/../lib:\$ORIGIN/../${targetsDir}/lib" "${i}/${j}" ... + patchelf --force-rpath --set-rpath "\$ORIGIN/../lib:\$ORIGIN/../${targetsDir}/lib" "${i}/${j}" + done + + mkdir -p ${PREFIX}/${targetsDir}/bin + cp -rv $i ${PREFIX} + ln -sv ${PREFIX}/bin/nvcc ${PREFIX}/${targetsDir}/bin/nvcc + elif [[ $i == "lib" ]]; then + cp -rv $i ${PREFIX}/${targetsDir} + for j in "$i"/*.a*; do + # Static libraries are symlinked in $PREFIX/lib + ln -sv ${PREFIX}/${targetsDir}/$j ${PREFIX}/$j + done + ln -sv ${PREFIX}/${targetsDir}/lib ${PREFIX}/${targetsDir}/lib64 + elif [[ $i == "include" ]]; then + cp -rv $i ${PREFIX}/${targetsDir} + elif [[ $i == "nvvm" ]]; then + for j in `find "${i}"`; do + if [[ "${j}" =~ /bin/.*$ ]]; then + # Adds the following paths relative to `$PREFIX` to the `RPATH`: `nvvm/lib64`, `lib`, `${targetsDir}/lib` + echo patchelf --force-rpath --set-rpath "\$ORIGIN/../lib64:\$ORIGIN/../../lib:\$ORIGIN/../../${targetsDir}/lib" "${j}" ... + patchelf --force-rpath --set-rpath "\$ORIGIN/../lib64:\$ORIGIN/../../lib:\$ORIGIN/../../${targetsDir}/lib" "${j}" + elif [[ "${j}" =~ /lib.*/.*\.so($|\.) && ! -L "${j}" ]]; then + echo patchelf --force-rpath --set-rpath "\$ORIGIN" "${j}" ... + patchelf --force-rpath --set-rpath "\$ORIGIN" "${j}" + fi + done + + cp -rv $i ${PREFIX} + ln -sv ${PREFIX}/nvvm ${PREFIX}/${targetsDir}/nvvm + fi + else + cp -rv $i ${PREFIX}/${targetsDir} + fi +done + +# Copy the [de]activate scripts to $PREFIX/etc/conda/[de]activate.d. +# This will allow them to be run on environment activation. +# Name this script starting with `~` so it is run after all other compiler activation scripts. +# At the point of running this, $CXX must be defined. +# for CHANGE in "activate" "deactivate" +# do +# mkdir -p "${PREFIX}/etc/conda/${CHANGE}.d" +# cp "${RECIPE_DIR}/${CHANGE}.sh" "${PREFIX}/etc/conda/${CHANGE}.d/~cuda-nvcc_${CHANGE}.sh" +# done + +check-glibc ${PREFIX}/{bin,lib}*/* ${PREFIX}/${targetsDir}/{bin,lib}*/* ${PREFIX}/nvvm/{bin,lib}*/* diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/conda_build_config.yaml b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d95e0413baa14e681376bc6f2d86082d40b19259 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/conda_build_config.yaml @@ -0,0 +1,13 @@ +arm_variant_type: # [linux and aarch64] + - sbsa # [linux and aarch64] + # arm-variant * tegra requires glibc version which is currently not available. + # binary glibc 2.29.0 <= recipe glibc 2.28 $PREFIX/bin/nvcc + # The binary is not compatible with the recipe's glibc pinning. + # See https://docs.nvidia.com/cuda/cuda-installation-guide-linux/#system-requirements + # Enable this once glibc is available on the main channel. + #- tegra # [linux and aarch64] + +c_compiler: # [win] + - vs2019 # [win] +cxx_compiler: # [win] + - vs2019 # [win] diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/meta.yaml b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7525b109e88b9d4a2a95115802d7f436c3e2700f --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/meta.yaml @@ -0,0 +1,386 @@ +{% set name = "cuda-nvcc-impl" %} +{% set version = "12.8.93" %} +{% set cuda_version = "12.8" %} +{% set cuda_version_next_major = (cuda_version.split(".")[0]|int + 1)|string + ".0a0" %} +{% set gcc_min_constraint = ">=6" %} +{% set gcc_constraint = ">=6,<15.0a0" %} +{% set platform = "linux-x86_64" %} # [linux64] +{% set platform = "linux-sbsa" %} # [aarch64 and arm_variant_type == "sbsa"] +#{% set platform = "linux-aarch64" %} # [aarch64 and arm_variant_type == "tegra"] +{% set platform = "windows-x86_64" %} # [win] +{% set target_name = "x86_64-linux" %} # [linux64] +{% set target_name = "sbsa-linux" %} # [aarch64 and arm_variant_type == "sbsa"] +#{% set target_name = "aarch64-linux" %} # [aarch64 and arm_variant_type == "tegra"] +{% set target_name = "x64" %} # [win] +{% set extension = "tar.xz" %} # [not win] +{% set extension = "zip" %} # [win] +{% set exists = "which" %} # [not win] +{% set exists = "where" %} # [win] +{% set sha256 = "9961b3484b6b71314063709a4f9529654f96782ad39e72bf1e00f070db8210d3" %} # [linux64] +{% set sha256 = "dc0b713ce69fd921aa53ac68610717d126fc273a3c554b0465cf44d7e379f467" %} # [aarch64 and arm_variant_type == "sbsa"] +{% set sha256 = "9fdc70b4271ed9aad4d64cd7076a7d96ec36512d074b9995fe638de669197391" %} # [win] +#{% set sha256 = "2eb267e6ebbe17e5ebc593bae8b83fa927c3e53cbf43ef5c614eff6c94053d10" %} # [aarch64 and arm_variant_type == "tegra"] + +package: + name: cuda-nvcc-impl-split + version: {{ version }} + +source: + url: https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvcc/{{ platform }}/cuda_nvcc-{{ platform }}-{{ version }}-archive.{{ extension }} + sha256: {{ sha256 }} + patches: + - nvcc.profile.patch # [linux] + - nvcc.profile.patch.win # [win] + +build: + number: 3 + binary_relocation: false + skip: true # [osx] + +requirements: + build: + - patchelf # [linux] + - cf-nvidia-tools 1.* # [linux] + +outputs: + - name: cuda-nvcc-tools + files: # [linux] + - bin/* # [linux] + build: + binary_relocation: false + requirements: + build: + - {{ compiler("c") }} + - {{ compiler("cxx") }} + - {{ stdlib("c") }} + host: + - {{ pin_subpackage("cuda-crt-tools", exact=True) }} + - {{ pin_subpackage("cuda-nvvm-tools", exact=True) }} + - arm-variant * {{ arm_variant_type }} # [aarch64] + - cuda-version {{ cuda_version }} + run: + - {{ pin_compatible("cuda-version", max_pin="x.x") }} + - {{ pin_subpackage("cuda-crt-tools", exact=True) }} + - {{ pin_subpackage("cuda-nvvm-tools", exact=True) }} + - arm-variant * {{ arm_variant_type }} # [aarch64] + run_constrained: + - gcc_impl_{{ target_platform }} {{ gcc_constraint }} # [linux] + test: + requires: + - patchelf # [linux] + files: + - patchelf_exclude.txt # [linux] + - test-rpath-nvcc.sh # [linux] + commands: + - test -f $PREFIX/bin/nvcc # [linux] + - test -f $PREFIX/bin/ptxas # [linux] + - bash test-rpath-nvcc.sh # [linux] + about: + home: https://developer.nvidia.com/cuda-toolkit + license_file: LICENSE + license: LicenseRef-NVIDIA-End-User-License-Agreement + license_url: https://docs.nvidia.com/cuda/eula/index.html + summary: Architecture independent part of CUDA NVCC compiler. + description: | + Compiler for CUDA applications. + doc_url: https://docs.nvidia.com/cuda/index.html + + - name: cuda-nvcc-dev_{{ target_platform }} + build: + noarch: generic + missing_dso_whitelist: # [win] + - "*/api-ms-win-core-winrt-*.dll" # [win] + run_exports: + strong: + - cuda-version >={{ cuda_version }},<{{ cuda_version_next_major }} + files: + # targets/{{ target_name }}/bin/nvcc is only a symlink + - targets/{{ target_name }}/bin # [linux] + - targets/{{ target_name }}/include/*.h # [linux] + - targets/{{ target_name }}/lib # [linux] + - Library\bin\*.exe # [win] + - Library\bin\nvcc.profile # [win] + - Library\include\fatbinary_section.h # [win] + - Library\include\nvPTXCompiler.h # [win] + - Library\lib\nvptxcompiler_static.lib # [win] + requirements: + build: + - {{ stdlib("c") }} + host: + - {{ pin_subpackage("cuda-crt-dev_" + target_platform, exact=True) }} + - {{ pin_subpackage("cuda-nvcc-tools", exact=True) }} + - {{ pin_subpackage("cuda-nvvm-dev_" + target_platform, exact=True) }} + - arm-variant * {{ arm_variant_type }} # [aarch64] + - cuda-version {{ cuda_version }} + # Use libgcc-ng instead of libgcc + - libgcc-ng {{ gcc_min_constraint }} # [linux] + run: + - {{ pin_compatible("cuda-version", max_pin="x.x") }} + - {{ pin_subpackage("cuda-crt-dev_" + target_platform, exact=True) }} + - {{ pin_subpackage("cuda-nvvm-dev_" + target_platform, exact=True) }} + - arm-variant * {{ arm_variant_type }} # [aarch64] + # Use libgcc-ng instead of libgcc + - libgcc-ng {{ gcc_min_constraint }} # [linux] + run_constrained: + - gcc_impl_{{ target_platform }} {{ gcc_constraint }} # [linux] + test: + commands: + - test -L $PREFIX/targets/{{ target_name }}/bin/nvcc # [linux] + - test -f $PREFIX/targets/{{ target_name }}/lib/libnvptxcompiler_static.a # [linux] + - test -f $PREFIX/targets/{{ target_name }}/include/fatbinary_section.h # [linux] + - test -f $PREFIX/targets/{{ target_name }}/include/nvPTXCompiler.h # [linux] + - if not exist %LIBRARY_BIN%\nvcc.exe exit 1 # [win] + - if not exist %LIBRARY_BIN%\nvcc.profile exit 1 # [win] + - if not exist %LIBRARY_LIB%\nvptxcompiler_static.lib exit 1 # [win] + - if not exist %LIBRARY_INC%\nvPTXCompiler.h exit 1 # [win] + about: + home: https://developer.nvidia.com/cuda-toolkit + license_file: LICENSE + license: LicenseRef-NVIDIA-End-User-License-Agreement + license_url: https://docs.nvidia.com/cuda/eula/index.html + summary: Target architecture dependent parts of CUDA NVCC compiler. + description: | + Compiler for CUDA applications. + doc_url: https://docs.nvidia.com/cuda/index.html + + - name: cuda-nvcc-impl + build: + # libnvvm.so gets corrupted by patchelf. No need to relocate as it is already relocatable + binary_relocation: false + run_exports: + strong: + - cuda-version >={{ cuda_version }},<{{ cuda_version_next_major }} + files: # [linux] + - lib/libnvptxcompiler_static.a # [linux] + requirements: + host: + - {{ pin_subpackage("cuda-nvvm-impl", exact=True) }} + - arm-variant * {{ arm_variant_type }} # [aarch64] + - cuda-cudart-dev + - cuda-version {{ cuda_version }} + run: + - {{ pin_subpackage("cuda-nvcc-tools", exact=True) }} + - {{ pin_subpackage("cuda-nvcc-dev_" + target_platform, exact=True) }} + - {{ pin_subpackage("cuda-nvvm-impl", exact=True) }} + - {{ pin_compatible("cuda-version", max_pin="x.x") }} + - arm-variant * {{ arm_variant_type }} # [aarch64] + - cuda-cudart-dev + run_constrained: + - gcc_impl_{{ target_platform }} {{ gcc_constraint }} # [linux] + test: + requires: + - {{ compiler("c") }} + - {{ compiler("cxx") }} + - {{ stdlib("c") }} + - cmake + - cuda-driver-dev # [linux] + - git # [linux] + - ninja + files: + - test.cu + - CMakeLists.txt + - run_nvcc_tests.sh # [linux] + - run_nvcc_tests.bat # [win] + commands: + # these symlinks are provided by the gxx and gcc packages on conda-forge + - ln -sf ${PREFIX}/bin/x86_64-conda-linux-gnu-g++ ${PREFIX}/bin/g++ # [linux and x86_64] + - ln -sf ${PREFIX}/bin/x86_64-conda-linux-gnu-gcc ${PREFIX}/bin/gcc # [linux and x86_64] + - ln -sf ${PREFIX}/bin/aarch64-conda-linux-gnu-g++ ${PREFIX}/bin/g++ # [linux and aarch64] + - ln -sf ${PREFIX}/bin/aarch64-conda-linux-gnu-gcc ${PREFIX}/bin/gcc # [linux and aarch64] + # cmake has trouble finding ar on linux-aarch64; so this needs to be added + # compared to conda-forge. NB conda-forge isn't building this for linux-aarch64 currently. + - if [ ! -f "${PREFIX}/bin/ar" ]; then ln -s "${AR}" "${PREFIX}/bin/ar"; fi # [linux and aarch64] + - test -L $PREFIX/lib/libnvptxcompiler_static.a # [linux] + - {{ exists }} nvcc + - ./run_nvcc_tests.sh # [linux] + - .\run_nvcc_tests.bat # [win] + about: + home: https://developer.nvidia.com/cuda-toolkit + license_file: LICENSE + license: LicenseRef-NVIDIA-End-User-License-Agreement + license_url: https://docs.nvidia.com/cuda/eula/index.html + summary: Compiler for CUDA applications. + description: | + Compiler for CUDA applications. + doc_url: https://docs.nvidia.com/cuda/index.html + + - name: cuda-crt-tools + files: + - bin/crt # [linux] + - Library\bin\crt # [win] + requirements: + host: + - cuda-version {{ cuda_version }} + run: + - {{ pin_compatible("cuda-version", max_pin="x.x") }} + - arm-variant * {{ arm_variant_type }} # [aarch64] + test: + commands: + - test -d $PREFIX/bin/crt # [linux] + - test -f $PREFIX/bin/crt/link.stub # [linux] + - if not exist %LIBRARY_BIN%\crt\link.stub exit 1 # [win] + about: + home: https://developer.nvidia.com/cuda-toolkit + license_file: LICENSE + license: LicenseRef-NVIDIA-End-User-License-Agreement + license_url: https://docs.nvidia.com/cuda/eula/index.html + summary: CUDA internal tools. + description: | + CUDA internal tools. + doc_url: https://docs.nvidia.com/cuda/index.html + + - name: cuda-crt-dev_{{ target_platform }} + build: + noarch: generic + run_exports: + strong: + - cuda-version >={{ cuda_version }},<{{ cuda_version_next_major }} + files: + - targets/{{ target_name }}/include/crt # [linux] + - Library\include\crt # [win] + requirements: + host: + - cuda-version {{ cuda_version }} + run: + - {{ pin_compatible("cuda-version", max_pin="x.x") }} + - arm-variant * {{ arm_variant_type }} # [aarch64] + test: + commands: + - test -f $PREFIX/targets/{{ target_name }}/include/crt/common_functions.h # [linux] + - if not exist %LIBRARY_INC%\crt\common_functions.h exit 1 # [win] + about: + home: https://developer.nvidia.com/cuda-toolkit + license_file: LICENSE + license: LicenseRef-NVIDIA-End-User-License-Agreement + license_url: https://docs.nvidia.com/cuda/eula/index.html + summary: CUDA internal headers. + description: | + CUDA internal headers. + doc_url: https://docs.nvidia.com/cuda/index.html + + - name: cuda-nvvm-tools + files: + - nvvm/bin # [linux] + - nvvm/libdevice # [linux] + - Library\nvvm\bin # [win] + - Library\nvvm\libdevice # [win] + requirements: + build: + - {{ compiler("c") }} + - {{ compiler("cxx") }} + - {{ stdlib("c") }} + host: + - cuda-version {{ cuda_version }} + run: + - {{ pin_compatible("cuda-version", max_pin="x.x") }} + - arm-variant * {{ arm_variant_type }} # [aarch64] + test: + requires: + - patchelf # [linux] + files: + - test-rpath-nvvm.sh # [linux] + commands: + - test -d $PREFIX/nvvm # [linux] + - test -f $PREFIX/nvvm/bin/cicc # [linux] + - bash test-rpath-nvvm.sh # [linux] + - if not exist %LIBRARY_PREFIX%\nvvm\bin\cicc.exe exit 1 # [win] + - if not exist %LIBRARY_PREFIX%\nvvm\libdevice exit 1 # [win] + about: + home: https://developer.nvidia.com/cuda-toolkit + license_file: LICENSE + license: LicenseRef-NVIDIA-End-User-License-Agreement + license_url: https://docs.nvidia.com/cuda/eula/index.html + summary: Compiler for CUDA applications. + description: | + Compiler for CUDA applications. + doc_url: https://docs.nvidia.com/cuda/index.html + + - name: cuda-nvvm-dev_{{ target_platform }} + build: + noarch: generic + files: # [linux] + - targets/{{ target_name }}/nvvm # [linux] + requirements: + host: + - cuda-version {{ cuda_version }} + run: + - {{ pin_compatible("cuda-version", max_pin="x.x") }} + - arm-variant * {{ arm_variant_type }} # [aarch64] + test: + commands: + - test -L $PREFIX/targets/{{ target_name }}/nvvm # [linux] + about: + home: https://developer.nvidia.com/cuda-toolkit + license_file: LICENSE + license: LicenseRef-NVIDIA-End-User-License-Agreement + license_url: https://docs.nvidia.com/cuda/eula/index.html + summary: Compiler for CUDA applications. + description: | + Compiler for CUDA applications. + doc_url: https://docs.nvidia.com/cuda/index.html + + - name: cuda-nvvm-impl + build: + # libnvvm.so gets corrupted by patchelf. No need to relocate as it is already relocatable. + binary_relocation: false + # This is a workaround to ignore the overlinking error for problematic *.so files. + # The reason is that in the Amazon Linux 2-based Docker container, there's py-lief version 0.12.3. + # In the Rocky 8 container, there's 0.16.4, which seems to have this bug. + # See also: + # https://github.com/anaconda/docker-images/blob/main/anaconda-pkg-build/linux/rocky8/Dockerfile + # https://github.com/conda/conda-build/issues/5665 + # https://github.com/conda-forge/conda-build-feedstock/pull/251 + # https://github.com/conda-forge/lief-feedstock/pull/57#issuecomment-2770881269 + # This workaround should be removed when the conda-build fix is merged/py-lief pinned and the rocky 8 docker image rebuilt. + overlinking_ignore_patterns: # [linux and aarch64] + - "nvvm/lib64/libnvvm.so*" # [linux and aarch64] + files: + - nvvm/include # [linux] + - nvvm/lib64 # [linux] + - Library\nvvm\include # [win] + - Library\nvvm\lib # [win] + requirements: + build: + - {{ compiler("c") }} + - {{ compiler("cxx") }} + - {{ stdlib("c") }} + host: + - cuda-version {{ cuda_version }} + run: + - {{ pin_compatible("cuda-version", max_pin="x.x") }} + - arm-variant * {{ arm_variant_type }} # [aarch64] + test: + requires: + - patchelf # [linux] + files: + - test-rpath-nvvm.sh # [linux] + commands: + - test -d $PREFIX/nvvm/include # [linux] + - test -d $PREFIX/nvvm/lib64 # [linux] + - bash test-rpath-nvvm.sh # [linux] + - if not exist %LIBRARY_PREFIX%\nvvm\include exit 1 # [win] + - if not exist %LIBRARY_PREFIX%\nvvm\lib exit 1 # [win] + about: + home: https://developer.nvidia.com/cuda-toolkit + license_file: LICENSE + license: LicenseRef-NVIDIA-End-User-License-Agreement + license_url: https://docs.nvidia.com/cuda/eula/index.html + summary: Compiler for CUDA applications. + description: | + Compiler for CUDA applications. + doc_url: https://docs.nvidia.com/cuda/index.html + +about: + home: https://developer.nvidia.com/cuda-toolkit + license_file: LICENSE + license: LicenseRef-NVIDIA-End-User-License-Agreement + license_url: https://docs.nvidia.com/cuda/eula/index.html + summary: Compiler for CUDA applications. + description: | + Compiler for CUDA applications. + doc_url: https://docs.nvidia.com/cuda/index.html + +extra: + feedstock-name: cuda-nvcc-impl + recipe-maintainers: + - conda-forge/cuda diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/nvcc.profile.patch b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/nvcc.profile.patch new file mode 100644 index 0000000000000000000000000000000000000000..4a9713ee43f519c94a8956c6f2ba2e13079205cb --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/nvcc.profile.patch @@ -0,0 +1,23 @@ +--- bin/nvcc.profile.bak 2024-03-12 15:52:23.511145665 +0000 ++++ bin/nvcc.profile 2024-03-12 16:27:28.806624738 +0000 +@@ -1,15 +1,15 @@ + +-TOP = $(_HERE_)/.. ++TOP = $(_HERE_)/../$(_TARGET_DIR_) + + CICC_PATH = $(TOP)/nvvm/bin + NVVMIR_LIBRARY_DIR = $(TOP)/nvvm/libdevice + + LD_LIBRARY_PATH += $(TOP)/lib: +-PATH += $(CICC_PATH):$(_HERE_): ++PATH += $(TOP)/bin:$(CICC_PATH):$(TOP)/../../bin:$(TOP)/../../$(_NVVM_BRANCH_)/bin: + +-INCLUDES += "-I$(TOP)/$(_TARGET_DIR_)/include" $(_SPACE_) ++INCLUDES += "-I$(TOP)/include" $(_SPACE_) + +-LIBRARIES =+ $(_SPACE_) "-L$(TOP)/$(_TARGET_DIR_)/lib$(_TARGET_SIZE_)/stubs" "-L$(TOP)/$(_TARGET_DIR_)/lib$(_TARGET_SIZE_)" ++LIBRARIES =+ $(_SPACE_) "-L$(TOP)/lib/stubs" "-L$(TOP)/lib" + + CUDAFE_FLAGS += + PTXAS_FLAGS += + diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/nvcc.profile.patch.win b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/nvcc.profile.patch.win new file mode 100644 index 0000000000000000000000000000000000000000..96ada0ba28d8ee0a3e10b37b1f9ca1fb4f6be7b0 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/nvcc.profile.patch.win @@ -0,0 +1,14 @@ +--- bin/nvcc.profile 2023-03-23 15:56:49.535384866 -0400 ++++ bin/nvcc.profile.new 2023-03-23 19:21:08.071151138 -0400 +@@ -5,9 +5,9 @@ + + PATH += $(TOP)/$(_NVVM_BRANCH_)/bin;$(_HERE_);$(TOP)/lib; + +-INCLUDES += "-I$(TOP)/include" $(_SPACE_) ++INCLUDES += "-I$(TOP)/include" $(_SPACE_) "-I$(TOP)/include/targets/$(_WIN_PLATFORM_)" $(_SPACE_) + +-LIBRARIES =+ $(_SPACE_) "/LIBPATH:$(TOP)/lib/$(_WIN_PLATFORM_)" ++LIBRARIES =+ $(_SPACE_) "/LIBPATH:$(TOP)/lib/$(_WIN_PLATFORM_)" $(_SPACE_) "/LIBPATH:$(TOP)/lib" + + CUDAFE_FLAGS += + PTXAS_FLAGS += diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/patchelf_exclude.txt b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/patchelf_exclude.txt new file mode 100644 index 0000000000000000000000000000000000000000..3075b28c97b65aaecf7b3a870e0fa29bfdf54f5b --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/patchelf_exclude.txt @@ -0,0 +1,4 @@ +link.stub +prelink.stub +nvcc.profile +patchelf diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/run_nvcc_tests.bat b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/run_nvcc_tests.bat new file mode 100644 index 0000000000000000000000000000000000000000..852f98821e74ed49eb40fc691a2aab917575936f --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/run_nvcc_tests.bat @@ -0,0 +1,45 @@ +@echo on + +nvcc --version +if errorlevel 1 exit 1 + +nvcc --verbose test.cu +if errorlevel 1 exit 1 + +cmake -S . -B ./build -G=Ninja && cmake --build ./build -v +if errorlevel 1 exit 1 + +REM Get CMake version for cloning the right branch +for /f "tokens=3" %%i in ('cmake --version ^| findstr version') do set CMAKE_VERSION=%%i + +REM Clone and build CMake's test suite +md cmake-tests +git clone -b v%CMAKE_VERSION% --depth 1 https://gitlab.kitware.com/cmake/cmake.git cmake-tests +if errorlevel 1 exit 1 + +cmake -S cmake-tests -B cmake-tests/build -DCMake_TEST_HOST_CMAKE=ON -DCMake_TEST_CUDA=nvcc -G "Ninja" +if errorlevel 1 exit 1 + +REM Change to the CMake test build directory and run CUDA tests +cd cmake-tests\build + +REM Test exclusion list: +REM Requires CUDA libraries not available in build environment +REM ProperDeviceLibraries (needs cublas) +REM *SharedRuntime* (needs curand) +REM +REM Requires execution on a machine with a CUDA GPU +REM ObjectLibrary, WithC, StubRPATH, ArchSpecial, GPUDebugFlag +REM SeparateCompilationPTX, WithDefs, CUBIN, Fatbin, OptixIR +REM CUDA_architectures, *Toolkit* +REM +REM Failing due to glibc symbol issues +REM Cuda.Complex +REM +REM Windows-specific issues (path length, resource compiler, command parsing) +REM CompileFeatures - Windows environment compatibility issues +REM NinjaMultiConfig - Windows resource compiler and manifest file issues +REM UnityBuild - Windows path length limitations (250 character limit) +REM RuntimeControls - Windows command parsing issues with complex paths +ctest -L CUDA --output-on-failure -E "(Architecture|CompileFlags|DeviceLTO|ProperDeviceLibraries|SharedRuntime|ObjectLibrary|WithC|StubRPATH|ArchSpecial|GPUDebugFlag|SeparateCompilationPTX|WithDefs|CUBIN|Fatbin|OptixIR|CUDA_architectures|Toolkit|Cuda.Complex|CompileFeatures|NinjaMultiConfig|UnityBuild|RuntimeControls)" +if errorlevel 1 exit 1 diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/run_nvcc_tests.sh b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/run_nvcc_tests.sh new file mode 100644 index 0000000000000000000000000000000000000000..cde7715a4242ebefd204db4515da75e054499d8e --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/run_nvcc_tests.sh @@ -0,0 +1,67 @@ +#!/bin/bash +set -e +set -x + +kernel_name="$(uname -s)" +if [[ "${kernel_name}" != "Linux" ]] +then + echo "Unknown OS. Expected Linux, but found ${kernel_name}" + exit 1 +fi + +processor_name="$(uname -m)" +case "${processor_name}" in + "x86_64") test_platform="linux-64" ;; + "aarch64") test_platform="linux-aarch64" ;; + "ppc64le") test_platform="linux-ppc64le" ;; + *) echo "Unknown architecture: ${processor_name}" && exit 1 ;; +esac + +if [[ "${test_platform}" != "${target_platform}" ]] +then + echo "Skipping NVCC testing as current platform is ${test_platform}, whereas; NVCC is built for ${target_platform}." + exit 0 +fi + +cmake_version=$(cmake --version | grep version | awk '{print $3}') + +nvcc --version + +nvcc --verbose test.cu + +cmake -S . -B ./build -G=Ninja && cmake --build ./build -v + +if [[ "${target_platform}" == "linux-ppc64le" ]] +then + echo "Skipping CMake tests on ${target_platform} due to known issues." + exit 0 +fi + +mkdir -p cmake-tests +git clone -b v${cmake_version} --depth 1 https://gitlab.kitware.com/cmake/cmake.git cmake-tests +cmake -S cmake-tests -B cmake-tests/build -DCMake_TEST_HOST_CMAKE=ON -DCMake_TEST_CUDA=nvcc -G "Ninja" +cd cmake-tests/build + +# Test exclusion list: +# Requires cublas +# Cuda.ProperDeviceLibraries +# +# Requires curand +# *SharedRuntime* +# +# Requires execution on a machine with a CUDA GPU +# Cuda.ObjectLibrary +# Cuda.WithC +# Cuda.StubRPATH +# CudaOnly.ArchSpecial +# CudaOnly.GPUDebugFlag +# CudaOnly.SeparateCompilationPTX +# CudaOnly.WithDefs +# CudaOnly.CUBIN +# CudaOnly.Fatbin +# CudaOnly.OptixIR +# RunCMake.CUDA_architectures +# *Toolkit* +# Failing due to undefined symbol: __libc_dl_error_tsd, version GLIBC_PRIVATE +# Cuda.Complex +CUDAHOSTCXX=$CXX ctest -L CUDA --output-on-failure -j $(nproc) -E "(ProperDeviceLibraries|SharedRuntime|ObjectLibrary|WithC|StubRPATH|ArchSpecial|GPUDebugFlag|SeparateCompilationPTX|WithDefs|CUBIN|Fatbin|OptixIR|CUDA_architectures|Toolkit|Cuda.Complex)" diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/test-rpath-nvcc.sh b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/test-rpath-nvcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3de7e6b591acdb50946ea586a697c4b464350de --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/test-rpath-nvcc.sh @@ -0,0 +1,50 @@ +#!/bin/bash + +[[ ${target_platform} == "linux-64" ]] && targetsDir="targets/x86_64-linux" +[[ ${target_platform} == "linux-ppc64le" ]] && targetsDir="targets/ppc64le-linux" +# https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html?highlight=tegra#cross-compilation +[[ ${target_platform} == "linux-aarch64" && ${arm_variant_type} == "sbsa" ]] && targetsDir="targets/sbsa-linux" +[[ ${target_platform} == "linux-aarch64" && ${arm_variant_type} == "tegra" ]] && targetsDir="targets/aarch64-linux" + +if [ -z "${targetsDir+x}" ]; then + echo "target_platform: ${target_platform} is unknown! targetsDir must be defined!" >&2 + exit 1 +fi + +errors="" + +for item in `find ${PREFIX}/bin -type f`; do + filename=$(basename "${item}") + echo "Artifact to test: ${filename}" + + if grep -qx "${filename}" patchelf_exclude.txt; then + echo Skipping ${filename} as it is not subject to testing + continue + fi + + pkg_info=$(conda package -w "${item}") + echo "\$PKG_NAME: ${PKG_NAME}" + echo "\$pkg_info: ${pkg_info}" + + if [[ ! "$pkg_info" == *"$PKG_NAME"* ]]; then + echo "Not a match, skipping ${item}" + continue + fi + + echo "Match found, testing ${item}" + + rpath=$(patchelf --print-rpath "${item}") + echo "${item} rpath: ${rpath}" + + if [[ ${item} =~ /bin/ && $rpath != "\$ORIGIN/../lib:\$ORIGIN/../${targetsDir}/lib" ]]; then + errors+="${item}\n" + elif [[ $(objdump -x ${item} | grep "PATH") == *"RUNPATH"* ]]; then + errors+="${item}\n" + fi +done + +if [[ $errors ]]; then + echo "The following items were found with an unexpected RPATH:" + echo -e "${errors}" + exit 1 +fi diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/test-rpath-nvvm.sh b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/test-rpath-nvvm.sh new file mode 100644 index 0000000000000000000000000000000000000000..2779d0b0240e6c8d0b696543a23811dc258cb045 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/test-rpath-nvvm.sh @@ -0,0 +1,58 @@ +#!/bin/bash + +[[ ${target_platform} == "linux-64" ]] && targetsDir="targets/x86_64-linux" +[[ ${target_platform} == "linux-ppc64le" ]] && targetsDir="targets/ppc64le-linux" +# https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html?highlight=tegra#cross-compilation +[[ ${target_platform} == "linux-aarch64" && ${arm_variant_type} == "sbsa" ]] && targetsDir="targets/sbsa-linux" +[[ ${target_platform} == "linux-aarch64" && ${arm_variant_type} == "tegra" ]] && targetsDir="targets/aarch64-linux" + +if [ -z "${targetsDir+x}" ]; then + echo "target_platform: ${target_platform} is unknown! targetsDir must be defined!" >&2 + exit 1 +fi + +errors="" + +dirs=() +[[ -d ${PREFIX}/nvvm/bin ]] && dirs+=(${PREFIX}/nvvm/bin) +[[ -d ${PREFIX}/nvvm/lib64 ]] && dirs+=(${PREFIX}/nvvm/lib64) + +if [[ ${#dirs[@]} == 0 ]]; then + echo "There is nothing to test. Returning." + exit +fi + +for item in `find ${dirs[@]} -type f`; do + [[ -L $item ]] && continue + + echo "Artifact to test: ${item}" + filename=$(basename "${item}") + + pkg_info=$(conda package -w "${item}") + echo "\$PKG_NAME: ${PKG_NAME}" + echo "\$pkg_info: ${pkg_info}" + + if [[ ! "$pkg_info" == *"$PKG_NAME"* ]]; then + echo "Not a match, skipping ${item}" + continue + fi + + echo "Match found, testing ${item}" + + rpath=$(patchelf --print-rpath "${item}") + echo "${item} rpath: ${rpath}" + + if [[ ${item} =~ /nvvm/bin/ && $rpath != "\$ORIGIN/../lib64:\$ORIGIN/../../lib:\$ORIGIN/../../${targetsDir}/lib" ]]; then + errors+="${item}\n" + elif [[ ${item} =~ nvvm/lib64/ && $rpath != "\$ORIGIN" ]]; then + errors+="${item}\n" + elif [[ $(objdump -x ${item} | grep "PATH") == *"RUNPATH"* ]]; then + errors+="${item}\n" + fi +done + +if [[ $errors ]]; then + echo "The following items were found with an unexpected RPATH:" + echo -e "${errors}" + exit 1 +fi diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/test.cu b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/test.cu new file mode 100644 index 0000000000000000000000000000000000000000..33c14ce1d76c0abf607ca769d1c3f913b0a7e421 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/recipe/parent/test.cu @@ -0,0 +1,3 @@ +int main() { + return 0; +} diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/repodata_record.json b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..6b796cdd6264f88181126daac9255645767a96a5 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/repodata_record.json @@ -0,0 +1,21 @@ +{ + "name": "cuda-crt-tools", + "version": "12.8.93", + "build": "h06a4308_3", + "build_number": 3, + "channel": "https://repo.anaconda.com/pkgs/main/linux-64", + "subdir": "linux-64", + "fn": "cuda-crt-tools-12.8.93-h06a4308_3.conda", + "md5": "dc6693b0b32b7272bc9c5a1187e5c42b", + "url": "https://repo.anaconda.com/pkgs/main/linux-64/cuda-crt-tools-12.8.93-h06a4308_3.conda", + "sha256": "e5ed09f0f95f0c37b9a7559e0ff98861c84fbaa24c94170a24d0174aa9b084b6", + "arch": "x86_64", + "platform": "linux", + "depends": [ + "cuda-version >=12.8,<12.9.0a0" + ], + "constrains": [], + "license": "LicenseRef-NVIDIA-End-User-License-Agreement", + "timestamp": 1758920528000, + "size": 27040 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/test/run_test.sh b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..a09cc54ca8ffcc982fd5644bc722717bde36e881 --- /dev/null +++ b/data/miniconda3/pkgs/cuda-crt-tools-12.8.93-h06a4308_3/info/test/run_test.sh @@ -0,0 +1,9 @@ + + +set -ex + + + +test -d $PREFIX/bin/crt +test -f $PREFIX/bin/crt/link.stub +exit 0 diff --git a/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/about.json b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..2e3d877d1cf680a5f7740b0a12d557e2a6d9e115 --- /dev/null +++ b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/about.json @@ -0,0 +1,125 @@ +{ + "channels": [ + "https://conda.anaconda.org/conda-forge", + "https://repo.anaconda.com/pkgs/main" + ], + "conda_build_version": "3.21.4", + "conda_private": false, + "conda_version": "4.10.1", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "recipe-maintainers": [ + "dbast" + ] + }, + "home": "https://adobe-fonts.github.io/source-code-pro/", + "identifiers": [], + "keywords": [], + "license": "OFL-1.1", + "license_family": "Other", + "license_file": "LICENSE.md", + "root_pkgs": [ + "ca-certificates 2020.12.5 ha878542_0", + "tini 0.18.0 h14c3975_1001", + "jupyter_core 4.7.1 py38h578d9bd_0", + "zstd 1.4.9 ha95c52a_0", + "zipp 3.4.1 pyhd8ed1ab_0", + "brotlipy 0.7.0 py38h497a2fe_1001", + "pysocks 1.7.1 py38h578d9bd_3", + "setuptools 49.6.0 py38h578d9bd_3", + "tk 8.6.10 h21135ba_1", + "ld_impl_linux-64 2.35.1 hea4e1c9_2", + "ruamel_yaml 0.15.80 py38h497a2fe_1004", + "icu 68.1 h58526e2_0", + "libxml2 2.9.10 h72842e0_4", + "certifi 2020.12.5 py38h578d9bd_1", + "pyyaml 5.4.1 py38h497a2fe_0", + "libiconv 1.16 h516909a_0", + "anaconda-client 1.7.2 py_0", + "traitlets 5.0.5 py_0", + "libgomp 9.3.0 h2828fa1_19", + "wheel 0.36.2 pyhd3deb0d_0", + "requests 2.25.1 pyhd3deb0d_0", + "pkginfo 1.7.0 pyhd8ed1ab_0", + "yaml 0.2.5 h516909a_0", + "_libgcc_mutex 0.1 conda_forge", + "nbformat 5.1.3 pyhd8ed1ab_0", + "python 3.8.8 hffdb5ce_0_cpython", + "curl 7.76.1 h979ede3_1", + "zlib 1.2.11 h516909a_1010", + "jsonschema 3.2.0 pyhd8ed1ab_3", + "ncurses 6.2 h58526e2_4", + "libssh2 1.9.0 ha56f1ee_6", + "jinja2 2.11.3 pyh44b312d_0", + "libev 4.33 h516909a_1", + "python-libarchive-c 2.9 py38h578d9bd_2", + "filelock 3.0.12 pyh9f0ad1d_0", + "readline 8.1 h46c0cb4_0", + "krb5 1.17.2 h926e7f8_0", + "perl 5.32.0 h36c2ea0_0", + "tqdm 4.60.0 pyhd8ed1ab_0", + "libffi 3.3 h58526e2_2", + "pytz 2021.1 pyhd8ed1ab_0", + "python-dateutil 2.8.1 py_0", + "python_abi 3.8 1_cp38", + "markupsafe 1.1.1 py38h497a2fe_3", + "git 2.30.2 pl5320h24fefe6_1", + "su-exec 0.2 h516909a_1002", + "chardet 4.0.0 py38h578d9bd_1", + "libgcc-ng 9.3.0 h2828fa1_19", + "_openmp_mutex 4.5 1_gnu", + "lz4-c 1.9.3 h9c3ff4c_0", + "py-lief 0.10.1 py38h348cfbe_2", + "six 1.15.0 pyh9f0ad1d_0", + "psutil 5.8.0 py38h497a2fe_1", + "ipython_genutils 0.2.0 py_1", + "c-ares 1.17.1 h7f98852_1", + "conda-build 3.21.4 py38h578d9bd_0", + "sqlite 3.35.5 h74cdb3f_0", + "cryptography 3.4.7 py38ha5dfef3_0", + "patchelf 0.11 he1b5a44_0", + "urllib3 1.26.4 pyhd8ed1ab_0", + "pycosat 0.6.3 py38h497a2fe_1006", + "patch 2.7.6 h7f98852_1002", + "soupsieve 2.0.1 py_1", + "importlib-metadata 4.0.1 py38h578d9bd_0", + "pycparser 2.20 pyh9f0ad1d_2", + "pyopenssl 20.0.1 pyhd8ed1ab_0", + "libstdcxx-ng 9.3.0 h6de172a_19", + "liblief 0.10.1 he1b5a44_2", + "xz 5.2.5 h516909a_1", + "conda 4.10.1 py38h578d9bd_0", + "pyrsistent 0.17.3 py38h497a2fe_2", + "libnghttp2 1.43.0 h812cca2_0", + "openssl 1.1.1k h7f98852_0", + "attrs 20.3.0 pyhd3deb0d_0", + "idna 2.10 pyh9f0ad1d_0", + "libedit 3.1.20191231 he28a2e2_2", + "libarchive 3.5.1 h3f442fb_1", + "expat 2.3.0 h9c3ff4c_0", + "beautifulsoup4 4.9.3 pyhb0f4dca_0", + "conda-package-handling 1.7.3 py38h497a2fe_0", + "gettext 0.19.8.1 h0b5b191_1005", + "bzip2 1.0.8 h7f98852_4", + "clyent 1.2.2 py_1", + "pcre 8.44 he1b5a44_0", + "cffi 1.14.5 py38ha65f79e_0", + "libcurl 7.76.1 hc4aaa36_1", + "lzo 2.10 h516909a_1000", + "glob2 0.7 py_0", + "ripgrep 12.1.1 h516909a_1", + "conda-env 2.6.0 1", + "conda-forge-ci-setup 3.9.4 py38hcd7a344_0", + "shyaml 0.6.2 pyhd3deb0d_0", + "click 7.1.2 pyh9f0ad1d_0", + "jq 1.6 h36c2ea0_1000", + "pip 21.1.1 pyhd8ed1ab_0", + "oniguruma 6.9.7.1 h7f98852_0" + ], + "summary": "A set of fonts that have been designed to work well in UI environments", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/files b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/files new file mode 100644 index 0000000000000000000000000000000000000000..092004b75fbb0586621fe72389feeabc1cfb34b2 --- /dev/null +++ b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/files @@ -0,0 +1,14 @@ +fonts/SourceCodePro-Black.ttf +fonts/SourceCodePro-BlackIt.ttf +fonts/SourceCodePro-Bold.ttf +fonts/SourceCodePro-BoldIt.ttf +fonts/SourceCodePro-ExtraLight.ttf +fonts/SourceCodePro-ExtraLightIt.ttf +fonts/SourceCodePro-It.ttf +fonts/SourceCodePro-Light.ttf +fonts/SourceCodePro-LightIt.ttf +fonts/SourceCodePro-Medium.ttf +fonts/SourceCodePro-MediumIt.ttf +fonts/SourceCodePro-Regular.ttf +fonts/SourceCodePro-Semibold.ttf +fonts/SourceCodePro-SemiboldIt.ttf diff --git a/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/git b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/hash_input.json b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..369943015d95157b833648cf1d57eb2f80f6d0e3 --- /dev/null +++ b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/hash_input.json @@ -0,0 +1,4 @@ +{ + "channel_targets": "conda-forge main", + "bzip2": "1" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/index.json b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..77a31b24ebf082400b3518976c7c784539b3a2ce --- /dev/null +++ b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/index.json @@ -0,0 +1,14 @@ +{ + "arch": null, + "build": "h77eed37_0", + "build_number": 0, + "depends": [], + "license": "OFL-1.1", + "license_family": "Other", + "name": "font-ttf-source-code-pro", + "noarch": "generic", + "platform": null, + "subdir": "noarch", + "timestamp": 1620479612257, + "version": "2.038" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/licenses/LICENSE.md b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/licenses/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..9f9886d387574d5e34c03d38e970225a5fc2f1cc --- /dev/null +++ b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/licenses/LICENSE.md @@ -0,0 +1,93 @@ +Copyright 2010-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. + +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/link.json b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/link.json new file mode 100644 index 0000000000000000000000000000000000000000..f072e87f8bb5634b93a0459b8b7c6b15eef0c47c --- /dev/null +++ b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/link.json @@ -0,0 +1,6 @@ +{ + "noarch": { + "type": "generic" + }, + "package_metadata_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/paths.json b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..d4318c4e9ab09d5270c7ec4071d152c3d8a1c46a --- /dev/null +++ b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/paths.json @@ -0,0 +1,89 @@ +{ + "paths": [ + { + "_path": "fonts/SourceCodePro-Black.ttf", + "path_type": "hardlink", + "sha256": "b6fd30448376bfb69fe26636a0c31b2c2030dbf36cfba92b7c732780f9d60b17", + "size_in_bytes": 138384 + }, + { + "_path": "fonts/SourceCodePro-BlackIt.ttf", + "path_type": "hardlink", + "sha256": "1b72bb2408515c3841a4c914a75fbc3a8d116b986821d6937b140c1221c0a017", + "size_in_bytes": 116028 + }, + { + "_path": "fonts/SourceCodePro-Bold.ttf", + "path_type": "hardlink", + "sha256": "a937c8118b2271d090765fdb3575f659020cab8b2f40ffe630c49574d2733f44", + "size_in_bytes": 138268 + }, + { + "_path": "fonts/SourceCodePro-BoldIt.ttf", + "path_type": "hardlink", + "sha256": "b19216946d18da2fd6c432708571633b99a76641fcfcd6357c29691108828f81", + "size_in_bytes": 116112 + }, + { + "_path": "fonts/SourceCodePro-ExtraLight.ttf", + "path_type": "hardlink", + "sha256": "c5b2acd80408604dc4608af5eaff4dbe3ca8a9c779bd157b7de3cdd8a6ccc6d9", + "size_in_bytes": 139860 + }, + { + "_path": "fonts/SourceCodePro-ExtraLightIt.ttf", + "path_type": "hardlink", + "sha256": "ce0855c8364fbb44453b18c8ca9cd5fd2f36ba1250fa4ddea8c84864b243dc16", + "size_in_bytes": 117460 + }, + { + "_path": "fonts/SourceCodePro-It.ttf", + "path_type": "hardlink", + "sha256": "8529f2df1c810b80905a64ad3a1b6e48068bbd302a323a826e8fa65bb6743289", + "size_in_bytes": 116740 + }, + { + "_path": "fonts/SourceCodePro-Light.ttf", + "path_type": "hardlink", + "sha256": "388b23a40b69adcb758d26a0470df28223c42ffbfa425cdfed3c3eeafa5a891d", + "size_in_bytes": 139508 + }, + { + "_path": "fonts/SourceCodePro-LightIt.ttf", + "path_type": "hardlink", + "sha256": "7f287fab6f791d871bcfcf8abd43b45580445bc5ab602f4f53a3813dbff6a9a8", + "size_in_bytes": 117404 + }, + { + "_path": "fonts/SourceCodePro-Medium.ttf", + "path_type": "hardlink", + "sha256": "6a1564c7b5469d310744770558657fe8c22187d4cab802a8696274772046b6ae", + "size_in_bytes": 138224 + }, + { + "_path": "fonts/SourceCodePro-MediumIt.ttf", + "path_type": "hardlink", + "sha256": "52ff4c7a38d4bbfd8bd8ba3f79f0a55b8f76e4317379f2e02a92cce8439faf05", + "size_in_bytes": 116376 + }, + { + "_path": "fonts/SourceCodePro-Regular.ttf", + "path_type": "hardlink", + "sha256": "f144137f557805c7327fc4b14d1d730f6e1822e0124170251ff1bcd723a693f1", + "size_in_bytes": 138680 + }, + { + "_path": "fonts/SourceCodePro-Semibold.ttf", + "path_type": "hardlink", + "sha256": "1b61c980d75de8216228a2603bcabe51394013452df26a04c99326bbc035c5a5", + "size_in_bytes": 138208 + }, + { + "_path": "fonts/SourceCodePro-SemiboldIt.ttf", + "path_type": "hardlink", + "sha256": "3919a7ea6ef6c5b314b87bf58b61c6e12bf928ae7a944e2c478c9593e96529db", + "size_in_bytes": 116272 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/recipe/build.sh b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/recipe/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..246f3d3bb84eceb2ebdeb6ca47697af8d24b1c6f --- /dev/null +++ b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/recipe/build.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +mkdir -p ${PREFIX}/fonts || true +install -v -m644 ./TTF/*.ttf ${PREFIX}/fonts/ diff --git a/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/recipe/conda_build_config.yaml b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e70b1270c7638036f1948321eea83625915588bf --- /dev/null +++ b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/recipe/conda_build_config.yaml @@ -0,0 +1,37 @@ +CI: azure +bzip2: '1' +c_compiler: gcc +cdt_name: cos6 +channel_sources: conda-forge,defaults +channel_targets: conda-forge main +cpu_optimization_target: nocona +cran_mirror: https://cran.r-project.org +cxx_compiler: gxx +docker_image: quay.io/condaforge/linux-anvil-comp7 +extend_keys: +- ignore_version +- pin_run_as_build +- ignore_build_only_deps +- extend_keys +fortran_compiler: gfortran +ignore_build_only_deps: +- numpy +- python +lua: '5' +numpy: '1.16' +perl: 5.26.2 +pin_run_as_build: + python: + min_pin: x.x + max_pin: x.x + r-base: + min_pin: x.x + max_pin: x.x + bzip2: + max_pin: x +python: '3.8' +r_base: '3.5' +target_platform: linux-64 +zip_keys: +- - cdt_name + - docker_image diff --git a/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/recipe/meta.yaml b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/recipe/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..98f1e7e6f553a0988cbbaa60e7a5052189a05a8f --- /dev/null +++ b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/recipe/meta.yaml @@ -0,0 +1,47 @@ +# This file created by conda-build 3.21.4 +# meta.yaml template originally from: +# /home/conda/recipe_root, last modified Sat May 8 13:11:20 2021 +# ------------------------------------------------ + +package: + name: font-ttf-source-code-pro + version: '2.038' +source: + sha256: d8f879fefd66ecb7291ea2d73984b9c0a97fb499424e58290ba6b81787d0c725 + url: https://github.com/adobe-fonts/source-code-pro/archive/refs/tags/2.038R-ro/1.058R-it/1.018R-VAR.tar.gz +build: + noarch: generic + number: '0' + string: h77eed37_0 +requirements: + build: [] + run: [] +test: + commands: + - test -f ${PREFIX}/fonts/SourceCodePro-Black.ttf + - test -f ${PREFIX}/fonts/SourceCodePro-BlackIt.ttf + - test -f ${PREFIX}/fonts/SourceCodePro-Bold.ttf + - test -f ${PREFIX}/fonts/SourceCodePro-BoldIt.ttf + - test -f ${PREFIX}/fonts/SourceCodePro-ExtraLight.ttf + - test -f ${PREFIX}/fonts/SourceCodePro-ExtraLightIt.ttf + - test -f ${PREFIX}/fonts/SourceCodePro-It.ttf + - test -f ${PREFIX}/fonts/SourceCodePro-Light.ttf + - test -f ${PREFIX}/fonts/SourceCodePro-LightIt.ttf + - test -f ${PREFIX}/fonts/SourceCodePro-Medium.ttf + - test -f ${PREFIX}/fonts/SourceCodePro-MediumIt.ttf + - test -f ${PREFIX}/fonts/SourceCodePro-Regular.ttf + - test -f ${PREFIX}/fonts/SourceCodePro-Semibold.ttf + - test -f ${PREFIX}/fonts/SourceCodePro-SemiboldIt.ttf + requires: + - bzip2 +about: + home: https://adobe-fonts.github.io/source-code-pro/ + license: OFL-1.1 + license_family: Other + license_file: LICENSE.md + summary: A set of fonts that have been designed to work well in UI environments +extra: + copy_test_source_files: true + final: true + recipe-maintainers: + - dbast diff --git a/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/recipe/meta.yaml.template b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/recipe/meta.yaml.template new file mode 100644 index 0000000000000000000000000000000000000000..026e94718f8003e159de7c1a46fc771faba48c30 --- /dev/null +++ b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/recipe/meta.yaml.template @@ -0,0 +1,44 @@ +{% set version = '2.038' %} + +package: + name: font-ttf-source-code-pro + version: {{ version }} + +source: + url: https://github.com/adobe-fonts/source-code-pro/archive/refs/tags/{{ version }}R-ro/1.058R-it/1.018R-VAR.tar.gz + sha256: d8f879fefd66ecb7291ea2d73984b9c0a97fb499424e58290ba6b81787d0c725 + +build: + number: 0 + noarch: generic + +test: + requires: + # dummy to have at least one test env requirement + - bzip2 + commands: + - test -f ${PREFIX}/fonts/SourceCodePro-Black.ttf # [unix] + - test -f ${PREFIX}/fonts/SourceCodePro-BlackIt.ttf # [unix] + - test -f ${PREFIX}/fonts/SourceCodePro-Bold.ttf # [unix] + - test -f ${PREFIX}/fonts/SourceCodePro-BoldIt.ttf # [unix] + - test -f ${PREFIX}/fonts/SourceCodePro-ExtraLight.ttf # [unix] + - test -f ${PREFIX}/fonts/SourceCodePro-ExtraLightIt.ttf # [unix] + - test -f ${PREFIX}/fonts/SourceCodePro-It.ttf # [unix] + - test -f ${PREFIX}/fonts/SourceCodePro-Light.ttf # [unix] + - test -f ${PREFIX}/fonts/SourceCodePro-LightIt.ttf # [unix] + - test -f ${PREFIX}/fonts/SourceCodePro-Medium.ttf # [unix] + - test -f ${PREFIX}/fonts/SourceCodePro-MediumIt.ttf # [unix] + - test -f ${PREFIX}/fonts/SourceCodePro-Regular.ttf # [unix] + - test -f ${PREFIX}/fonts/SourceCodePro-Semibold.ttf # [unix] + - test -f ${PREFIX}/fonts/SourceCodePro-SemiboldIt.ttf # [unix] + +about: + home: https://adobe-fonts.github.io/source-code-pro/ + summary: A set of fonts that have been designed to work well in UI environments + license: OFL-1.1 + license_file: LICENSE.md + license_family: Other + +extra: + recipe-maintainers: + - dbast diff --git a/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/repodata_record.json b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..c11e3922b887d7069c81fd9472dd28c77ac3d489 --- /dev/null +++ b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/repodata_record.json @@ -0,0 +1,20 @@ +{ + "name": "font-ttf-source-code-pro", + "version": "2.038", + "build": "h77eed37_0", + "build_number": 0, + "channel": "https://conda.anaconda.org/conda-forge/noarch", + "subdir": "noarch", + "fn": "font-ttf-source-code-pro-2.038-h77eed37_0.tar.bz2", + "md5": "4d59c254e01d9cde7957100457e2d5fb", + "url": "https://conda.anaconda.org/conda-forge/noarch/font-ttf-source-code-pro-2.038-h77eed37_0.tar.bz2", + "sha256": "00925c8c055a2275614b4d983e1df637245e19058d79fc7dd1a93b8d9fb4b139", + "depends": [], + "constrains": [], + "noarch": "generic", + "license": "OFL-1.1", + "license_family": "Other", + "package_type": "noarch_generic", + "timestamp": 1620479612000, + "size": 700814 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/test/run_test.bat b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/test/run_test.bat new file mode 100644 index 0000000000000000000000000000000000000000..97e23f55d8bfa43f07102b29666622be0af07402 --- /dev/null +++ b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/test/run_test.bat @@ -0,0 +1,33 @@ + + + + +test -f ${PREFIX}/fonts/SourceCodePro-Black.ttf +IF %ERRORLEVEL% NEQ 0 exit /B 1 +test -f ${PREFIX}/fonts/SourceCodePro-BlackIt.ttf +IF %ERRORLEVEL% NEQ 0 exit /B 1 +test -f ${PREFIX}/fonts/SourceCodePro-Bold.ttf +IF %ERRORLEVEL% NEQ 0 exit /B 1 +test -f ${PREFIX}/fonts/SourceCodePro-BoldIt.ttf +IF %ERRORLEVEL% NEQ 0 exit /B 1 +test -f ${PREFIX}/fonts/SourceCodePro-ExtraLight.ttf +IF %ERRORLEVEL% NEQ 0 exit /B 1 +test -f ${PREFIX}/fonts/SourceCodePro-ExtraLightIt.ttf +IF %ERRORLEVEL% NEQ 0 exit /B 1 +test -f ${PREFIX}/fonts/SourceCodePro-It.ttf +IF %ERRORLEVEL% NEQ 0 exit /B 1 +test -f ${PREFIX}/fonts/SourceCodePro-Light.ttf +IF %ERRORLEVEL% NEQ 0 exit /B 1 +test -f ${PREFIX}/fonts/SourceCodePro-LightIt.ttf +IF %ERRORLEVEL% NEQ 0 exit /B 1 +test -f ${PREFIX}/fonts/SourceCodePro-Medium.ttf +IF %ERRORLEVEL% NEQ 0 exit /B 1 +test -f ${PREFIX}/fonts/SourceCodePro-MediumIt.ttf +IF %ERRORLEVEL% NEQ 0 exit /B 1 +test -f ${PREFIX}/fonts/SourceCodePro-Regular.ttf +IF %ERRORLEVEL% NEQ 0 exit /B 1 +test -f ${PREFIX}/fonts/SourceCodePro-Semibold.ttf +IF %ERRORLEVEL% NEQ 0 exit /B 1 +test -f ${PREFIX}/fonts/SourceCodePro-SemiboldIt.ttf +IF %ERRORLEVEL% NEQ 0 exit /B 1 +exit /B 0 diff --git a/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/test/run_test.sh b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..0fd0e9adb8d899aaf4ba994def2411e9695f22aa --- /dev/null +++ b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/test/run_test.sh @@ -0,0 +1,21 @@ + + +set -ex + + + +test -f ${PREFIX}/fonts/SourceCodePro-Black.ttf +test -f ${PREFIX}/fonts/SourceCodePro-BlackIt.ttf +test -f ${PREFIX}/fonts/SourceCodePro-Bold.ttf +test -f ${PREFIX}/fonts/SourceCodePro-BoldIt.ttf +test -f ${PREFIX}/fonts/SourceCodePro-ExtraLight.ttf +test -f ${PREFIX}/fonts/SourceCodePro-ExtraLightIt.ttf +test -f ${PREFIX}/fonts/SourceCodePro-It.ttf +test -f ${PREFIX}/fonts/SourceCodePro-Light.ttf +test -f ${PREFIX}/fonts/SourceCodePro-LightIt.ttf +test -f ${PREFIX}/fonts/SourceCodePro-Medium.ttf +test -f ${PREFIX}/fonts/SourceCodePro-MediumIt.ttf +test -f ${PREFIX}/fonts/SourceCodePro-Regular.ttf +test -f ${PREFIX}/fonts/SourceCodePro-Semibold.ttf +test -f ${PREFIX}/fonts/SourceCodePro-SemiboldIt.ttf +exit 0 diff --git a/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/test/test_time_dependencies.json b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/test/test_time_dependencies.json new file mode 100644 index 0000000000000000000000000000000000000000..ed1206ac0ab6577108af5fdb5e73288398fb5a34 --- /dev/null +++ b/data/miniconda3/pkgs/font-ttf-source-code-pro-2.038-h77eed37_0/info/test/test_time_dependencies.json @@ -0,0 +1 @@ +["bzip2"] \ No newline at end of file diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/etc/conda/activate.d/activate-gxx_linux-64.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/etc/conda/activate.d/activate-gxx_linux-64.sh new file mode 100644 index 0000000000000000000000000000000000000000..69523fff39fff73f19f6cee5bf10d89745eaaf8f --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/etc/conda/activate.d/activate-gxx_linux-64.sh @@ -0,0 +1,123 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + thing=$(echo "${thing}" | tr 'a-z+-' 'A-ZX_') + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +# When people are using conda-build, assume that adding rpath during build, and pointing at +# the host env's includes and libs is helpful default behavior +if [ "${CONDA_BUILD:-0}" = "1" ]; then + CXXFLAGS_USED="-fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + DEBUG_CXXFLAGS_USED="-fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" +else + CXXFLAGS_USED="-fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem ${CONDA_PREFIX}/include" + DEBUG_CXXFLAGS_USED="-fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe -isystem ${CONDA_PREFIX}/include" +fi + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +_tc_activation \ + activate x86_64-conda-linux-gnu- \ + "CXX,${CONDA_PREFIX}/bin/x86_64-conda-linux-gnu-c++" g++ \ + "CXXFLAGS,${CXXFLAGS_USED}${CXXFLAGS:+ }${CXXFLAGS:-}" \ + "DEBUG_CXXFLAGS,${DEBUG_CXXFLAGS_USED}${DEBUG_CXXFLAGS:+ }${DEBUG_CXXFLAGS:-}" \ + "CXX_FOR_BUILD,${CONDA_PREFIX}/bin/x86_64-conda-linux-gnu-c++" + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +#exit 1 +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi +fi diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/etc/conda/deactivate.d/deactivate-gxx_linux-64.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/etc/conda/deactivate.d/deactivate-gxx_linux-64.sh new file mode 100644 index 0000000000000000000000000000000000000000..995529a3928cf4fa33264b8c7b2ba3aca17d5363 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/etc/conda/deactivate.d/deactivate-gxx_linux-64.sh @@ -0,0 +1,123 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + thing=$(echo "${thing}" | tr 'a-z+-' 'A-ZX_') + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +# When people are using conda-build, assume that adding rpath during build, and pointing at +# the host env's includes and libs is helpful default behavior +if [ "${CONDA_BUILD:-0}" = "1" ]; then + CXXFLAGS_USED="-fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + DEBUG_CXXFLAGS_USED="-fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" +else + CXXFLAGS_USED="-fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem ${CONDA_PREFIX}/include" + DEBUG_CXXFLAGS_USED="-fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe -isystem ${CONDA_PREFIX}/include" +fi + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +_tc_activation \ + deactivate x86_64-conda-linux-gnu- \ + "CXX,${CONDA_PREFIX}/bin/x86_64-conda-linux-gnu-c++" g++ \ + "CXXFLAGS,${CXXFLAGS_USED}${CXXFLAGS:+ }${CXXFLAGS:-}" \ + "DEBUG_CXXFLAGS,${DEBUG_CXXFLAGS_USED}${DEBUG_CXXFLAGS:+ }${DEBUG_CXXFLAGS:-}" \ + "CXX_FOR_BUILD,${CONDA_PREFIX}/bin/x86_64-conda-linux-gnu-c++" + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +#exit 1 +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi +fi diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/about.json b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..84a8b944b134aa3270b8cdf4a92fe8aac8f68a7f --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/about.json @@ -0,0 +1,197 @@ +{ + "channels": [ + "https://conda.anaconda.org/conda-forge" + ], + "conda_build_version": "24.5.1", + "conda_version": "24.5.0", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "flow_run_id": "azure_20240610.3.1", + "parent_recipe": { + "name": "ctng-compiler-activation", + "path": "/home/conda/recipe_root", + "version": "11.4.0" + }, + "recipe-maintainers": [ + "isuruf", + "beckermr" + ], + "remote_url": "https://github.com/conda-forge/ctng-compiler-activation-feedstock", + "sha": "80f60bf84f1c8afa868ba6e8b23115108aeae5e7" + }, + "home": "https://github.com/conda-forge/ctng-compiler-activation-feedstock", + "identifiers": [], + "keywords": [], + "license": "BSD-3-Clause", + "license_file": "LICENSE", + "root_pkgs": [ + "requests-toolbelt 1.0.0 pyhd8ed1ab_0", + "ruamel_yaml 0.15.80 py310h2372a71_1009", + "libtiff 4.6.0 h1dd3fc0_3", + "idna 3.7 pyhd8ed1ab_0", + "jsonpointer 2.4 py310hff52083_3", + "tzdata 2024a h0c530f3_0", + "libxcb 1.15 h0b41bf4_0", + "pyopenssl 24.0.0 pyhd8ed1ab_0", + "libffi 3.4.2 h7f98852_5", + "bzip2 1.0.8 hd590300_5", + "libxml2 2.12.7 hc051c1a_1", + "libdeflate 1.20 hd590300_0", + "libcurl 8.8.0 hca28451_0", + "jinja2 3.1.4 pyhd8ed1ab_0", + "perl 5.32.1 7_hd590300_perl5", + "filelock 3.14.0 pyhd8ed1ab_0", + "libssh2 1.11.0 h0841786_0", + "lzo 2.10 hd590300_1001", + "xorg-libxau 1.0.11 hd590300_0", + "traitlets 5.14.3 pyhd8ed1ab_0", + "ripgrep 14.1.0 he8a937b_0", + "python-dateutil 2.9.0 pyhd8ed1ab_0", + "jsonschema 4.22.0 pyhd8ed1ab_0", + "ca-certificates 2024.6.2 hbcca054_0", + "pillow 10.3.0 py310hf73ecf8_0", + "packaging 24.0 pyhd8ed1ab_0", + "yaml-cpp 0.8.0 h59595ed_0", + "importlib_resources 6.4.0 pyhd8ed1ab_0", + "ncurses 6.5 h59595ed_0", + "ld_impl_linux-64 2.40 hf3520f5_2", + "openssl 3.3.1 h4ab18f5_0", + "python_abi 3.10 4_cp310", + "tornado 6.4.1 py310hc51659f_0", + "_openmp_mutex 4.5 2_gnu", + "_libgcc_mutex 0.1 conda_forge", + "pkgutil-resolve-name 1.3.10 pyhd8ed1ab_1", + "six 1.16.0 pyh6c4a22f_0", + "menuinst 2.1.0 py310hff52083_0", + "conda-pack 0.7.1 pyhd8ed1ab_0", + "libmambapy 1.5.8 py310h39ff949_0", + "icu 73.2 h59595ed_0", + "patch 2.7.6 h7f98852_1002", + "boltons 24.0.0 pyhd8ed1ab_0", + "pybind11-abi 4 hd8ed1ab_3", + "beautifulsoup4 4.12.3 pyha770c72_0", + "tini 0.19.0 h166bdaf_1", + "xorg-libxdmcp 1.1.3 h7f98852_0", + "psutil 5.9.8 py310h2372a71_0", + "pycosat 0.6.6 py310h2372a71_0", + "krb5 1.21.2 h659d440_0", + "libnghttp2 1.58.0 h47da74e_1", + "python 3.10.14 hd12c33a_0_cpython", + "referencing 0.35.1 pyhd8ed1ab_0", + "libiconv 1.17 hd590300_2", + "pcre2 10.43 hcad00b1_0", + "attrs 23.2.0 pyh71513ae_0", + "pytz 2024.1 pyhd8ed1ab_0", + "py-lief 0.14.1 py310h76e45a6_1", + "distro 1.9.0 pyhd8ed1ab_0", + "defusedxml 0.7.1 pyhd8ed1ab_0", + "c-ares 1.28.1 hd590300_0", + "brotli-python 1.1.0 py310hc6cd4ac_1", + "zipp 3.18.0 pyhd8ed1ab_0", + "yaml 0.2.5 h7f98852_2", + "mamba 1.5.8 py310h51d5547_0", + "conda-libmamba-solver 24.1.0 pyhd8ed1ab_0", + "requests 2.32.3 pyhd8ed1ab_0", + "colorama 0.4.6 pyhd8ed1ab_0", + "freetype 2.12.1 h267a509_2", + "libuuid 2.38.1 h0b41bf4_0", + "cryptography 42.0.8 py310hb1bd9d3_0", + "fmt 10.2.1 h00ab1b0_0", + "frozendict 2.4.4 py310hc51659f_0", + "jupyter_core 5.7.2 py310hff52083_0", + "nbformat 5.10.4 pyhd8ed1ab_0", + "libexpat 2.6.2 h59595ed_0", + "chardet 5.2.0 py310hff52083_1", + "urllib3 2.2.1 pyhd8ed1ab_0", + "libzlib 1.2.13 h4ab18f5_6", + "ruamel.yaml 0.18.6 py310h2372a71_0", + "cffi 1.16.0 py310h2fee648_0", + "conda-package-streaming 0.10.0 pyhd8ed1ab_0", + "pysocks 1.7.1 pyha2e5f31_6", + "pip 24.0 pyhd8ed1ab_0", + "pkginfo 1.11.0 pyhd8ed1ab_0", + "markupsafe 2.1.5 py310h2372a71_0", + "libsolv 0.7.29 ha6fb4c9_0", + "anaconda-project 0.11.1 pyhd8ed1ab_0", + "lcms2 2.16 hb7c19ff_0", + "xz 5.2.6 h166bdaf_0", + "lerc 4.0.0 h27087fc_0", + "libpng 1.6.43 h2797004_0", + "liblief 0.14.1 hac33072_1", + "python-libarchive-c 5.1 py310hff52083_0", + "libstdcxx-ng 13.2.0 hc0a3c3a_7", + "su-exec 0.2 h166bdaf_1003", + "conda 24.5.0 py310hff52083_0", + "charset-normalizer 3.3.2 pyhd8ed1ab_0", + "pthread-stubs 0.4 h36c2ea0_1001", + "truststore 0.8.0 pyhd8ed1ab_0", + "pluggy 1.5.0 pyhd8ed1ab_0", + "more-itertools 10.2.0 pyhd8ed1ab_0", + "libwebp-base 1.4.0 hd590300_0", + "jsonschema-specifications 2023.12.1 pyhd8ed1ab_0", + "jsonpatch 1.33 pyhd8ed1ab_0", + "platformdirs 4.2.2 pyhd8ed1ab_0", + "reproc-cpp 14.2.4.post0 h59595ed_1", + "archspec 0.2.3 pyhd8ed1ab_0", + "readline 8.2 h8228510_1", + "libarchive 3.7.4 hfca40fe_0", + "libsqlite 3.45.3 h2797004_0", + "libev 4.33 hd590300_2", + "reproc 14.2.4.post0 hd590300_1", + "tk 8.6.13 noxft_h4845f30_101", + "conda-package-handling 2.3.0 pyh7900ff3_0", + "libgcc-ng 13.2.0 h77fa898_7", + "zstd 1.5.6 ha6fb4c9_0", + "python-fastjsonschema 2.19.1 pyhd8ed1ab_0", + "libjpeg-turbo 3.0.0 hd590300_1", + "click 8.1.7 unix_pyh707e725_0", + "tqdm 4.66.4 pyhd8ed1ab_0", + "tomli 2.0.1 pyhd8ed1ab_0", + "conda-index 0.4.0 pyhd8ed1ab_0", + "lz4-c 1.9.4 hcb278e6_0", + "patchelf 0.17.2 h58526e2_0", + "setuptools 70.0.0 pyhd8ed1ab_0", + "rpds-py 0.18.1 py310he421c4c_0", + "git 2.45.1 pl5321hef9f9f3_0", + "keyutils 1.6.1 h166bdaf_0", + "pycparser 2.22 pyhd8ed1ab_0", + "libxcrypt 4.4.36 hd590300_1", + "toolz 0.12.1 pyhd8ed1ab_0", + "openjpeg 2.5.2 h488ebb8_0", + "conda-build 24.5.1 py310hff52083_0", + "certifi 2024.2.2 pyhd8ed1ab_0", + "libgomp 13.2.0 h77fa898_7", + "wheel 0.43.0 pyhd8ed1ab_1", + "libnsl 2.0.1 hd590300_0", + "pyyaml 6.0.1 py310h2372a71_1", + "soupsieve 2.5 pyhd8ed1ab_1", + "anaconda-client 1.12.3 pyhd8ed1ab_0", + "libedit 3.1.20191231 he28a2e2_2", + "zstandard 0.19.0 py310h5764c6d_0", + "libmamba 1.5.8 had39da4_0", + "ruamel.yaml.clib 0.2.8 py310h2372a71_0", + "conda-forge-metadata 0.8.0 pyhd8ed1ab_0", + "typing-extensions 4.12.2 hd8ed1ab_0", + "rattler-build 0.16.2 h72610f6_0", + "oras-py 0.1.14 pyhd8ed1ab_0", + "exceptiongroup 1.2.0 pyhd8ed1ab_2", + "wrapt 1.16.0 py310h2372a71_0", + "oniguruma 6.9.9 hd590300_0", + "conda-forge-ci-setup 4.6.0 py310h7a2d8a0_100", + "conda-env 2.6.0 1", + "pytest 8.2.2 pyhd8ed1ab_0", + "deprecated 1.2.14 pyh1a96a4e_0", + "conda-oci-mirror 0.1.0 pyhd8ed1ab_0", + "shyaml 0.6.2 pyhd3deb0d_0", + "rattler-build-conda-compat 0.0.6 pyh267e887_0", + "typing_extensions 4.12.2 pyha770c72_0", + "jq 1.7.1 hd590300_0", + "iniconfig 2.0.0 pyhd8ed1ab_0" + ], + "summary": "GNU C++ Compiler (activation scripts)", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/files b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/files new file mode 100644 index 0000000000000000000000000000000000000000..02816c59b4ab29f21d0c28002f4f756fb0b4fa43 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/files @@ -0,0 +1,2 @@ +etc/conda/activate.d/activate-gxx_linux-64.sh +etc/conda/deactivate.d/deactivate-gxx_linux-64.sh diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/git b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/hash_input.json b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..0db0d8d416c31d1a0658172936215a41f7a7cc05 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/hash_input.json @@ -0,0 +1,8 @@ +{ + "cross_stdlib": "sysroot", + "cross_target_platform": "linux-64", + "gcc_version": "11.4.0", + "target_platform": "linux-64", + "cross_stdlib_version": "2.12", + "channel_targets": "conda-forge main" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/index.json b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..e2ea1e34701721bb1622f016e872c25354df7ded --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/index.json @@ -0,0 +1,17 @@ +{ + "arch": "x86_64", + "build": "h35bfe5d_4", + "build_number": 4, + "depends": [ + "binutils_linux-64 2.40 hb3c18ed_4", + "gcc_linux-64 11.4.0 ha077dfb_4", + "gxx_impl_linux-64 11.4.0.*", + "sysroot_linux-64" + ], + "license": "BSD-3-Clause", + "name": "gxx_linux-64", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1717999588172, + "version": "11.4.0" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/licenses/LICENSE b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..9aab6814c6ea8d2f24b623d386a9aa29ce4cc91c --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/licenses/LICENSE @@ -0,0 +1,28 @@ +BSD 3-Clause License + +Copyright (c) 2012, Anaconda, Inc. +Copyright (c) 2015-2019, conda-forge +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/paths.json b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..2f0522eb0378e03276b8ec8f0049702490baa0dc --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/paths.json @@ -0,0 +1,17 @@ +{ + "paths": [ + { + "_path": "etc/conda/activate.d/activate-gxx_linux-64.sh", + "path_type": "hardlink", + "sha256": "1e22590bcd9d4e65b6d426e6aecf444598706f27c0b8580a1168e983ce26b078", + "size_in_bytes": 5190 + }, + { + "_path": "etc/conda/deactivate.d/deactivate-gxx_linux-64.sh", + "path_type": "hardlink", + "sha256": "bccd48cecdb2e3715ef2decf3563b7aaaf2f469d7f90c68b6631ee189357f112", + "size_in_bytes": 5192 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/conda_build_config.yaml b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b04250770c830941dee39b10ece139ad5ede9cc2 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/conda_build_config.yaml @@ -0,0 +1,151 @@ +CI: azure +FINAL_CFLAGS_linux_32: -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong + -fno-plt -O2 -pipe +FINAL_CFLAGS_linux_64: -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong + -fno-plt -O2 -ffunction-sections -pipe +FINAL_CFLAGS_linux_aarch64: -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt + -O3 -pipe +FINAL_CFLAGS_linux_ppc64le: -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-strong + -fno-plt -O3 -pipe +FINAL_CFLAGS_linux_s390x: -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt + -O3 -pipe +FINAL_CFLAGS_win_64: -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 + -pipe +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_32: _sysconfigdata_i686_conda_cos6_linux_gnu +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_64: _sysconfigdata_x86_64_conda_cos6_linux_gnu +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_aarch64: _sysconfigdata_aarch64_conda_cos7_linux_gnu +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_ppc64le: _sysconfigdata_powerpc64le_conda_cos7_linux_gnu +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_s390x: _sysconfigdata_s390x_conda_linux_gnu +FINAL_CPPFLAGS: -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 +FINAL_CXXFLAGS_linux_32: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt + -O2 -pipe +FINAL_CXXFLAGS_linux_64: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt + -O2 -ffunction-sections -pipe +FINAL_CXXFLAGS_linux_aarch64: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_CXXFLAGS_linux_ppc64le: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt + -O3 -pipe +FINAL_CXXFLAGS_linux_s390x: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_CXXFLAGS_win_64: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ftree-vectorize + -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_DEBUG_CFLAGS_linux_32: -march=prescott -mtune=haswell -ftree-vectorize -fPIC + -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CFLAGS_linux_64: -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all + -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe +FINAL_DEBUG_CFLAGS_linux_aarch64: -ftree-vectorize -fPIC -fstack-protector-all -fno-plt + -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CFLAGS_linux_ppc64le: -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC + -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CFLAGS_linux_s390x: -ftree-vectorize -fPIC -fstack-protector-all -fno-plt + -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CFLAGS_win_64: -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og + -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CPPFLAGS: -D_DEBUG -D_FORTIFY_SOURCE=2 -Og +FINAL_DEBUG_CXXFLAGS_linux_32: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt + -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CXXFLAGS_linux_64: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt + -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe +FINAL_DEBUG_CXXFLAGS_linux_aarch64: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments + -pipe +FINAL_DEBUG_CXXFLAGS_linux_ppc64le: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-all -fno-plt + -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CXXFLAGS_linux_s390x: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments + -pipe +FINAL_DEBUG_CXXFLAGS_win_64: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 + -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments + -pipe +FINAL_DEBUG_FFLAGS_linux_32: -fopenmp -march=prescott -mtune=haswell -ftree-vectorize + -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fcheck=all -fbacktrace + -fimplicit-none -fvar-tracking-assignments -pipe +FINAL_DEBUG_FFLAGS_linux_64: -fopenmp -march=nocona -mtune=haswell -ftree-vectorize + -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fcheck=all -fbacktrace + -fimplicit-none -fvar-tracking-assignments -ffunction-sections -pipe +FINAL_DEBUG_FFLAGS_linux_aarch64: -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong + -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fvar-tracking-assignments -pipe +FINAL_DEBUG_FFLAGS_linux_ppc64le: -fopenmp -mcpu=power8 -mtune=power8 -ftree-vectorize + -fPIC -fstack-protector-strong -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace + -fvar-tracking-assignments -pipe +FINAL_DEBUG_FFLAGS_linux_s390x: -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong + -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fvar-tracking-assignments -pipe +FINAL_DEBUG_FFLAGS_win_64: -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong + -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fvar-tracking-assignments -pipe +FINAL_FFLAGS_linux_32: -fopenmp -march=prescott -mtune=haswell -ftree-vectorize -fPIC + -fstack-protector-strong -fno-plt -O2 -pipe +FINAL_FFLAGS_linux_64: -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC + -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe +FINAL_FFLAGS_linux_aarch64: -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong + -fno-plt -O3 -pipe +FINAL_FFLAGS_linux_ppc64le: -fopenmp -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC + -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_FFLAGS_linux_s390x: -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong + -fno-plt -O3 -pipe +FINAL_FFLAGS_win_64: -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt + -O3 -pipe +FINAL_LDFLAGS_linux_32: -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now + -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_linux_64: -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now + -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_linux_aarch64: -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro + -Wl,-z,now -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_linux_ppc64le: -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro + -Wl,-z,now -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_linux_s390x: -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro + -Wl,-z,now -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_win_64: -Wl,-O2 -Wl,--sort-common +binutils_version: '2.40' +c_compiler: gcc +c_stdlib: sysroot +cdt_name: cos6 +channel_sources: conda-forge +channel_targets: conda-forge main +clang_version: '16' +cpu_optimization_target: nocona +cran_mirror: https://cran.r-project.org +cross_stdlib: sysroot +cross_stdlib_version: '2.12' +cross_target_platform: linux-64 +cxx_compiler: gxx +docker_image: quay.io/condaforge/linux-anvil-cos7-x86_64 +extend_keys: +- extend_keys +- ignore_build_only_deps +- pin_run_as_build +- ignore_version +fortran_compiler: gfortran +gcc_version: 11.4.0 +ignore_build_only_deps: +- numpy +- python +libgfortran_soname: '5' +linux_machine: x86_64 +lua: '5' +numpy: '1.22' +perl: 5.26.2 +pin_run_as_build: + python: + max_pin: x.x + min_pin: x.x + r-base: + max_pin: x.x + min_pin: x.x +python: '3.10' +r_base: '3.5' +target_platform: linux-64 +triplet: x86_64-conda-linux-gnu +zip_keys: +- - cross_target_platform + - triplet + - cross_stdlib + - cross_stdlib_version + - linux_machine +- - gcc_version + - libgfortran_soname diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/install-g++.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/install-g++.sh new file mode 100644 index 0000000000000000000000000000000000000000..67fd8dea523442706ff8c679d1f1793072b060e0 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/install-g++.sh @@ -0,0 +1,3 @@ +mkdir -p ${PREFIX}/etc/conda/{de,}activate.d +cp "${SRC_DIR}"/activate-g++.sh ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.sh +cp "${SRC_DIR}"/deactivate-g++.sh ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.sh diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/meta.yaml b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c7ee4b40704427c86bfe6f3de1001f35f87702a9 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/meta.yaml @@ -0,0 +1,48 @@ +# This file created by conda-build 24.5.1 +# ------------------------------------------------ + +package: + name: gxx_linux-64 + version: 11.4.0 +source: + path: /home/conda/recipe_root +build: + number: 4 + run_exports: + strong: + - libgcc-ng >=12 + - libstdcxx-ng >=12 + string: h35bfe5d_4 +requirements: + build: [] + run: + - binutils_linux-64 2.40 hb3c18ed_4 + - gcc_linux-64 11.4.0 ha077dfb_4 + - gxx_impl_linux-64 11.4.0.* + - sysroot_linux-64 +test: + commands: + - ${CXX} ${CXXFLAGS} -Wall tests/aligned_alloc.cpp -c -o cpp_aligned.o + - ${CXX} ${LDFLAGS} cpp_aligned.o -o cpp_aligned + - ./cpp_aligned + - test -z "${CONDA_BUILD_SYSROOT+x}" && echo "CONDA_BUILD_SYSROOT is not set" + && exit 1 + - test -d ${CONDA_BUILD_SYSROOT} || exit 1 + files: + - tests + requires: + - sysroot_linux-64 2.12.* +about: + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: BSD-3-Clause + license_file: LICENSE + summary: GNU C++ Compiler (activation scripts) +extra: + copy_test_source_files: true + final: true + flow_run_id: azure_20240610.3.1 + recipe-maintainers: + - beckermr + - isuruf + remote_url: https://github.com/conda-forge/ctng-compiler-activation-feedstock + sha: 80f60bf84f1c8afa868ba6e8b23115108aeae5e7 diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/GPL_LICENSE b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/GPL_LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..53d1f3d01864c35841739c55aeba9700657627b7 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/GPL_LICENSE @@ -0,0 +1,675 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/LICENSE b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..9aab6814c6ea8d2f24b623d386a9aa29ce4cc91c --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/LICENSE @@ -0,0 +1,28 @@ +BSD 3-Clause License + +Copyright (c) 2012, Anaconda, Inc. +Copyright (c) 2015-2019, conda-forge +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/activate-binutils.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/activate-binutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..55ab945d1ad143ad3db2b0e5623bafed69c47d8a --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/activate-binutils.sh @@ -0,0 +1,117 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + thing=$(echo "${thing}" | tr 'a-z+-.' 'A-ZX__') + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +# gold has not been (cannot be?) built for powerpc +if echo @CHOST@ | grep powerpc > /dev/null; then + GOLD_USED= +else + GOLD_USED=ld.gold +fi + +_tc_activation \ + activate @CHOST@- \ + addr2line ar as c++filt elfedit gprof ld ${GOLD_USED} nm objcopy objdump ranlib readelf size strings strip \ + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +#exit 1 +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi +fi diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/activate-g++.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/activate-g++.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b568366feac9bc4c64a994acf4abbc1e325fb80 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/activate-g++.sh @@ -0,0 +1,123 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + thing=$(echo "${thing}" | tr 'a-z+-' 'A-ZX_') + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +# When people are using conda-build, assume that adding rpath during build, and pointing at +# the host env's includes and libs is helpful default behavior +if [ "${CONDA_BUILD:-0}" = "1" ]; then + CXXFLAGS_USED="@CXXFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + DEBUG_CXXFLAGS_USED="@DEBUG_CXXFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" +else + CXXFLAGS_USED="@CXXFLAGS@ -isystem ${CONDA_PREFIX}/include" + DEBUG_CXXFLAGS_USED="@DEBUG_CXXFLAGS@ -isystem ${CONDA_PREFIX}/include" +fi + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +_tc_activation \ + activate @CHOST@- \ + "CXX,${CONDA_PREFIX}/bin/@CXX@" @CXX_COMPILERS@ \ + "CXXFLAGS,${CXXFLAGS_USED}${CXXFLAGS:+ }${CXXFLAGS:-}" \ + "DEBUG_CXXFLAGS,${DEBUG_CXXFLAGS_USED}${DEBUG_CXXFLAGS:+ }${DEBUG_CXXFLAGS:-}" \ + "CXX_FOR_BUILD,${CONDA_PREFIX}/bin/@CXX_FOR_BUILD@" + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +#exit 1 +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi +fi diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/activate-gcc.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/activate-gcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..02794d2e8555fd5c5019909039ede984bcd9cc9a --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/activate-gcc.sh @@ -0,0 +1,230 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + thing=$(echo "${thing}" | tr 'a-z+-' 'A-ZX_') + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +# The compiler adds $PREFIX/lib to rpath, so it's better to add -L and -isystem as well. +if [ "${CONDA_BUILD:-0}" = "1" ]; then + CFLAGS_USED="@CFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + DEBUG_CFLAGS_USED="@DEBUG_CFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + LDFLAGS_USED="@LDFLAGS@ -Wl,-rpath,${PREFIX}/lib -Wl,-rpath-link,${PREFIX}/lib -L${PREFIX}/lib" + CPPFLAGS_USED="@CPPFLAGS@ -isystem ${PREFIX}/include" + DEBUG_CPPFLAGS_USED="@DEBUG_CPPFLAGS@ -isystem ${PREFIX}/include" + CMAKE_PREFIX_PATH_USED="${PREFIX}:${CONDA_PREFIX}/@CHOST@/sysroot/usr" +else + CFLAGS_USED="@CFLAGS@ -isystem ${CONDA_PREFIX}/include" + DEBUG_CFLAGS_USED="@DEBUG_CFLAGS@ -isystem ${CONDA_PREFIX}/include" + CPPFLAGS_USED="@CPPFLAGS@ -isystem ${CONDA_PREFIX}/include" + DEBUG_CPPFLAGS_USED="@DEBUG_CPPFLAGS@ -isystem ${CONDA_PREFIX}/include" + LDFLAGS_USED="@LDFLAGS@ -Wl,-rpath,${CONDA_PREFIX}/lib -Wl,-rpath-link,${CONDA_PREFIX}/lib -L${CONDA_PREFIX}/lib" + CMAKE_PREFIX_PATH_USED="${CONDA_PREFIX}:${CONDA_PREFIX}/@CHOST@/sysroot/usr" +fi + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED=${_CONDA_PYTHON_SYSCONFIGDATA_NAME:-@_CONDA_PYTHON_SYSCONFIGDATA_NAME@} +if [ -n "${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}" ] && [ -n "${SYS_SYSROOT}" ]; then + if find "$(dirname "$(dirname "${SYS_PYTHON}")")/lib/"python* -type f -name "${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}.py" -exec false {} +; then + echo "" + echo "WARNING: The Python interpreter at the following prefix:" + echo " $(dirname "$(dirname "${SYS_PYTHON}")")" + echo " .. is not able to handle sysconfigdata-based compilation for the host:" + echo " $( printf %s "${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}" | sed s/_sysconfigdata_//g )" + echo "" + echo " We are not preventing things from continuing here, but *this* Python will not" + echo " be able to compile software for this host, and, depending on whether it has" + echo " been patched to ignore missing _CONDA_PYTHON_SYSCONFIGDATA_NAME or not, may cause" + echo " an exception." + echo "" + echo " This can happen for one of three reasons:" + echo "" + echo " 1. It is out of date: Please run 'conda update python' in that environment" + echo "" + echo " 2. You are bootstrapping a sysconfigdata-based cross-capable Python and can ignore this" + echo " (but please remember to copy the generated sysconfigdata back to the Python recipe's" + echo " sysconfigdate folder and then rebuild it for all the systems you want to be able" + echo " to use as a build machine for this host)." + echo "" + echo " 3. You are attempting your own bespoke cross-compilation host that is not supported. Have" + echo " you provided your own value in the _CONDA_PYTHON_SYSCONFIGDATA_NAME environment variable but" + echo " misspelt it and/or failed to add the neccessary ${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}.py" + echo " file to the Python interpreter's standard library?" + echo "" + fi +fi + +_CMAKE_ARGS="-DCMAKE_AR=${CONDA_PREFIX}/bin/@CHOST@-ar -DCMAKE_CXX_COMPILER_AR=${CONDA_PREFIX}/bin/@CHOST@-gcc-ar -DCMAKE_C_COMPILER_AR=${CONDA_PREFIX}/bin/@CHOST@-gcc-ar" +_CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_RANLIB=${CONDA_PREFIX}/bin/@CHOST@-ranlib -DCMAKE_CXX_COMPILER_RANLIB=${CONDA_PREFIX}/bin/@CHOST@-gcc-ranlib -DCMAKE_C_COMPILER_RANLIB=${CONDA_PREFIX}/bin/@CHOST@-gcc-ranlib" +_CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_LINKER=${CONDA_PREFIX}/bin/@CHOST@-ld -DCMAKE_STRIP=${CONDA_PREFIX}/bin/@CHOST@-strip" +_CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Release" + +_MESON_ARGS="--buildtype release" + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + _CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY" + _CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_FIND_ROOT_PATH=$PREFIX;${BUILD_PREFIX}/@CHOST@/sysroot" + _CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_INSTALL_LIBDIR=lib" + _CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_PROGRAM_PATH=${BUILD_PREFIX}/bin;$PREFIX/bin" + _MESON_ARGS="${_MESON_ARGS} --prefix=$PREFIX -Dlibdir=lib" +fi + +# shellcheck disable=SC2050 # templating will fix this error +if [ "@CONDA_BUILD_CROSS_COMPILATION@" = "1" ]; then + _CMAKE_ARGS="${_CMAKE_ARGS} -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=@LINUX_MACHINE@" + _MESON_ARGS="${_MESON_ARGS} --cross-file ${CONDA_PREFIX}/meson_cross_file.txt" + echo "[host_machine]" > "${CONDA_PREFIX}/meson_cross_file.txt" + echo "system = 'linux'" >> "${CONDA_PREFIX}/meson_cross_file.txt" + echo "cpu = '@LINUX_MACHINE@'" >> "${CONDA_PREFIX}/meson_cross_file.txt" + echo "cpu_family = '@MESON_FAMILY@'" >> "${CONDA_PREFIX}/meson_cross_file.txt" + echo "endian = 'little'" >> "${CONDA_PREFIX}/meson_cross_file.txt" + # specify path to correct binaries from build (not host) environment, + # which meson will not auto-discover (out of caution) if not told explicitly. + echo "[binaries]" >> "${CONDA_PREFIX}/meson_cross_file.txt" + echo "cmake = '${CONDA_PREFIX}/bin/cmake'" >> "${CONDA_PREFIX}/meson_cross_file.txt" + echo "pkgconfig = '${CONDA_PREFIX}/bin/pkg-config'" >> "${CONDA_PREFIX}/meson_cross_file.txt" +fi + +_tc_activation \ + activate @CHOST@- "HOST,@CHOST@" "BUILD,@CBUILD@" \ + "CONDA_TOOLCHAIN_HOST,@CHOST@" \ + "CONDA_TOOLCHAIN_BUILD,@CBUILD@" \ + "CC,${CONDA_PREFIX}/bin/@CC@" @COMPILERS@ \ + "CPPFLAGS,${CPPFLAGS_USED}${CPPFLAGS:+ }${CPPFLAGS:-}" \ + "CFLAGS,${CFLAGS_USED}${CFLAGS:+ }${CFLAGS:-}" \ + "LDFLAGS,${LDFLAGS_USED}${LDFLAGS:+ }${LDFLAGS:-}" \ + "DEBUG_CPPFLAGS,${DEBUG_CPPFLAGS_USED}${DEBUG_CPPFLAGS:+ }${DEBUG_CPPFLAGS:-}" \ + "DEBUG_CFLAGS,${DEBUG_CFLAGS_USED}${DEBUG_CFLAGS:+ }${DEBUG_CFLAGS:-}" \ + "CMAKE_PREFIX_PATH,${CMAKE_PREFIX_PATH_USED}" \ + "_CONDA_PYTHON_SYSCONFIGDATA_NAME,${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}" \ + "CONDA_BUILD_SYSROOT,${CONDA_PREFIX}/@CHOST@/sysroot" \ + "CONDA_BUILD_CROSS_COMPILATION,@CONDA_BUILD_CROSS_COMPILATION@" \ + "CC_FOR_BUILD,${CONDA_PREFIX}/bin/@CC_FOR_BUILD@" \ + "build_alias,@CBUILD@" \ + "host_alias,@CHOST@" \ + "MESON_ARGS,${_MESON_ARGS}" \ + "CMAKE_ARGS,${_CMAKE_ARGS}" + +unset _CMAKE_ARGS + +# shellcheck disable=SC2050 # templating will fix this error +if [ "@CONDA_BUILD_CROSS_COMPILATION@" = "1" ]; then +_tc_activation \ + activate @CHOST@- \ + "QEMU_LD_PREFIX,${QEMU_LD_PREFIX:-${CONDA_BUILD_SYSROOT}}" +fi + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi + + # fix prompt for zsh + if [ -n "${ZSH_NAME:-}" ]; then + autoload -Uz add-zsh-hook + + _conda_clang_precmd() { + # shellcheck disable=SC2034 # guarded for zsh + HOST="${CONDA_BACKUP_HOST}" + } + add-zsh-hook -Uz precmd _conda_clang_precmd + + _conda_clang_preexec() { + # shellcheck disable=SC2034 # guarded for zsh + HOST="${CONDA_TOOLCHAIN_HOST}" + } + add-zsh-hook -Uz preexec _conda_clang_preexec + fi +fi diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/activate-gfortran.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/activate-gfortran.sh new file mode 100644 index 0000000000000000000000000000000000000000..58fb4800e73aceda3b5a8c3af9d5439f2f2aca6c --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/activate-gfortran.sh @@ -0,0 +1,129 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + thing=$(echo "${thing}" | tr 'a-z+-' 'A-ZX_') + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +# When people are using conda-build, assume that adding rpath during build, and pointing at +# the host env's includes and libs is helpful default behavior +if [ "${CONDA_BUILD:-0}" = "1" ]; then + FFLAGS_USED="@FFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" +else + FFLAGS_USED="@FFLAGS@ -isystem ${CONDA_PREFIX}/include" +fi + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +_tc_activation \ + activate @CHOST@- \ + gfortran f95 \ + "FC_FOR_BUILD,${CONDA_PREFIX}/bin/@CBUILD@-gfortran" \ + "FFLAGS,${FFLAGS_USED}${FFLAGS:+ }${FFLAGS:-}" \ + "FORTRANFLAGS,${FFLAGS_USED}${FORTRANFLAGS:+ }${FORTRANFLAGS:-}" \ + "DEBUG_FFLAGS,${FFLAGS_USED} @DEBUG_FFLAGS@${FFLAGS:+ }${FFLAGS:-}" \ + "DEBUG_FORTRANFLAGS,${FFLAGS_USED} @DEBUG_FFLAGS@${FORTRANFLAGS:+ }${FORTRANFLAGS:-}" \ + +# extra ones - have a dependency on the previous ones, so done after. +_tc_activation \ + activate @CHOST@- \ + "FC,${FC:-${GFORTRAN}}" \ + "F77,${F77:-${GFORTRAN}}" \ + "F90,${F90:-${GFORTRAN}}" + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi +fi diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/build.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..340644dfc1be2ebc20acc1505b56198f609beb76 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/build.sh @@ -0,0 +1,105 @@ +#!/bin/bash + +set -ex + +source $RECIPE_DIR/get_cpu_arch.sh + +cross_target_platform_u=${cross_target_platform/-/_} + +FINAL_CFLAGS=FINAL_CFLAGS_${cross_target_platform_u} +FINAL_DEBUG_CFLAGS=FINAL_DEBUG_CFLAGS_${cross_target_platform_u} +FINAL_CXXFLAGS=FINAL_CXXFLAGS_${cross_target_platform_u} +FINAL_DEBUG_CXXFLAGS=FINAL_DEBUG_CXXFLAGS_${cross_target_platform_u} +FINAL_FFLAGS=FINAL_FFLAGS_${cross_target_platform_u} +FINAL_DEBUG_FFLAGS=FINAL_DEBUG_FFLAGS_${cross_target_platform_u} +FINAL_LDFLAGS=FINAL_LDFLAGS_${cross_target_platform_u} +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME=FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_${cross_target_platform_u} + +FINAL_CFLAGS="${!FINAL_CFLAGS}" +FINAL_CXXFLAGS="${!FINAL_CXXFLAGS}" +FINAL_FFLAGS="${!FINAL_FFLAGS}" +FINAL_DEBUG_CFLAGS="${!FINAL_DEBUG_CFLAGS}" +FINAL_DEBUG_CXXFLAGS="${!FINAL_DEBUG_CXXFLAGS}" +FINAL_DEBUG_FFLAGS="${!FINAL_DEBUG_FFLAGS}" +FINAL_LDFLAGS="${!FINAL_LDFLAGS}" +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME="${!FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME}" + +MAJOR_VERSION="${PKG_VERSION%%.*}" + +# See https://github.com/conda-forge/ctng-compiler-activation-feedstock/issues/42 +# -std=c++17 shouldn't be a default flag, but from gcc 11 onwards it is the default. +# Not removing the flag for gcc 8, 9 because some package ABIs change according to +# the C++ standard (like boost). +if [[ "${MAJOR_VERSION}" != 8 && "${MAJOR_VERSION}" != 9 && "${MAJOR_VERSION}" != 10 ]]; then + FINAL_CXXFLAGS="$(echo $FINAL_CXXFLAGS | sed 's/-std=c++17 //g')" + FINAL_DEBUG_CXXFLAGS="$(echo $FINAL_DEBUG_CXXFLAGS | sed 's/-std=c++17 //g')" +fi +# -fopenmp shouldn't be a default flag. We are not removing it for gcc 9 as gcc 9.3 +# already had this flag, but we are removing it for gcc 10+. +if [[ "${MAJOR_VERSION}" != 8 && "${MAJOR_VERSION}" != 9 ]]; then + FINAL_FFLAGS="$(echo $FINAL_FFLAGS | sed 's/-fopenmp //g')" + FINAL_DEBUG_FFLAGS="$(echo $FINAL_DEBUG_FFLAGS | sed 's/-fopenmp //g')" +fi + +if [ -z "${FINAL_CFLAGS}" ]; then + echo "FINAL_CFLAGS not set. Did you pass in a flags variant config file?" + exit 1 +fi + +if [[ "$target_platform" == "$cross_target_platform" ]]; then + export CONDA_BUILD_CROSS_COMPILATION="" +else + export CONDA_BUILD_CROSS_COMPILATION="1" +fi + +if [[ "$cross_target_platform" == linux-ppc64le ]]; then + MESON_FAMILY=ppc64 +else + MESON_FAMILY=${linux_machine} +fi + +find . -name "*activate*.sh" -exec sed -i.bak "s|@LINUX_MACHINE@|${linux_machine}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@MESON_FAMILY@|${MESON_FAMILY}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@CBUILD@|${CBUILD}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@CHOST@|${CHOST}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@CPPFLAGS@|${FINAL_CPPFLAGS}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@DEBUG_CPPFLAGS@|${FINAL_DEBUG_CPPFLAGS}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@CFLAGS@|${FINAL_CFLAGS}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@DEBUG_CFLAGS@|${FINAL_DEBUG_CFLAGS}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@CXXFLAGS@|${FINAL_CXXFLAGS}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@DEBUG_CXXFLAGS@|${FINAL_DEBUG_CXXFLAGS}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@FFLAGS@|${FINAL_FFLAGS}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@DEBUG_FFLAGS@|${FINAL_DEBUG_FFLAGS}|g" "{}" \; +find . -name "*activate*.sh" -exec sed -i.bak "s|@LDFLAGS@|${FINAL_LDFLAGS}|g" "{}" \; +if [[ ! -z "${FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME}" ]]; then + find . -name "*activate*.sh" -exec sed -i.bak "s|@_CONDA_PYTHON_SYSCONFIGDATA_NAME@|${FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME}|g" "{}" \; +fi +find . -name "*activate*.sh" -exec sed -i.bak "s|@CONDA_BUILD_CROSS_COMPILATION@|${CONDA_BUILD_CROSS_COMPILATION}|g" "{}" \; + +cp activate-gcc.sh activate-clang.sh +cp activate-g++.sh activate-clang++.sh +cp deactivate-gcc.sh deactivate-clang.sh +cp deactivate-g++.sh deactivate-clang++.sh + +find . -name "*activate-gcc.sh" -exec sed -i.bak "s|@COMPILERS@|cpp gcc gcc-ar gcc-nm gcc-ranlib|g" "{}" \; +find . -name "*activate-g++.sh" -exec sed -i.bak "s|@CXX_COMPILERS@|g++|g" "{}" \; +find . -name "*activate-gcc.sh" -exec sed -i.bak "s|@CC@|${CHOST}-cc|g" "{}" \; +find . -name "*activate-g++.sh" -exec sed -i.bak "s|@CXX@|${CHOST}-c++|g" "{}" \; +find . -name "*activate-gcc.sh" -exec sed -i.bak "s|@CC_FOR_BUILD@|${CBUILD}-cc|g" "{}" \; +find . -name "*activate-g++.sh" -exec sed -i.bak "s|@CXX_FOR_BUILD@|${CBUILD}-c++|g" "{}" \; + +find . -name "*activate-clang.sh" -exec sed -i.bak "s|@COMPILERS@|clang|g" "{}" \; +find . -name "*activate-clang++.sh" -exec sed -i.bak "s|@CXX_COMPILERS@|clang++|g" "{}" \; +find . -name "*activate-clang.sh" -exec sed -i.bak "s|@CC@|${CHOST}-clang|g" "{}" \; +find . -name "*activate-clang++.sh" -exec sed -i.bak "s|@CXX@|${CHOST}-clang++|g" "{}" \; +find . -name "*activate-clang.sh" -exec sed -i.bak "s|@CC_FOR_BUILD@|${CBUILD}-clang|g" "{}" \; +find . -name "*activate-clang++.sh" -exec sed -i.bak "s|@CXX_FOR_BUILD@|${CBUILD}-clang++|g" "{}" \; + +find . -name "*activate*.sh.bak" -exec rm "{}" \; + +# Check if (de-)activate scripts can be used in non-Bash shells (ignoring the commonly supported "local" keyword.) +errors=$(find . -name "*activate*.sh" -exec shellcheck -e SC3043 --severity=info --format=gcc {} \;) +echo $errors +if [[ ${errors} != "" ]]; then + exit 1 +fi diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/conda_build_config.yaml b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4f509cf3c3913796bcec0051bf2c5436e32f2711 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/conda_build_config.yaml @@ -0,0 +1,167 @@ +# cos6-specific because of PYTHON_SYSCONFIGDATA_NAME below. Would be nice to make that more generic if possible. +gcc_version: + - 11.4.0 + - 12.3.0 + - 13.2.0 +libgfortran_soname: + - 5 + - 5 + - 5 +binutils_version: + - 2.40 +cross_target_platform: + - linux-64 + - linux-ppc64le + - linux-aarch64 + - linux-s390x + - win-64 +triplet: + - x86_64-conda-linux-gnu + - powerpc64le-conda-linux-gnu + - aarch64-conda-linux-gnu + - s390x-conda-linux-gnu + - x86_64-w64-mingw32 +c_stdlib: # [win] + - m2w64-sysroot # [win] +c_stdlib_version: # [win] + - 12 # [win] +cross_stdlib: + - sysroot + - sysroot + - sysroot + - sysroot + - m2w64-sysroot +cross_stdlib_version: + - 2.12 + - 2.17 + - 2.17 + - 2.17 + - 12 +linux_machine: + - x86_64 + - ppc64le + - aarch64 + - s390x + - x86_64 + +clang_version: + - 16 + - 17 + - 18 + +zip_keys: + - - cross_target_platform + - triplet + - cross_stdlib + - cross_stdlib_version + - linux_machine + - - gcc_version + - libgfortran_soname + +FINAL_CPPFLAGS: + - -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 + +FINAL_CFLAGS_linux_64: + - -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe +FINAL_CFLAGS_linux_32: + - -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe +FINAL_CFLAGS_linux_ppc64le: + - -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_CFLAGS_linux_aarch64: + - -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_CFLAGS_linux_s390x: + - -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_CFLAGS_win_64: + - -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe + +FINAL_CXXFLAGS_linux_64: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe +FINAL_CXXFLAGS_linux_32: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe +FINAL_CXXFLAGS_linux_ppc64le: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_CXXFLAGS_linux_aarch64: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_CXXFLAGS_linux_s390x: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_CXXFLAGS_win_64: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe + +FINAL_FFLAGS_linux_64: + - -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe +FINAL_FFLAGS_linux_32: + - -fopenmp -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe +FINAL_FFLAGS_linux_ppc64le: + - -fopenmp -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_FFLAGS_linux_aarch64: + - -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_FFLAGS_linux_s390x: + - -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe +FINAL_FFLAGS_win_64: + - -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe + +FINAL_LDFLAGS_linux_64: + - -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_linux_32: + - -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_linux_ppc64le: + - -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_linux_aarch64: + - -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_linux_s390x: + - -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--allow-shlib-undefined +FINAL_LDFLAGS_win_64: + - -Wl,-O2 -Wl,--sort-common + +FINAL_DEBUG_CPPFLAGS: + - -D_DEBUG -D_FORTIFY_SOURCE=2 -Og + +FINAL_DEBUG_CFLAGS_linux_64: + - -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe +FINAL_DEBUG_CFLAGS_linux_32: + - -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CFLAGS_linux_ppc64le: + - -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CFLAGS_linux_aarch64: + - -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CFLAGS_linux_s390x: + - -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CFLAGS_win_64: + - -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe + +FINAL_DEBUG_CXXFLAGS_linux_64: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe +FINAL_DEBUG_CXXFLAGS_linux_32: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CXXFLAGS_linux_ppc64le: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CXXFLAGS_linux_aarch64: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CXXFLAGS_linux_s390x: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe +FINAL_DEBUG_CXXFLAGS_win_64: + - -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe + +FINAL_DEBUG_FFLAGS_linux_64: + - -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fimplicit-none -fvar-tracking-assignments -ffunction-sections -pipe +FINAL_DEBUG_FFLAGS_linux_32: + - -fopenmp -march=prescott -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fimplicit-none -fvar-tracking-assignments -pipe +FINAL_DEBUG_FFLAGS_linux_ppc64le: + - -fopenmp -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-strong -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fvar-tracking-assignments -pipe +FINAL_DEBUG_FFLAGS_linux_aarch64: + - -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fvar-tracking-assignments -pipe +FINAL_DEBUG_FFLAGS_linux_s390x: + - -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fvar-tracking-assignments -pipe +FINAL_DEBUG_FFLAGS_win_64: + - -fopenmp -ftree-vectorize -fPIC -fstack-protector-strong -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fvar-tracking-assignments -pipe + +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_64: + - _sysconfigdata_x86_64_conda_cos6_linux_gnu +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_32: + - _sysconfigdata_i686_conda_cos6_linux_gnu +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_ppc64le: + - _sysconfigdata_powerpc64le_conda_cos7_linux_gnu +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_aarch64: + - _sysconfigdata_aarch64_conda_cos7_linux_gnu +FINAL_CONDA_PYTHON_SYSCONFIGDATA_NAME_linux_s390x: + - _sysconfigdata_s390x_conda_linux_gnu diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/deactivate-binutils.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/deactivate-binutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..4136ca6c984deab7bd8037135d3b983f698b4347 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/deactivate-binutils.sh @@ -0,0 +1,117 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + thing=$(echo "${thing}" | tr 'a-z+-.' 'A-ZX__') + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +# gold has not been (cannot be?) built for powerpc +if echo @CHOST@ | grep powerpc > /dev/null; then + GOLD_USED= +else + GOLD_USED=ld.gold +fi + +_tc_activation \ + deactivate @CHOST@- \ + addr2line ar as c++filt elfedit gprof ld ${GOLD_USED} nm objcopy objdump ranlib readelf size strings strip + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +#exit 1 +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi +fi diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/deactivate-g++.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/deactivate-g++.sh new file mode 100644 index 0000000000000000000000000000000000000000..cbb937d3cd45c864dbfb5dd4667d4c9a0db97581 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/deactivate-g++.sh @@ -0,0 +1,123 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + thing=$(echo "${thing}" | tr 'a-z+-' 'A-ZX_') + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +# When people are using conda-build, assume that adding rpath during build, and pointing at +# the host env's includes and libs is helpful default behavior +if [ "${CONDA_BUILD:-0}" = "1" ]; then + CXXFLAGS_USED="@CXXFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + DEBUG_CXXFLAGS_USED="@DEBUG_CXXFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" +else + CXXFLAGS_USED="@CXXFLAGS@ -isystem ${CONDA_PREFIX}/include" + DEBUG_CXXFLAGS_USED="@DEBUG_CXXFLAGS@ -isystem ${CONDA_PREFIX}/include" +fi + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +_tc_activation \ + deactivate @CHOST@- \ + "CXX,${CONDA_PREFIX}/bin/@CXX@" @CXX_COMPILERS@ \ + "CXXFLAGS,${CXXFLAGS_USED}${CXXFLAGS:+ }${CXXFLAGS:-}" \ + "DEBUG_CXXFLAGS,${DEBUG_CXXFLAGS_USED}${DEBUG_CXXFLAGS:+ }${DEBUG_CXXFLAGS:-}" \ + "CXX_FOR_BUILD,${CONDA_PREFIX}/bin/@CXX_FOR_BUILD@" + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +#exit 1 +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi +fi diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/deactivate-gcc.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/deactivate-gcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d5662feb8a180299ecff06ea39e403259d0bb81 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/deactivate-gcc.sh @@ -0,0 +1,155 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + thing=$(echo "${thing}" | tr 'a-z+-' 'A-ZX_') + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + CFLAGS_USED="@CFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + DEBUG_CFLAGS_USED="@DEBUG_CFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" + LDFLAGS_USED="@LDFLAGS@ -Wl,-rpath,${PREFIX}/lib -L${PREFIX}/lib" + CPPFLAGS_USED="@CPPFLAGS@ -isystem ${PREFIX}/include" + DEBUG_CPPFLAGS_USED="@DEBUG_CPPFLAGS@ -isystem ${PREFIX}/include" + CMAKE_PREFIX_PATH_USED="${PREFIX}:${CONDA_PREFIX}/@CHOST@/sysroot/usr" +else + CFLAGS_USED="@CFLAGS@ -isystem ${CONDA_PREFIX}/include" + DEBUG_CFLAGS_USED="@DEBUG_CFLAGS@ -isystem ${CONDA_PREFIX}/include" + CPPFLAGS_USED="@CPPFLAGS@ -isystem ${CONDA_PREFIX}/include" + DEBUG_CPPFLAGS_USED="@DEBUG_CPPFLAGS@ -isystem ${CONDA_PREFIX}/include" + LDFLAGS_USED="@LDFLAGS@ -Wl,-rpath,${CONDA_PREFIX}/lib -Wl,-rpath-link,${CONDA_PREFIX}/lib -L${CONDA_PREFIX}/lib" + CMAKE_PREFIX_PATH_USED="${CONDA_PREFIX}:${CONDA_PREFIX}/@CHOST@/sysroot/usr" +fi + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +# shellcheck disable=SC2050 # templating will fix this error +if [ "@CONDA_BUILD_CROSS_COMPILATION@" = "1" ]; then +_tc_activation \ + deactivate @CHOST@- \ + "QEMU_LD_PREFIX,${QEMU_LD_PREFIX:-${CONDA_BUILD_SYSROOT}}" +fi + +_tc_activation \ + deactivate @CHOST@- "HOST,@CHOST@" "BUILD,@CBUILD@" \ + "CONDA_TOOLCHAIN_HOST,@CHOST@" \ + "CONDA_TOOLCHAIN_BUILD,@CBUILD@" \ + "CC,${CONDA_PREFIX}/bin/@CC@" @COMPILERS@ \ + "CPPFLAGS,${CPPFLAGS_USED}${CPPFLAGS:+ }${CPPFLAGS:-}" \ + "CFLAGS,${CFLAGS_USED}${CFLAGS:+ }${CFLAGS:-}" \ + "LDFLAGS,${LDFLAGS_USED}${LDFLAGS:+ }${LDFLAGS:-}" \ + "DEBUG_CPPFLAGS,${DEBUG_CPPFLAGS_USED}${DEBUG_CPPFLAGS:+ }${DEBUG_CPPFLAGS:-}" \ + "DEBUG_CFLAGS,${DEBUG_CFLAGS_USED}${DEBUG_CFLAGS:+ }${DEBUG_CFLAGS:-}" \ + "CMAKE_PREFIX_PATH,${CMAKE_PREFIX_PATH_USED}" \ + "_CONDA_PYTHON_SYSCONFIGDATA_NAME,${_CONDA_PYTHON_SYSCONFIGDATA_NAME_USED}" \ + "CONDA_BUILD_SYSROOT,${CONDA_PREFIX}/@CHOST@/sysroot" \ + "CONDA_BUILD_CROSS_COMPILATION,@CONDA_BUILD_CROSS_COMPILATION@" \ + "CC_FOR_BUILD,${CONDA_PREFIX}/bin/@CC_FOR_BUILD@" \ + "build_alias,@CBUILD@" \ + "host_alias,@CHOST@" \ + "MESON_ARGS,${_MESON_ARGS:-}" \ + "CMAKE_ARGS,${_CMAKE_ARGS:-}" + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi + + # unfix prompt for zsh + if [ -n "${ZSH_NAME:-}" ]; then + # we use eval here to avoid non-POSIX shells trying to parse the ZSH syntax + eval "precmd_functions=(\${precmd_functions:#_conda_clang_precmd})" + eval "preexec_functions=(\${preexec_functions:#_conda_clang_preexec})" + fi +fi diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/deactivate-gfortran.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/deactivate-gfortran.sh new file mode 100644 index 0000000000000000000000000000000000000000..48867e9f498856dc71c6af3eecb56be1b7876772 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/deactivate-gfortran.sh @@ -0,0 +1,129 @@ +# shellcheck shell=sh + +# This function takes no arguments +# It tries to determine the name of this file in a programatic way. +_get_sourced_filename() { + # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded + if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then + # shellcheck disable=SC3054 # non-POSIX array access is guarded + basename "${BASH_SOURCE[0]}" + elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then + # in zsh use prompt-style expansion to introspect the same information + # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh + # shellcheck disable=SC2296 # bad '(' is guarded + basename "${(%):-%x}" + else + echo "UNKNOWN FILE" + fi +} + +# The arguments to this are: +# 1. activation nature {activate|deactivate} +# 2. toolchain nature {build|host|ccc} +# 3. machine (should match -dumpmachine) +# 4. prefix (including any final -) +# 5+ program (or environment var comma value) +# The format for 5+ is name{,,value}. If value is specified +# then name taken to be an environment variable, otherwise +# it is taken to be a program. In this case, which is used +# to find the full filename during activation. The original +# value is stored in environment variable CONDA_BACKUP_NAME +# For deactivation, the distinction is irrelevant as in all +# cases NAME simply gets reset to CONDA_BACKUP_NAME. It is +# a fatal error if a program is identified but not present. +_tc_activation() { + local act_nature="$1"; shift + local tc_prefix="$1"; shift + local thing + local newval + local from + local to + local pass + + if [ "${act_nature}" = "activate" ]; then + from="" + to="CONDA_BACKUP_" + else + from="CONDA_BACKUP_" + to="" + fi + + for pass in check apply; do + for thing in "$@"; do + case "${thing}" in + *,*) + newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,") + thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,") + ;; + *) + newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}" + if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then + echo "ERROR: This cross-compiler package contains no program ${newval}" + return 1 + fi + ;; + esac + if [ "${pass}" = "apply" ]; then + thing=$(echo "${thing}" | tr 'a-z+-' 'A-ZX_') + eval oldval="\$${from}$thing" + if [ -n "${oldval}" ]; then + eval export "${to}'${thing}'=\"${oldval}\"" + else + eval unset '${to}${thing}' + fi + if [ -n "${newval}" ]; then + eval export "'${from}${thing}=${newval}'" + else + eval unset '${from}${thing}' + fi + fi + done + done + return 0 +} + +# When people are using conda-build, assume that adding rpath during build, and pointing at +# the host env's includes and libs is helpful default behavior +if [ "${CONDA_BUILD:-0}" = "1" ]; then + FFLAGS_USED="@FFLAGS@ -isystem ${PREFIX}/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix" +else + FFLAGS_USED="@FFLAGS@ -isystem ${CONDA_PREFIX}/include" +fi + +if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/old-env-$$.txt ]; then + rm -f /tmp/old-env-$$.txt || true + fi + env > /tmp/old-env-$$.txt +fi + +_tc_activation \ + deactivate @CHOST@- \ + gfortran f95 \ + "FC_FOR_BUILD,${CONDA_PREFIX}/bin/@CBUILD@-gfortran" \ + "FFLAGS,${FFLAGS_USED}${FFLAGS:+ }${FFLAGS:-}" \ + "FORTRANFLAGS,${FFLAGS_USED}${FORTRANFLAGS:+ }${FORTRANFLAGS:-}" \ + "DEBUG_FFLAGS,${FFLAGS_USED} @DEBUG_FFLAGS@${FFLAGS:+ }${FFLAGS:-}" \ + "DEBUG_FORTRANFLAGS,${FFLAGS_USED} @DEBUG_FFLAGS@${FORTRANFLAGS:+ }${FORTRANFLAGS:-}" \ + +# extra ones - have a dependency on the previous ones, so done after. +_tc_activation \ + deactivate @CHOST@- \ + "FC,${FC:-${GFORTRAN}}" \ + "F77,${F77:-${GFORTRAN}}" \ + "F90,${F90:-${GFORTRAN}}" + +if [ $? -ne 0 ]; then + echo "ERROR: $(_get_sourced_filename) failed, see above for details" +else + if [ "${CONDA_BUILD:-0}" = "1" ]; then + if [ -f /tmp/new-env-$$.txt ]; then + rm -f /tmp/new-env-$$.txt || true + fi + env > /tmp/new-env-$$.txt + + echo "INFO: $(_get_sourced_filename) made the following environmental changes:" + diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort + rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true + fi +fi diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/get_cpu_arch.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/get_cpu_arch.sh new file mode 100644 index 0000000000000000000000000000000000000000..fbcdcaee1e7922161517027d96ad6a339a5549bb --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/get_cpu_arch.sh @@ -0,0 +1,29 @@ +get_triplet() { + local CPU_ARCH + if [[ "$1" == *"-64" ]]; then + CPU_ARCH="x86_64" + elif [[ "$1" == *"-ppc64le" ]]; then + CPU_ARCH="powerpc64le" + elif [[ "$1" == *"-aarch64" ]]; then + CPU_ARCH="aarch64" + elif [[ "$1" == *"-s390x" ]]; then + CPU_ARCH="s390x" + elif [[ "$1" == *"-arm64" ]]; then + CPU_ARCH="arm64" + else + echo "Unknown architecture" + exit 1 + fi + if [[ "$1" == "linux-"* ]]; then + echo $CPU_ARCH-conda-linux-gnu + elif [[ "$1" == "osx-64" ]]; then + echo x86_64-apple-darwin13.4.0 + elif [[ "$1" == "osx-arm64" ]]; then + echo arm64-apple-darwin20.0.0 + elif [[ "$1" == "win-64" ]]; then + echo x86_64-w64-mingw32 + fi +} + +export CBUILD="$(get_triplet $target_platform)" +export CHOST="$(get_triplet $cross_target_platform)" diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-binutils.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-binutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f4e45cf05d626db17d80661c29a6fc24573e23f --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-binutils.sh @@ -0,0 +1,3 @@ +mkdir -p ${PREFIX}/etc/conda/{de,}activate.d +cp "${SRC_DIR}"/activate-binutils.sh ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.sh +cp "${SRC_DIR}"/deactivate-binutils.sh ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.sh diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-clang++.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-clang++.sh new file mode 100644 index 0000000000000000000000000000000000000000..437d6f6ab734eb94b8909eeceaeee01e8974b235 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-clang++.sh @@ -0,0 +1,14 @@ +source $RECIPE_DIR/get_cpu_arch.sh + +mkdir -p ${PREFIX}/etc/conda/{de,}activate.d +cp "${SRC_DIR}"/activate-clang++.sh ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.sh +cp "${SRC_DIR}"/deactivate-clang++.sh ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.sh + +if [[ "$target_platform" != "$cross_target_platform" ]]; then + # Set clang++ symlink with target + mkdir -p ${PREFIX}/bin + ln -sf ${PREFIX}/bin/clang++ ${PREFIX}/bin/${CHOST}-clang++ + # Set sysroot. The other option is to use `CONDA_BUILD_SYSROOT` env variable + # but this is better than using an env variable. + echo "--sysroot ${PREFIX}/${CHOST}/sysroot" >> ${PREFIX}/bin/${CHOST}-clang++.cfg +fi diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-clang.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-clang.sh new file mode 100644 index 0000000000000000000000000000000000000000..16696ec1266ff2d6187a80a4d92a489011dafdcc --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-clang.sh @@ -0,0 +1,15 @@ +source $RECIPE_DIR/get_cpu_arch.sh + +mkdir -p ${PREFIX}/etc/conda/{de,}activate.d +cp "${SRC_DIR}"/activate-clang.sh ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.sh +cp "${SRC_DIR}"/deactivate-clang.sh ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.sh + +if [[ "$target_platform" != "$cross_target_platform" ]]; then + # Set clang symlink with target + mkdir -p ${PREFIX}/bin + ln -sf ${PREFIX}/bin/clang ${PREFIX}/bin/${CHOST}-clang + # Set sysroot. The other option is to use `CONDA_BUILD_SYSROOT` env variable + # but this is better than using an env variable. + echo "--sysroot ${PREFIX}/${CHOST}/sysroot" >> ${PREFIX}/bin/${CHOST}-clang.cfg +fi + diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-g++.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-g++.sh new file mode 100644 index 0000000000000000000000000000000000000000..67fd8dea523442706ff8c679d1f1793072b060e0 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-g++.sh @@ -0,0 +1,3 @@ +mkdir -p ${PREFIX}/etc/conda/{de,}activate.d +cp "${SRC_DIR}"/activate-g++.sh ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.sh +cp "${SRC_DIR}"/deactivate-g++.sh ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.sh diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-gcc.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-gcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9855caaaeddc9f6fa4623d942bf7b6b696a77ff4 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-gcc.sh @@ -0,0 +1,3 @@ +mkdir -p ${PREFIX}/etc/conda/{de,}activate.d +cp "${SRC_DIR}"/activate-gcc.sh ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.sh +cp "${SRC_DIR}"/deactivate-gcc.sh ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.sh diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-gfortran.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-gfortran.sh new file mode 100644 index 0000000000000000000000000000000000000000..e02015622243d4d4c17f491d9e8056baaad53297 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-gfortran.sh @@ -0,0 +1,3 @@ +mkdir -p ${PREFIX}/etc/conda/{de,}activate.d +cp "${SRC_DIR}"/activate-gfortran.sh ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.sh +cp "${SRC_DIR}"/deactivate-gfortran.sh ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.sh diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-symlinks.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-symlinks.sh new file mode 100644 index 0000000000000000000000000000000000000000..38d962e32863cd7308c96acf83c5c05ed6b78e23 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/install-symlinks.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +source ${RECIPE_DIR}/get_cpu_arch.sh + +if [[ "${PKG_NAME}" == "gcc" ]]; then + for tool in cc cpp gcc gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -sf ${PREFIX}/bin/${CHOST}-${tool} ${PREFIX}/bin/${tool} + done +elif [[ "${PKG_NAME}" == "gxx" ]]; then + ln -sf ${PREFIX}/bin/${CHOST}-g++ ${PREFIX}/bin/g++ + ln -sf ${PREFIX}/bin/${CHOST}-c++ ${PREFIX}/bin/c++ +elif [[ "${PKG_NAME}" == "gfortran" ]]; then + ln -sf ${PREFIX}/bin/${CHOST}-gfortran ${PREFIX}/bin/gfortran +fi diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/meta.yaml b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1a4be41c8d7a1ffe8fb9da200db3fad732f8fc7a --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/meta.yaml @@ -0,0 +1,278 @@ +{% set build_num = 4 %} +{% set gcc_major = 13 if gcc_version is undefined else gcc_version.split(".")[0] %} +# generally, the runtime version of libstdcxx needs to be at least as high +# as the compiler; however, wherever libstdcxx changes the default ABI version +# of a symbol, we need to ensure at least that version at runtime also for +# packages built with older compilers (because that build environment will +# pull in the newest libstdcxx, and then depend on that new symbol version). +# C.f. https://johannst.github.io/notes/development/symbolver.html resp. +# check if some symbol changed ABI (and thus got reversioned) at the bottom of +# https://gcc.gnu.org/onlinedocs/libstdc++/manual/api.html +# In this case, libstdcxx last changed the default version of an ELF symbol +# in v12, therefore this is the lowest we can go for GCC <=12, see #97 or +# https://github.com/gcc-mirror/gcc/commit/9e18a25331fa25c3907249fede65a02c6817b06e +{% set last_symbol_bump = 12 %} +{% set min_runtime_version = gcc_major if gcc_major|int > last_symbol_bump else last_symbol_bump %} + +package: + name: ctng-compiler-activation + version: {{ gcc_version }} + +source: + path: . + +build: + number: {{ build_num }} + skip: true # [win or (cross_target_platform == "win-64" and int(gcc_major) < 13)] + +requirements: + build: + - shellcheck # [not (aarch64 or ppc64le)] + +outputs: + - name: gcc_{{ cross_target_platform }} + build: + skip: true # [not linux] + run_exports: + strong: + - libgcc-ng >={{ min_runtime_version }} + script: install-gcc.sh + requirements: + run: + - gcc_impl_{{ target_platform }} {{ gcc_version }}.* + - gcc_impl_{{ cross_target_platform }} {{ gcc_version }}.* + # for activation of binutils env vars + - {{ pin_subpackage("binutils_" ~ cross_target_platform, exact=True) }} + - {{ c_stdlib }}_{{ target_platform }} # [linux] + - {{ cross_stdlib }}_{{ cross_target_platform }} + test: + requires: + - {{ cross_stdlib }}_{{ cross_target_platform }} {{ cross_stdlib_version }} + files: + - tests + commands: + - echo {{ linux_machine }} + - ${CC} ${CFLAGS} -Wall tests/aligned_alloc.c -c -o c_aligned.o -v + - ${CC} ${LDFLAGS} c_aligned.o -o c_aligned # [target_platform == cross_target_platform] + - ./c_aligned # [target_platform == cross_target_platform] + # CONDA_BUILD_SYSROOT is defined for clang++ to find correct C++ headers, see issue 8 + - test -z "${CONDA_BUILD_SYSROOT+x}" && echo "CONDA_BUILD_SYSROOT is not set" && exit 1 + - test -d ${CONDA_BUILD_SYSROOT} || exit 1 + about: + summary: GNU C Compiler (activation scripts) + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: clang_{{ cross_target_platform }} + version: {{ clang_version }} + script: install-clang.sh + build: + skip: true # [win or s390x or cross_target_platform == "linux-s390x"] + run_exports: + strong: + - libgcc-ng >={{ min_runtime_version }} + requirements: + run: + - libgcc-devel_{{ cross_target_platform }} {{ gcc_version }}.* + # for activation of binutils env vars + - {{ pin_subpackage("binutils_" ~ cross_target_platform, exact=True) }} + - {{ cross_stdlib }}_{{ cross_target_platform }} + - compiler-rt_{{ cross_target_platform }} + - compiler-rt =={{ clang_version }}.* + - clang_impl_{{ target_platform }} {{ clang_version }} # [osx] + test: + requires: + - {{ cross_stdlib }}_{{ cross_target_platform }} {{ cross_stdlib_version }} + files: + - tests + commands: + - echo {{ linux_machine }} + - ${CC} ${CFLAGS} -Wall tests/aligned_alloc.c -c -o c_aligned.o -v + - ${CC} ${LDFLAGS} c_aligned.o -o c_aligned # [target_platform == cross_target_platform] + - ./c_aligned # [target_platform == cross_target_platform] + # CONDA_BUILD_SYSROOT is defined for clang++ to find correct C++ headers, see issue 8 + - test -z "${CONDA_BUILD_SYSROOT+x}" && echo "CONDA_BUILD_SYSROOT is not set" && exit 1 + - test -d ${CONDA_BUILD_SYSROOT} || exit 1 + about: + summary: Clang Compiler (activation scripts) + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: gxx_{{ cross_target_platform }} + script: install-g++.sh + build: + skip: true # [not linux] + run_exports: + strong: + # This should be a transitive dependency, but conda-build doesn't support those + - libstdcxx-ng >={{ min_runtime_version }} + # Because transitive run_exports do not work: + - libgcc-ng >={{ min_runtime_version }} + requirements: + run: + - gxx_impl_{{ target_platform }} {{ gcc_version }}.* + - gxx_impl_{{ cross_target_platform }} {{ gcc_version }}.* + # for activation of gcc env vars + - {{ pin_subpackage("gcc_" ~ cross_target_platform, exact=True) }} + # for activation of binutils env vars + - {{ pin_subpackage("binutils_" ~ cross_target_platform, exact=True) }} + - {{ cross_stdlib }}_{{ cross_target_platform }} + test: + requires: + - {{ cross_stdlib }}_{{ cross_target_platform }} {{ cross_stdlib_version }} + files: + - tests + commands: + - ${CXX} ${CXXFLAGS} -Wall tests/aligned_alloc.cpp -c -o cpp_aligned.o + - ${CXX} ${LDFLAGS} cpp_aligned.o -o cpp_aligned # [target_platform == cross_target_platform] + - ./cpp_aligned # [target_platform == cross_target_platform] + - test -z "${CONDA_BUILD_SYSROOT+x}" && echo "CONDA_BUILD_SYSROOT is not set" && exit 1 + - test -d ${CONDA_BUILD_SYSROOT} || exit 1 + about: + summary: GNU C++ Compiler (activation scripts) + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: clangxx_{{ cross_target_platform }} + version: {{ clang_version }} + script: install-clang++.sh + build: + skip: true # [win or s390x or cross_target_platform == "linux-s390x"] + run_exports: + strong: + # This should be a transitive dependency, but conda-build doesn't support those + - libstdcxx-ng >={{ min_runtime_version }} + # Because transitive run_exports do not work: + - libgcc-ng >={{ min_runtime_version }} + requirements: + run: + - libgcc-devel_{{ cross_target_platform }} {{ gcc_version }}.* + # C++ compiler on linux needs a stdlib + - libstdcxx-devel_{{ cross_target_platform }} {{ gcc_version }}.* + # for activation of gcc env vars + - {{ pin_subpackage("clang_" ~ cross_target_platform, exact=True) }} + # for activation of binutils env vars + - {{ pin_subpackage("binutils_" ~ cross_target_platform, exact=True) }} + - {{ cross_stdlib }}_{{ cross_target_platform }} + - compiler-rt_{{ cross_target_platform }} + - compiler-rt =={{ clang_version }}.* + - clangxx_impl_{{ target_platform }} {{ clang_version }} # [osx] + test: + requires: + - {{ cross_stdlib }}_{{ cross_target_platform }} {{ cross_stdlib_version }} + files: + - tests + commands: + - ${CXX} ${CXXFLAGS} -Wall tests/aligned_alloc.cpp -c -o cpp_aligned.o + - ${CXX} ${LDFLAGS} cpp_aligned.o -o cpp_aligned # [target_platform == cross_target_platform] + - ./cpp_aligned # [target_platform == cross_target_platform] + - test -z "${CONDA_BUILD_SYSROOT+x}" && echo "CONDA_BUILD_SYSROOT is not set" && exit 1 + - test -d ${CONDA_BUILD_SYSROOT} || exit 1 + about: + summary: Clang C++ Compiler (activation scripts) + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: gfortran_{{ cross_target_platform }} + script: install-gfortran.sh + build: + skip: true # [not linux] + run_exports: + strong: + - libgfortran{{ libgfortran_soname }} >={{ gcc_version }} + - libgfortran-ng + # Because transitive run_exports do not work: + - libgcc-ng >={{ min_runtime_version }} + requirements: + host: + # So that pin_compatible has something to work with: + - libgfortran{{ libgfortran_soname }} {{ gcc_version }}.* + - libgfortran-ng {{ gcc_version }}.* + run: + - gfortran_impl_{{ cross_target_platform }} {{ gcc_version }}.* + - gfortran_impl_{{ target_platform }} {{ gcc_version }}.* + # for activation of gcc env vars: + - {{ pin_subpackage("gcc_" ~ cross_target_platform, exact=True) }} + # for activation of binutils env vars: + - {{ pin_subpackage("binutils_" ~ cross_target_platform, exact=True) }} + - {{ cross_stdlib }}_{{ cross_target_platform }} + test: + requires: + - cmake >=3.11 # [x86_64 or aarch64 or ppc64le] + - make # [x86_64 or aarch64 or ppc64le] + - {{ cross_stdlib }}_{{ cross_target_platform }} {{ cross_stdlib_version }} + commands: + - ${FC} --version + - pushd tests/fortomp + - sh test_fort.sh # [target_platform == cross_target_platform and (x86_64 or aarch64 or ppc64le)] + files: + - tests/fortomp/* + about: + summary: GNU Fortran Compiler (activation scripts) + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: binutils_{{ cross_target_platform }} + version: "{{ binutils_version }}" + script: install-binutils.sh + requirements: + run: + - binutils_impl_{{ cross_target_platform }} {{ binutils_version }}.* + - {{ c_stdlib }}_{{ target_platform }} # [linux] + - {{ cross_stdlib }}_{{ cross_target_platform }} + test: + requires: + - {{ cross_stdlib }}_{{ cross_target_platform }} {{ cross_stdlib_version }} + commands: + - test -f $LD + about: + summary: The GNU Binutils are a collection of binary tools (activation scripts) + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: BSD-3-Clause + license_file: LICENSE + + - name: gcc_bootstrap_{{ cross_target_platform }} + version: "{{ gcc_version }}" + build: + skip: true # [not linux] + binary_relocation: false + detect_binary_files_with_prefix: false + always_include_files: + - bin/ + - etc/ + - lib64/ + - lib/ + - libexec/ + - share/ + - {{ triplet }}/ + requirements: + host: + - binutils_impl_{{ cross_target_platform }} {{ binutils_version }}.* + - gfortran_impl_{{ cross_target_platform }} {{ gcc_version }}.* + - gxx_impl_{{ cross_target_platform }} {{ gcc_version }}.* + - gcc_impl_{{ cross_target_platform }} {{ gcc_version }}.* + test: + commands: + - test -f $PREFIX/bin/{{ triplet }}-cc # [cross_target_platform != "win-64"] + - test -f $PREFIX/bin/{{ triplet }}-gcc.exe # [cross_target_platform == "win-64"] + about: + summary: GCC bootstrap compilers for building deps + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: GPL + license_file: GPL_LICENSE + +about: + summary: Activation scripts for gcc, g++, gfortran and binutils + home: https://github.com/conda-forge/ctng-compiler-activation-feedstock + license: BSD-3-Clause + license_file: LICENSE + +extra: + recipe-maintainers: + - isuruf + - beckermr diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/recipe-scripts-license.txt b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/recipe-scripts-license.txt new file mode 100644 index 0000000000000000000000000000000000000000..2ec51d75f362bc4327a3cfe1c515c16bb3c57367 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/recipe-scripts-license.txt @@ -0,0 +1,27 @@ +BSD-3-Clause license +Copyright (c) 2015-2022, conda-forge contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/tests/aligned_alloc.c b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/tests/aligned_alloc.c new file mode 100644 index 0000000000000000000000000000000000000000..287be94c7340a134a5d9a56ddc0f6c20acc0af74 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/tests/aligned_alloc.c @@ -0,0 +1,9 @@ +#include +#include + +int main(void) +{ + int *p2 = (int*)aligned_alloc(1024, 1024*sizeof *p2); + printf("1024-byte aligned addr: %p\n", (void*)p2); + free(p2); +} diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/tests/aligned_alloc.cpp b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/tests/aligned_alloc.cpp new file mode 100644 index 0000000000000000000000000000000000000000..ca9664fe6233b2b54bf0ccb196ce2e246248b9b8 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/tests/aligned_alloc.cpp @@ -0,0 +1,17 @@ +#include +#include +#include + +int main(void) +{ + /// int *p2 = (int*)memalign(1024, 1024 * sizeof *p2); + int *p2; + int err = posix_memalign((void**)&p2, 1024, sizeof *p2); + printf("1024-byte aligned addr: %p\n", (void*)p2); + free(p2); + p2 = (int*)std::aligned_alloc(1024, 1); + printf("1024-byte aligned addr: %p\n", (void*)p2); + std::free(p2); + p2 = (int*)aligned_alloc(1024, 1024); + printf("1024-byte aligned addr: %p\n", (void*)p2); +} diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/tests/fortomp/CMakeLists.txt b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/tests/fortomp/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..491a48b42cb3ddfef5f8541f8db848e0ba844f84 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/tests/fortomp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.3 FATAL_ERROR) +project(fortomp + LANGUAGES Fortran) + +find_package(OpenMP REQUIRED) diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/tests/fortomp/test_fort.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/tests/fortomp/test_fort.sh new file mode 100644 index 0000000000000000000000000000000000000000..03332d136fc955c95ec42ce7185f824f8dd92a07 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/recipe/parent/tests/fortomp/test_fort.sh @@ -0,0 +1,8 @@ +cmake \ + -H${SRC_DIR} \ + -Bbuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_Fortran_COMPILER=${GFORTRAN} \ + -DCMAKE_Fortran_FLAGS="${FFLAGS}" \ + . diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/repodata_record.json b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..18ceb71d3854d84a0f06d41b4e349e0b45bdd0d3 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/repodata_record.json @@ -0,0 +1,24 @@ +{ + "name": "gxx_linux-64", + "version": "11.4.0", + "build": "h35bfe5d_4", + "build_number": 4, + "channel": "https://conda.anaconda.org/conda-forge/linux-64", + "subdir": "linux-64", + "fn": "gxx_linux-64-11.4.0-h35bfe5d_4.conda", + "md5": "a3b2fe00ce0def24b147d08db9ac0bde", + "url": "https://conda.anaconda.org/conda-forge/linux-64/gxx_linux-64-11.4.0-h35bfe5d_4.conda", + "sha256": "bc55c16382edde80880d1f4802ceaf460f259d20cd44156749e6e7f91ef19b7a", + "arch": "x86_64", + "platform": "linux", + "depends": [ + "binutils_linux-64 2.40 hb3c18ed_4", + "gcc_linux-64 11.4.0 ha077dfb_4", + "gxx_impl_linux-64 11.4.0.*", + "sysroot_linux-64" + ], + "constrains": [], + "license": "BSD-3-Clause", + "timestamp": 1717999588000, + "size": 29582 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/run_exports.json b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/run_exports.json new file mode 100644 index 0000000000000000000000000000000000000000..a07bbe5cc424c846d6b98bcaa8cda9650017a760 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/run_exports.json @@ -0,0 +1 @@ +{"strong": ["libstdcxx-ng >=12", "libgcc-ng >=12"]} \ No newline at end of file diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/run_test.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b4ab44ac5f0ff4a275e274d5745b2a4f8daeb23 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/run_test.sh @@ -0,0 +1,12 @@ + + +set -ex + + + +${CXX} ${CXXFLAGS} -Wall tests/aligned_alloc.cpp -c -o cpp_aligned.o +${CXX} ${LDFLAGS} cpp_aligned.o -o cpp_aligned +./cpp_aligned +test -z "${CONDA_BUILD_SYSROOT+x}" && echo "CONDA_BUILD_SYSROOT is not set" && exit 1 +test -d ${CONDA_BUILD_SYSROOT} || exit 1 +exit 0 diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/test_time_dependencies.json b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/test_time_dependencies.json new file mode 100644 index 0000000000000000000000000000000000000000..0e9f7944be5e9944a807348d3258dba343d36505 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/test_time_dependencies.json @@ -0,0 +1 @@ +["sysroot_linux-64 2.12.*"] \ No newline at end of file diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/tests/aligned_alloc.c b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/tests/aligned_alloc.c new file mode 100644 index 0000000000000000000000000000000000000000..287be94c7340a134a5d9a56ddc0f6c20acc0af74 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/tests/aligned_alloc.c @@ -0,0 +1,9 @@ +#include +#include + +int main(void) +{ + int *p2 = (int*)aligned_alloc(1024, 1024*sizeof *p2); + printf("1024-byte aligned addr: %p\n", (void*)p2); + free(p2); +} diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/tests/aligned_alloc.cpp b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/tests/aligned_alloc.cpp new file mode 100644 index 0000000000000000000000000000000000000000..ca9664fe6233b2b54bf0ccb196ce2e246248b9b8 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/tests/aligned_alloc.cpp @@ -0,0 +1,17 @@ +#include +#include +#include + +int main(void) +{ + /// int *p2 = (int*)memalign(1024, 1024 * sizeof *p2); + int *p2; + int err = posix_memalign((void**)&p2, 1024, sizeof *p2); + printf("1024-byte aligned addr: %p\n", (void*)p2); + free(p2); + p2 = (int*)std::aligned_alloc(1024, 1); + printf("1024-byte aligned addr: %p\n", (void*)p2); + std::free(p2); + p2 = (int*)aligned_alloc(1024, 1024); + printf("1024-byte aligned addr: %p\n", (void*)p2); +} diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/tests/fortomp/CMakeLists.txt b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/tests/fortomp/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..491a48b42cb3ddfef5f8541f8db848e0ba844f84 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/tests/fortomp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.3 FATAL_ERROR) +project(fortomp + LANGUAGES Fortran) + +find_package(OpenMP REQUIRED) diff --git a/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/tests/fortomp/test_fort.sh b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/tests/fortomp/test_fort.sh new file mode 100644 index 0000000000000000000000000000000000000000..03332d136fc955c95ec42ce7185f824f8dd92a07 --- /dev/null +++ b/data/miniconda3/pkgs/gxx_linux-64-11.4.0-h35bfe5d_4/info/test/tests/fortomp/test_fort.sh @@ -0,0 +1,8 @@ +cmake \ + -H${SRC_DIR} \ + -Bbuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_Fortran_COMPILER=${GFORTRAN} \ + -DCMAKE_Fortran_FLAGS="${FFLAGS}" \ + . diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/4channels b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/4channels new file mode 100644 index 0000000000000000000000000000000000000000..e5dd428598e5d68acff666b289dac5111826ffda Binary files /dev/null and b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/4channels differ diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/dcraw_emu b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/dcraw_emu new file mode 100644 index 0000000000000000000000000000000000000000..00fa78702d0ad7e372ce9fca81b520ad4e7fb853 Binary files /dev/null and b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/dcraw_emu differ diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/dcraw_half b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/dcraw_half new file mode 100644 index 0000000000000000000000000000000000000000..2e67da4bbbe63c78e1e93fbb92817186815e0089 Binary files /dev/null and b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/dcraw_half differ diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/half_mt b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/half_mt new file mode 100644 index 0000000000000000000000000000000000000000..f2a575d9a6961374fc535413807857ed02e38bc2 Binary files /dev/null and b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/half_mt differ diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/mem_image b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/mem_image new file mode 100644 index 0000000000000000000000000000000000000000..ab074da49031a6b0c8702ce1468415375a428f0b Binary files /dev/null and b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/mem_image differ diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/multirender_test b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/multirender_test new file mode 100644 index 0000000000000000000000000000000000000000..a0eba105ec41c44160d8a59b2a0c187cd39f31e4 Binary files /dev/null and b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/multirender_test differ diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/postprocessing_benchmark b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/postprocessing_benchmark new file mode 100644 index 0000000000000000000000000000000000000000..8a5b6f53f6e9631c8c435da1909bff58587adb48 Binary files /dev/null and b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/postprocessing_benchmark differ diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/raw-identify b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/raw-identify new file mode 100644 index 0000000000000000000000000000000000000000..134583b1ec5dc33d688a0b080703a01904d0162c Binary files /dev/null and b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/raw-identify differ diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/rawtextdump b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/rawtextdump new file mode 100644 index 0000000000000000000000000000000000000000..c8be4ee5119a841cc0326b370de601cacea640d6 Binary files /dev/null and b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/rawtextdump differ diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/simple_dcraw b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/simple_dcraw new file mode 100644 index 0000000000000000000000000000000000000000..997fd4a1ce5c01b9a010fc1f1c0bc5e8cff4ca0e Binary files /dev/null and b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/simple_dcraw differ diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/unprocessed_raw b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/unprocessed_raw new file mode 100644 index 0000000000000000000000000000000000000000..f1a95fabf8a19e8f700fc987f0f33ba9252a3e18 Binary files /dev/null and b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/bin/unprocessed_raw differ diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw.h b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw.h new file mode 100644 index 0000000000000000000000000000000000000000..50d4276d43484e84102e70357789502b3b9c234e --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw.h @@ -0,0 +1,534 @@ +/* -*- C++ -*- + * File: libraw.h + * Copyright 2008-2021 LibRaw LLC (info@libraw.org) + * Created: Sat Mar 8, 2008 + * + * LibRaw C++ interface + * + +LibRaw is free software; you can redistribute it and/or modify +it under the terms of the one of two licenses as you choose: + +1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 + (See file LICENSE.LGPL provided in LibRaw distribution archive for details). + +2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 + (See file LICENSE.CDDL provided in LibRaw distribution archive for details). + +*/ + +#ifndef _LIBRAW_CLASS_H +#define _LIBRAW_CLASS_H + +#ifdef __linux__ +#define _FILE_OFFSET_BITS 64 +#endif + +// Enable use old cinema cameras if USE_OLD_VIDEOCAMS defined +#ifdef USE_OLD_VIDEOCAMS +#define LIBRAW_OLD_VIDEO_SUPPORT +#endif + +#ifndef LIBRAW_USE_DEPRECATED_IOSTREAMS_DATASTREAM +#define LIBRAW_NO_IOSTREAMS_DATASTREAM +#endif + +#ifndef LIBRAW_NO_IOSTREAMS_DATASTREAM +/* maximum file size to use LibRaw_file_datastream (fully buffered) I/O */ +#define LIBRAW_USE_STREAMS_DATASTREAM_MAXSIZE (250 * 1024L * 1024L) +#endif + +#include +#include +#include +#include +#include + +/* better WIN32 defines */ + +/* better WIN32 defines */ + +#if defined(WIN32) || defined(_WIN32) + +/* Win32 API */ +# ifndef LIBRAW_WIN32_CALLS +# define LIBRAW_WIN32_CALLS +# endif + +/* DLLs: Microsoft or Intel compiler */ +# if defined(_MSC_VER) || defined(__INTEL_COMPILER) +# ifndef LIBRAW_WIN32_DLLDEFS +# define LIBRAW_WIN32_DLLDEFS +# endif +#endif + +/* wchar_t* API for std::filebuf */ +# if (defined(_MSC_VER) && (_MSC_VER > 1310)) || (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 910)) +# ifndef LIBRAW_WIN32_UNICODEPATHS +# define LIBRAW_WIN32_UNICODEPATHS +# endif +# elif _GLIBCXX_HAVE__WFOPEN && _GLIBCXX_USE_WCHAR_T +# ifndef LIBRAW_WIN32_UNICODEPATHS +# define LIBRAW_WIN32_UNICODEPATHS +# endif +# elif defined(_LIBCPP_HAS_OPEN_WITH_WCHAR) +# ifndef LIBRAW_WIN32_UNICODEPATHS +# define LIBRAW_WIN32_UNICODEPATHS +# endif +# endif + +#endif + +#include "libraw_datastream.h" +#include "libraw_types.h" +#include "libraw_const.h" +#include "libraw_internal.h" +#include "libraw_alloc.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + DllDef const char *libraw_strerror(int errorcode); + DllDef const char *libraw_strprogress(enum LibRaw_progress); + /* LibRaw C API */ + DllDef libraw_data_t *libraw_init(unsigned int flags); + DllDef int libraw_open_file(libraw_data_t *, const char *); +#ifndef LIBRAW_NO_IOSTREAMS_DATASTREAM + DllDef int libraw_open_file_ex(libraw_data_t *, const char *, + INT64 max_buff_sz); +#endif +#if defined(_WIN32) || defined(WIN32) + DllDef int libraw_open_wfile(libraw_data_t *, const wchar_t *); +#ifndef LIBRAW_NO_IOSTREAMS_DATASTREAM + DllDef int libraw_open_wfile_ex(libraw_data_t *, const wchar_t *, + INT64 max_buff_sz); +#endif +#endif + + DllDef int libraw_open_buffer(libraw_data_t *, const void *buffer, size_t size); + DllDef int libraw_open_bayer(libraw_data_t *lr, unsigned char *data, + unsigned datalen, ushort _raw_width, + ushort _raw_height, ushort _left_margin, + ushort _top_margin, ushort _right_margin, + ushort _bottom_margin, unsigned char procflags, + unsigned char bayer_battern, + unsigned unused_bits, unsigned otherflags, + unsigned black_level); + DllDef int libraw_unpack(libraw_data_t *); + DllDef int libraw_unpack_thumb(libraw_data_t *); + DllDef int libraw_unpack_thumb_ex(libraw_data_t *,int); + DllDef void libraw_recycle_datastream(libraw_data_t *); + DllDef void libraw_recycle(libraw_data_t *); + DllDef void libraw_close(libraw_data_t *); + DllDef void libraw_subtract_black(libraw_data_t *); + DllDef int libraw_raw2image(libraw_data_t *); + DllDef void libraw_free_image(libraw_data_t *); + /* version helpers */ + DllDef const char *libraw_version(); + DllDef int libraw_versionNumber(); + /* Camera list */ + DllDef const char **libraw_cameraList(); + DllDef int libraw_cameraCount(); + + /* helpers */ + DllDef void libraw_set_exifparser_handler(libraw_data_t *, + exif_parser_callback cb, + void *datap); + DllDef void libraw_set_dataerror_handler(libraw_data_t *, data_callback func, + void *datap); + DllDef void libraw_set_progress_handler(libraw_data_t *, progress_callback cb, + void *datap); + DllDef const char *libraw_unpack_function_name(libraw_data_t *lr); + DllDef int libraw_get_decoder_info(libraw_data_t *lr, + libraw_decoder_info_t *d); + DllDef int libraw_COLOR(libraw_data_t *, int row, int col); + DllDef unsigned libraw_capabilities(); + + /* DCRAW compatibility */ + DllDef int libraw_adjust_sizes_info_only(libraw_data_t *); + DllDef int libraw_dcraw_ppm_tiff_writer(libraw_data_t *lr, + const char *filename); + DllDef int libraw_dcraw_thumb_writer(libraw_data_t *lr, const char *fname); + DllDef int libraw_dcraw_process(libraw_data_t *lr); + DllDef libraw_processed_image_t * + libraw_dcraw_make_mem_image(libraw_data_t *lr, int *errc); + DllDef libraw_processed_image_t * + libraw_dcraw_make_mem_thumb(libraw_data_t *lr, int *errc); + DllDef void libraw_dcraw_clear_mem(libraw_processed_image_t *); + /* getters/setters used by 3DLut Creator */ + DllDef void libraw_set_demosaic(libraw_data_t *lr, int value); + DllDef void libraw_set_output_color(libraw_data_t *lr, int value); + DllDef void libraw_set_adjust_maximum_thr(libraw_data_t *lr, float value); + DllDef void libraw_set_user_mul(libraw_data_t *lr, int index, float val); + DllDef void libraw_set_output_bps(libraw_data_t *lr, int value); + DllDef void libraw_set_gamma(libraw_data_t *lr, int index, float value); + DllDef void libraw_set_no_auto_bright(libraw_data_t *lr, int value); + DllDef void libraw_set_bright(libraw_data_t *lr, float value); + DllDef void libraw_set_highlight(libraw_data_t *lr, int value); + DllDef void libraw_set_fbdd_noiserd(libraw_data_t *lr, int value); + DllDef int libraw_get_raw_height(libraw_data_t *lr); + DllDef int libraw_get_raw_width(libraw_data_t *lr); + DllDef int libraw_get_iheight(libraw_data_t *lr); + DllDef int libraw_get_iwidth(libraw_data_t *lr); + DllDef float libraw_get_cam_mul(libraw_data_t *lr, int index); + DllDef float libraw_get_pre_mul(libraw_data_t *lr, int index); + DllDef float libraw_get_rgb_cam(libraw_data_t *lr, int index1, int index2); + DllDef int libraw_get_color_maximum(libraw_data_t *lr); + DllDef void libraw_set_output_tif(libraw_data_t *lr, int value); + DllDef libraw_iparams_t *libraw_get_iparams(libraw_data_t *lr); + DllDef libraw_lensinfo_t *libraw_get_lensinfo(libraw_data_t *lr); + DllDef libraw_imgother_t *libraw_get_imgother(libraw_data_t *lr); + +#ifdef __cplusplus +} +#endif + +#ifdef __cplusplus + +class DllDef LibRaw +{ +public: + libraw_data_t imgdata; + + LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); + libraw_output_params_t *output_params_ptr() { return &imgdata.params; } +#ifndef LIBRAW_NO_IOSTREAMS_DATASTREAM + int open_file(const char *fname, + INT64 max_buffered_sz = LIBRAW_USE_STREAMS_DATASTREAM_MAXSIZE); +#if defined(_WIN32) || defined(WIN32) + int open_file(const wchar_t *fname, + INT64 max_buffered_sz = LIBRAW_USE_STREAMS_DATASTREAM_MAXSIZE); +#endif +#else + int open_file(const char *fname); +#if defined(_WIN32) || defined(WIN32) + int open_file(const wchar_t *fname); +#endif + +#endif + int open_buffer(const void *buffer, size_t size); + virtual int open_datastream(LibRaw_abstract_datastream *); + virtual int open_bayer(const unsigned char *data, unsigned datalen, + ushort _raw_width, ushort _raw_height, + ushort _left_margin, ushort _top_margin, + ushort _right_margin, ushort _bottom_margin, + unsigned char procflags, unsigned char bayer_pattern, + unsigned unused_bits, unsigned otherflags, + unsigned black_level); + int error_count() { return libraw_internal_data.unpacker_data.data_error; } + void recycle_datastream(); + int unpack(void); + int unpack_thumb(void); + int unpack_thumb_ex(int); + int thumbOK(INT64 maxsz = -1); + int adjust_sizes_info_only(void); + int subtract_black(); + int subtract_black_internal(); + int raw2image(); + int raw2image_ex(int do_subtract_black); + void raw2image_start(); + void free_image(); + int adjust_maximum(); + int adjust_to_raw_inset_crop(unsigned mask, float maxcrop = 0.55f); + void set_exifparser_handler(exif_parser_callback cb, void *data) + { + callbacks.exifparser_data = data; + callbacks.exif_cb = cb; + } + void set_dataerror_handler(data_callback func, void *data) + { + callbacks.datacb_data = data; + callbacks.data_cb = func; + } + void set_progress_handler(progress_callback pcb, void *data) + { + callbacks.progresscb_data = data; + callbacks.progress_cb = pcb; + } + + static const char* cameramakeridx2maker(unsigned maker); + int setMakeFromIndex(unsigned index); + + void convertFloatToInt(float dmin = 4096.f, float dmax = 32767.f, + float dtarget = 16383.f); + /* helpers */ + static unsigned capabilities(); + static const char *version(); + static int versionNumber(); + static const char **cameraList(); + static int cameraCount(); + static const char *strprogress(enum LibRaw_progress); + static const char *strerror(int p); + /* dcraw emulation */ + int dcraw_ppm_tiff_writer(const char *filename); + int dcraw_thumb_writer(const char *fname); + int dcraw_process(void); + /* information calls */ + int is_fuji_rotated() + { + return libraw_internal_data.internal_output_params.fuji_width; + } + int is_sraw(); + int sraw_midpoint(); + int is_nikon_sraw(); + int is_coolscan_nef(); + int is_jpeg_thumb(); + int is_floating_point(); + int have_fpdata(); + /* memory writers */ + virtual libraw_processed_image_t *dcraw_make_mem_image(int *errcode = NULL); + virtual libraw_processed_image_t *dcraw_make_mem_thumb(int *errcode = NULL); + static void dcraw_clear_mem(libraw_processed_image_t *); + + /* Additional calls for make_mem_image */ + void get_mem_image_format(int *width, int *height, int *colors, + int *bps) const; + int copy_mem_image(void *scan0, int stride, int bgr); + + /* free all internal data structures */ + void recycle(); + virtual ~LibRaw(void); + + int COLOR(int row, int col) + { + if (!imgdata.idata.filters) + return 6; /* Special value 0+1+2+3 */ + if (imgdata.idata.filters < 1000) + return fcol(row, col); + return libraw_internal_data.internal_output_params.fuji_width + ? FCF(row, col) + : FC(row, col); + } + + int FC(int row, int col) + { + return (imgdata.idata.filters >> (((row << 1 & 14) | (col & 1)) << 1) & 3); + } + int fcol(int row, int col); + + const char *unpack_function_name(); + virtual int get_decoder_info(libraw_decoder_info_t *d_info); + libraw_internal_data_t *get_internal_data_pointer() + { + return &libraw_internal_data; + } + + static float powf_lim(float a, float b, float limup) + { + return (b > limup || b < -limup) ? 0.f : powf(a, b); + } + static float libraw_powf64l(float a, float b) { return powf_lim(a, b, 64.f); } + + static unsigned sgetn(int n, uchar *s) + { + unsigned result = 0; + while (n-- > 0) + result = (result << 8) | (*s++); + return result; + } + + /* Phase one correction/subtractBL calls */ + /* Returns libraw error code */ + + int phase_one_subtract_black(ushort *src, ushort *dest); + int phase_one_correct(); + + int set_rawspeed_camerafile(char *filename); + virtual void setCancelFlag(); + virtual void clearCancelFlag(); + virtual int adobe_coeff(unsigned, const char *, int internal_only = 0); + + void set_dng_host(void *); + +protected: + static void *memmem(char *haystack, size_t haystacklen, char *needle, + size_t needlelen); + static char *strcasestr(char *h, const char *n); + static size_t strnlen(const char *s, size_t n); + +#ifdef LIBRAW_NO_IOSTREAMS_DATASTREAM + int libraw_openfile_tail(LibRaw_abstract_datastream *stream); +#endif + + int is_curve_linear(); + void checkCancel(); + void cam_xyz_coeff(float _rgb_cam[3][4], double cam_xyz[4][3]); + void phase_one_allocate_tempbuffer(); + void phase_one_free_tempbuffer(); + virtual int is_phaseone_compressed(); + virtual int is_canon_600(); + /* Hotspots */ + virtual void copy_fuji_uncropped(unsigned short cblack[4], + unsigned short *dmaxp); + virtual void copy_bayer(unsigned short cblack[4], unsigned short *dmaxp); + virtual void fuji_rotate(); + virtual void convert_to_rgb_loop(float out_cam[3][4]); + virtual void lin_interpolate_loop(int *code, int size); + virtual void scale_colors_loop(float scale_mul[4]); + + /* Fujifilm compressed decoder public interface (to make parallel decoder) */ + virtual void + fuji_decode_loop(struct fuji_compressed_params *common_info, int count, + INT64 *offsets, unsigned *sizes, uchar *q_bases); + void fuji_decode_strip(struct fuji_compressed_params *info_common, + int cur_block, INT64 raw_offset, unsigned size, uchar *q_bases); + /* CR3 decoder public interface to make parallel decoder */ + virtual void crxLoadDecodeLoop(void *, int); + int crxDecodePlane(void *, uint32_t planeNumber); + virtual void crxLoadFinalizeLoopE3(void *, int); + void crxConvertPlaneLineDf(void *, int); + + int FCF(int row, int col) + { + int rr, cc; + if (libraw_internal_data.unpacker_data.fuji_layout) + { + rr = libraw_internal_data.internal_output_params.fuji_width - 1 - col + + (row >> 1); + cc = col + ((row + 1) >> 1); + } + else + { + rr = libraw_internal_data.internal_output_params.fuji_width - 1 + row - + (col >> 1); + cc = row + ((col + 1) >> 1); + } + return FC(rr, cc); + } + + void adjust_bl(); + void *malloc(size_t t); + void *calloc(size_t n, size_t t); + void *realloc(void *p, size_t s); + void free(void *p); + void derror(); + + LibRaw_TLS *tls; + libraw_internal_data_t libraw_internal_data; + decode first_decode[2048], *second_decode, *free_decode; + tiff_ifd_t tiff_ifd[LIBRAW_IFD_MAXCOUNT]; + libraw_memmgr memmgr; + libraw_callbacks_t callbacks; + + //void (LibRaw::*write_thumb)(); + void (LibRaw::*write_fun)(); + void (LibRaw::*load_raw)(); + //void (LibRaw::*thumb_load_raw)(); + void (LibRaw::*pentax_component_load_raw)(); + + void kodak_thumb_loader(); + void write_thumb_ppm_tiff(FILE *); +#ifdef USE_X3FTOOLS + void x3f_thumb_loader(); + INT64 x3f_thumb_size(); +#endif + + int own_filtering_supported() { return 0; } + void identify(); + void initdata(); + unsigned parse_custom_cameras(unsigned limit, libraw_custom_camera_t table[], + char **list); + void write_ppm_tiff(); + void convert_to_rgb(); + void remove_zeroes(); + void crop_masked_pixels(); +#ifndef NO_LCMS + void apply_profile(const char *, const char *); +#endif + void pre_interpolate(); + void border_interpolate(int border); + void lin_interpolate(); + void vng_interpolate(); + void ppg_interpolate(); + void cielab(ushort rgb[3], short lab[3]); + void xtrans_interpolate(int); + void ahd_interpolate(); + void dht_interpolate(); + void aahd_interpolate(); + + void dcb(int iterations, int dcb_enhance); + void fbdd(int noiserd); + void exp_bef(float expos, float preser); + + void bad_pixels(const char *); + void subtract(const char *); + void hat_transform(float *temp, float *base, int st, int size, int sc); + void wavelet_denoise(); + void scale_colors(); + void median_filter(); + void blend_highlights(); + void recover_highlights(); + void green_matching(); + + void stretch(); + + void jpeg_thumb_writer(FILE *tfp, char *thumb, int thumb_length); +#if 0 + void jpeg_thumb(); + void ppm_thumb(); + void ppm16_thumb(); + void layer_thumb(); + void rollei_thumb(); +#endif + void kodak_thumb_load_raw(); + + unsigned get4(); + + int flip_index(int row, int col); + void gamma_curve(double pwr, double ts, int mode, int imax); + void cubic_spline(const int *x_, const int *y_, const int len); + + /* RawSpeed data */ + void *_rawspeed_camerameta; + void *_rawspeed_decoder; + void *_rawspeed3_handle; + void fix_after_rawspeed(int bl); + int try_rawspeed(); /* returns LIBRAW_SUCCESS on success */ + /* Fast cancel flag */ + long _exitflag; + + /* DNG SDK data */ + void *dnghost; + void *dngnegative; + void *dngimage; + int valid_for_dngsdk(); + int try_dngsdk(); + /* X3F data */ + void *_x3f_data; /* keep it even if USE_X3FTOOLS is not defined to do not change sizeof(LibRaw)*/ + + int raw_was_read() + { + return imgdata.rawdata.raw_image || imgdata.rawdata.color4_image || + imgdata.rawdata.color3_image || imgdata.rawdata.float_image || + imgdata.rawdata.float3_image || imgdata.rawdata.float4_image; + } + +#ifdef LIBRAW_LIBRARY_BUILD +#include "internal/libraw_internal_funcs.h" +#endif +}; + +#ifdef LIBRAW_LIBRARY_BUILD +ushort libraw_sget2_static(short _order, uchar *s); +unsigned libraw_sget4_static(short _order, uchar *s); +int libraw_tagtype_dataunit_bytes(int tagtype); +double libraw_sgetreal_static(short _order, int type, uchar *s); +float libraw_int_to_float (int i); +#endif + + +#ifdef LIBRAW_LIBRARY_BUILD +#define RUN_CALLBACK(stage, iter, expect) \ + if (callbacks.progress_cb) \ + { \ + int rr = (*callbacks.progress_cb)(callbacks.progresscb_data, stage, iter, \ + expect); \ + if (rr != 0) \ + throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ + } +#endif + +#endif /* __cplusplus */ + +#endif /* _LIBRAW_CLASS_H */ diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_alloc.h b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_alloc.h new file mode 100644 index 0000000000000000000000000000000000000000..c22d99586e5e5bacac240ae0c42cc54ad0e509c4 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_alloc.h @@ -0,0 +1,148 @@ +/* -*- C++ -*- + * File: libraw_alloc.h + * Copyright 2008-2021 LibRaw LLC (info@libraw.org) + * Created: Sat Mar 22, 2008 + * + * LibRaw C++ interface + * +LibRaw is free software; you can redistribute it and/or modify +it under the terms of the one of two licenses as you choose: + +1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 + (See file LICENSE.LGPL provided in LibRaw distribution archive for details). + +2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 + (See file LICENSE.CDDL provided in LibRaw distribution archive for details). + + */ + +#ifndef __LIBRAW_ALLOC_H +#define __LIBRAW_ALLOC_H + +#include +#include +#include "libraw_const.h" + +#ifdef __cplusplus + +#define LIBRAW_MSIZE 512 + +class DllDef libraw_memmgr +{ +public: + libraw_memmgr(unsigned ee) : extra_bytes(ee) + { + size_t alloc_sz = LIBRAW_MSIZE * sizeof(void *); + mems = (void **)::malloc(alloc_sz); + memset(mems, 0, alloc_sz); + } + ~libraw_memmgr() + { + cleanup(); + ::free(mems); + } + void *malloc(size_t sz) + { +#ifdef LIBRAW_USE_CALLOC_INSTEAD_OF_MALLOC + void *ptr = ::calloc(sz + extra_bytes, 1); +#else + void *ptr = ::malloc(sz + extra_bytes); +#endif + mem_ptr(ptr); + return ptr; + } + void *calloc(size_t n, size_t sz) + { + void *ptr = ::calloc(n + (extra_bytes + sz - 1) / (sz ? sz : 1), sz); + mem_ptr(ptr); + return ptr; + } + void *realloc(void *ptr, size_t newsz) + { + void *ret = ::realloc(ptr, newsz + extra_bytes); + forget_ptr(ptr); + mem_ptr(ret); + return ret; + } + void free(void *ptr) + { + forget_ptr(ptr); + ::free(ptr); + } + void cleanup(void) + { + for (int i = 0; i < LIBRAW_MSIZE; i++) + if (mems[i]) + { + ::free(mems[i]); + mems[i] = NULL; + } + } + +private: + void **mems; + unsigned extra_bytes; + void mem_ptr(void *ptr) + { +#if defined(LIBRAW_USE_OPENMP) + bool ok = false; /* do not return from critical section */ +#endif + +#if defined(LIBRAW_USE_OPENMP) +#pragma omp critical + { +#endif + if (ptr) + { + for (int i = 0; i < LIBRAW_MSIZE - 1; i++) + if (!mems[i]) + { + mems[i] = ptr; +#if defined(LIBRAW_USE_OPENMP) + ok = true; + break; +#else + return; +#endif + } +#ifdef LIBRAW_MEMPOOL_CHECK +#if !defined(LIBRAW_USE_OPENMP) + /* remember ptr in last mems item to be free'ed at cleanup */ + if (!mems[LIBRAW_MSIZE - 1]) + mems[LIBRAW_MSIZE - 1] = ptr; + throw LIBRAW_EXCEPTION_MEMPOOL; +#endif +#endif + } +#if defined(LIBRAW_USE_OPENMP) + } + if(!ok) + { + if (!mems[LIBRAW_MSIZE - 1]) + mems[LIBRAW_MSIZE - 1] = ptr; + throw LIBRAW_EXCEPTION_MEMPOOL; + } +#endif + } + void forget_ptr(void *ptr) + { +#if defined(LIBRAW_USE_OPENMP) +#pragma omp critical + { +#endif + if (ptr) + for (int i = 0; i < LIBRAW_MSIZE; i++) + if (mems[i] == ptr) + { + mems[i] = NULL; + break; + } +#if defined(LIBRAW_USE_OPENMP) + } +#endif + } +}; + +#endif /* C++ */ + +#endif diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_const.h b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_const.h new file mode 100644 index 0000000000000000000000000000000000000000..61f8028b2ce055e4fe3a033cf687fe9ca290f8a2 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_const.h @@ -0,0 +1,814 @@ +/* -*- C++ -*- + * File: libraw_const.h + * Copyright 2008-2021 LibRaw LLC (info@libraw.org) + * Created: Sat Mar 8 , 2008 + * LibRaw error codes +LibRaw is free software; you can redistribute it and/or modify +it under the terms of the one of two licenses as you choose: + +1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 + (See file LICENSE.LGPL provided in LibRaw distribution archive for details). + +2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 + (See file LICENSE.CDDL provided in LibRaw distribution archive for details). + + */ + +#ifndef _LIBRAW_ERRORS_H +#define _LIBRAW_ERRORS_H + +#define LIBRAW_DEFAULT_ADJUST_MAXIMUM_THRESHOLD 0.75f +#define LIBRAW_DEFAULT_AUTO_BRIGHTNESS_THRESHOLD 0.01f +/* limit allocation size, default is 2Gb */ +#ifndef LIBRAW_MAX_ALLOC_MB_DEFAULT +#define LIBRAW_MAX_ALLOC_MB_DEFAULT 2048L +#endif + +#ifndef LIBRAW_MAX_PROFILE_SIZE_MB +#define LIBRAW_MAX_PROFILE_SIZE_MB 256LL +#endif + +#ifndef LIBRAW_MAX_NONDNG_RAW_FILE_SIZE +#define LIBRAW_MAX_NONDNG_RAW_FILE_SIZE 2147483647ULL +#endif + +#ifndef LIBRAW_MAX_DNG_RAW_FILE_SIZE +#ifdef USE_DNGSDK +#define LIBRAW_MAX_DNG_RAW_FILE_SIZE 4294967295ULL +#else +#define LIBRAW_MAX_DNG_RAW_FILE_SIZE 2147483647ULL +#endif +#endif + + +/* limit thumbnail size, default is 512Mb*/ +#ifndef LIBRAW_MAX_THUMBNAIL_MB +#define LIBRAW_MAX_THUMBNAIL_MB 512L +#endif + +/* Check if enough file space exists before tag read */ +#ifndef LIBRAW_NO_IOSPACE_CHECK +#define LIBRAW_IOSPACE_CHECK +#endif +#ifndef LIBRAW_NO_CR3_MEMPOOL +#define LIBRAW_CR3_MEMPOOL +#endif + + + +/* LibRaw uses own memory pool management, with LIBRAW_MSIZE (512) +entries. It is enough for parsing/decoding non-damaged files, but +may overflow on specially crafted files (eg. with many string values +like XMP blocks. +LIBRAW_MEMPOOL_CHECK define will result in error on pool overflow */ +#ifndef LIBRAW_NO_MEMPOOL_CHECK +#define LIBRAW_MEMPOOL_CHECK +#endif + +#define LIBRAW_MAX_METADATA_BLOCKS 1024 +#define LIBRAW_CBLACK_SIZE 4104 +#define LIBRAW_IFD_MAXCOUNT 10 +#define LIBRAW_THUMBNAIL_MAXCOUNT 8 +#define LIBRAW_CRXTRACKS_MAXCOUNT 16 +#define LIBRAW_AFDATA_MAXCOUNT 4 + +#define LIBRAW_AHD_TILE 512 + +#ifndef LIBRAW_NO_IOSTREAMS_DATASTREAM + +enum LibRaw_open_flags +{ + LIBRAW_OPEN_BIGFILE=1, + LIBRAW_OPEN_FILE= 1<<1 +}; +#endif + +enum LibRaw_openbayer_patterns +{ + LIBRAW_OPENBAYER_RGGB = 0x94, + LIBRAW_OPENBAYER_BGGR = 0x16, + LIBRAW_OPENBAYER_GRBG = 0x61, + LIBRAW_OPENBAYER_GBRG = 0x49 +}; + +enum LibRaw_dngfields_marks +{ + LIBRAW_DNGFM_FORWARDMATRIX = 1, + LIBRAW_DNGFM_ILLUMINANT = 1 << 1, + LIBRAW_DNGFM_COLORMATRIX = 1 << 2, + LIBRAW_DNGFM_CALIBRATION = 1 << 3, + LIBRAW_DNGFM_ANALOGBALANCE = 1 << 4, + LIBRAW_DNGFM_BLACK = 1 << 5, + LIBRAW_DNGFM_WHITE = 1 << 6, + LIBRAW_DNGFM_OPCODE2 = 1 << 7, + LIBRAW_DNGFM_LINTABLE = 1 << 8, + LIBRAW_DNGFM_CROPORIGIN = 1 << 9, + LIBRAW_DNGFM_CROPSIZE = 1 << 10, + LIBRAW_DNGFM_PREVIEWCS = 1 << 11, + LIBRAW_DNGFM_ASSHOTNEUTRAL = 1 << 12, + LIBRAW_DNGFM_BASELINEEXPOSURE = 1 << 13, + LIBRAW_DNGFM_LINEARRESPONSELIMIT = 1 << 14, + LIBRAW_DNGFM_USERCROP = 1 << 15, + LIBRAW_DNGFM_OPCODE1 = 1 << 16, + LIBRAW_DNGFM_OPCODE3 = 1 << 17, +}; + +enum LibRaw_As_Shot_WB_Applied_codes +{ + LIBRAW_ASWB_APPLIED = 1, + LIBRAW_ASWB_CANON = 2, + LIBRAW_ASWB_NIKON = 4, + LIBRAW_ASWB_NIKON_SRAW = 8, + LIBRAW_ASWB_PENTAX = 16 +}; + +#define tagtypeIs(typex) (type == typex) +enum LibRaw_ExifTagTypes { + LIBRAW_EXIFTAG_TYPE_UNKNOWN = 0, + LIBRAW_EXIFTAG_TYPE_BYTE = 1, + LIBRAW_EXIFTAG_TYPE_ASCII = 2, + LIBRAW_EXIFTAG_TYPE_SHORT = 3, + LIBRAW_EXIFTAG_TYPE_LONG = 4, + LIBRAW_EXIFTAG_TYPE_RATIONAL = 5, + LIBRAW_EXIFTAG_TYPE_SBYTE = 6, + LIBRAW_EXIFTAG_TYPE_UNDEFINED = 7, + LIBRAW_EXIFTAG_TYPE_SSHORT = 8, + LIBRAW_EXIFTAG_TYPE_SLONG = 9, + LIBRAW_EXIFTAG_TYPE_SRATIONAL = 10, + LIBRAW_EXIFTAG_TYPE_FLOAT = 11, + LIBRAW_EXIFTAG_TYPE_DOUBLE = 12, + LIBRAW_EXIFTAG_TYPE_IFD = 13, + LIBRAW_EXIFTAG_TYPE_UNICODE = 14, + LIBRAW_EXIFTAG_TYPE_COMPLEX = 15, + LIBRAW_EXIFTAG_TYPE_LONG8 = 16, + LIBRAW_EXIFTAG_TYPE_SLONG8 = 17, + LIBRAW_EXIFTAG_TYPE_IFD8 = 18 +}; + +#define LIBRAW_EXIFTOOLTAGTYPE_int8u LIBRAW_EXIFTAG_TYPE_BYTE +#define LIBRAW_EXIFTOOLTAGTYPE_string LIBRAW_EXIFTAG_TYPE_ASCII +#define LIBRAW_EXIFTOOLTAGTYPE_int16u LIBRAW_EXIFTAG_TYPE_SHORT +#define LIBRAW_EXIFTOOLTAGTYPE_int32u LIBRAW_EXIFTAG_TYPE_LONG +#define LIBRAW_EXIFTOOLTAGTYPE_rational64u LIBRAW_EXIFTAG_TYPE_RATIONAL +#define LIBRAW_EXIFTOOLTAGTYPE_int8s LIBRAW_EXIFTAG_TYPE_SBYTE +#define LIBRAW_EXIFTOOLTAGTYPE_undef LIBRAW_EXIFTAG_TYPE_UNDEFINED +#define LIBRAW_EXIFTOOLTAGTYPE_binary LIBRAW_EXIFTAG_TYPE_UNDEFINED +#define LIBRAW_EXIFTOOLTAGTYPE_int16s LIBRAW_EXIFTAG_TYPE_SSHORT +#define LIBRAW_EXIFTOOLTAGTYPE_int32s LIBRAW_EXIFTAG_TYPE_SLONG +#define LIBRAW_EXIFTOOLTAGTYPE_rational64s LIBRAW_EXIFTAG_TYPE_SRATIONAL +#define LIBRAW_EXIFTOOLTAGTYPE_float LIBRAW_EXIFTAG_TYPE_FLOAT +#define LIBRAW_EXIFTOOLTAGTYPE_double LIBRAW_EXIFTAG_TYPE_DOUBLE +#define LIBRAW_EXIFTOOLTAGTYPE_ifd LIBRAW_EXIFTAG_TYPE_IFD +#define LIBRAW_EXIFTOOLTAGTYPE_unicode LIBRAW_EXIFTAG_TYPE_UNICODE +#define LIBRAW_EXIFTOOLTAGTYPE_complex LIBRAW_EXIFTAG_TYPE_COMPLEX +#define LIBRAW_EXIFTOOLTAGTYPE_int64u LIBRAW_EXIFTAG_TYPE_LONG8 +#define LIBRAW_EXIFTOOLTAGTYPE_int64s LIBRAW_EXIFTAG_TYPE_SLONG8 +#define LIBRAW_EXIFTOOLTAGTYPE_ifd64 LIBRAW_EXIFTAG_TYPE_IFD8 + +#define LIBRAW_LENS_NOT_SET 0xffffffffffffffffULL + +enum LibRaw_whitebalance_code +{ +// clang-format off + /* + EXIF light sources + 12 = FL-D; Daylight fluorescent (D 5700K – 7100K) (F1,F5) + 13 = FL-N; Day white fluorescent (N 4600K – 5400K) (F7,F8) + 14 = FL-W; Cool white fluorescent (W 3900K – 4500K) (F2,F6, office, store, warehouse) + 15 = FL-WW; White fluorescent (WW 3200K – 3700K) (F3, residential) + 16 = FL-L; Soft/Warm white fluorescent (L 2600K - 3250K) (F4, kitchen, bath) + */ +//clang-format on + LIBRAW_WBI_Unknown = 0, + LIBRAW_WBI_Daylight = 1, + LIBRAW_WBI_Fluorescent = 2, + LIBRAW_WBI_Tungsten = 3, + LIBRAW_WBI_Flash = 4, + LIBRAW_WBI_FineWeather = 9, + LIBRAW_WBI_Cloudy = 10, + LIBRAW_WBI_Shade = 11, + LIBRAW_WBI_FL_D = 12, + LIBRAW_WBI_FL_N = 13, + LIBRAW_WBI_FL_W = 14, + LIBRAW_WBI_FL_WW = 15, + LIBRAW_WBI_FL_L = 16, + LIBRAW_WBI_Ill_A = 17, + LIBRAW_WBI_Ill_B = 18, + LIBRAW_WBI_Ill_C = 19, + LIBRAW_WBI_D55 = 20, + LIBRAW_WBI_D65 = 21, + LIBRAW_WBI_D75 = 22, + LIBRAW_WBI_D50 = 23, + LIBRAW_WBI_StudioTungsten = 24, + LIBRAW_WBI_Sunset = 64, + LIBRAW_WBI_Underwater = 65, + LIBRAW_WBI_FluorescentHigh = 66, + LIBRAW_WBI_HT_Mercury = 67, + LIBRAW_WBI_AsShot = 81, + LIBRAW_WBI_Auto = 82, + LIBRAW_WBI_Custom = 83, + LIBRAW_WBI_Auto1 = 85, + LIBRAW_WBI_Auto2 = 86, + LIBRAW_WBI_Auto3 = 87, + LIBRAW_WBI_Auto4 = 88, + LIBRAW_WBI_Custom1 = 90, + LIBRAW_WBI_Custom2 = 91, + LIBRAW_WBI_Custom3 = 92, + LIBRAW_WBI_Custom4 = 93, + LIBRAW_WBI_Custom5 = 94, + LIBRAW_WBI_Custom6 = 95, + LIBRAW_WBI_PC_Set1 = 96, + LIBRAW_WBI_PC_Set2 = 97, + LIBRAW_WBI_PC_Set3 = 98, + LIBRAW_WBI_PC_Set4 = 99, + LIBRAW_WBI_PC_Set5 = 100, + LIBRAW_WBI_Measured = 110, + LIBRAW_WBI_BW = 120, + LIBRAW_WBI_Kelvin = 254, + LIBRAW_WBI_Other = 255, + LIBRAW_WBI_None = 0xffff +}; + +enum LibRaw_MultiExposure_related +{ + LIBRAW_ME_NONE = 0, + LIBRAW_ME_SIMPLE = 1, + LIBRAW_ME_OVERLAY = 2, + LIBRAW_ME_HDR = 3 +}; + +enum LibRaw_dng_processing +{ + LIBRAW_DNG_NONE = 0, + LIBRAW_DNG_FLOAT = 1, + LIBRAW_DNG_LINEAR = 2, + LIBRAW_DNG_DEFLATE = 4, + LIBRAW_DNG_XTRANS = 8, + LIBRAW_DNG_OTHER = 16, + LIBRAW_DNG_8BIT = 32, + /*LIBRAW_DNG_LARGERANGE=64,*/ /* more than 16 bit integer */ + LIBRAW_DNG_ALL = + LIBRAW_DNG_FLOAT | LIBRAW_DNG_LINEAR | LIBRAW_DNG_DEFLATE | LIBRAW_DNG_XTRANS | + LIBRAW_DNG_8BIT | LIBRAW_DNG_OTHER /* |LIBRAW_DNG_LARGERANGE */, + LIBRAW_DNG_DEFAULT = LIBRAW_DNG_FLOAT | LIBRAW_DNG_LINEAR | + LIBRAW_DNG_DEFLATE | LIBRAW_DNG_8BIT +}; + +enum LibRaw_output_flags +{ + LIBRAW_OUTPUT_FLAGS_NONE = 0, + LIBRAW_OUTPUT_FLAGS_PPMMETA = 1 +}; + +enum LibRaw_runtime_capabilities +{ + LIBRAW_CAPS_RAWSPEED = 1, + LIBRAW_CAPS_DNGSDK = 1<<1, + LIBRAW_CAPS_GPRSDK = 1<<2, + LIBRAW_CAPS_UNICODEPATHS = 1<<3, + LIBRAW_CAPS_X3FTOOLS = 1<<4, + LIBRAW_CAPS_RPI6BY9 = 1<<5, + LIBRAW_CAPS_ZLIB = 1<<6, + LIBRAW_CAPS_JPEG = 1<<7, + LIBRAW_CAPS_RAWSPEED3 = 1<<8, + LIBRAW_CAPS_RAWSPEED_BITS = 1<<9, +}; + +enum LibRaw_colorspace { + LIBRAW_COLORSPACE_NotFound = 0, + LIBRAW_COLORSPACE_sRGB, + LIBRAW_COLORSPACE_AdobeRGB, + LIBRAW_COLORSPACE_WideGamutRGB, + LIBRAW_COLORSPACE_ProPhotoRGB, + LIBRAW_COLORSPACE_ICC, + LIBRAW_COLORSPACE_Uncalibrated, // Tag 0x0001 InteropIndex containing "R03" + LIBRAW_COLORSPACE_Uncalibrated = Adobe RGB + LIBRAW_COLORSPACE_CameraLinearUniWB, + LIBRAW_COLORSPACE_CameraLinear, + LIBRAW_COLORSPACE_CameraGammaUniWB, + LIBRAW_COLORSPACE_CameraGamma, + LIBRAW_COLORSPACE_MonochromeLinear, + LIBRAW_COLORSPACE_MonochromeGamma, + LIBRAW_COLORSPACE_Unknown = 255 +}; + +enum LibRaw_cameramaker_index +{ + LIBRAW_CAMERAMAKER_Unknown = 0, + LIBRAW_CAMERAMAKER_Agfa, + LIBRAW_CAMERAMAKER_Alcatel, + LIBRAW_CAMERAMAKER_Apple, + LIBRAW_CAMERAMAKER_Aptina, + LIBRAW_CAMERAMAKER_AVT, + LIBRAW_CAMERAMAKER_Baumer, + LIBRAW_CAMERAMAKER_Broadcom, + LIBRAW_CAMERAMAKER_Canon, + LIBRAW_CAMERAMAKER_Casio, + LIBRAW_CAMERAMAKER_CINE, + LIBRAW_CAMERAMAKER_Clauss, + LIBRAW_CAMERAMAKER_Contax, + LIBRAW_CAMERAMAKER_Creative, + LIBRAW_CAMERAMAKER_DJI, + LIBRAW_CAMERAMAKER_DXO, + LIBRAW_CAMERAMAKER_Epson, + LIBRAW_CAMERAMAKER_Foculus, + LIBRAW_CAMERAMAKER_Fujifilm, + LIBRAW_CAMERAMAKER_Generic, + LIBRAW_CAMERAMAKER_Gione, + LIBRAW_CAMERAMAKER_GITUP, + LIBRAW_CAMERAMAKER_Google, + LIBRAW_CAMERAMAKER_GoPro, + LIBRAW_CAMERAMAKER_Hasselblad, + LIBRAW_CAMERAMAKER_HTC, + LIBRAW_CAMERAMAKER_I_Mobile, + LIBRAW_CAMERAMAKER_Imacon, + LIBRAW_CAMERAMAKER_JK_Imaging, + LIBRAW_CAMERAMAKER_Kodak, + LIBRAW_CAMERAMAKER_Konica, + LIBRAW_CAMERAMAKER_Leaf, + LIBRAW_CAMERAMAKER_Leica, + LIBRAW_CAMERAMAKER_Lenovo, + LIBRAW_CAMERAMAKER_LG, + LIBRAW_CAMERAMAKER_Logitech, + LIBRAW_CAMERAMAKER_Mamiya, + LIBRAW_CAMERAMAKER_Matrix, + LIBRAW_CAMERAMAKER_Meizu, + LIBRAW_CAMERAMAKER_Micron, + LIBRAW_CAMERAMAKER_Minolta, + LIBRAW_CAMERAMAKER_Motorola, + LIBRAW_CAMERAMAKER_NGM, + LIBRAW_CAMERAMAKER_Nikon, + LIBRAW_CAMERAMAKER_Nokia, + LIBRAW_CAMERAMAKER_Olympus, + LIBRAW_CAMERAMAKER_OmniVison, + LIBRAW_CAMERAMAKER_Panasonic, + LIBRAW_CAMERAMAKER_Parrot, + LIBRAW_CAMERAMAKER_Pentax, + LIBRAW_CAMERAMAKER_PhaseOne, + LIBRAW_CAMERAMAKER_PhotoControl, + LIBRAW_CAMERAMAKER_Photron, + LIBRAW_CAMERAMAKER_Pixelink, + LIBRAW_CAMERAMAKER_Polaroid, + LIBRAW_CAMERAMAKER_RED, + LIBRAW_CAMERAMAKER_Ricoh, + LIBRAW_CAMERAMAKER_Rollei, + LIBRAW_CAMERAMAKER_RoverShot, + LIBRAW_CAMERAMAKER_Samsung, + LIBRAW_CAMERAMAKER_Sigma, + LIBRAW_CAMERAMAKER_Sinar, + LIBRAW_CAMERAMAKER_SMaL, + LIBRAW_CAMERAMAKER_Sony, + LIBRAW_CAMERAMAKER_ST_Micro, + LIBRAW_CAMERAMAKER_THL, + LIBRAW_CAMERAMAKER_VLUU, + LIBRAW_CAMERAMAKER_Xiaomi, + LIBRAW_CAMERAMAKER_XIAOYI, + LIBRAW_CAMERAMAKER_YI, + LIBRAW_CAMERAMAKER_Yuneec, + LIBRAW_CAMERAMAKER_Zeiss, + LIBRAW_CAMERAMAKER_OnePlus, + LIBRAW_CAMERAMAKER_ISG, + LIBRAW_CAMERAMAKER_VIVO, + LIBRAW_CAMERAMAKER_HMD_Global, + LIBRAW_CAMERAMAKER_HUAWEI, + LIBRAW_CAMERAMAKER_RaspberryPi, + LIBRAW_CAMERAMAKER_OmDigital, + + // Insert additional indexes here + LIBRAW_CAMERAMAKER_TheLastOne +}; + +enum LibRaw_camera_mounts +{ + LIBRAW_MOUNT_Unknown = 0, + LIBRAW_MOUNT_Alpa, + LIBRAW_MOUNT_C, /* C-mount */ + LIBRAW_MOUNT_Canon_EF_M, + LIBRAW_MOUNT_Canon_EF_S, + LIBRAW_MOUNT_Canon_EF, + LIBRAW_MOUNT_Canon_RF, + LIBRAW_MOUNT_Contax_N, + LIBRAW_MOUNT_Contax645, + LIBRAW_MOUNT_FT, /* original 4/3 */ + LIBRAW_MOUNT_mFT, /* micro 4/3 */ + LIBRAW_MOUNT_Fuji_GF, /* Fujifilm GFX cameras, G mount */ + LIBRAW_MOUNT_Fuji_GX, /* Fujifilm GX680 */ + LIBRAW_MOUNT_Fuji_X, + LIBRAW_MOUNT_Hasselblad_H, /* Hasselblad Hn cameras, HC & HCD lenses */ + LIBRAW_MOUNT_Hasselblad_V, + LIBRAW_MOUNT_Hasselblad_XCD, /* Hasselblad Xn cameras, XCD lenses */ + LIBRAW_MOUNT_Leica_M, /* Leica rangefinder bayonet */ + LIBRAW_MOUNT_Leica_R, /* Leica SLRs, 'R' for reflex */ + LIBRAW_MOUNT_Leica_S, /* LIBRAW_FORMAT_LeicaS 'MF' */ + LIBRAW_MOUNT_Leica_SL, /* lens, mounts on 'L' throat, FF */ + LIBRAW_MOUNT_Leica_TL, /* lens, mounts on 'L' throat, APS-C */ + LIBRAW_MOUNT_LPS_L, /* Leica/Panasonic/Sigma camera mount, takes L, SL and TL lenses */ + LIBRAW_MOUNT_Mamiya67, /* Mamiya RB67, RZ67 */ + LIBRAW_MOUNT_Mamiya645, + LIBRAW_MOUNT_Minolta_A, + LIBRAW_MOUNT_Nikon_CX, /* used in 'Nikon 1' series */ + LIBRAW_MOUNT_Nikon_F, + LIBRAW_MOUNT_Nikon_Z, + LIBRAW_MOUNT_PhaseOne_iXM_MV, + LIBRAW_MOUNT_PhaseOne_iXM_RS, + LIBRAW_MOUNT_PhaseOne_iXM, + LIBRAW_MOUNT_Pentax_645, + LIBRAW_MOUNT_Pentax_K, + LIBRAW_MOUNT_Pentax_Q, + LIBRAW_MOUNT_RicohModule, + LIBRAW_MOUNT_Rollei_bayonet, /* Rollei Hy-6: Leaf AFi, Sinar Hy6- models */ + LIBRAW_MOUNT_Samsung_NX_M, + LIBRAW_MOUNT_Samsung_NX, + LIBRAW_MOUNT_Sigma_X3F, + LIBRAW_MOUNT_Sony_E, + LIBRAW_MOUNT_LF, + LIBRAW_MOUNT_DigitalBack, + LIBRAW_MOUNT_FixedLens, + LIBRAW_MOUNT_IL_UM, /* Interchangeable lens, mount unknown */ + LIBRAW_MOUNT_TheLastOne +}; + +enum LibRaw_camera_formats +{ + LIBRAW_FORMAT_Unknown = 0, + LIBRAW_FORMAT_APSC, + LIBRAW_FORMAT_FF, + LIBRAW_FORMAT_MF, + LIBRAW_FORMAT_APSH, + LIBRAW_FORMAT_1INCH, + LIBRAW_FORMAT_1div2p3INCH, /* 1/2.3" */ + LIBRAW_FORMAT_1div1p7INCH, /* 1/1.7" */ + LIBRAW_FORMAT_FT, /* sensor size in FT & mFT cameras */ + LIBRAW_FORMAT_CROP645, /* 44x33mm */ + LIBRAW_FORMAT_LeicaS, /* 'MF' Leicas */ + LIBRAW_FORMAT_645, + LIBRAW_FORMAT_66, + LIBRAW_FORMAT_69, + LIBRAW_FORMAT_LF, + LIBRAW_FORMAT_Leica_DMR, + LIBRAW_FORMAT_67, + LIBRAW_FORMAT_SigmaAPSC, /* DP1, DP2, SD15, SD14, SD10, SD9 */ + LIBRAW_FORMAT_SigmaMerrill, /* SD1, 'SD1 Merrill', 'DP1 Merrill', 'DP2 Merrill' */ + LIBRAW_FORMAT_SigmaAPSH, /* 'sd Quattro H' */ + LIBRAW_FORMAT_3648, /* DALSA FTF4052C (Mamiya ZD) */ + LIBRAW_FORMAT_68, /* Fujifilm GX680 */ + LIBRAW_FORMAT_TheLastOne +}; + +enum LibRawImageAspects +{ + LIBRAW_IMAGE_ASPECT_UNKNOWN = 0, + LIBRAW_IMAGE_ASPECT_OTHER = 1, + LIBRAW_IMAGE_ASPECT_MINIMAL_REAL_ASPECT_VALUE = 99, /* 1:10*/ + LIBRAW_IMAGE_ASPECT_MAXIMAL_REAL_ASPECT_VALUE = 10000, /* 10: 1*/ + // Value: width / height * 1000 + LIBRAW_IMAGE_ASPECT_3to2 = (1000 * 3)/2, + LIBRAW_IMAGE_ASPECT_1to1 = 1000, + LIBRAW_IMAGE_ASPECT_4to3 = (1000 * 4)/ 3, + LIBRAW_IMAGE_ASPECT_16to9 = (1000 * 16) / 9, + //LIBRAW_IMAGE_ASPECT_6to6, // what is the difference with 1:1 ? + LIBRAW_IMAGE_ASPECT_5to4 = (1000 * 5) / 4, + LIBRAW_IMAGE_ASPECT_7to6 = (1000 * 7) / 6, + LIBRAW_IMAGE_ASPECT_6to5 = (1000 * 6) / 5, + LIBRAW_IMAGE_ASPECT_7to5 = (1000 * 7) / 5 +}; + +enum LibRaw_lens_focal_types +{ + LIBRAW_FT_UNDEFINED = 0, + LIBRAW_FT_PRIME_LENS = 1, + LIBRAW_FT_ZOOM_LENS = 2, + LIBRAW_FT_ZOOM_LENS_CONSTANT_APERTURE = 3, + LIBRAW_FT_ZOOM_LENS_VARIABLE_APERTURE = 4 +}; + +enum LibRaw_Canon_RecordModes { + LIBRAW_Canon_RecordMode_UNDEFINED = 0, + LIBRAW_Canon_RecordMode_JPEG, + LIBRAW_Canon_RecordMode_CRW_THM, + LIBRAW_Canon_RecordMode_AVI_THM, + LIBRAW_Canon_RecordMode_TIF, + LIBRAW_Canon_RecordMode_TIF_JPEG, + LIBRAW_Canon_RecordMode_CR2, + LIBRAW_Canon_RecordMode_CR2_JPEG, + LIBRAW_Canon_RecordMode_UNKNOWN, + LIBRAW_Canon_RecordMode_MOV, + LIBRAW_Canon_RecordMode_MP4, + LIBRAW_Canon_RecordMode_CRM, + LIBRAW_Canon_RecordMode_CR3, + LIBRAW_Canon_RecordMode_CR3_JPEG, + LIBRAW_Canon_RecordMode_HEIF, + LIBRAW_Canon_RecordMode_CR3_HEIF, + LIBRAW_Canon_RecordMode_TheLastOne +}; + +enum LibRaw_minolta_storagemethods +{ + LIBRAW_MINOLTA_UNPACKED = 0x52, + LIBRAW_MINOLTA_PACKED = 0x59 +}; + +enum LibRaw_minolta_bayerpatterns +{ + LIBRAW_MINOLTA_RGGB = 0x01, + LIBRAW_MINOLTA_G2BRG1 = 0x04 +}; + +enum LibRaw_sony_cameratypes +{ + LIBRAW_SONY_DSC = 1, + LIBRAW_SONY_DSLR = 2, + LIBRAW_SONY_NEX = 3, + LIBRAW_SONY_SLT = 4, + LIBRAW_SONY_ILCE = 5, + LIBRAW_SONY_ILCA = 6, + LIBRAW_SONY_CameraType_UNKNOWN = 0xffff +}; + +enum LibRaw_Sony_0x2010_Type { + LIBRAW_SONY_Tag2010None = 0, + LIBRAW_SONY_Tag2010a, + LIBRAW_SONY_Tag2010b, + LIBRAW_SONY_Tag2010c, + LIBRAW_SONY_Tag2010d, + LIBRAW_SONY_Tag2010e, + LIBRAW_SONY_Tag2010f, + LIBRAW_SONY_Tag2010g, + LIBRAW_SONY_Tag2010h, + LIBRAW_SONY_Tag2010i +}; +enum LibRaw_Sony_0x9050_Type { + LIBRAW_SONY_Tag9050None = 0, + LIBRAW_SONY_Tag9050a, + LIBRAW_SONY_Tag9050b, + LIBRAW_SONY_Tag9050c +}; + +enum LIBRAW_SONY_FOCUSMODEmodes +{ + LIBRAW_SONY_FOCUSMODE_MF = 0, + LIBRAW_SONY_FOCUSMODE_AF_S = 2, + LIBRAW_SONY_FOCUSMODE_AF_C = 3, + LIBRAW_SONY_FOCUSMODE_AF_A = 4, + LIBRAW_SONY_FOCUSMODE_DMF = 6, + LIBRAW_SONY_FOCUSMODE_AF_D = 7, + LIBRAW_SONY_FOCUSMODE_AF = 101, + LIBRAW_SONY_FOCUSMODE_PERMANENT_AF = 104, + LIBRAW_SONY_FOCUSMODE_SEMI_MF = 105, + LIBRAW_SONY_FOCUSMODE_UNKNOWN = -1 +}; + +enum LibRaw_KodakSensors +{ + LIBRAW_Kodak_UnknownSensor = 0, + LIBRAW_Kodak_M1 = 1, + LIBRAW_Kodak_M15 = 2, + LIBRAW_Kodak_M16 = 3, + LIBRAW_Kodak_M17 = 4, + LIBRAW_Kodak_M2 = 5, + LIBRAW_Kodak_M23 = 6, + LIBRAW_Kodak_M24 = 7, + LIBRAW_Kodak_M3 = 8, + LIBRAW_Kodak_M5 = 9, + LIBRAW_Kodak_M6 = 10, + LIBRAW_Kodak_C14 = 11, + LIBRAW_Kodak_X14 = 12, + LIBRAW_Kodak_M11 = 13 +}; + +enum LibRaw_HasselbladFormatCodes { + LIBRAW_HF_Unknown = 0, + LIBRAW_HF_3FR, + LIBRAW_HF_FFF, + LIBRAW_HF_Imacon, + LIBRAW_HF_HasselbladDNG, + LIBRAW_HF_AdobeDNG, + LIBRAW_HF_AdobeDNG_fromPhocusDNG +}; + +enum LibRaw_rawspecial_t +{ + LIBRAW_RAWSPECIAL_SONYARW2_NONE = 0, + LIBRAW_RAWSPECIAL_SONYARW2_BASEONLY = 1, + LIBRAW_RAWSPECIAL_SONYARW2_DELTAONLY = 1 << 1, + LIBRAW_RAWSPECIAL_SONYARW2_DELTAZEROBASE = 1 << 2, + LIBRAW_RAWSPECIAL_SONYARW2_DELTATOVALUE = 1 << 3, + LIBRAW_RAWSPECIAL_SONYARW2_ALLFLAGS = + LIBRAW_RAWSPECIAL_SONYARW2_BASEONLY + + LIBRAW_RAWSPECIAL_SONYARW2_DELTAONLY + + LIBRAW_RAWSPECIAL_SONYARW2_DELTAZEROBASE + + LIBRAW_RAWSPECIAL_SONYARW2_DELTATOVALUE, + LIBRAW_RAWSPECIAL_NODP2Q_INTERPOLATERG = 1<<4, + LIBRAW_RAWSPECIAL_NODP2Q_INTERPOLATEAF = 1 << 5, + LIBRAW_RAWSPECIAL_SRAW_NO_RGB = 1 << 6, + LIBRAW_RAWSPECIAL_SRAW_NO_INTERPOLATE = 1 << 7 +}; + +enum LibRaw_rawspeed_bits_t +{ + LIBRAW_RAWSPEEDV1_USE = 1, + LIBRAW_RAWSPEEDV1_FAILONUNKNOWN = 1 << 1, + LIBRAW_RAWSPEEDV1_IGNOREERRORS = 1 << 2, + /* bits 3-7 are reserved*/ + LIBRAW_RAWSPEEDV3_USE = 1 << 8, + LIBRAW_RAWSPEEDV3_FAILONUNKNOWN = 1 << 9, + LIBRAW_RAWSPEEDV3_IGNOREERRORS = 1 << 10, +}; + +enum LibRaw_processing_options +{ + LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES = 1, + LIBRAW_RAWOPTIONS_CONVERTFLOAT_TO_INT = 1 << 1, + LIBRAW_RAWOPTIONS_ARQ_SKIP_CHANNEL_SWAP = 1 << 2, + LIBRAW_RAWOPTIONS_NO_ROTATE_FOR_KODAK_THUMBNAILS = 1 << 3, +// LIBRAW_RAWOPTIONS_USE_DNG_DEFAULT_CROP = 1 << 4, + LIBRAW_RAWOPTIONS_USE_PPM16_THUMBS = 1 << 5, + LIBRAW_RAWOPTIONS_DONT_CHECK_DNG_ILLUMINANT = 1 << 6, + LIBRAW_RAWOPTIONS_DNGSDK_ZEROCOPY = 1 << 7, + LIBRAW_RAWOPTIONS_ZEROFILTERS_FOR_MONOCHROMETIFFS = 1 << 8, + LIBRAW_RAWOPTIONS_DNG_ADD_ENHANCED = 1 << 9, + LIBRAW_RAWOPTIONS_DNG_ADD_PREVIEWS = 1 << 10, + LIBRAW_RAWOPTIONS_DNG_PREFER_LARGEST_IMAGE = 1 << 11, + LIBRAW_RAWOPTIONS_DNG_STAGE2 = 1 << 12, + LIBRAW_RAWOPTIONS_DNG_STAGE3 = 1 << 13, + LIBRAW_RAWOPTIONS_DNG_ALLOWSIZECHANGE = 1 << 14, + LIBRAW_RAWOPTIONS_DNG_DISABLEWBADJUST = 1 << 15, + LIBRAW_RAWOPTIONS_PROVIDE_NONSTANDARD_WB = 1 << 16, + LIBRAW_RAWOPTIONS_CAMERAWB_FALLBACK_TO_DAYLIGHT = 1 << 17, + LIBRAW_RAWOPTIONS_CHECK_THUMBNAILS_KNOWN_VENDORS = 1 << 18, + LIBRAW_RAWOPTIONS_CHECK_THUMBNAILS_ALL_VENDORS = 1 << 19, + LIBRAW_RAWOPTIONS_DNG_STAGE2_IFPRESENT = 1 << 20, + LIBRAW_RAWOPTIONS_DNG_STAGE3_IFPRESENT = 1 << 21, + LIBRAW_RAWOPTIONS_DNG_ADD_MASKS = 1 << 22, + LIBRAW_RAWOPTIONS_CANON_IGNORE_MAKERNOTES_ROTATION = 1 << 23 +}; + +enum LibRaw_decoder_flags +{ + LIBRAW_DECODER_HASCURVE = 1 << 4, + LIBRAW_DECODER_SONYARW2 = 1 << 5, + LIBRAW_DECODER_TRYRAWSPEED = 1 << 6, + LIBRAW_DECODER_OWNALLOC = 1 << 7, + LIBRAW_DECODER_FIXEDMAXC = 1 << 8, + LIBRAW_DECODER_ADOBECOPYPIXEL = 1 << 9, + LIBRAW_DECODER_LEGACY_WITH_MARGINS = 1 << 10, + LIBRAW_DECODER_3CHANNEL = 1 << 11, + LIBRAW_DECODER_SINAR4SHOT = 1 << 11, + LIBRAW_DECODER_FLATDATA = 1 << 12, + LIBRAW_DECODER_FLAT_BG2_SWAPPED = 1<<13, + LIBRAW_DECODER_UNSUPPORTED_FORMAT = 1 << 14, + LIBRAW_DECODER_NOTSET = 1 << 15, + LIBRAW_DECODER_TRYRAWSPEED3 = 1 << 16 +}; + +#define LIBRAW_XTRANS 9 + +enum LibRaw_constructor_flags +{ + LIBRAW_OPTIONS_NONE = 0, + LIBRAW_OPTIONS_NO_DATAERR_CALLBACK = 1 << 1, + /* Compatibility w/ years old typo */ + LIBRAW_OPIONS_NO_DATAERR_CALLBACK = LIBRAW_OPTIONS_NO_DATAERR_CALLBACK +}; + +enum LibRaw_warnings +{ + LIBRAW_WARN_NONE = 0, + LIBRAW_WARN_BAD_CAMERA_WB = 1 << 2, + LIBRAW_WARN_NO_METADATA = 1 << 3, + LIBRAW_WARN_NO_JPEGLIB = 1 << 4, + LIBRAW_WARN_NO_EMBEDDED_PROFILE = 1 << 5, + LIBRAW_WARN_NO_INPUT_PROFILE = 1 << 6, + LIBRAW_WARN_BAD_OUTPUT_PROFILE = 1 << 7, + LIBRAW_WARN_NO_BADPIXELMAP = 1 << 8, + LIBRAW_WARN_BAD_DARKFRAME_FILE = 1 << 9, + LIBRAW_WARN_BAD_DARKFRAME_DIM = 1 << 10, +#ifdef LIBRAW_OLD_VIDEO_SUPPORT + LIBRAW_WARN_NO_JASPER = 1 << 11, +#endif + LIBRAW_WARN_RAWSPEED_PROBLEM = 1 << 12, + LIBRAW_WARN_RAWSPEED_UNSUPPORTED = 1 << 13, + LIBRAW_WARN_RAWSPEED_PROCESSED = 1 << 14, + LIBRAW_WARN_FALLBACK_TO_AHD = 1 << 15, + LIBRAW_WARN_PARSEFUJI_PROCESSED = 1 << 16, + LIBRAW_WARN_DNGSDK_PROCESSED = 1 << 17, + LIBRAW_WARN_DNG_IMAGES_REORDERED = 1 << 18, + LIBRAW_WARN_DNG_STAGE2_APPLIED = 1 << 19, + LIBRAW_WARN_DNG_STAGE3_APPLIED = 1 << 20, + LIBRAW_WARN_RAWSPEED3_PROBLEM = 1 << 21, + LIBRAW_WARN_RAWSPEED3_UNSUPPORTED = 1 << 22, + LIBRAW_WARN_RAWSPEED3_PROCESSED = 1 << 23, + LIBRAW_WARN_RAWSPEED3_NOTLISTED = 1 << 24 +}; + +enum LibRaw_exceptions +{ + LIBRAW_EXCEPTION_NONE = 0, + LIBRAW_EXCEPTION_ALLOC = 1, + LIBRAW_EXCEPTION_DECODE_RAW = 2, + LIBRAW_EXCEPTION_DECODE_JPEG = 3, + LIBRAW_EXCEPTION_IO_EOF = 4, + LIBRAW_EXCEPTION_IO_CORRUPT = 5, + LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK = 6, + LIBRAW_EXCEPTION_BAD_CROP = 7, + LIBRAW_EXCEPTION_IO_BADFILE = 8, + LIBRAW_EXCEPTION_DECODE_JPEG2000 = 9, + LIBRAW_EXCEPTION_TOOBIG = 10, + LIBRAW_EXCEPTION_MEMPOOL = 11, + LIBRAW_EXCEPTION_UNSUPPORTED_FORMAT = 12 +}; + +enum LibRaw_progress +{ + LIBRAW_PROGRESS_START = 0, + LIBRAW_PROGRESS_OPEN = 1, + LIBRAW_PROGRESS_IDENTIFY = 1 << 1, + LIBRAW_PROGRESS_SIZE_ADJUST = 1 << 2, + LIBRAW_PROGRESS_LOAD_RAW = 1 << 3, + LIBRAW_PROGRESS_RAW2_IMAGE = 1 << 4, + LIBRAW_PROGRESS_REMOVE_ZEROES = 1 << 5, + LIBRAW_PROGRESS_BAD_PIXELS = 1 << 6, + LIBRAW_PROGRESS_DARK_FRAME = 1 << 7, + LIBRAW_PROGRESS_FOVEON_INTERPOLATE = 1 << 8, + LIBRAW_PROGRESS_SCALE_COLORS = 1 << 9, + LIBRAW_PROGRESS_PRE_INTERPOLATE = 1 << 10, + LIBRAW_PROGRESS_INTERPOLATE = 1 << 11, + LIBRAW_PROGRESS_MIX_GREEN = 1 << 12, + LIBRAW_PROGRESS_MEDIAN_FILTER = 1 << 13, + LIBRAW_PROGRESS_HIGHLIGHTS = 1 << 14, + LIBRAW_PROGRESS_FUJI_ROTATE = 1 << 15, + LIBRAW_PROGRESS_FLIP = 1 << 16, + LIBRAW_PROGRESS_APPLY_PROFILE = 1 << 17, + LIBRAW_PROGRESS_CONVERT_RGB = 1 << 18, + LIBRAW_PROGRESS_STRETCH = 1 << 19, + /* reserved */ + LIBRAW_PROGRESS_STAGE20 = 1 << 20, + LIBRAW_PROGRESS_STAGE21 = 1 << 21, + LIBRAW_PROGRESS_STAGE22 = 1 << 22, + LIBRAW_PROGRESS_STAGE23 = 1 << 23, + LIBRAW_PROGRESS_STAGE24 = 1 << 24, + LIBRAW_PROGRESS_STAGE25 = 1 << 25, + LIBRAW_PROGRESS_STAGE26 = 1 << 26, + LIBRAW_PROGRESS_STAGE27 = 1 << 27, + + LIBRAW_PROGRESS_THUMB_LOAD = 1 << 28, + LIBRAW_PROGRESS_TRESERVED1 = 1 << 29, + LIBRAW_PROGRESS_TRESERVED2 = 1 << 30 +}; +#define LIBRAW_PROGRESS_THUMB_MASK 0x0fffffff + +enum LibRaw_errors +{ + LIBRAW_SUCCESS = 0, + LIBRAW_UNSPECIFIED_ERROR = -1, + LIBRAW_FILE_UNSUPPORTED = -2, + LIBRAW_REQUEST_FOR_NONEXISTENT_IMAGE = -3, + LIBRAW_OUT_OF_ORDER_CALL = -4, + LIBRAW_NO_THUMBNAIL = -5, + LIBRAW_UNSUPPORTED_THUMBNAIL = -6, + LIBRAW_INPUT_CLOSED = -7, + LIBRAW_NOT_IMPLEMENTED = -8, + LIBRAW_REQUEST_FOR_NONEXISTENT_THUMBNAIL = -9, + LIBRAW_UNSUFFICIENT_MEMORY = -100007, + LIBRAW_DATA_ERROR = -100008, + LIBRAW_IO_ERROR = -100009, + LIBRAW_CANCELLED_BY_CALLBACK = -100010, + LIBRAW_BAD_CROP = -100011, + LIBRAW_TOO_BIG = -100012, + LIBRAW_MEMPOOL_OVERFLOW = -100013 +}; + +#define LIBRAW_FATAL_ERROR(ec) ((ec) < -100000) + +enum LibRaw_internal_thumbnail_formats +{ + LIBRAW_INTERNAL_THUMBNAIL_UNKNOWN = 0, + LIBRAW_INTERNAL_THUMBNAIL_KODAK_THUMB = 1, + LIBRAW_INTERNAL_THUMBNAIL_KODAK_YCBCR = 2, + LIBRAW_INTERNAL_THUMBNAIL_KODAK_RGB = 3, + LIBRAW_INTERNAL_THUMBNAIL_JPEG = 4, + LIBRAW_INTERNAL_THUMBNAIL_LAYER, + LIBRAW_INTERNAL_THUMBNAIL_ROLLEI, + LIBRAW_INTERNAL_THUMBNAIL_PPM, + LIBRAW_INTERNAL_THUMBNAIL_PPM16, + LIBRAW_INTERNAL_THUMBNAIL_X3F, +}; + + +enum LibRaw_thumbnail_formats +{ + LIBRAW_THUMBNAIL_UNKNOWN = 0, + LIBRAW_THUMBNAIL_JPEG = 1, + LIBRAW_THUMBNAIL_BITMAP = 2, + LIBRAW_THUMBNAIL_BITMAP16 = 3, + LIBRAW_THUMBNAIL_LAYER = 4, + LIBRAW_THUMBNAIL_ROLLEI = 5, + LIBRAW_THUMBNAIL_H265 = 6 +}; + +enum LibRaw_image_formats +{ + LIBRAW_IMAGE_JPEG = 1, + LIBRAW_IMAGE_BITMAP = 2 +}; + +#endif diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_datastream.h b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_datastream.h new file mode 100644 index 0000000000000000000000000000000000000000..0596e83a5c622e921bff530b77d78b18089002bb --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_datastream.h @@ -0,0 +1,410 @@ +/* -*- C -*- + * File: libraw_datastream.h + * Copyright 2008-2021 LibRaw LLC (info@libraw.org) + * Created: Sun Jan 18 13:07:35 2009 + * + * LibRaw Data stream interface + +LibRaw is free software; you can redistribute it and/or modify +it under the terms of the one of two licenses as you choose: + +1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 + (See file LICENSE.LGPL provided in LibRaw distribution archive for details). + +2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 + (See file LICENSE.CDDL provided in LibRaw distribution archive for details). + + */ + +#ifndef __LIBRAW_DATASTREAM_H +#define __LIBRAW_DATASTREAM_H + +#include +#include +#include +#include + +#ifndef __cplusplus + +#else /* __cplusplus */ +#if defined _WIN32 +#ifndef LIBRAW_NO_WINSOCK2 +#include +#endif +#endif +/* No unique_ptr on Apple ?? */ +#if __cplusplus >= 201103L || (defined(_CPPLIB_VER) && _CPPLIB_VER >= 520) || \ + (defined(_MSC_VER) && _MSVC_LANG >= 201103L) +/* OK - use unique_ptr unless LIBRAW_USE_AUTOPTR defined externally*/ +#else +/* Force to use auto_ptr */ +#ifndef LIBRAW_USE_AUTOPTR +#define LIBRAW_USE_AUTOPTR +#endif +#endif + +#include "libraw_const.h" +#include "libraw_types.h" +#include +#include +#include + +#if defined(_WIN32) && (_MSC_VER) >= 1500 +#define WIN32SECURECALLS +#endif + +#ifdef USE_DNGSDK + +#if defined LIBRAW_WIN32_CALLS +#define qWinOS 1 +#define qMacOS 0 +#elif defined(__APPLE__) +#define qWinOS 0 +#define qMacOS 1 +#else +/* define OS types for DNG here */ +#endif +#define qDNGXMPDocOps 0 +#define qDNGUseLibJPEG 1 +#define qDNGXMPFiles 0 +#define qDNGExperimental 1 +#define qDNGThreadSafe 1 +#include "dng_stream.h" +#endif /* DNGSDK */ + +#define IOERROR() \ + do \ + { \ + throw LIBRAW_EXCEPTION_IO_EOF; \ + } while (0) + +class LibRaw_buffer_datastream; +class LibRaw_bit_buffer; + +class DllDef LibRaw_abstract_datastream +{ +public: + LibRaw_abstract_datastream() { }; + virtual ~LibRaw_abstract_datastream(void) { } + virtual int valid() = 0; + virtual int read(void *, size_t, size_t) = 0; + virtual int seek(INT64, int) = 0; + virtual INT64 tell() = 0; + virtual INT64 size() = 0; + virtual int get_char() = 0; + virtual char *gets(char *, int) = 0; + virtual int scanf_one(const char *, void *) = 0; + virtual int eof() = 0; +#ifdef LIBRAW_OLD_VIDEO_SUPPORT + virtual void *make_jas_stream() = 0; +#endif + virtual int jpeg_src(void *); + virtual void buffering_off() {} + /* reimplement in subclass to use parallel access in xtrans_load_raw() if + * OpenMP is not used */ + virtual int lock() { return 1; } /* success */ + virtual void unlock() {} + virtual const char *fname() { return NULL; }; +#ifdef LIBRAW_WIN32_UNICODEPATHS + virtual const wchar_t *wfname() { return NULL; }; +#endif +}; + +#ifndef LIBRAW_NO_IOSTREAMS_DATASTREAM + +#ifdef LIBRAW_WIN32_DLLDEFS +#ifdef LIBRAW_USE_AUTOPTR +template class DllDef std::auto_ptr; +#else +template class DllDef std::unique_ptr; +#endif +#endif + +class DllDef LibRaw_file_datastream : public LibRaw_abstract_datastream +{ +protected: +#ifdef LIBRAW_USE_AUTOPTR + std::auto_ptr f; /* will close() automatically through dtor */ +#else + std::unique_ptr f; +#endif + std::string filename; + INT64 _fsize; +#ifdef LIBRAW_WIN32_UNICODEPATHS + std::wstring wfilename; +#endif + FILE *jas_file; + +public: + virtual ~LibRaw_file_datastream(); + LibRaw_file_datastream(const char *fname); +#ifdef LIBRAW_WIN32_UNICODEPATHS + LibRaw_file_datastream(const wchar_t *fname); +#endif +#ifdef LIBRAW_OLD_VIDEO_SUPPORT + virtual void *make_jas_stream(); +#endif + virtual int valid(); + virtual int read(void *ptr, size_t size, size_t nmemb); + virtual int eof(); + virtual int seek(INT64 o, int whence); + virtual INT64 tell(); + virtual INT64 size() { return _fsize; } + virtual int get_char() {return f->sbumpc();} + virtual char *gets(char *str, int sz); + virtual int scanf_one(const char *fmt, void *val); + virtual const char *fname(); +#ifdef LIBRAW_WIN32_UNICODEPATHS + virtual const wchar_t *wfname(); +#endif +}; +#endif + +#if defined (LIBRAW_NO_IOSTREAMS_DATASTREAM) && defined (LIBRAW_WIN32_CALLS) + +struct DllDef LibRaw_bufio_params +{ + static int bufsize; + static void set_bufsize(int bs); +}; + +class buffer_t : public std::vector +{ +public: + INT64 _bstart, _bend; + buffer_t() : std::vector(LibRaw_bufio_params::bufsize), _bstart(0), _bend(0) {} + int charOReof(INT64 _fpos) + { + if (_bstart < 0LL || _bend < 0LL || _bend < _bstart || _fpos < 0LL) + return -1; + if ((_bend - _bstart) > (INT64)size()) + return -1; + if (_fpos >= _bstart && _fpos < _bend) + return data()[_fpos - _bstart]; + return -1; + } + bool contains(INT64 _fpos, INT64& contains) + { + if (_bstart < 0LL || _bend < 0LL || _bend < _bstart || _fpos < 0LL) + { + contains = 0; + return false; + } + if ((_bend - _bstart) > (INT64)size()) + { + contains = 0; + return false; + } + if (_fpos >= _bstart && _fpos < _bend) + { + contains = _bend - _fpos; + return true; + } + contains = 0; + return false; + } +}; + + +class DllDef LibRaw_bigfile_buffered_datastream : public LibRaw_abstract_datastream +{ +public: + LibRaw_bigfile_buffered_datastream(const char *fname); +#ifdef LIBRAW_WIN32_UNICODEPATHS + LibRaw_bigfile_buffered_datastream(const wchar_t *fname); +#endif + virtual ~LibRaw_bigfile_buffered_datastream(); + virtual int valid(); +#ifdef LIBRAW_OLD_VIDEO_SUPPORT + virtual void *make_jas_stream(); +#endif + virtual void buffering_off() { buffered = 0; } + virtual int read(void *ptr, size_t size, size_t nmemb); + virtual int eof(); + virtual int seek(INT64 o, int whence); + virtual INT64 tell(); + virtual INT64 size() { return _fsize; } + virtual char *gets(char *str, int sz); + virtual int scanf_one(const char *fmt, void *val); + virtual const char *fname(); +#ifdef LIBRAW_WIN32_UNICODEPATHS + virtual const wchar_t *wfname(); +#endif + virtual int get_char() + { + int r = iobuffers[0].charOReof(_fpos); + if (r >= 0) + { + _fpos++; + return r; + } + unsigned char c; + r = read(&c, 1, 1); + return r > 0 ? c : r; + } + +protected: + INT64 readAt(void *ptr, size_t size, INT64 off); + bool fillBufferAt(int buf, INT64 off); + int selectStringBuffer(INT64 len, INT64& contains); + HANDLE fhandle; + INT64 _fsize; + INT64 _fpos; /* current file position; current buffer start position */ +#ifdef LIBRAW_WIN32_UNICODEPATHS + std::wstring wfilename; +#endif + std::string filename; + buffer_t iobuffers[2]; + int buffered; +}; + +#endif + +class DllDef LibRaw_buffer_datastream : public LibRaw_abstract_datastream +{ +public: + LibRaw_buffer_datastream(const void *buffer, size_t bsize); + virtual ~LibRaw_buffer_datastream(); + virtual int valid(); +#ifdef LIBRAW_OLD_VIDEO_SUPPORT + virtual void *make_jas_stream(); +#endif + virtual int jpeg_src(void *jpegdata); + virtual int read(void *ptr, size_t sz, size_t nmemb); + virtual int eof(); + virtual int seek(INT64 o, int whence); + virtual INT64 tell(); + virtual INT64 size() { return streamsize; } + virtual char *gets(char *s, int sz); + virtual int scanf_one(const char *fmt, void *val); + virtual int get_char() + { + if (streampos >= streamsize) return -1; + return buf[streampos++]; + } + +private: + unsigned char *buf; + size_t streampos, streamsize; +}; + +class DllDef LibRaw_bigfile_datastream : public LibRaw_abstract_datastream +{ +public: + LibRaw_bigfile_datastream(const char *fname); +#ifdef LIBRAW_WIN32_UNICODEPATHS + LibRaw_bigfile_datastream(const wchar_t *fname); +#endif + virtual ~LibRaw_bigfile_datastream(); + virtual int valid(); +#ifdef LIBRAW_OLD_VIDEO_SUPPORT + virtual void *make_jas_stream(); +#endif + + virtual int read(void *ptr, size_t size, size_t nmemb); + virtual int eof(); + virtual int seek(INT64 o, int whence); + virtual INT64 tell(); + virtual INT64 size() { return _fsize; } + virtual char *gets(char *str, int sz); + virtual int scanf_one(const char *fmt, void *val); + virtual const char *fname(); +#ifdef LIBRAW_WIN32_UNICODEPATHS + virtual const wchar_t *wfname(); +#endif + virtual int get_char() + { +#ifndef LIBRAW_WIN32_CALLS + return getc_unlocked(f); +#else + return fgetc(f); +#endif + } + +protected: + FILE *f; + std::string filename; + INT64 _fsize; +#ifdef LIBRAW_WIN32_UNICODEPATHS + std::wstring wfilename; +#endif +}; + +#ifdef LIBRAW_WIN32_CALLS +class DllDef LibRaw_windows_datastream : public LibRaw_buffer_datastream +{ +public: + /* ctor: high level constructor opens a file by name */ + LibRaw_windows_datastream(const TCHAR *sFile); + /* ctor: construct with a file handle - caller is responsible for closing the + * file handle */ + LibRaw_windows_datastream(HANDLE hFile); + /* dtor: unmap and close the mapping handle */ + virtual ~LibRaw_windows_datastream(); + virtual INT64 size() { return cbView_; } + +protected: + void Open(HANDLE hFile); + inline void reconstruct_base() + { + /* this subterfuge is to overcome the private-ness of + * LibRaw_buffer_datastream */ + (LibRaw_buffer_datastream &)*this = + LibRaw_buffer_datastream(pView_, (size_t)cbView_); + } + + HANDLE hMap_; /* handle of the file mapping */ + void *pView_; /* pointer to the mapped memory */ + __int64 cbView_; /* size of the mapping in bytes */ +}; + +#endif + +#ifdef USE_DNGSDK + +class libraw_dng_stream : public dng_stream +{ +public: + libraw_dng_stream(LibRaw_abstract_datastream *p) + : dng_stream((dng_abort_sniffer *)NULL, kBigBufferSize, 0), + parent_stream(p) + { + if (parent_stream) + { + parent_stream->buffering_off(); + off = parent_stream->tell(); + parent_stream->seek(0UL, SEEK_SET); /* seek to start */ + } + } + ~libraw_dng_stream() + { + if (parent_stream) + parent_stream->seek(off, SEEK_SET); + } + virtual uint64 DoGetLength() + { + if (parent_stream) + return parent_stream->size(); + return 0; + } + virtual void DoRead(void *data, uint32 count, uint64 offset) + { + if (parent_stream) + { + parent_stream->seek(offset, SEEK_SET); + parent_stream->read(data, 1, count); + } + } + +private: + libraw_dng_stream(const libraw_dng_stream &stream); + libraw_dng_stream &operator=(const libraw_dng_stream &stream); + LibRaw_abstract_datastream *parent_stream; + INT64 off; +}; + +#endif + +#endif /* cplusplus */ + +#endif diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_internal.h b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_internal.h new file mode 100644 index 0000000000000000000000000000000000000000..9ed3a1790f1140202a8c42ab5630c8b1fce25f40 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_internal.h @@ -0,0 +1,341 @@ +/* -*- C++ -*- + * File: libraw_internal.h + * Copyright 2008-2021 LibRaw LLC (info@libraw.org) + * Created: Sat Mar 8 , 2008 + * + * LibRaw internal data structures (not visible outside) + +LibRaw is free software; you can redistribute it and/or modify +it under the terms of the one of two licenses as you choose: + +1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 + (See file LICENSE.LGPL provided in LibRaw distribution archive for details). + +2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 + (See file LICENSE.CDDL provided in LibRaw distribution archive for details). + + */ + +#ifndef _LIBRAW_INTERNAL_TYPES_H +#define _LIBRAW_INTERNAL_TYPES_H + +#include + +#ifdef __cplusplus + +#include "libraw_datastream.h" +#include "libraw_types.h" + +class LibRaw_TLS +{ +public: + struct + { + unsigned bitbuf; + int vbits, reset; + } getbits; + struct + { + UINT64 bitbuf; + int vbits; + + } ph1_bits; + struct + { + unsigned pad[128], p; + } sony_decrypt; + struct + { + uchar buf[0x4002]; + int vpos, padding; + } pana_data; + uchar jpeg_buffer[4096]; + struct + { + float cbrt[0x10000], xyz_cam[3][4]; + } ahd_data; + void init() + { + getbits.bitbuf = 0; + getbits.vbits = getbits.reset = 0; + ph1_bits.bitbuf = 0; + ph1_bits.vbits = 0; + pana_data.vpos = 0; + ahd_data.cbrt[0] = -2.0f; + } +}; + +class LibRaw_constants +{ +public: + static const float d65_white[3]; + static const double xyz_rgb[3][3]; + static const double xyzd50_srgb[3][3]; + static const double rgb_rgb[3][3]; + static const double adobe_rgb[3][3]; + static const double wide_rgb[3][3]; + static const double prophoto_rgb[3][3]; + static const double aces_rgb[3][3]; + static const double dcip3d65_rgb[3][3]; + static const double rec2020_rgb[3][3]; +}; +#endif /* __cplusplus */ + +typedef struct +{ +#ifndef __cplusplus + struct +#endif + LibRaw_abstract_datastream *input; + FILE *output; + int input_internal; + char *meta_data; + INT64 profile_offset; + INT64 toffset; + unsigned pana_black[4]; + +} internal_data_t; + +#define LIBRAW_HISTOGRAM_SIZE 0x2000 +typedef struct +{ + int (*histogram)[LIBRAW_HISTOGRAM_SIZE]; + unsigned *oprof; +} output_data_t; + +typedef struct +{ + unsigned olympus_exif_cfa; + unsigned long long unique_id; + unsigned long long OlyID; + unsigned tiff_nifds; + int tiff_flip; + int metadata_blocks; +} identify_data_t; + +typedef struct +{ + uint32_t first; + uint32_t count; + uint32_t id; +} crx_sample_to_chunk_t; + +// contents of tag CMP1 for relevant track in CR3 file +typedef struct +{ + int32_t version; + int32_t f_width; + int32_t f_height; + int32_t tileWidth; + int32_t tileHeight; + int32_t nBits; + int32_t nPlanes; + int32_t cfaLayout; + int32_t encType; + int32_t imageLevels; + int32_t hasTileCols; + int32_t hasTileRows; + int32_t mdatHdrSize; + int32_t medianBits; + // Not from header, but from datastream + uint32_t MediaSize; + INT64 MediaOffset; + uint32_t MediaType; /* 1 -> /C/RAW, 2-> JPEG, 3-> CTMD metadata*/ + crx_sample_to_chunk_t * stsc_data; /* samples to chunk */ + uint32_t stsc_count; + uint32_t sample_count; + uint32_t sample_size; /* zero if not fixed sample size */ + int32_t *sample_sizes; + uint32_t chunk_count; + INT64 *chunk_offsets; +} crx_data_header_t; + +typedef struct +{ + short order; + ushort sraw_mul[4], cr2_slice[3]; + unsigned kodak_cbpp; + INT64 strip_offset, data_offset; + INT64 meta_offset; + INT64 exif_offset, exif_subdir_offset, ifd0_offset; + unsigned data_size; + unsigned meta_length; + unsigned cr3_exif_length, cr3_ifd0_length; + unsigned thumb_misc; + enum LibRaw_internal_thumbnail_formats thumb_format; + unsigned fuji_layout; + unsigned tiff_samples; + unsigned tiff_bps; + unsigned tiff_compress; + unsigned tiff_sampleformat; + unsigned zero_after_ff; + unsigned tile_width, tile_length, load_flags; + unsigned data_error; + int hasselblad_parser_flag; + long long posRAFData; + unsigned lenRAFData; + int fuji_total_lines, fuji_total_blocks, fuji_block_width, fuji_bits, + fuji_raw_type, fuji_lossless; + int pana_encoding, pana_bpp; + crx_data_header_t crx_header[LIBRAW_CRXTRACKS_MAXCOUNT]; + int crx_track_selected; + int crx_track_count; + short CR3_CTMDtag; + short CR3_Version; + int CM_found; + unsigned is_NikonTransfer; + unsigned is_Olympus; + int OlympusDNG_SubDirOffsetValid; + unsigned is_Sony; + unsigned is_pana_raw; + unsigned is_PentaxRicohMakernotes; /* =1 for Ricoh software by Pentax, Camera DNG */ + + unsigned dng_frames[LIBRAW_IFD_MAXCOUNT*2]; /* bits: 0-7: shot_select, 8-15: IFD#, 16-31: low 16 bit of newsubfile type */ + unsigned short raw_stride; +} unpacker_data_t; + +typedef struct +{ + internal_data_t internal_data; + libraw_internal_output_params_t internal_output_params; + output_data_t output_data; + identify_data_t identify_data; + unpacker_data_t unpacker_data; +} libraw_internal_data_t; + +struct decode +{ + struct decode *branch[2]; + int leaf; +}; + +struct tiff_ifd_t +{ + int t_width, t_height, bps, comp, phint, offset, t_flip, samples, bytes, extrasamples; + int t_tile_width, t_tile_length, sample_format, predictor; + int rows_per_strip; + int *strip_offsets, strip_offsets_count; + int *strip_byte_counts, strip_byte_counts_count; + unsigned t_filters; + int t_vwidth, t_vheight, t_lm,t_tm; + int t_fuji_width; + float t_shutter; + /* Per-IFD DNG fields */ + INT64 opcode2_offset; + INT64 lineartable_offset; + int lineartable_len; + libraw_dng_color_t dng_color[2]; + libraw_dng_levels_t dng_levels; + int newsubfiletype; +}; + +struct jhead +{ + int algo, bits, high, wide, clrs, sraw, psv, restart, vpred[6]; + ushort quant[64], idct[64], *huff[20], *free[20], *row; +}; + +struct libraw_tiff_tag +{ + ushort tag, type; + int count; + union { + char c[4]; + short s[2]; + int i; + } val; +}; + +struct tiff_hdr +{ + ushort t_order, magic; + int ifd; + ushort pad, ntag; + struct libraw_tiff_tag tag[23]; + int nextifd; + ushort pad2, nexif; + struct libraw_tiff_tag exif[4]; + ushort pad3, ngps; + struct libraw_tiff_tag gpst[10]; + short bps[4]; + int rat[10]; + unsigned gps[26]; + char t_desc[512], t_make[64], t_model[64], soft[32], date[20], t_artist[64]; +}; + +#ifdef DEBUG_STAGE_CHECKS +#define CHECK_ORDER_HIGH(expected_stage) \ + do \ + { \ + if ((imgdata.progress_flags & LIBRAW_PROGRESS_THUMB_MASK) >= \ + expected_stage) \ + { \ + fprintf(stderr, "CHECK_HIGH: check %d >= %d\n", \ + imgdata.progress_flags &LIBRAW_PROGRESS_THUMB_MASK, \ + expected_stage); \ + return LIBRAW_OUT_OF_ORDER_CALL; \ + } \ + } while (0) + +#define CHECK_ORDER_LOW(expected_stage) \ + do \ + { \ + printf("Checking LOW %d/%d : %d\n", imgdata.progress_flags, \ + expected_stage, imgdata.progress_flags < expected_stage); \ + if ((imgdata.progress_flags & LIBRAW_PROGRESS_THUMB_MASK) < \ + expected_stage) \ + { \ + printf("failed!\n"); \ + return LIBRAW_OUT_OF_ORDER_CALL; \ + } \ + } while (0) +#define CHECK_ORDER_BIT(expected_stage) \ + do \ + { \ + if (imgdata.progress_flags & expected_stage) \ + return LIBRAW_OUT_OF_ORDER_CALL; \ + } while (0) + +#define SET_PROC_FLAG(stage) \ + do \ + { \ + imgdata.progress_flags |= stage; \ + fprintf(stderr, "SET_FLAG: %d\n", stage); \ + } while (0) + +#else + +#define CHECK_ORDER_HIGH(expected_stage) \ + do \ + { \ + if ((imgdata.progress_flags & LIBRAW_PROGRESS_THUMB_MASK) >= \ + expected_stage) \ + { \ + return LIBRAW_OUT_OF_ORDER_CALL; \ + } \ + } while (0) + +#define CHECK_ORDER_LOW(expected_stage) \ + do \ + { \ + if ((imgdata.progress_flags & LIBRAW_PROGRESS_THUMB_MASK) < \ + expected_stage) \ + return LIBRAW_OUT_OF_ORDER_CALL; \ + } while (0) + +#define CHECK_ORDER_BIT(expected_stage) \ + do \ + { \ + if (imgdata.progress_flags & expected_stage) \ + return LIBRAW_OUT_OF_ORDER_CALL; \ + } while (0) + +#define SET_PROC_FLAG(stage) \ + do \ + { \ + imgdata.progress_flags |= stage; \ + } while (0) + +#endif + +#endif diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_types.h b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_types.h new file mode 100644 index 0000000000000000000000000000000000000000..1fa09662f51e798054c1618d323da7d7a136e2d7 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_types.h @@ -0,0 +1,1185 @@ +/* -*- C++ -*- + * File: libraw_types.h + * Copyright 2008-2021 LibRaw LLC (info@libraw.org) + * Created: Sat Mar 8 , 2008 + * + * LibRaw C data structures + * + +LibRaw is free software; you can redistribute it and/or modify +it under the terms of the one of two licenses as you choose: + +1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 + (See file LICENSE.LGPL provided in LibRaw distribution archive for details). + +2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 + (See file LICENSE.CDDL provided in LibRaw distribution archive for details). + + */ + +#ifndef _LIBRAW_TYPES_H +#define _LIBRAW_TYPES_H + +#include +#ifndef _WIN32 +#include +#endif + +#include + +#if defined(_WIN32) +#if defined(_MSC_VER) && (_MSC_VER <= 1500) +typedef signed __int8 int8_t; +typedef unsigned __int8 uint8_t; +typedef signed __int16 int16_t; +typedef unsigned __int16 uint16_t; +typedef signed __int32 int32_t; +typedef unsigned __int32 uint32_t; +typedef signed __int64 int64_t; +typedef unsigned __int64 uint64_t; +#else /* WIN32, but not old MSVC */ +#include +#endif /* _WIN32 */ +#include +#else +#include +#endif + +#if defined(_OPENMP) + +#if defined(LIBRAW_FORCE_OPENMP) +#define LIBRAW_USE_OPENMP +#else +#if defined(_WIN32) +#if defined(_MSC_VER) && \ + (_MSC_VER >= 1600 || (_MSC_VER == 1500 && _MSC_FULL_VER >= 150030729)) +/* VS2010+ : OpenMP works OK, VS2008: have tested by cgilles */ +#define LIBRAW_USE_OPENMP +#elif defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 910) +/* Have not tested on 9.x and 10.x, but Intel documentation claims OpenMP 2.5 + * support in 9.1 */ +#define LIBRAW_USE_OPENMP +#else +#undef LIBRAW_USE_OPENMP +#endif +/* Not Win32 */ +#elif (defined(__APPLE__) || defined(__MACOSX__)) && defined(_REENTRANT) +/* Latest XCode works with OpenMP, need to recheck here */ +#undef LIBRAW_USE_OPENMP +#else +#define LIBRAW_USE_OPENMP +#endif +#endif +#endif + +#ifdef LIBRAW_USE_OPENMP +#include +#endif + +#ifdef __cplusplus +extern "C" +{ +#endif + +#if defined(USE_LCMS) +#include +#elif defined(USE_LCMS2) +#include +#else +#define NO_LCMS +#endif + +#ifdef __cplusplus +} /* extern C */ +#endif + +/* This cannot be in the extern C setting... */ +#include "libraw_const.h" +#include "libraw_version.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + +#ifdef _WIN32 + typedef __int64 INT64; + typedef unsigned __int64 UINT64; +#else +typedef long long INT64; +typedef unsigned long long UINT64; +#endif + + typedef unsigned char uchar; + typedef unsigned short ushort; + +#ifdef LIBRAW_WIN32_DLLDEFS +#ifdef LIBRAW_NODLL +#define DllDef +#else +#ifdef LIBRAW_BUILDLIB +#define DllDef __declspec(dllexport) +#else +#define DllDef __declspec(dllimport) +#endif +#endif +#else +#define DllDef +#endif + + typedef struct + { + const char *decoder_name; + unsigned decoder_flags; + } libraw_decoder_info_t; + + typedef struct + { + unsigned mix_green; + unsigned raw_color; + unsigned zero_is_bad; + ushort shrink; + ushort fuji_width; + } libraw_internal_output_params_t; + + typedef void (*memory_callback)(void *data, const char *file, + const char *where); + typedef void (*exif_parser_callback)(void *context, int tag, int type, + int len, unsigned int ord, void *ifp, + INT64 base); + + typedef void (*data_callback)(void *data, const char *file, const int offset); + + DllDef void default_data_callback(void *data, const char *file, + const int offset); + + typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, + int iteration, int expected); + typedef int (*pre_identify_callback)(void *ctx); + typedef void (*post_identify_callback)(void *ctx); + typedef void (*process_step_callback)(void *ctx); + + typedef struct + { + data_callback data_cb; + void *datacb_data; + + progress_callback progress_cb; + void *progresscb_data; + + exif_parser_callback exif_cb; + void *exifparser_data; + pre_identify_callback pre_identify_cb; + post_identify_callback post_identify_cb; + process_step_callback pre_subtractblack_cb, pre_scalecolors_cb, + pre_preinterpolate_cb, pre_interpolate_cb, interpolate_bayer_cb, + interpolate_xtrans_cb, post_interpolate_cb, pre_converttorgb_cb, + post_converttorgb_cb; + } libraw_callbacks_t; + + typedef struct + { + enum LibRaw_image_formats type; + ushort height, width, colors, bits; + unsigned int data_size; + unsigned char data[1]; + } libraw_processed_image_t; + + typedef struct + { + char guard[4]; + char make[64]; + char model[64]; + char software[64]; + char normalized_make[64]; + char normalized_model[64]; + unsigned maker_index; + unsigned raw_count; + unsigned dng_version; + unsigned is_foveon; + int colors; + unsigned filters; + char xtrans[6][6]; + char xtrans_abs[6][6]; + char cdesc[5]; + unsigned xmplen; + char *xmpdata; + + } libraw_iparams_t; + + typedef struct + { + ushort cleft, ctop, cwidth, cheight; + } libraw_raw_inset_crop_t; + + typedef struct + { + ushort raw_height, raw_width, height, width, top_margin, left_margin; + ushort iheight, iwidth; + unsigned raw_pitch; + double pixel_aspect; + int flip; + int mask[8][4]; + ushort raw_aspect; + libraw_raw_inset_crop_t raw_inset_crops[2]; + } libraw_image_sizes_t; + + typedef struct + { + short t,l,b,r; // top, left, bottom, right pixel coordinates, (0,0) is top left pixel; + } libraw_area_t; + + struct ph1_t + { + int format, key_off, tag_21a; + int t_black, split_col, black_col, split_row, black_row; + float tag_210; + }; + + typedef struct + { + unsigned parsedfields; + ushort illuminant; + float calibration[4][4]; + float colormatrix[4][3]; + float forwardmatrix[3][4]; + } libraw_dng_color_t; + + typedef struct + { + unsigned parsedfields; + unsigned dng_cblack[LIBRAW_CBLACK_SIZE]; + unsigned dng_black; + float dng_fcblack[LIBRAW_CBLACK_SIZE]; + float dng_fblack; + unsigned dng_whitelevel[4]; + ushort default_crop[4]; /* Origin and size */ + float user_crop[4]; // top-left-bottom-right relative to default_crop + unsigned preview_colorspace; + float analogbalance[4]; + float asshotneutral[4]; + float baseline_exposure; + float LinearResponseLimit; + } libraw_dng_levels_t; + + typedef struct + { + float romm_cam[9]; + } libraw_P1_color_t; + + typedef struct + { + int ColorDataVer; + int ColorDataSubVer; + int SpecularWhiteLevel; + int NormalWhiteLevel; + int ChannelBlackLevel[4]; + int AverageBlackLevel; + /* multishot */ + unsigned int multishot[4]; + /* metering */ + short MeteringMode; + short SpotMeteringMode; + uchar FlashMeteringMode; + short FlashExposureLock; + short ExposureMode; + short AESetting; + /* stabilization */ + short ImageStabilization; + /* flash */ + short FlashMode; + short FlashActivity; + short FlashBits; + short ManualFlashOutput; + short FlashOutput; + short FlashGuideNumber; + /* drive */ + short ContinuousDrive; + /* sensor */ + short SensorWidth; + short SensorHeight; + + int AFMicroAdjMode; + float AFMicroAdjValue; + short MakernotesFlip; + short RecordMode; + short SRAWQuality; + unsigned wbi; + short RF_lensID; + int AutoLightingOptimizer; + int HighlightTonePriority; + + /* -1 = n/a 1 = Economy + 2 = Normal 3 = Fine + 4 = RAW 5 = Superfine + 7 = CRAW 130 = Normal Movie, CRM LightRaw + 131 = CRM StandardRaw */ + short Quality; + /* data compression curve + 0 = OFF 1 = CLogV1 2 = CLogV2? 3 = CLogV3 */ + int CanonLog; + + libraw_area_t DefaultCropAbsolute; + libraw_area_t RecommendedImageArea; // contains the image in proper aspect ratio? + libraw_area_t LeftOpticalBlack; // use this, when present, to estimate black levels? + libraw_area_t UpperOpticalBlack; + libraw_area_t ActiveArea; + + short ISOgain[2]; // AutoISO & BaseISO per ExifTool + } libraw_canon_makernotes_t; + + typedef struct + { + int BaseISO; + double Gain; + char Sensor[8]; + char SensorUnit[64]; // SU + char HostBody[64]; // HB + int SensorCode; + int SensorSubCode; + int CoatingCode; + int uncropped; + +/* CaptureSequenceInitiator is based on the content of the 'model' tag + - values like 'Pinhole', 'Flash Sync', '500 Mech.' etc in .3FR 'model' tag + come from MAIN MENU > SETTINGS > Camera; + - otherwise 'model' contains: + 1. if CF/CFV/CFH, SU enclosure, can be with SU type if '-' is present + 2. else if '-' is present, HB + SU type; + 3. HB; +*/ + char CaptureSequenceInitiator[32]; + +/* SensorUnitConnector, makernotes 0x0015 tag: + - in .3FR - SU side + - in .FFF - HB side +*/ + char SensorUnitConnector[64]; + + int format; // 3FR, FFF, Imacon (H3D-39 and maybe others), Hasselblad/Phocus DNG, Adobe DNG + int nIFD_CM[2]; // number of IFD containing CM + int RecommendedCrop[2]; + +/* mnColorMatrix is in makernotes tag 0x002a; + not present in .3FR files and Imacon/H3D-39 .FFF files; + when present in .FFF and Phocus .DNG files, it is a copy of CM1 from .3FR; + available samples contain all '1's in the first 3 elements +*/ + double mnColorMatrix[4][3]; + + } libraw_hasselblad_makernotes_t; + + typedef struct + { + float ExpoMidPointShift; + ushort DynamicRange; + ushort FilmMode; + ushort DynamicRangeSetting; + ushort DevelopmentDynamicRange; + ushort AutoDynamicRange; + ushort DRangePriority; + ushort DRangePriorityAuto; + ushort DRangePriorityFixed; + + /* + tag 0x9200, converted to BrightnessCompensation + F700, S3Pro, S5Pro, S20Pro, S200EXR + E550, E900, F810, S5600, S6500fd, S9000, S9500, S100FS + */ + float BrightnessCompensation; /* in EV, if =4, raw data * 2^4 */ + + ushort FocusMode; + ushort AFMode; + ushort FocusPixel[2]; + ushort PrioritySettings; + unsigned FocusSettings; + unsigned AF_C_Settings; + ushort FocusWarning; + ushort ImageStabilization[3]; + ushort FlashMode; + ushort WB_Preset; + + /* ShutterType: + 0 - mechanical + 1 = electronic + 2 = electronic, long shutter speed + 3 = electronic, front curtain + */ + ushort ShutterType; + ushort ExrMode; + ushort Macro; + unsigned Rating; + + /* CropMode: + 1 - FF on GFX, + 2 - sports finder (mechanical shutter), + 4 - 1.25x crop (electronic shutter, continuous high) + */ + ushort CropMode; + char SerialSignature[0x0c + 1]; + char SensorID[4 + 1]; + char RAFVersion[4 + 1]; + int RAFDataGeneration; // 0 (none), 1..4, 4096 + ushort RAFDataVersion; + int isTSNERDTS; + + /* DriveMode: + 0 - single frame + 1 - continuous low + 2 - continuous high + */ + short DriveMode; + + /* + tag 0x4000 BlackLevel: + S9100, S9000, S7000, S6000fd, S5200, S5100, S5000, + S5Pro, S3Pro, S2Pro, S20Pro, + S200EXR, S100FS, + F810, F700, + E900, E550, + DBP, and aliases for all of the above + */ + ushort BlackLevel[9]; + unsigned RAFData_ImageSizeTable[32]; + int AutoBracketing; + int SequenceNumber; + int SeriesLength; + float PixelShiftOffset[2]; + int ImageCount; + } libraw_fuji_info_t; + + typedef struct + { + ushort cleft, ctop, cwidth, cheight; + } libraw_sensor_highspeed_crop_t; + + typedef struct + { + double ExposureBracketValue; + ushort ActiveDLighting; + ushort ShootingMode; + /* stabilization */ + uchar ImageStabilization[7]; + uchar VibrationReduction; + uchar VRMode; + /* flash */ + char FlashSetting[13]; + char FlashType[20]; + uchar FlashExposureCompensation[4]; + uchar ExternalFlashExposureComp[4]; + uchar FlashExposureBracketValue[4]; + uchar FlashMode; + signed char FlashExposureCompensation2; + signed char FlashExposureCompensation3; + signed char FlashExposureCompensation4; + uchar FlashSource; + uchar FlashFirmware[2]; + uchar ExternalFlashFlags; + uchar FlashControlCommanderMode; + uchar FlashOutputAndCompensation; + uchar FlashFocalLength; + uchar FlashGNDistance; + uchar FlashGroupControlMode[4]; + uchar FlashGroupOutputAndCompensation[4]; + uchar FlashColorFilter; + +/* NEF compression, comments follow those for ExifTool tag 0x0093: + 1: Lossy (type 1) + 2: Uncompressed + 3: Lossless + 4: Lossy (type 2) + 5: Striped packed 12-bit + 6: Uncompressed (14-bit reduced to 12-bit) + 7: Unpacked 12-bit + 8: Small raw + 9: Packed 12-bit + 10: Packed 14-bit + 13: High Efficiency (HE) + 14: High Efficiency* (HE*) +*/ + ushort NEFCompression; + + int ExposureMode; + int ExposureProgram; + int nMEshots; + int MEgainOn; + double ME_WB[4]; + uchar AFFineTune; + uchar AFFineTuneIndex; + int8_t AFFineTuneAdj; + unsigned LensDataVersion; + unsigned FlashInfoVersion; + unsigned ColorBalanceVersion; + uchar key; + ushort NEFBitDepth[4]; + ushort HighSpeedCropFormat; /* 1 -> 1.3x; 2 -> DX; 3 -> 5:4; 4 -> 3:2; 6 -> + 16:9; 11 -> FX uncropped; 12 -> DX uncropped; + 17 -> 1:1 */ + libraw_sensor_highspeed_crop_t SensorHighSpeedCrop; + ushort SensorWidth; + ushort SensorHeight; + ushort Active_D_Lighting; + unsigned ShotInfoVersion; + short MakernotesFlip; + double RollAngle; // positive is clockwise, CW + double PitchAngle; // positive is upwords + double YawAngle; // positive is to the right + } libraw_nikon_makernotes_t; + + typedef struct + { + char CameraType2[6]; + ushort ValidBits; + int SensorCalibration[2]; + ushort DriveMode[5]; + ushort ColorSpace; + ushort FocusMode[2]; + ushort AutoFocus; + ushort AFPoint; + unsigned AFAreas[64]; + double AFPointSelected[5]; + ushort AFResult; + uchar AFFineTune; + short AFFineTuneAdj[3]; + unsigned SpecialMode[3]; + ushort ZoomStepCount; + ushort FocusStepCount; + ushort FocusStepInfinity; + ushort FocusStepNear; + double FocusDistance; + ushort AspectFrame[4]; // left, top, width, height + unsigned StackedImage[2]; + uchar isLiveND; + unsigned LiveNDfactor; + ushort Panorama_mode; + ushort Panorama_frameNum; + } libraw_olympus_makernotes_t; + + typedef struct + { + /* Compression: + 34826 (Panasonic RAW 2): LEICA DIGILUX 2; + 34828 (Panasonic RAW 3): LEICA D-LUX 3; LEICA V-LUX 1; Panasonic DMC-LX1; + Panasonic DMC-LX2; Panasonic DMC-FZ30; Panasonic DMC-FZ50; 34830 (not in + exiftool): LEICA DIGILUX 3; Panasonic DMC-L1; 34316 (Panasonic RAW 1): + others (LEICA, Panasonic, YUNEEC); + */ + ushort Compression; + ushort BlackLevelDim; + float BlackLevel[8]; + unsigned Multishot; /* 0 is Off, 65536 is Pixel Shift */ + float gamma; + int HighISOMultiplier[3]; /* 0->R, 1->G, 2->B */ + short FocusStepNear; + short FocusStepCount; + unsigned ZoomPosition; + unsigned LensManufacturer; + } libraw_panasonic_makernotes_t; + + typedef struct + { + uchar DriveMode[4]; + ushort FocusMode[2]; + ushort AFPointSelected[2]; + ushort AFPointSelected_Area; + int AFPointsInFocus_version; + unsigned AFPointsInFocus; + ushort FocusPosition; + short AFAdjustment; + uchar AFPointMode; + uchar MultiExposure; /* last bit is not "1" if ME is not used */ + ushort Quality; /* 4 is raw, 7 is raw w/ pixel shift, 8 is raw w/ dynamic + pixel shift */ + } libraw_pentax_makernotes_t; + + typedef struct + { + ushort AFStatus; + unsigned AFAreaXPosition[2]; + unsigned AFAreaYPosition[2]; + ushort AFAreaMode; + unsigned SensorWidth; + unsigned SensorHeight; + unsigned CroppedImageWidth; + unsigned CroppedImageHeight; + ushort WideAdapter; + ushort CropMode; + ushort NDFilter; + ushort AutoBracketing; + ushort MacroMode; + ushort FlashMode; + double FlashExposureComp; + double ManualFlashOutput; + } libraw_ricoh_makernotes_t; + + typedef struct + { + unsigned ImageSizeFull[4]; + unsigned ImageSizeCrop[4]; + int ColorSpace[2]; + unsigned key[11]; + double DigitalGain; /* PostAEGain, digital stretch */ + int DeviceType; + char LensFirmware[32]; + } libraw_samsung_makernotes_t; + + typedef struct + { + ushort BlackLevelTop; + ushort BlackLevelBottom; + short offset_left, offset_top; /* KDC files, negative values or zeros */ + ushort clipBlack, clipWhite; /* valid for P712, P850, P880 */ + float romm_camDaylight[3][3]; + float romm_camTungsten[3][3]; + float romm_camFluorescent[3][3]; + float romm_camFlash[3][3]; + float romm_camCustom[3][3]; + float romm_camAuto[3][3]; + ushort val018percent, val100percent, val170percent; + short MakerNoteKodak8a; + float ISOCalibrationGain; + float AnalogISO; + } libraw_kodak_makernotes_t; + + typedef struct { + char Software[64]; // tag 0x0203 + char SystemType[64]; // tag 0x0204 + char FirmwareString[256]; // tag 0x0301 + char SystemModel[64]; + } libraw_p1_makernotes_t; + + typedef struct + { +/* afdata: + 0x0010 CameraInfo + 0x2020 AFPointsUsed + 0x2022 FocalPlaneAFPointsUsed + 0x202a Tag202a + 0x940e AFInfo +*/ + ushort CameraType; // init in 0xffff + uchar Sony0x9400_version; /* 0 if not found/deciphered, + 0xa, 0xb, 0xc following exiftool convention */ + uchar Sony0x9400_ReleaseMode2; + unsigned Sony0x9400_SequenceImageNumber; + uchar Sony0x9400_SequenceLength1; + unsigned Sony0x9400_SequenceFileNumber; + uchar Sony0x9400_SequenceLength2; + uint8_t AFAreaModeSetting; // init in 0xff; + + uint16_t AFAreaMode; // init in 0xffff; + + ushort FlexibleSpotPosition[2]; // init in (0xffff, 0xffff) + uint8_t AFPointSelected; // init in 0xff + uint8_t AFPointSelected_0x201e; // init in 0xff + short nAFPointsUsed; + uint8_t AFPointsUsed[10]; + uint8_t AFTracking; // init in 0xff + uint8_t AFType; + ushort FocusLocation[4]; + ushort FocusPosition; // init in 0xffff + int8_t AFMicroAdjValue; // init in 0x7f + int8_t AFMicroAdjOn; // init in -1 + uchar AFMicroAdjRegisteredLenses; // init in 0xff + ushort VariableLowPassFilter; + unsigned LongExposureNoiseReduction; // init in 0xffffffff + ushort HighISONoiseReduction; // init in 0xffff + ushort HDR[2]; + ushort group2010; + ushort group9050; + ushort real_iso_offset; // init in 0xffff + ushort MeteringMode_offset; + ushort ExposureProgram_offset; + ushort ReleaseMode2_offset; + unsigned MinoltaCamID; // init in 0xffffffff + float firmware; + ushort ImageCount3_offset; // init in 0xffff + unsigned ImageCount3; + unsigned ElectronicFrontCurtainShutter; // init in 0xffffffff + ushort MeteringMode2; + char SonyDateTime[20]; + unsigned ShotNumberSincePowerUp; + ushort PixelShiftGroupPrefix; + unsigned PixelShiftGroupID; + char nShotsInPixelShiftGroup; + char numInPixelShiftGroup; /* '0' if ARQ, first shot in the group has '1' + here */ + ushort prd_ImageHeight, prd_ImageWidth; + ushort prd_Total_bps; + ushort prd_Active_bps; + ushort prd_StorageMethod; /* 82 -> Padded; 89 -> Linear */ + ushort prd_BayerPattern; /* 0 -> not valid; 1 -> RGGB; 4 -> GBRG */ + + ushort SonyRawFileType; /* init in 0xffff + valid for ARW 2.0 and up (FileFormat >= 3000) + takes precedence over RAWFileType and Quality: + 0 for uncompressed 14-bit raw + 1 for uncompressed 12-bit raw + 2 for compressed raw (lossy) + 3 for lossless compressed raw + 4 for lossless compressed raw v.2 (ILCE-1) + */ + ushort RAWFileType; /* init in 0xffff + takes precedence over Quality + 0 for compressed raw, + 1 for uncompressed; + 2 lossless compressed raw v.2 + */ + ushort RawSizeType; /* init in 0xffff + 1 - large, + 2 - small, + 3 - medium + */ + unsigned Quality; /* init in 0xffffffff + 0 or 6 for raw, 7 or 8 for compressed raw */ + ushort FileFormat; /* 1000 SR2 + 2000 ARW 1.0 + 3000 ARW 2.0 + 3100 ARW 2.1 + 3200 ARW 2.2 + 3300 ARW 2.3 + 3310 ARW 2.3.1 + 3320 ARW 2.3.2 + 3330 ARW 2.3.3 + 3350 ARW 2.3.5 + 4000 ARW 4.0 + */ + char MetaVersion [16]; + } libraw_sony_info_t; + + typedef struct + { + ushort curve[0x10000]; + unsigned cblack[LIBRAW_CBLACK_SIZE]; + unsigned black; + unsigned data_maximum; + unsigned maximum; + +// Canon (SpecularWhiteLevel) +// Kodak (14N, 14nx, SLR/c/n, DCS720X, DCS760C, DCS760M, ProBack, ProBack645, P712, P880, P850) +// Olympus, except: +// C5050Z, C5060WZ, C7070WZ, C8080WZ +// SP350, SP500UZ, SP510UZ, SP565UZ +// E-10, E-20 +// E-300, E-330, E-400, E-410, E-420, E-450, E-500, E-510, E-520 +// E-1, E-3 +// XZ-1 +// Panasonic +// Pentax +// Sony +// and aliases of the above +// DNG + long linear_max[4]; + + float fmaximum; + float fnorm; + ushort white[8][8]; + float cam_mul[4]; + float pre_mul[4]; + float cmatrix[3][4]; + float ccm[3][4]; + float rgb_cam[3][4]; + float cam_xyz[4][3]; + struct ph1_t phase_one_data; + float flash_used; + float canon_ev; + char model2[64]; + char UniqueCameraModel[64]; + char LocalizedCameraModel[64]; + char ImageUniqueID[64]; + char RawDataUniqueID[17]; + char OriginalRawFileName[64]; + void *profile; + unsigned profile_length; + unsigned black_stat[8]; + libraw_dng_color_t dng_color[2]; + libraw_dng_levels_t dng_levels; + int WB_Coeffs[256][4]; /* R, G1, B, G2 coeffs */ + float WBCT_Coeffs[64][5]; /* CCT, than R, G1, B, G2 coeffs */ + int as_shot_wb_applied; + libraw_P1_color_t P1_color[2]; + unsigned raw_bps; /* for Phase One: raw format; For other cameras: bits per pixel (copy of tiff_bps in most cases) */ + /* Phase One raw format values, makernotes tag 0x010e: + 0 Name unknown + 1 "RAW 1" + 2 "RAW 2" + 3 "IIQ L" (IIQ L14) + 4 Never seen + 5 "IIQ S" + 6 "IIQ Sv2" (S14 / S14+) + 7 Never seen + 8 "IIQ L16" (IIQ L16EX / IIQ L16) + */ + int ExifColorSpace; + } libraw_colordata_t; + + typedef struct + { + enum LibRaw_thumbnail_formats tformat; + ushort twidth, theight; + unsigned tlength; + int tcolors; + char *thumb; + } libraw_thumbnail_t; + + typedef struct + { + enum LibRaw_internal_thumbnail_formats tformat; + ushort twidth, theight, tflip; + unsigned tlength; + unsigned tmisc; + INT64 toffset; + }libraw_thumbnail_item_t; + + typedef struct + { + int thumbcount; + libraw_thumbnail_item_t thumblist[LIBRAW_THUMBNAIL_MAXCOUNT]; + } libraw_thumbnail_list_t; + + typedef struct + { + float latitude[3]; /* Deg,min,sec */ + float longitude[3]; /* Deg,min,sec */ + float gpstimestamp[3]; /* Deg,min,sec */ + float altitude; + char altref, latref, longref, gpsstatus; + char gpsparsed; + } libraw_gps_info_t; + + typedef struct + { + float iso_speed; + float shutter; + float aperture; + float focal_len; + time_t timestamp; + unsigned shot_order; + unsigned gpsdata[32]; + libraw_gps_info_t parsed_gps; + char desc[512], artist[64]; + float analogbalance[4]; + } libraw_imgother_t; + + typedef struct + { + unsigned AFInfoData_tag; + short AFInfoData_order; + unsigned AFInfoData_version; + unsigned AFInfoData_length; + uchar *AFInfoData; + } libraw_afinfo_item_t; + + typedef struct { + float FlashEC; + float FlashGN; + float CameraTemperature; + float SensorTemperature; + float SensorTemperature2; + float LensTemperature; + float AmbientTemperature; + float BatteryTemperature; + float exifAmbientTemperature; + float exifHumidity; + float exifPressure; + float exifWaterDepth; + float exifAcceleration; + float exifCameraElevationAngle; + float real_ISO; + float exifExposureIndex; + ushort ColorSpace; + char firmware[128]; + float ExposureCalibrationShift; + libraw_afinfo_item_t afdata[LIBRAW_AFDATA_MAXCOUNT]; + int afcount; + } libraw_metadata_common_t; + + typedef struct + { + unsigned greybox[4]; /* -A x1 y1 x2 y2 */ + unsigned cropbox[4]; /* -B x1 y1 x2 y2 */ + double aber[4]; /* -C */ + double gamm[6]; /* -g */ + float user_mul[4]; /* -r mul0 mul1 mul2 mul3 */ + float bright; /* -b */ + float threshold; /* -n */ + int half_size; /* -h */ + int four_color_rgb; /* -f */ + int highlight; /* -H */ + int use_auto_wb; /* -a */ + int use_camera_wb; /* -w */ + int use_camera_matrix; /* +M/-M */ + int output_color; /* -o */ + char *output_profile; /* -o */ + char *camera_profile; /* -p */ + char *bad_pixels; /* -P */ + char *dark_frame; /* -K */ + int output_bps; /* -4 */ + int output_tiff; /* -T */ + int output_flags; + int user_flip; /* -t */ + int user_qual; /* -q */ + int user_black; /* -k */ + int user_cblack[4]; + int user_sat; /* -S */ + int med_passes; /* -m */ + float auto_bright_thr; + float adjust_maximum_thr; + int no_auto_bright; /* -W */ + int use_fuji_rotate; /* -j */ + int green_matching; + /* DCB parameters */ + int dcb_iterations; + int dcb_enhance_fl; + int fbdd_noiserd; + int exp_correc; + float exp_shift; + float exp_preser; + /* Disable Auto-scale */ + int no_auto_scale; + /* Disable intepolation */ + int no_interpolation; + } libraw_output_params_t; + + typedef struct + { + /* Raw speed */ + int use_rawspeed; + /* DNG SDK */ + int use_dngsdk; + unsigned options; + unsigned shot_select; /* -s */ + unsigned specials; + unsigned max_raw_memory_mb; + int sony_arw2_posterization_thr; + /* Nikon Coolscan */ + float coolscan_nef_gamma; + char p4shot_order[5]; + /* Custom camera list */ + char **custom_camera_strings; + }libraw_raw_unpack_params_t; + + typedef struct + { + /* really allocated bitmap */ + void *raw_alloc; + /* alias to single_channel variant */ + ushort *raw_image; + /* alias to 4-channel variant */ + ushort (*color4_image)[4]; + /* alias to 3-color variand decoded by RawSpeed */ + ushort (*color3_image)[3]; + /* float bayer */ + float *float_image; + /* float 3-component */ + float (*float3_image)[3]; + /* float 4-component */ + float (*float4_image)[4]; + + /* Phase One black level data; */ + short (*ph1_cblack)[2]; + short (*ph1_rblack)[2]; + /* save color and sizes here, too.... */ + libraw_iparams_t iparams; + libraw_image_sizes_t sizes; + libraw_internal_output_params_t ioparams; + libraw_colordata_t color; + } libraw_rawdata_t; + + typedef struct + { + unsigned long long LensID; + char Lens[128]; + ushort LensFormat; /* to characterize the image circle the lens covers */ + ushort LensMount; /* 'male', lens itself */ + unsigned long long CamID; + ushort CameraFormat; /* some of the sensor formats */ + ushort CameraMount; /* 'female', body throat */ + char body[64]; + short FocalType; /* -1/0 is unknown; 1 is fixed focal; 2 is zoom */ + char LensFeatures_pre[16], LensFeatures_suf[16]; + float MinFocal, MaxFocal; + float MaxAp4MinFocal, MaxAp4MaxFocal, MinAp4MinFocal, MinAp4MaxFocal; + float MaxAp, MinAp; + float CurFocal, CurAp; + float MaxAp4CurFocal, MinAp4CurFocal; + float MinFocusDistance; + float FocusRangeIndex; + float LensFStops; + unsigned long long TeleconverterID; + char Teleconverter[128]; + unsigned long long AdapterID; + char Adapter[128]; + unsigned long long AttachmentID; + char Attachment[128]; + ushort FocalUnits; + float FocalLengthIn35mmFormat; + } libraw_makernotes_lens_t; + + typedef struct + { + float EffectiveMaxAp; + uchar LensIDNumber, LensFStops, MCUVersion, LensType; + } libraw_nikonlens_t; + + typedef struct + { + float MinFocal, MaxFocal, MaxAp4MinFocal, MaxAp4MaxFocal; + } libraw_dnglens_t; + + typedef struct + { + float MinFocal, MaxFocal, MaxAp4MinFocal, MaxAp4MaxFocal, EXIF_MaxAp; + char LensMake[128], Lens[128], LensSerial[128], InternalLensSerial[128]; + ushort FocalLengthIn35mmFormat; + libraw_nikonlens_t nikon; + libraw_dnglens_t dng; + libraw_makernotes_lens_t makernotes; + } libraw_lensinfo_t; + + typedef struct + { + libraw_canon_makernotes_t canon; + libraw_nikon_makernotes_t nikon; + libraw_hasselblad_makernotes_t hasselblad; + libraw_fuji_info_t fuji; + libraw_olympus_makernotes_t olympus; + libraw_sony_info_t sony; + libraw_kodak_makernotes_t kodak; + libraw_panasonic_makernotes_t panasonic; + libraw_pentax_makernotes_t pentax; + libraw_p1_makernotes_t phaseone; + libraw_ricoh_makernotes_t ricoh; + libraw_samsung_makernotes_t samsung; + libraw_metadata_common_t common; + } libraw_makernotes_t; + + typedef struct + { + short DriveMode; + short FocusMode; + short MeteringMode; + short AFPoint; + short ExposureMode; + short ExposureProgram; + short ImageStabilization; + char BodySerial[64]; + char InternalBodySerial[64]; /* this may be PCB or sensor serial, depends on + make/model */ + } libraw_shootinginfo_t; + + typedef struct + { + unsigned fsize; + ushort rw, rh; + uchar lm, tm, rm, bm; + ushort lf; + uchar cf, max, flags; + char t_make[10], t_model[20]; + ushort offset; + } libraw_custom_camera_t; + + typedef struct + { + ushort (*image)[4]; + libraw_image_sizes_t sizes; + libraw_iparams_t idata; + libraw_lensinfo_t lens; + libraw_makernotes_t makernotes; + libraw_shootinginfo_t shootinginfo; + libraw_output_params_t params; + libraw_raw_unpack_params_t rawparams; + unsigned int progress_flags; + unsigned int process_warnings; + libraw_colordata_t color; + libraw_imgother_t other; + libraw_thumbnail_t thumbnail; + libraw_thumbnail_list_t thumbs_list; + libraw_rawdata_t rawdata; + void *parent_class; + } libraw_data_t; + + struct fuji_q_table + { + int8_t *q_table; /* quantization table */ + int raw_bits; + int total_values; + int max_grad; // sdp val + int q_grad_mult; // quant_gradient multiplier + int q_base; + }; + + struct fuji_compressed_params + { + struct fuji_q_table qt[4]; + void *buf; + int max_bits; + int min_value; + int max_value; // q_point[4] + ushort line_width; + }; + +#ifdef __cplusplus +} +#endif + +#if defined (LIBRAW_LIBRARY_BUILD) && defined(__cplusplus) + +class libraw_static_table_t +{ +public: + libraw_static_table_t(const int *a, const unsigned s): data(a),_size(s) {} + libraw_static_table_t(): data(0),_size(0){} + libraw_static_table_t(const libraw_static_table_t& s) : data(s.data), _size(s._size) {} + unsigned size() const { return _size; } + libraw_static_table_t& operator = (const libraw_static_table_t& s) + { + _size = s._size; + data = s.data; + return *this; + } + int operator [] (unsigned idx) const + { + if (idx < _size) return data[idx]; + if(_size>0 && data) return data[0]; + return 0; + } +private: + const int *data; + unsigned _size; +}; + +#endif + + +/* Byte order */ +#if defined(__POWERPC__) +#define LibRawBigEndian 1 + +#elif defined(__INTEL__) +#define LibRawBigEndian 0 + +#elif defined(_M_IX86) || defined(__i386__) +#define LibRawBigEndian 0 + +#elif defined(_M_X64) || defined(__amd64__) || defined(__x86_64__) +#define LibRawBigEndian 0 + +#elif defined(__LITTLE_ENDIAN__) +#define LibRawBigEndian 0 + +#elif defined(__BIG_ENDIAN__) +#define LibRawBigEndian 1 +#elif defined(_ARM_) +#define LibRawBigEndian 0 + +#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ +#define LibRawBigEndian 0 + +#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +#define LibRawBigEndian 1 +#else +#ifndef qXCodeRez +#error Unable to figure out byte order. +#endif +#endif + +#endif diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_version.h b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_version.h new file mode 100644 index 0000000000000000000000000000000000000000..048009f187b35d26b50995882dc2ed2c90881ce2 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/include/libraw/libraw_version.h @@ -0,0 +1,63 @@ +/* -*- C++ -*- + * File: libraw_version.h + * Copyright 2008-2025 LibRaw LLC (info@libraw.org) + * Created: Mon Sept 8, 2008 + * + * LibRaw C++ interface + * + +LibRaw is free software; you can redistribute it and/or modify +it under the terms of the one of two licenses as you choose: + +1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 +(See the file LICENSE.LGPL provided in LibRaw distribution archive for details). + +2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 +(See the file LICENSE.CDDL provided in LibRaw distribution archive for details). + + */ + +#ifndef __VERSION_H +#define __VERSION_H + +#define LIBRAW_MAJOR_VERSION 0 +#define LIBRAW_MINOR_VERSION 21 +#define LIBRAW_PATCH_VERSION 5 +#define LIBRAW_VERSION_TAIL Release + +#define LIBRAW_SHLIB_CURRENT 23 +#define LIBRAW_SHLIB_REVISION 0 +#define LIBRAW_SHLIB_AGE 0 + +#define _LIBRAW_VERSION_MAKE(a, b, c, d) #a "." #b "." #c "-" #d +#define LIBRAW_VERSION_MAKE(a, b, c, d) _LIBRAW_VERSION_MAKE(a, b, c, d) + +#define LIBRAW_VERSION_STR \ + LIBRAW_VERSION_MAKE(LIBRAW_MAJOR_VERSION, LIBRAW_MINOR_VERSION, \ + LIBRAW_PATCH_VERSION, LIBRAW_VERSION_TAIL) + +#define LIBRAW_MAKE_VERSION(major, minor, patch) \ + (((major) << 16) | ((minor) << 8) | (patch)) + +#define LIBRAW_VERSION \ + LIBRAW_MAKE_VERSION(LIBRAW_MAJOR_VERSION, LIBRAW_MINOR_VERSION, \ + LIBRAW_PATCH_VERSION) + +#define LIBRAW_CHECK_VERSION(major, minor, patch) \ + (LibRaw::versionNumber() >= LIBRAW_MAKE_VERSION(major, minor, patch)) + +#define LIBRAW_RUNTIME_CHECK_VERSION_EXACT() \ + ((LibRaw::versionNumber() & 0xffff00) == \ + LIBRAW_MAKE_VERSION(LIBRAW_MAJOR_VERSION, LIBRAW_MINOR_VERSION, 0)) + +#define LIBRAW_RUNTIME_CHECK_VERSION_NOTLESS() \ + ((LibRaw::versionNumber() & 0xffff00) >= \ + LIBRAW_MAKE_VERSION(LIBRAW_MAJOR_VERSION, LIBRAW_MINOR_VERSION, 0)) + +#define LIBRAW_COMPILE_CHECK_VERSION(major, minor) \ + (LIBRAW_MAKE_VERSION(major, minor, 0) == (LIBRAW_VERSION & 0xffff00)) + +#define LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(major, minor) \ + (LIBRAW_MAKE_VERSION(major, minor, 0) <= (LIBRAW_VERSION & 0xffff00)) + +#endif diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/about.json b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..1b172f546e518bc5e02496e21002b69c447f321a --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/about.json @@ -0,0 +1,14 @@ +{ + "channels": [ + "https://conda.anaconda.org/conda-forge/" + ], + "description": "LibRaw is a library for reading RAW files from digital photo cameras\n(CRW/CR2, NEF, RAF, DNG, MOS, KDC, DCR, etc, virtually all RAW formats are supported).", + "extra": { + "flow_run_id": "azure_20260114.2.1", + "remote_url": "https://github.com/conda-forge/libraw-feedstock", + "sha": "87c5f4bbb6f27c44a84801be268393a694971b4b" + }, + "home": "http://www.libraw.org/", + "license": "LGPL-2.1-only", + "summary": "Library for reading and processing of RAW digicam images." +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/hash_input.json b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..9697f0c68f39a6992b7e2147ba8f4acc725cccf3 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/hash_input.json @@ -0,0 +1 @@ +{"c_compiler": "gcc", "c_compiler_version": "14", "c_stdlib": "sysroot", "c_stdlib_version": "2.17", "channel_sources": "conda-forge", "channel_targets": "conda-forge main", "cxx_compiler": "gxx", "cxx_compiler_version": "14", "jasper": "4", "lcms2": "2", "libjpeg_turbo": "3", "target_platform": "linux-64", "zlib": "1"} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/index.json b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..d915abbd324336fc33820c4a9f084213ea980d0c --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/index.json @@ -0,0 +1,21 @@ +{ + "arch": "x86_64", + "build": "h074291d_0", + "build_number": 0, + "depends": [ + "libgcc >=14", + "libstdcxx >=14", + "__glibc >=2.17,<3.0.a0", + "_openmp_mutex >=4.5", + "libjpeg-turbo >=3.1.2,<4.0a0", + "libzlib >=1.3.1,<2.0a0", + "lcms2 >=2.18,<3.0a0", + "jasper >=4.2.8,<5.0a0" + ], + "license": "LGPL-2.1-only", + "name": "libraw", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1768379154800, + "version": "0.21.5" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/licenses/libraw/LICENSE.LGPL b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/licenses/libraw/LICENSE.LGPL new file mode 100644 index 0000000000000000000000000000000000000000..3b204400cf3d548f93a0f4f8e85d41d7e39ecb59 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/licenses/libraw/LICENSE.LGPL @@ -0,0 +1,458 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/paths.json b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..8a1ae6fa677c5ec0248a67c1757f5563699fb623 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/paths.json @@ -0,0 +1,201 @@ +{ + "paths": [ + { + "_path": "bin/4channels", + "path_type": "hardlink", + "sha256": "b6af0655668c83f0262db362a88690c0884d9c380f3fed5c80b755479c38db90", + "size_in_bytes": 16848 + }, + { + "_path": "bin/dcraw_emu", + "path_type": "hardlink", + "sha256": "5c868e27ec5af4cdb55bd91260078455f1e4555acb91972ebf3a9c8c932e58aa", + "size_in_bytes": 30864 + }, + { + "_path": "bin/dcraw_half", + "path_type": "hardlink", + "sha256": "3f55b2423d0907f5cbb57eb5a2e978c1cfbe2580b3f2b59970321c37dfdf2538", + "size_in_bytes": 16432 + }, + { + "_path": "bin/half_mt", + "path_type": "hardlink", + "sha256": "0f4ad280d163bd2267ff0cf43b28e60ac5229e3712a1936a9057aaee5e270418", + "size_in_bytes": 17136 + }, + { + "_path": "bin/mem_image", + "path_type": "hardlink", + "sha256": "21d499e4411fcdf84b0d71d9b58eda0c9cd0a1815fd0f5f0fd23b129d8b3c261", + "size_in_bytes": 21904 + }, + { + "_path": "bin/multirender_test", + "path_type": "hardlink", + "sha256": "057159a4e2d7f0d6d645cb294bfce9c2f0c5b5ecc412faa7c2f8312a3d2ad37e", + "size_in_bytes": 16816 + }, + { + "_path": "bin/postprocessing_benchmark", + "path_type": "hardlink", + "sha256": "c5eaa8a232d8838944d224796e9ea7fe2c87d6246020260782563a1f97f76d74", + "size_in_bytes": 17184 + }, + { + "_path": "bin/raw-identify", + "path_type": "hardlink", + "sha256": "815440859fc3ffd527d0a032f6f3ad26c3a371f34104f039fa6b423a858ea2e6", + "size_in_bytes": 39328 + }, + { + "_path": "bin/rawtextdump", + "path_type": "hardlink", + "sha256": "f8e09dbd79727a885b14eb7aad3387cd8dc8db9efa25620ae0677ed03dad5271", + "size_in_bytes": 22488 + }, + { + "_path": "bin/simple_dcraw", + "path_type": "hardlink", + "sha256": "0fed616424dc140508ed0d161e5468872422738db3d62f089313cde6af4111dc", + "size_in_bytes": 21456 + }, + { + "_path": "bin/unprocessed_raw", + "path_type": "hardlink", + "sha256": "035a049fc33cec0fa7dabc5a270938c23df4e80c0ff9c6cfa5d9ecad7d0cd003", + "size_in_bytes": 17240 + }, + { + "_path": "include/libraw/libraw.h", + "path_type": "hardlink", + "sha256": "3e1c191f1b2feeb58c50de668c2a10fa62631ac49db3fafc3501e5c9aff7ceab", + "size_in_bytes": 18208 + }, + { + "_path": "include/libraw/libraw_alloc.h", + "path_type": "hardlink", + "sha256": "37bd73b2a133ac7df778e0a02ed87aa20c86f85299f5ff0474521d2d29bdeb5a", + "size_in_bytes": 3131 + }, + { + "_path": "include/libraw/libraw_const.h", + "path_type": "hardlink", + "sha256": "00ad97e07ce41da9a1fbff19bc901cb9ecbdfe0c40478262dc946813841193d6", + "size_in_bytes": 24915 + }, + { + "_path": "include/libraw/libraw_datastream.h", + "path_type": "hardlink", + "sha256": "79fb4f9fb4aca08cac0fc36899b3eb89ad3bb807d76c72949951e28dcd5fa1f8", + "size_in_bytes": 10832 + }, + { + "_path": "include/libraw/libraw_internal.h", + "path_type": "hardlink", + "sha256": "7c7d8a6abd51642868903f4567475ca97d5bb876259a2e1643ff9f0bcc706b11", + "size_in_bytes": 10718 + }, + { + "_path": "include/libraw/libraw_types.h", + "path_type": "hardlink", + "sha256": "0787e9ef85d902d369fc4a1296a07d72171576a4ae6e4df0f39f53eaea123498", + "size_in_bytes": 33274 + }, + { + "_path": "include/libraw/libraw_version.h", + "path_type": "hardlink", + "sha256": "127605ac384d47896bf4675d52d70b8183f55a0294fdb2a9187523172dbb01f4", + "size_in_bytes": 2467 + }, + { + "_path": "lib/libraw.a", + "path_type": "hardlink", + "sha256": "86c83da916bcfb93a3efcc5dc67f7566f1618838e86eccd1ec0bc10e45a83300", + "size_in_bytes": 1945526 + }, + { + "_path": "lib/libraw.so", + "path_type": "softlink", + "sha256": "3cc472f32ac502d955fb5dfc3729bb3929b7c268fde7cf2c693830a7b51a2680", + "size_in_bytes": 16 + }, + { + "_path": "lib/libraw.so.23", + "path_type": "softlink", + "sha256": "3cc472f32ac502d955fb5dfc3729bb3929b7c268fde7cf2c693830a7b51a2680", + "size_in_bytes": 16 + }, + { + "_path": "lib/libraw.so.23.0.0", + "path_type": "hardlink", + "sha256": "3cc472f32ac502d955fb5dfc3729bb3929b7c268fde7cf2c693830a7b51a2680", + "size_in_bytes": 1266848 + }, + { + "_path": "lib/libraw_r.a", + "path_type": "hardlink", + "sha256": "86c83da916bcfb93a3efcc5dc67f7566f1618838e86eccd1ec0bc10e45a83300", + "size_in_bytes": 1945526 + }, + { + "_path": "lib/libraw_r.so", + "path_type": "softlink", + "sha256": "74c5c7d8286fd967d49ac1115b6dbf43a7b7f90222fd6077cce0582ccf2ac6af", + "size_in_bytes": 18 + }, + { + "_path": "lib/libraw_r.so.23", + "path_type": "softlink", + "sha256": "74c5c7d8286fd967d49ac1115b6dbf43a7b7f90222fd6077cce0582ccf2ac6af", + "size_in_bytes": 18 + }, + { + "_path": "lib/libraw_r.so.23.0.0", + "path_type": "hardlink", + "sha256": "74c5c7d8286fd967d49ac1115b6dbf43a7b7f90222fd6077cce0582ccf2ac6af", + "size_in_bytes": 1266848 + }, + { + "_path": "lib/pkgconfig/libraw.pc", + "path_type": "hardlink", + "file_mode": "text", + "prefix_placeholder": "/home/conda/feedstock_root/build_artifacts/bld/rattler-build_libraw_1768379154/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho", + "sha256": "2d81a3e0fbd1c51d5a5a18067f5c787134cb1c259b4136b2000fb35bc46a6971", + "size_in_bytes": 563 + }, + { + "_path": "lib/pkgconfig/libraw_r.pc", + "path_type": "hardlink", + "file_mode": "text", + "prefix_placeholder": "/home/conda/feedstock_root/build_artifacts/bld/rattler-build_libraw_1768379154/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho", + "sha256": "b38ee19aedcf82b12227b4164c37c1015042914977ec234679e0441427336691", + "size_in_bytes": 561 + }, + { + "_path": "share/doc/libraw/COPYRIGHT", + "path_type": "hardlink", + "sha256": "d6ed03c89e25fcda5db454c1badc2c321f241799aab2062418a7fb3742c935ce", + "size_in_bytes": 1153 + }, + { + "_path": "share/doc/libraw/Changelog.txt", + "path_type": "hardlink", + "sha256": "8e8419e51b9e0b949a377bfc57d7a5cef16cef00a3853950085c70120c6473f4", + "size_in_bytes": 118538 + }, + { + "_path": "share/doc/libraw/LICENSE.CDDL", + "path_type": "hardlink", + "sha256": "0e3098d2d54a12434715f6679ea408d57da5e8d613c385c58ecc6fe5d30cc81f", + "size_in_bytes": 16906 + }, + { + "_path": "share/doc/libraw/LICENSE.LGPL", + "path_type": "hardlink", + "sha256": "eea173a556abac0370461e57e12aab266894ea6be3874c2be05fd87871f75449", + "size_in_bytes": 24389 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/build.bat b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/build.bat new file mode 100644 index 0000000000000000000000000000000000000000..e2b644776f364d4648b2ce200164f6e041e9c700 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/build.bat @@ -0,0 +1,25 @@ +setlocal EnableDelayedExpansion + +:: Copy CMake files to the source directory +copy cmake\CMakeLists.txt libraw +mkdir libraw\cmake +mkdir libraw\cmake\data +mkdir libraw\cmake\modules +copy cmake\cmake\*.cmake.in libraw\cmake +copy cmake\cmake\data\*.cmake libraw\cmake\data +copy cmake\cmake\modules\*.cmake libraw\cmake\modules + +cd libraw +dir +mkdir build +cd build + +:: Configure using the CMakeFiles +cmake -G "Ninja" ^ + -DCMAKE_PREFIX_PATH="%LIBRARY_PREFIX%" ^ + -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^ + -DCMAKE_BUILD_TYPE:STRING=Release ^ + .. +if errorlevel 1 exit 1 +cmake --build . --config Release --target install +if errorlevel 1 exit 1 diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/build.sh b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c525f7ecd6ec46a41e3772b705f1cefce2206c9 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/build.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +cd libraw + +autoreconf --install + +if [ `uname` == Darwin ]; then + USE_OPENMP=no +else + USE_OPENMP=yes +fi; + +./configure --prefix="${PREFIX}" --enable-openmp=$USE_OPENMP + +make -j${CPU_COUNT} +make install diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/recipe-scripts-license.txt b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/recipe-scripts-license.txt new file mode 100644 index 0000000000000000000000000000000000000000..2ec51d75f362bc4327a3cfe1c515c16bb3c57367 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/recipe-scripts-license.txt @@ -0,0 +1,27 @@ +BSD-3-Clause license +Copyright (c) 2015-2022, conda-forge contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/recipe.yaml b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/recipe.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6ad0331424989ff3ec59ce4567d7001644b7f19d --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/recipe.yaml @@ -0,0 +1,77 @@ +context: + name: libraw + version: "0.21.5" + +package: + name: ${{ name }} + version: ${{ version }} + +source: + - target_directory: libraw + url: https://github.com/LibRaw/LibRaw/archive/${{ version }}.tar.gz + sha256: 4b7f183a68f6e46e579e80ba32ab121687e75bd30a2e5566f34c36a6bcba1679 + + - target_directory: cmake + url: https://github.com/LibRaw/LibRaw-cmake/archive/eb98e4325aef2ce85d2eb031c2ff18640ca616d3.tar.gz + sha256: 3cd218bf6d1254de86e27269541277fbfc5bae57a9002ce0b46fbe2a97088b43 + +build: + number: 0 + +requirements: + build: + - ${{ compiler('c') }} + - ${{ compiler('cxx') }} + - ${{ stdlib('c') }} + - if: unix + then: + - automake + - libtool + - make + - pkg-config + - if: win + then: + - cmake + - ninja + host: + - zlib + - lcms2 + - jasper + - libjpeg-turbo + - ${{ "libgomp" if linux }} + run_exports: + - ${{ pin_subpackage(name, upper_bound ='x.x') }} + + +tests: + - package_contents: + include: + - libraw/libraw.h + lib: + - raw + bin: + - 4channels + - dcraw_emu + - raw-identify + - simple_dcraw + - requirements: + run: + - curl + script: + - curl https://www.rawsamples.ch/raws/nikon/d1/RAW_NIKON_D1.NEF -o RAW_NIKON_D1.NEF + - raw-identify -u RAW_NIKON_D1.NEF + - simple_dcraw -v -T RAW_NIKON_D1.NEF + +about: + homepage: http://www.libraw.org/ + license: LGPL-2.1-only + license_file: libraw/LICENSE.LGPL + description: | + LibRaw is a library for reading RAW files from digital photo cameras + (CRW/CR2, NEF, RAF, DNG, MOS, KDC, DCR, etc, virtually all RAW formats are supported). + summary: Library for reading and processing of RAW digicam images. + +extra: + recipe-maintainers: + - wolfv + - traversaro diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/rendered_recipe.yaml b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/rendered_recipe.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f881d8ddfa712222a19a4a3fefaacbe370034e02 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/rendered_recipe.yaml @@ -0,0 +1,1408 @@ +recipe: + schema_version: 1 + context: + name: libraw + version: 0.21.5 + package: + name: libraw + version: 0.21.5 + source: + - url: https://github.com/LibRaw/LibRaw/archive/0.21.5.tar.gz + sha256: 4b7f183a68f6e46e579e80ba32ab121687e75bd30a2e5566f34c36a6bcba1679 + target_directory: libraw + - url: https://github.com/LibRaw/LibRaw-cmake/archive/eb98e4325aef2ce85d2eb031c2ff18640ca616d3.tar.gz + sha256: 3cd218bf6d1254de86e27269541277fbfc5bae57a9002ce0b46fbe2a97088b43 + target_directory: cmake + build: + number: 0 + string: h074291d_0 + requirements: + build: + - gcc_linux-64 14.* + - gxx_linux-64 14.* + - sysroot_linux-64 2.17.* + - automake + - libtool + - make + - pkg-config + host: + - zlib + - lcms2 + - jasper + - libjpeg-turbo + - libgomp + run_exports: + weak: + - pin_subpackage: + name: libraw + lower_bound: x.x.x.x.x.x + upper_bound: x.x + tests: + - package_contents: + bin: + - 4channels + - dcraw_emu + - raw-identify + - simple_dcraw + lib: + - raw + include: + - libraw/libraw.h + - script: + - curl https://www.rawsamples.ch/raws/nikon/d1/RAW_NIKON_D1.NEF -o RAW_NIKON_D1.NEF + - raw-identify -u RAW_NIKON_D1.NEF + - simple_dcraw -v -T RAW_NIKON_D1.NEF + requirements: + run: + - curl + about: + homepage: http://www.libraw.org/ + license: LGPL-2.1-only + license_file: + - libraw/LICENSE.LGPL + summary: Library for reading and processing of RAW digicam images. + description: |- + LibRaw is a library for reading RAW files from digital photo cameras + (CRW/CR2, NEF, RAF, DNG, MOS, KDC, DCR, etc, virtually all RAW formats are supported). + extra: + recipe-maintainers: + - wolfv + - traversaro +build_configuration: + target_platform: linux-64 + host_platform: + platform: linux-64 + virtual_packages: + - __unix=0=0 + - __linux=6.11.0=0 + - __glibc=2.34=0 + - __archspec=1=zen2 + build_platform: + platform: linux-64 + virtual_packages: + - __unix=0=0 + - __linux=6.11.0=0 + - __glibc=2.34=0 + - __archspec=1=zen2 + variant: + c_compiler: gcc + c_compiler_version: '14' + c_stdlib: sysroot + c_stdlib_version: '2.17' + channel_sources: conda-forge + channel_targets: conda-forge main + cxx_compiler: gxx + cxx_compiler_version: '14' + jasper: '4' + lcms2: '2' + libjpeg_turbo: '3' + target_platform: linux-64 + zlib: '1' + hash: + hash: 074291d + directories: + host_prefix: /home/conda/feedstock_root/build_artifacts/bld/rattler-build_libraw_1768379154/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho + build_prefix: /home/conda/feedstock_root/build_artifacts/bld/rattler-build_libraw_1768379154/build_env + work_dir: /home/conda/feedstock_root/build_artifacts/bld/rattler-build_libraw_1768379154/work + build_dir: /home/conda/feedstock_root/build_artifacts/bld/rattler-build_libraw_1768379154 + channels: + - https://conda.anaconda.org/conda-forge + channel_priority: strict + solve_strategy: highest + timestamp: 2026-01-14T08:25:54.800692801Z + subpackages: + libraw: + name: libraw + version: 0.21.5 + build_string: h074291d_0 + packaging_settings: + archive_type: conda + compression_level: 15 +finalized_dependencies: + build: + specs: + - source: gcc_linux-64 14.* + - source: gxx_linux-64 14.* + - source: sysroot_linux-64 2.17.* + - source: automake + - source: libtool + - source: make + - source: pkg-config + resolved: + - build: h298d278_17 + build_number: 17 + depends: + - gcc_impl_linux-64 14.3.0.* + - binutils_linux-64 + - sysroot_linux-64 + license: BSD-3-Clause + license_family: BSD + md5: 50dc15ac993bb5859f923979c81fafc8 + name: gcc_linux-64 + run_exports: + strong: + - libgcc >=14 + sha256: 7b9585c201c175c024c56b46658d9e4b5db85a32df54517798109281a90d03bb + size: 28913 + subdir: linux-64 + timestamp: 1766347929374 + version: 14.3.0 + fn: gcc_linux-64-14.3.0-h298d278_17.conda + url: https://conda.anaconda.org/conda-forge/linux-64/gcc_linux-64-14.3.0-h298d278_17.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h310e576_17 + build_number: 17 + depends: + - gxx_impl_linux-64 14.3.0.* + - gcc_linux-64 ==14.3.0 h298d278_17 + - binutils_linux-64 + - sysroot_linux-64 + license: BSD-3-Clause + license_family: BSD + md5: 94474857477981fedf74cf7c47c88ba5 + name: gxx_linux-64 + run_exports: + strong: + - libstdcxx >=14 + - libgcc >=14 + sha256: 90ccb0df50254feb5b4e539b06e3d2c3baf5c37e40579224a277ab164566a6a0 + size: 27464 + subdir: linux-64 + timestamp: 1766347929379 + version: 14.3.0 + fn: gxx_linux-64-14.3.0-h310e576_17.conda + url: https://conda.anaconda.org/conda-forge/linux-64/gxx_linux-64-14.3.0-h310e576_17.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h0157908_18 + build_number: 18 + depends: + - kernel-headers_linux-64 3.10.0 he073ed8_18 + - tzdata + license: LGPL-2.0-or-later AND LGPL-2.0-or-later WITH exceptions AND GPL-2.0-or-later AND MPL-2.0 + license_family: GPL + md5: 460eba7851277ec1fd80a1a24080787a + name: sysroot_linux-64 + noarch: generic + run_exports: + strong: + - __glibc >=2.17,<3.0.a0 + sha256: 69ab5804bdd2e8e493d5709eebff382a72fab3e9af6adf93a237ccf8f7dbd624 + size: 15166921 + subdir: noarch + timestamp: 1735290488259 + version: '2.17' + fn: sysroot_linux-64-2.17-h0157908_18.conda + url: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-64-2.17-h0157908_18.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: he073ed8_18 + build_number: 18 + constrains: + - sysroot_linux-64 ==2.17 + depends: [] + license: LGPL-2.0-or-later AND LGPL-2.0-or-later WITH exceptions AND GPL-2.0-or-later AND MPL-2.0 + license_family: GPL + md5: ad8527bf134a90e1c9ed35fa0b64318c + name: kernel-headers_linux-64 + noarch: generic + run_exports: {} + sha256: a922841ad80bd7b222502e65c07ecb67e4176c4fa5b03678a005f39fcc98be4b + size: 943486 + subdir: noarch + timestamp: 1729794504440 + version: 3.10.0 + fn: kernel-headers_linux-64-3.10.0-he073ed8_18.conda + url: https://conda.anaconda.org/conda-forge/noarch/kernel-headers_linux-64-3.10.0-he073ed8_18.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: pl5321ha770c72_0 + build_number: 0 + depends: + - autoconf + - m4 + - perl 5.* + license: GPL-3.0-or-later + license_family: GPL + md5: 31215fb10dea74a08fca01d36b793492 + name: automake + run_exports: {} + sha256: b5c383c4b95c405796c309d9149ae4dd314eab1e8cb0ba1925f0c8f7c304dd26 + size: 595151 + subdir: linux-64 + timestamp: 1724062205361 + version: '1.17' + fn: automake-1.17-pl5321ha770c72_0.conda + url: https://conda.anaconda.org/conda-forge/linux-64/automake-1.17-pl5321ha770c72_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h5888daf_0 + build_number: 0 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - libltdl 2.4.3a h5888daf_0 + license: GPL-2.0-or-later + license_family: GPL + md5: 90697d80c181414aa3472199e136a04e + name: libtool + run_exports: {} + sha256: c8245c70ba5b075e0cd61f430afbda00b60931603ed4ea31ce89e7fe930e4e3d + size: 415044 + subdir: linux-64 + timestamp: 1740593851157 + version: 2.5.4 + fn: libtool-2.5.4-h5888daf_0.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libtool-2.5.4-h5888daf_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h5888daf_0 + build_number: 0 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + license: LGPL-2.0-or-later + license_family: LGPL + md5: 8e5de39cab514fa908fcaa7ba37a8738 + name: libltdl + run_exports: + weak: + - libltdl >=2.4.3a,<2.5.0a0 + sha256: 7620c6425d4491e17083106ca49624448fc16186c30a93cf2b58f862bba416d1 + size: 38472 + subdir: linux-64 + timestamp: 1740593829307 + version: 2.4.3a + fn: libltdl-2.4.3a-h5888daf_0.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libltdl-2.4.3a-h5888daf_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hb9d3cd8_2 + build_number: 2 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + license: GPL-3.0-or-later + license_family: GPL + md5: 33405d2a66b1411db9f7242c8b97c9e7 + name: make + run_exports: {} + sha256: d652c7bd4d3b6f82b0f6d063b0d8df6f54cc47531092d7ff008e780f3261bdda + size: 513088 + subdir: linux-64 + timestamp: 1727801714848 + version: 4.4.1 + fn: make-4.4.1-hb9d3cd8_2.conda + url: https://conda.anaconda.org/conda-forge/linux-64/make-4.4.1-hb9d3cd8_2.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h4bc722e_1009 + build_number: 1009 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc-ng >=12 + license: GPL-2.0-or-later + license_family: GPL + md5: 1bee70681f504ea424fb07cdb090c001 + name: pkg-config + run_exports: {} + sha256: c9601efb1af5391317e04eca77c6fe4d716bf1ca1ad8da2a05d15cb7c28d7d4e + size: 115175 + subdir: linux-64 + timestamp: 1720805894943 + version: 0.29.2 + fn: pkg-config-0.29.2-h4bc722e_1009.conda + url: https://conda.anaconda.org/conda-forge/linux-64/pkg-config-0.29.2-h4bc722e_1009.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: he8b2097_16 + build_number: 16 + depends: + - binutils_impl_linux-64 >=2.45 + - libgcc >=14.3.0 + - libgcc-devel_linux-64 14.3.0 hf649bbc_116 + - libgomp >=14.3.0 + - libsanitizer 14.3.0 h8f1669f_16 + - libstdcxx >=14.3.0 + - libstdcxx-devel_linux-64 14.3.0 h9f08a49_116 + - sysroot_linux-64 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + md5: d274bf1343507683e6eb2954d1871569 + name: gcc_impl_linux-64 + run_exports: {} + sha256: 4acf50b7d5673250d585a256a40aabdd922e0947ca12cdbad0cef960ee1a9509 + size: 75290045 + subdir: linux-64 + timestamp: 1765256021903 + version: 14.3.0 + fn: gcc_impl_linux-64-14.3.0-he8b2097_16.conda + url: https://conda.anaconda.org/conda-forge/linux-64/gcc_impl_linux-64-14.3.0-he8b2097_16.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h9f08a49_116 + build_number: 116 + depends: + - __unix + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + md5: badba6a9f0e90fdaff87b06b54736ea6 + name: libstdcxx-devel_linux-64 + noarch: generic + run_exports: {} + sha256: 278a6b7ebb02f1e983db06c6091b130c9a99f967acb526eac1a67077fd863da8 + size: 20538116 + subdir: noarch + timestamp: 1765255773242 + version: 14.3.0 + fn: libstdcxx-devel_linux-64-14.3.0-h9f08a49_116.conda + url: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-64-14.3.0-h9f08a49_116.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h8f1669f_16 + build_number: 16 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14.3.0 + - libstdcxx >=14.3.0 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + md5: 0617b134e4dc4474c1038707499f7eed + name: libsanitizer + run_exports: + weak: + - libsanitizer 14.3.0 + sha256: 21765d3fa780eb98055a9f40e9d4defa1eaffe254ee271a3e49555a89e37d6c9 + size: 7946383 + subdir: linux-64 + timestamp: 1765255939536 + version: 14.3.0 + fn: libsanitizer-14.3.0-h8f1669f_16.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libsanitizer-14.3.0-h8f1669f_16.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hf649bbc_116 + build_number: 116 + depends: + - __unix + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + md5: 0141e19cb0cd5602c49c84f920e81921 + name: libgcc-devel_linux-64 + noarch: generic + run_exports: {} + sha256: 812f2b3f523fc0aabaf4e5e1b44a029c5205671179e574dd32dc57b65e072e0f + size: 3082749 + subdir: noarch + timestamp: 1765255729247 + version: 14.3.0 + fn: libgcc-devel_linux-64-14.3.0-hf649bbc_116.conda + url: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-64-14.3.0-hf649bbc_116.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h2185e75_16 + build_number: 16 + depends: + - gcc_impl_linux-64 14.3.0 he8b2097_16 + - libstdcxx-devel_linux-64 14.3.0 h9f08a49_116 + - sysroot_linux-64 + - tzdata + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + md5: 8729b9d902631b9ee604346a90a50031 + name: gxx_impl_linux-64 + run_exports: {} + sha256: 71a6672af972c4d072d79514e9755c9e9ea359d46613fd9333adcb3b08c0c008 + size: 15255410 + subdir: linux-64 + timestamp: 1765256273332 + version: 14.3.0 + fn: gxx_impl_linux-64-14.3.0-h2185e75_16.conda + url: https://conda.anaconda.org/conda-forge/linux-64/gxx_impl_linux-64-14.3.0-h2185e75_16.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: default_h4852527_105 + build_number: 105 + depends: + - binutils_impl_linux-64 2.45 default_hfdba357_105 + license: GPL-3.0-only + license_family: GPL + md5: 4b1e4ae87a52e9724a9ec0c7b822bc89 + name: binutils_linux-64 + run_exports: {} + sha256: 0eae8088e00edc7fe7a728d64f6614d2cf17a2df010e835eccefe30bfc726759 + size: 36310 + subdir: linux-64 + timestamp: 1766513143566 + version: '2.45' + fn: binutils_linux-64-2.45-default_h4852527_105.conda + url: https://conda.anaconda.org/conda-forge/linux-64/binutils_linux-64-2.45-default_h4852527_105.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: default_hfdba357_105 + build_number: 105 + depends: + - ld_impl_linux-64 2.45 default_hbd61a6d_105 + - sysroot_linux-64 + - zstd >=1.5.7,<1.6.0a0 + license: GPL-3.0-only + license_family: GPL + md5: e410a8f80e22eb6d840e39ac6a34bd0e + name: binutils_impl_linux-64 + run_exports: {} + sha256: 17fbb32191430310d3eb8309f80a8df54f0d66eda9cf84b2ae5113e6d74e24d8 + size: 3719982 + subdir: linux-64 + timestamp: 1766513109980 + version: '2.45' + fn: binutils_impl_linux-64-2.45-default_hfdba357_105.conda + url: https://conda.anaconda.org/conda-forge/linux-64/binutils_impl_linux-64-2.45-default_hfdba357_105.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: default_hbd61a6d_105 + build_number: 105 + constrains: + - binutils_impl_linux-64 2.45 + depends: + - __glibc >=2.17,<3.0.a0 + - zstd >=1.5.7,<1.6.0a0 + license: GPL-3.0-only + license_family: GPL + md5: 3ec0aa5037d39b06554109a01e6fb0c6 + name: ld_impl_linux-64 + run_exports: {} + sha256: 1027bd8aa0d5144e954e426ab6218fd5c14e54a98f571985675468b339c808ca + size: 730831 + subdir: linux-64 + timestamp: 1766513089214 + version: '2.45' + fn: ld_impl_linux-64-2.45-default_hbd61a6d_105.conda + url: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.45-default_hbd61a6d_105.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hc9c84f9_1 + build_number: 1 + depends: [] + license: LicenseRef-Public-Domain + md5: ad659d0a2b3e47e38d829aa8cad2d610 + name: tzdata + noarch: generic + run_exports: {} + sha256: 1d30098909076af33a35017eed6f2953af1c769e273a0626a04722ac4acaba3c + size: 119135 + subdir: noarch + timestamp: 1767016325805 + version: 2025c + fn: tzdata-2025c-hc9c84f9_1.conda + url: https://conda.anaconda.org/conda-forge/noarch/tzdata-2025c-hc9c84f9_1.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: pl5321hbb4ee43_1 + build_number: 1 + depends: + - __glibc >=2.17,<3.0.a0 + - m4 + - perl 5.* + license: GPL-3.0-or-later + license_family: GPL + md5: 61a406051317df9dd63157c4c53899e6 + name: autoconf + run_exports: {} + sha256: 8297a545b15576a899ffc0293a9b25c7d9895e155c61d96f266d38c3c46640cb + size: 648370 + subdir: linux-64 + timestamp: 1747238591729 + version: '2.72' + fn: autoconf-2.72-pl5321hbb4ee43_1.conda + url: https://conda.anaconda.org/conda-forge/linux-64/autoconf-2.72-pl5321hbb4ee43_1.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hb9d3cd8_0 + build_number: 0 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + license: GPL-3.0-or-later + license_family: GPL + md5: d6798f502ec48cf0d626ad5a5d722a89 + name: m4 + run_exports: {} + sha256: c3d51ea1f8a52a92d49e57fa94c6bd434de2f18f80ebecbc0c47254110d92e51 + size: 286245 + subdir: linux-64 + timestamp: 1747307567001 + version: 1.4.20 + fn: m4-1.4.20-hb9d3cd8_0.conda + url: https://conda.anaconda.org/conda-forge/linux-64/m4-1.4.20-hb9d3cd8_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: 7_hd590300_perl5 + build_number: 7 + depends: + - libgcc-ng >=12 + - libxcrypt >=4.4.36 + license: GPL-1.0-or-later OR Artistic-1.0-Perl + md5: f2cfec9406850991f4e3d960cc9e3321 + name: perl + run_exports: + weak: + - perl >=5.32.1,<5.33.0a0 *_perl5 + noarch: + - perl >=5.32.1,<6.0a0 *_perl5 + sha256: 9ec32b6936b0e37bcb0ed34f22ec3116e75b3c0964f9f50ecea5f58734ed6ce9 + size: 13344463 + subdir: linux-64 + timestamp: 1703310653947 + version: 5.32.1 + fn: perl-5.32.1-7_hd590300_perl5.conda + url: https://conda.anaconda.org/conda-forge/linux-64/perl-5.32.1-7_hd590300_perl5.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: he0feb66_16 + build_number: 16 + constrains: + - libgcc-ng ==15.2.0=*_16 + - libgomp 15.2.0 he0feb66_16 + depends: + - __glibc >=2.17,<3.0.a0 + - _openmp_mutex >=4.5 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + md5: 6d0363467e6ed84f11435eb309f2ff06 + name: libgcc + run_exports: {} + sha256: 6eed58051c2e12b804d53ceff5994a350c61baf117ec83f5f10c953a3f311451 + size: 1042798 + subdir: linux-64 + timestamp: 1765256792743 + version: 15.2.0 + fn: libgcc-15.2.0-he0feb66_16.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libgcc-15.2.0-he0feb66_16.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: he0feb66_16 + build_number: 16 + depends: + - __glibc >=2.17,<3.0.a0 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + md5: 26c46f90d0e727e95c6c9498a33a09f3 + name: libgomp + run_exports: + strong: + - _openmp_mutex >=4.5 + sha256: 5b3e5e4e9270ecfcd48f47e3a68f037f5ab0f529ccb223e8e5d5ac75a58fc687 + size: 603284 + subdir: linux-64 + timestamp: 1765256703881 + version: 15.2.0 + fn: libgomp-15.2.0-he0feb66_16.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libgomp-15.2.0-he0feb66_16.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h69a702a_16 + build_number: 16 + depends: + - libgcc 15.2.0 he0feb66_16 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + md5: 5a68259fac2da8f2ee6f7bfe49c9eb8b + name: libgcc-ng + run_exports: + strong: + - libgcc + sha256: 5f07f9317f596a201cc6e095e5fc92621afca64829785e483738d935f8cab361 + size: 27256 + subdir: linux-64 + timestamp: 1765256804124 + version: 15.2.0 + fn: libgcc-ng-15.2.0-h69a702a_16.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-15.2.0-h69a702a_16.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h934c35e_16 + build_number: 16 + constrains: + - libstdcxx-ng ==15.2.0=*_16 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc 15.2.0 he0feb66_16 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + md5: 68f68355000ec3f1d6f26ea13e8f525f + name: libstdcxx + run_exports: {} + sha256: 813427918316a00c904723f1dfc3da1bbc1974c5cfe1ed1e704c6f4e0798cbc6 + size: 5856456 + subdir: linux-64 + timestamp: 1765256838573 + version: 15.2.0 + fn: libstdcxx-15.2.0-h934c35e_16.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-15.2.0-h934c35e_16.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hd590300_1 + build_number: 1 + depends: + - libgcc-ng >=12 + license: LGPL-2.1-or-later + md5: 5aa797f8787fe7a17d1b0821485b5adc + name: libxcrypt + run_exports: + weak: + - libxcrypt >=4.4.36 + sha256: 6ae68e0b86423ef188196fff6207ed0c8195dd84273cb5623b85aa08033a410c + size: 100393 + subdir: linux-64 + timestamp: 1702724383534 + version: 4.4.36 + fn: libxcrypt-4.4.36-hd590300_1.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libxcrypt-4.4.36-hd590300_1.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: 2_gnu + build_number: 16 + constrains: + - openmp_impl 9999 + depends: + - _libgcc_mutex 0.1 conda_forge + - libgomp >=7.5.0 + license: BSD-3-Clause + license_family: BSD + md5: 73aaf86a425cc6e73fcf236a5a46396d + name: _openmp_mutex + run_exports: + strong: + - _openmp_mutex >=4.5 + sha256: fbe2c5e56a653bebb982eda4876a9178aedfc2b545f25d0ce9c4c0b508253d22 + size: 23621 + subdir: linux-64 + timestamp: 1650670423406 + version: '4.5' + fn: _openmp_mutex-4.5-2_gnu.tar.bz2 + url: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2 + channel: https://conda.anaconda.org/conda-forge/ + - build: conda_forge + build_number: 0 + depends: [] + license: None + md5: d7c89558ba9fa0495403155b64376d81 + name: _libgcc_mutex + run_exports: {} + sha256: fe51de6107f9edc7aa4f786a70f4a883943bc9d39b3bb7307c04c41410990726 + size: 2562 + subdir: linux-64 + timestamp: 1578324546067 + version: '0.1' + fn: _libgcc_mutex-0.1-conda_forge.tar.bz2 + url: https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2 + channel: https://conda.anaconda.org/conda-forge/ + - build: hb78ec9c_6 + build_number: 6 + depends: + - __glibc >=2.17,<3.0.a0 + - libzlib >=1.3.1,<2.0a0 + license: BSD-3-Clause + license_family: BSD + md5: 4a13eeac0b5c8e5b8ab496e6c4ddd829 + name: zstd + run_exports: + weak: + - zstd >=1.5.7,<1.6.0a0 + sha256: 68f0206ca6e98fea941e5717cec780ed2873ffabc0e1ed34428c061e2c6268c7 + size: 601375 + subdir: linux-64 + timestamp: 1764777111296 + version: 1.5.7 + fn: zstd-1.5.7-hb78ec9c_6.conda + url: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_6.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hb9d3cd8_2 + build_number: 2 + constrains: + - zlib 1.3.1 *_2 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + license: Zlib + license_family: Other + md5: edb0dca6bc32e4f4789199455a1dbeb8 + name: libzlib + run_exports: + weak: + - libzlib >=1.3.1,<2.0a0 + sha256: d4bfe88d7cb447768e31650f06257995601f89076080e76df55e3112d4e47dc4 + size: 60963 + subdir: linux-64 + timestamp: 1727963148474 + version: 1.3.1 + fn: libzlib-1.3.1-hb9d3cd8_2.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.1-hb9d3cd8_2.conda + channel: https://conda.anaconda.org/conda-forge/ + host: + specs: + - variant: zlib + spec: zlib 1.* + - variant: lcms2 + spec: lcms2 2.* + - variant: jasper + spec: jasper 4.* + - variant: libjpeg-turbo + spec: libjpeg-turbo 3.* + - source: libgomp + - spec: libgcc >=14 + from: build + run_export: gcc_linux-64 + - spec: libstdcxx >=14 + from: build + run_export: gxx_linux-64 + - spec: libgcc >=14 + from: build + run_export: gxx_linux-64 + - spec: __glibc >=2.17,<3.0.a0 + from: build + run_export: sysroot_linux-64 + resolved: + - build: hb9d3cd8_2 + build_number: 2 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - libzlib 1.3.1 hb9d3cd8_2 + license: Zlib + license_family: Other + md5: c9f075ab2f33b3bbee9e62d4ad0a6cd8 + name: zlib + run_exports: + weak: + - libzlib >=1.3.1,<2.0a0 + sha256: 5d7c0e5f0005f74112a34a7425179f4eb6e73c92f5d109e6af4ddeca407c92ab + size: 92286 + subdir: linux-64 + timestamp: 1727963153079 + version: 1.3.1 + fn: zlib-1.3.1-hb9d3cd8_2.conda + url: https://conda.anaconda.org/conda-forge/linux-64/zlib-1.3.1-hb9d3cd8_2.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hb9d3cd8_2 + build_number: 2 + constrains: + - zlib 1.3.1 *_2 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + license: Zlib + license_family: Other + md5: edb0dca6bc32e4f4789199455a1dbeb8 + name: libzlib + run_exports: + weak: + - libzlib >=1.3.1,<2.0a0 + sha256: d4bfe88d7cb447768e31650f06257995601f89076080e76df55e3112d4e47dc4 + size: 60963 + subdir: linux-64 + timestamp: 1727963148474 + version: 1.3.1 + fn: libzlib-1.3.1-hb9d3cd8_2.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.1-hb9d3cd8_2.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h0c24ade_0 + build_number: 0 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libjpeg-turbo >=3.1.2,<4.0a0 + - libtiff >=4.7.1,<4.8.0a0 + license: MIT + license_family: MIT + md5: 6f2e2c8f58160147c4d1c6f4c14cbac4 + name: lcms2 + run_exports: + weak: + - lcms2 >=2.18,<3.0a0 + sha256: 836ec4b895352110335b9fdcfa83a8dcdbe6c5fb7c06c4929130600caea91c0a + size: 249959 + subdir: linux-64 + timestamp: 1768184673131 + version: '2.18' + fn: lcms2-2.18-h0c24ade_0.conda + url: https://conda.anaconda.org/conda-forge/linux-64/lcms2-2.18-h0c24ade_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hb03c661_0 + build_number: 0 + constrains: + - jpeg <0.0.0a + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: IJG AND BSD-3-Clause AND Zlib + md5: 8397539e3a0bbd1695584fb4f927485a + name: libjpeg-turbo + run_exports: + weak: + - libjpeg-turbo >=3.1.2,<4.0a0 + sha256: cc9aba923eea0af8e30e0f94f2ad7156e2984d80d1e8e7fe6be5a1f257f0eb32 + size: 633710 + subdir: linux-64 + timestamp: 1762094827865 + version: 3.1.2 + fn: libjpeg-turbo-3.1.2-hb03c661_0.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libjpeg-turbo-3.1.2-hb03c661_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: he3c4edf_0 + build_number: 0 + depends: + - __glibc >=2.17,<3.0.a0 + - freeglut >=3.2.2,<4.0a0 + - libgcc >=14 + - libglu >=9.0.3,<10.0a0 + - libglu >=9.0.3,<9.1.0a0 + - libjpeg-turbo >=3.1.0,<4.0a0 + license: JasPer-2.0 + md5: a04073db11c2c86c555fb088acc8f8c1 + name: jasper + run_exports: + weak: + - jasper >=4.2.8,<5.0a0 + sha256: 0e919ec86d980901d8cbb665e91f5e9bddb5ff662178f25aed6d63f999fd9afc + size: 681643 + subdir: linux-64 + timestamp: 1754514437930 + version: 4.2.8 + fn: jasper-4.2.8-he3c4edf_0.conda + url: https://conda.anaconda.org/conda-forge/linux-64/jasper-4.2.8-he3c4edf_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: he0feb66_16 + build_number: 16 + depends: + - __glibc >=2.17,<3.0.a0 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + md5: 26c46f90d0e727e95c6c9498a33a09f3 + name: libgomp + run_exports: + strong: + - _openmp_mutex >=4.5 + sha256: 5b3e5e4e9270ecfcd48f47e3a68f037f5ab0f529ccb223e8e5d5ac75a58fc687 + size: 603284 + subdir: linux-64 + timestamp: 1765256703881 + version: 15.2.0 + fn: libgomp-15.2.0-he0feb66_16.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libgomp-15.2.0-he0feb66_16.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: he0feb66_16 + build_number: 16 + constrains: + - libgcc-ng ==15.2.0=*_16 + - libgomp 15.2.0 he0feb66_16 + depends: + - __glibc >=2.17,<3.0.a0 + - _openmp_mutex >=4.5 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + md5: 6d0363467e6ed84f11435eb309f2ff06 + name: libgcc + run_exports: {} + sha256: 6eed58051c2e12b804d53ceff5994a350c61baf117ec83f5f10c953a3f311451 + size: 1042798 + subdir: linux-64 + timestamp: 1765256792743 + version: 15.2.0 + fn: libgcc-15.2.0-he0feb66_16.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libgcc-15.2.0-he0feb66_16.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h934c35e_16 + build_number: 16 + constrains: + - libstdcxx-ng ==15.2.0=*_16 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc 15.2.0 he0feb66_16 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + md5: 68f68355000ec3f1d6f26ea13e8f525f + name: libstdcxx + run_exports: {} + sha256: 813427918316a00c904723f1dfc3da1bbc1974c5cfe1ed1e704c6f4e0798cbc6 + size: 5856456 + subdir: linux-64 + timestamp: 1765256838573 + version: 15.2.0 + fn: libstdcxx-15.2.0-h934c35e_16.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-15.2.0-h934c35e_16.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h9d88235_1 + build_number: 1 + depends: + - __glibc >=2.17,<3.0.a0 + - lerc >=4.0.0,<5.0a0 + - libdeflate >=1.25,<1.26.0a0 + - libgcc >=14 + - libjpeg-turbo >=3.1.0,<4.0a0 + - liblzma >=5.8.1,<6.0a0 + - libstdcxx >=14 + - libwebp-base >=1.6.0,<2.0a0 + - libzlib >=1.3.1,<2.0a0 + - zstd >=1.5.7,<1.6.0a0 + license: HPND + md5: cd5a90476766d53e901500df9215e927 + name: libtiff + run_exports: + weak: + - libtiff >=4.7.1,<4.8.0a0 + sha256: e5f8c38625aa6d567809733ae04bb71c161a42e44a9fa8227abe61fa5c60ebe0 + size: 435273 + subdir: linux-64 + timestamp: 1762022005702 + version: 4.7.1 + fn: libtiff-4.7.1-h9d88235_1.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libtiff-4.7.1-h9d88235_1.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hd42ef1d_0 + build_number: 0 + constrains: + - libwebp 1.6.0 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: BSD-3-Clause + license_family: BSD + md5: aea31d2e5b1091feca96fcfe945c3cf9 + name: libwebp-base + run_exports: + weak: + - libwebp-base >=1.6.0,<2.0a0 + sha256: 3aed21ab28eddffdaf7f804f49be7a7d701e8f0e46c856d801270b470820a37b + size: 429011 + subdir: linux-64 + timestamp: 1752159441324 + version: 1.6.0 + fn: libwebp-base-1.6.0-hd42ef1d_0.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libwebp-base-1.6.0-hd42ef1d_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h17f619e_0 + build_number: 0 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: MIT + license_family: MIT + md5: 6c77a605a7a689d17d4819c0f8ac9a00 + name: libdeflate + run_exports: + weak: + - libdeflate >=1.25,<1.26.0a0 + sha256: aa8e8c4be9a2e81610ddf574e05b64ee131fab5e0e3693210c9d6d2fba32c680 + size: 73490 + subdir: linux-64 + timestamp: 1761979956660 + version: '1.25' + fn: libdeflate-1.25-h17f619e_0.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libdeflate-1.25-h17f619e_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: ha6d2627_3 + build_number: 3 + depends: + - libgcc-ng >=12 + - libstdcxx-ng >=12 + - libxcb >=1.16,<2.0.0a0 + - xorg-libx11 >=1.8.9,<2.0a0 + - xorg-libxau >=1.0.11,<2.0a0 + - xorg-libxext >=1.3.4,<2.0a0 + - xorg-libxfixes + - xorg-libxi + license: MIT + license_family: MIT + md5: 84ec3f5b46f3076be49f2cf3f1cfbf02 + name: freeglut + run_exports: + weak: + - freeglut >=3.2.2,<4.0a0 + sha256: 676540a8e7f73a894cb1fcb870e7bec623ec1c0a2d277094fd713261a02d8d56 + size: 144010 + subdir: linux-64 + timestamp: 1719014356708 + version: 3.2.2 + fn: freeglut-3.2.2-ha6d2627_3.conda + url: https://conda.anaconda.org/conda-forge/linux-64/freeglut-3.2.2-ha6d2627_3.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hdf11a46_16 + build_number: 16 + depends: + - libstdcxx 15.2.0 h934c35e_16 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + md5: 1b3152694d236cf233b76b8c56bf0eae + name: libstdcxx-ng + run_exports: + strong: + - libstdcxx + sha256: 81f2f246c7533b41c5e0c274172d607829019621c4a0823b5c0b4a8c7028ee84 + size: 27300 + subdir: linux-64 + timestamp: 1765256885128 + version: 15.2.0 + fn: libstdcxx-ng-15.2.0-hdf11a46_16.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-ng-15.2.0-hdf11a46_16.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h69a702a_16 + build_number: 16 + depends: + - libgcc 15.2.0 he0feb66_16 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + md5: 5a68259fac2da8f2ee6f7bfe49c9eb8b + name: libgcc-ng + run_exports: + strong: + - libgcc + sha256: 5f07f9317f596a201cc6e095e5fc92621afca64829785e483738d935f8cab361 + size: 27256 + subdir: linux-64 + timestamp: 1765256804124 + version: 15.2.0 + fn: libgcc-ng-15.2.0-h69a702a_16.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-15.2.0-h69a702a_16.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h5888daf_1 + build_number: 1 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - libopengl >=1.7.0,<2.0a0 + - libstdcxx >=13 + license: SGI-B-2.0 + md5: 8422fcc9e5e172c91e99aef703b3ce65 + name: libglu + run_exports: + weak: + - libglu >=9.0.3,<9.1.0a0 + sha256: a0105eb88f76073bbb30169312e797ed5449ebb4e964a756104d6e54633d17ef + size: 325262 + subdir: linux-64 + timestamp: 1748692137626 + version: 9.0.3 + fn: libglu-9.0.3-h5888daf_1.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libglu-9.0.3-h5888daf_1.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: 2_gnu + build_number: 16 + constrains: + - openmp_impl 9999 + depends: + - _libgcc_mutex 0.1 conda_forge + - libgomp >=7.5.0 + license: BSD-3-Clause + license_family: BSD + md5: 73aaf86a425cc6e73fcf236a5a46396d + name: _openmp_mutex + run_exports: + strong: + - _openmp_mutex >=4.5 + sha256: fbe2c5e56a653bebb982eda4876a9178aedfc2b545f25d0ce9c4c0b508253d22 + size: 23621 + subdir: linux-64 + timestamp: 1650670423406 + version: '4.5' + fn: _openmp_mutex-4.5-2_gnu.tar.bz2 + url: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2 + channel: https://conda.anaconda.org/conda-forge/ + - build: conda_forge + build_number: 0 + depends: [] + license: None + md5: d7c89558ba9fa0495403155b64376d81 + name: _libgcc_mutex + run_exports: {} + sha256: fe51de6107f9edc7aa4f786a70f4a883943bc9d39b3bb7307c04c41410990726 + size: 2562 + subdir: linux-64 + timestamp: 1578324546067 + version: '0.1' + fn: _libgcc_mutex-0.1-conda_forge.tar.bz2 + url: https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2 + channel: https://conda.anaconda.org/conda-forge/ + - build: h0aef613_1 + build_number: 1 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - libstdcxx >=13 + license: Apache-2.0 + license_family: Apache + md5: 9344155d33912347b37f0ae6c410a835 + name: lerc + run_exports: + weak: + - lerc >=4.0.0,<5.0a0 + sha256: 412381a43d5ff9bbed82cd52a0bbca5b90623f62e41007c9c42d3870c60945ff + size: 264243 + subdir: linux-64 + timestamp: 1745264221534 + version: 4.0.0 + fn: lerc-4.0.0-h0aef613_1.conda + url: https://conda.anaconda.org/conda-forge/linux-64/lerc-4.0.0-h0aef613_1.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hb9d3cd8_2 + build_number: 2 + constrains: + - xz 5.8.1.* + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + license: 0BSD + md5: 1a580f7796c7bf6393fddb8bbbde58dc + name: liblzma + run_exports: + weak: + - liblzma >=5.8.1,<6.0a0 + sha256: f2591c0069447bbe28d4d696b7fcb0c5bd0b4ac582769b89addbcf26fb3430d8 + size: 112894 + subdir: linux-64 + timestamp: 1749230047870 + version: 5.8.1 + fn: liblzma-5.8.1-hb9d3cd8_2.conda + url: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.1-hb9d3cd8_2.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hb78ec9c_6 + build_number: 6 + depends: + - __glibc >=2.17,<3.0.a0 + - libzlib >=1.3.1,<2.0a0 + license: BSD-3-Clause + license_family: BSD + md5: 4a13eeac0b5c8e5b8ab496e6c4ddd829 + name: zstd + run_exports: + weak: + - zstd >=1.5.7,<1.6.0a0 + sha256: 68f0206ca6e98fea941e5717cec780ed2873ffabc0e1ed34428c061e2c6268c7 + size: 601375 + subdir: linux-64 + timestamp: 1764777111296 + version: 1.5.7 + fn: zstd-1.5.7-hb78ec9c_6.conda + url: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_6.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h8a09558_0 + build_number: 0 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - pthread-stubs + - xorg-libxau >=1.0.11,<2.0a0 + - xorg-libxdmcp + license: MIT + license_family: MIT + md5: 92ed62436b625154323d40d5f2f11dd7 + name: libxcb + run_exports: + weak: + - libxcb >=1.17.0,<2.0a0 + sha256: 666c0c431b23c6cec6e492840b176dde533d48b7e6fb8883f5071223433776aa + size: 395888 + subdir: linux-64 + timestamp: 1727278577118 + version: 1.17.0 + fn: libxcb-1.17.0-h8a09558_0.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libxcb-1.17.0-h8a09558_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h4f16b4b_0 + build_number: 0 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - libxcb >=1.17.0,<2.0a0 + license: MIT + license_family: MIT + md5: db038ce880f100acc74dba10302b5630 + name: xorg-libx11 + run_exports: + weak: + - xorg-libx11 >=1.8.12,<2.0a0 + sha256: 51909270b1a6c5474ed3978628b341b4d4472cd22610e5f22b506855a5e20f67 + size: 835896 + subdir: linux-64 + timestamp: 1741901112627 + version: 1.8.12 + fn: xorg-libx11-1.8.12-h4f16b4b_0.conda + url: https://conda.anaconda.org/conda-forge/linux-64/xorg-libx11-1.8.12-h4f16b4b_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hb03c661_1 + build_number: 1 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: MIT + license_family: MIT + md5: b2895afaf55bf96a8c8282a2e47a5de0 + name: xorg-libxau + run_exports: + weak: + - xorg-libxau >=1.0.12,<2.0a0 + sha256: 6bc6ab7a90a5d8ac94c7e300cc10beb0500eeba4b99822768ca2f2ef356f731b + size: 15321 + subdir: linux-64 + timestamp: 1762976464266 + version: 1.0.12 + fn: xorg-libxau-1.0.12-hb03c661_1.conda + url: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxau-1.0.12-hb03c661_1.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hb9d3cd8_0 + build_number: 0 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - xorg-libx11 >=1.8.10,<2.0a0 + license: MIT + license_family: MIT + md5: febbab7d15033c913d53c7a2c102309d + name: xorg-libxext + run_exports: + weak: + - xorg-libxext >=1.3.6,<2.0a0 + sha256: da5dc921c017c05f38a38bd75245017463104457b63a1ce633ed41f214159c14 + size: 50060 + subdir: linux-64 + timestamp: 1727752228921 + version: 1.3.6 + fn: xorg-libxext-1.3.6-hb9d3cd8_0.conda + url: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxext-1.3.6-hb9d3cd8_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hb03c661_0 + build_number: 0 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - xorg-libx11 >=1.8.12,<2.0a0 + license: MIT + license_family: MIT + md5: ba231da7fccf9ea1e768caf5c7099b84 + name: xorg-libxfixes + run_exports: + weak: + - xorg-libxfixes >=6.0.2,<7.0a0 + sha256: 83c4c99d60b8784a611351220452a0a85b080668188dce5dfa394b723d7b64f4 + size: 20071 + subdir: linux-64 + timestamp: 1759282564045 + version: 6.0.2 + fn: xorg-libxfixes-6.0.2-hb03c661_0.conda + url: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxfixes-6.0.2-hb03c661_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hb9d3cd8_0 + build_number: 0 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - xorg-libx11 >=1.8.10,<2.0a0 + - xorg-libxext >=1.3.6,<2.0a0 + - xorg-libxfixes >=6.0.1,<7.0a0 + license: MIT + license_family: MIT + md5: 17dcc85db3c7886650b8908b183d6876 + name: xorg-libxi + run_exports: + weak: + - xorg-libxi >=1.8.2,<2.0a0 + sha256: 1a724b47d98d7880f26da40e45f01728e7638e6ec69f35a3e11f92acd05f9e7a + size: 47179 + subdir: linux-64 + timestamp: 1727799254088 + version: 1.8.2 + fn: xorg-libxi-1.8.2-hb9d3cd8_0.conda + url: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxi-1.8.2-hb9d3cd8_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: ha4b6fd6_2 + build_number: 2 + depends: + - __glibc >=2.17,<3.0.a0 + - libglvnd 1.7.0 ha4b6fd6_2 + license: LicenseRef-libglvnd + md5: 7df50d44d4a14d6c31a2c54f2cd92157 + name: libopengl + run_exports: {} + sha256: 215086c108d80349e96051ad14131b751d17af3ed2cb5a34edd62fa89bfe8ead + size: 50757 + subdir: linux-64 + timestamp: 1731330993524 + version: 1.7.0 + fn: libopengl-1.7.0-ha4b6fd6_2.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libopengl-1.7.0-ha4b6fd6_2.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: ha4b6fd6_2 + build_number: 2 + depends: + - __glibc >=2.17,<3.0.a0 + license: LicenseRef-libglvnd + md5: 434ca7e50e40f4918ab701e3facd59a0 + name: libglvnd + run_exports: {} + sha256: 1175f8a7a0c68b7f81962699751bb6574e6f07db4c9f72825f978e3016f46850 + size: 132463 + subdir: linux-64 + timestamp: 1731330968309 + version: 1.7.0 + fn: libglvnd-1.7.0-ha4b6fd6_2.conda + url: https://conda.anaconda.org/conda-forge/linux-64/libglvnd-1.7.0-ha4b6fd6_2.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hb9d3cd8_1002 + build_number: 1002 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + license: MIT + license_family: MIT + md5: b3c17d95b5a10c6e64a21fa17573e70e + name: pthread-stubs + run_exports: {} + sha256: 9c88f8c64590e9567c6c80823f0328e58d3b1efb0e1c539c0315ceca764e0973 + size: 8252 + subdir: linux-64 + timestamp: 1726802366959 + version: '0.4' + fn: pthread-stubs-0.4-hb9d3cd8_1002.conda + url: https://conda.anaconda.org/conda-forge/linux-64/pthread-stubs-0.4-hb9d3cd8_1002.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hb03c661_1 + build_number: 1 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: MIT + license_family: MIT + md5: 1dafce8548e38671bea82e3f5c6ce22f + name: xorg-libxdmcp + run_exports: + weak: + - xorg-libxdmcp >=1.1.5,<2.0a0 + sha256: 25d255fb2eef929d21ff660a0c687d38a6d2ccfbcbf0cc6aa738b12af6e9d142 + size: 20591 + subdir: linux-64 + timestamp: 1762976546182 + version: 1.1.5 + fn: xorg-libxdmcp-1.1.5-hb03c661_1.conda + url: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxdmcp-1.1.5-hb03c661_1.conda + channel: https://conda.anaconda.org/conda-forge/ + run: + depends: + - spec: libgcc >=14 + from: build + run_export: gcc_linux-64 + - spec: libstdcxx >=14 + from: build + run_export: gxx_linux-64 + - spec: libgcc >=14 + from: build + run_export: gxx_linux-64 + - spec: __glibc >=2.17,<3.0.a0 + from: build + run_export: sysroot_linux-64 + - spec: _openmp_mutex >=4.5 + from: host + run_export: libgomp + - spec: libjpeg-turbo >=3.1.2,<4.0a0 + from: host + run_export: libjpeg-turbo + - spec: libzlib >=1.3.1,<2.0a0 + from: host + run_export: zlib + - spec: lcms2 >=2.18,<3.0a0 + from: host + run_export: lcms2 + - spec: jasper >=4.2.8,<5.0a0 + from: host + run_export: jasper + constraints: [] + run_exports: + weak: + - libraw >=0.21.5,<0.22.0a0 +finalized_sources: +- url: https://github.com/LibRaw/LibRaw/archive/0.21.5.tar.gz + sha256: 4b7f183a68f6e46e579e80ba32ab121687e75bd30a2e5566f34c36a6bcba1679 + target_directory: libraw +- url: https://github.com/LibRaw/LibRaw-cmake/archive/eb98e4325aef2ce85d2eb031c2ff18640ca616d3.tar.gz + sha256: 3cd218bf6d1254de86e27269541277fbfc5bae57a9002ce0b46fbe2a97088b43 + target_directory: cmake +system_tools: + rattler-build: 0.55.1 +extra_meta: + flow_run_id: azure_20260114.2.1 + remote_url: https://github.com/conda-forge/libraw-feedstock + sha: 87c5f4bbb6f27c44a84801be268393a694971b4b diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/variant_config.yaml b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/variant_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fb29150bfc12eaad5984ded8e718f9f4b96a6d57 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/recipe/variant_config.yaml @@ -0,0 +1,13 @@ +c_compiler: gcc +c_compiler_version: '14' +c_stdlib: sysroot +c_stdlib_version: '2.17' +channel_sources: conda-forge +channel_targets: conda-forge main +cxx_compiler: gxx +cxx_compiler_version: '14' +jasper: '4' +lcms2: '2' +libjpeg_turbo: '3' +target_platform: linux-64 +zlib: '1' diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/repodata_record.json b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..7bb8c969bffe1acd410b196b470d7dbb3e4c133c --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/repodata_record.json @@ -0,0 +1,28 @@ +{ + "name": "libraw", + "version": "0.21.5", + "build": "h074291d_0", + "build_number": 0, + "channel": "https://conda.anaconda.org/conda-forge/linux-64", + "subdir": "linux-64", + "fn": "libraw-0.21.5-h074291d_0.conda", + "md5": "c307c91b10217c31fc9d8e18cd58dc64", + "url": "https://conda.anaconda.org/conda-forge/linux-64/libraw-0.21.5-h074291d_0.conda", + "sha256": "7b11ab45e471ba77eab1a21872be3dce8cc81edc2500cd782a6ff49816bce6d4", + "arch": "x86_64", + "platform": "linux", + "depends": [ + "libgcc >=14", + "libstdcxx >=14", + "__glibc >=2.17,<3.0.a0", + "_openmp_mutex >=4.5", + "libjpeg-turbo >=3.1.2,<4.0a0", + "libzlib >=1.3.1,<2.0a0", + "lcms2 >=2.18,<3.0a0", + "jasper >=4.2.8,<5.0a0" + ], + "constrains": [], + "license": "LGPL-2.1-only", + "timestamp": 1768379154000, + "size": 705016 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/run_exports.json b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/run_exports.json new file mode 100644 index 0000000000000000000000000000000000000000..b81788159722a43f25580ed542f0f7401c040236 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/run_exports.json @@ -0,0 +1,5 @@ +{ + "weak": [ + "libraw >=0.21.5,<0.22.0a0" + ] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/tests/tests.yaml b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/tests/tests.yaml new file mode 100644 index 0000000000000000000000000000000000000000..28f55a99ed343089a573d98c52384aea8aa20727 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/info/tests/tests.yaml @@ -0,0 +1,8 @@ +- script: + content: |- + curl https://www.rawsamples.ch/raws/nikon/d1/RAW_NIKON_D1.NEF -o RAW_NIKON_D1.NEF + raw-identify -u RAW_NIKON_D1.NEF + simple_dcraw -v -T RAW_NIKON_D1.NEF + requirements: + run: + - curl diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/lib/pkgconfig/libraw.pc b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/lib/pkgconfig/libraw.pc new file mode 100644 index 0000000000000000000000000000000000000000..d09cf35bc5671cc93ffd6c31bb79cc54c4d57a62 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/lib/pkgconfig/libraw.pc @@ -0,0 +1,12 @@ +prefix=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_libraw_1768379154/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: libraw +Description: Raw image decoder library (non-thread-safe) +Requires: lcms2 +Version: 0.21.5 +Libs: -L${libdir} -lraw -lstdc++ -fopenmp +Libs.private: -ljasper -ljpeg +Cflags: -I${includedir}/libraw -I${includedir} diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/lib/pkgconfig/libraw_r.pc b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/lib/pkgconfig/libraw_r.pc new file mode 100644 index 0000000000000000000000000000000000000000..b37c757ea7ae433ea5c135c05827fe7b58a9a4d9 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/lib/pkgconfig/libraw_r.pc @@ -0,0 +1,12 @@ +prefix=/home/conda/feedstock_root/build_artifacts/bld/rattler-build_libraw_1768379154/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: libraw +Description: Raw image decoder library (thread-safe) +Requires: lcms2 +Version: 0.21.5 +Libs: -L${libdir} -lraw_r -lstdc++ -fopenmp +Libs.private: -ljasper -ljpeg +Cflags: -I${includedir}/libraw -I${includedir} diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/share/doc/libraw/COPYRIGHT b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/share/doc/libraw/COPYRIGHT new file mode 100644 index 0000000000000000000000000000000000000000..89e8bc52830d03aeaeb509a501b795a0e787a0c1 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/share/doc/libraw/COPYRIGHT @@ -0,0 +1,27 @@ + ** LibRaw: Raw images processing library ** + +Copyright (C) 2008-2021 LibRaw LLC (http://www.libraw.org, info@libraw.org) + +LibRaw is free software; you can redistribute it and/or modify +it under the terms of the one of two licenses as you choose: + +1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 + (See file LICENSE.LGPL provided in LibRaw distribution archive for details). + +2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 + (See file LICENSE.CDDL provided in LibRaw distribution archive for details). + +LibRaw uses code from dcraw.c -- Dave Coffin's raw photo decoder, +dcraw.c is copyright 1997-2018 by Dave Coffin, dcoffin a cybercom o net. +LibRaw do not use RESTRICTED code from dcraw.c + +LibRaw uses DCB demosaic and FBDD denoise licensed under BSD-like 3-clause license +DCB and FBDD are Copyright (C) 2010, Jacek Gozdz (cuniek@kft.umcs.lublin.pl) + +LibRaw uses X3F library to unpack Foveon Files, licensed BSD-style license +Copyright (c) 2010, Roland Karlsson (roland@proxel.se) +All rights reserved. + +LibRaw uses pieces of code from Adobe DNG SDK 1.4, +Copyright (c) 2005 Adobe Systems Incorporated, licensed under MIT license + diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/share/doc/libraw/Changelog.txt b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/share/doc/libraw/Changelog.txt new file mode 100644 index 0000000000000000000000000000000000000000..c95d1ac49cb8fd8b829bfbd2e770691ef7ae4f98 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/share/doc/libraw/Changelog.txt @@ -0,0 +1,2816 @@ +2025-12-24 Alex Tutubalin + + LibRaw 0.21.5-Release + + This is the last release in 0.21-branch + + * Accurate exception handling in fuji compressed decoder/openmp case + * Update libraw_types.h to fix calling C++ files in external C/Swift + * Cannon AFData: read/data size fix and check AFInfo2/3 data against tag size + +2025-04-22 Alex Tutubalin + * The CVE numbers arrived after the 0.21.4 release: + CVE-2025-43961, CVE-2025-43962, CVE-2025-43963, CVE-2025-43964 + +2025-04-14 Alex Tutubalin + + LibRaw 0.21.4-Release + + * It's just time to mark all the changes made with tag + +2025-02-07 Alex Tutubalin + + * Prevent out-of-buffer access in phase_one_correct() + +2025-02-05 Alex Tutubalin + + * Prevent one-off read in Fuji WB table parsing + * Prevent one-off read in phase_one_correct() + +2024-09-18 Alex Tutubalin + + LibRaw 0.21.3-Release + * new compile-time define LIBRAW_CALLOC_RAWSTORE + If defined: calloc() will be used for all big buffer + allocations to prevent uninitialized heap data leak + + * Small allocations: calloc() instead of malloc() to prevent + uninitialized heap data leak + + * Support for 4-component JPEG-compressed DNG files + + * CR3-Qstep table: avoid wrong 64-bit code generation + + * Fixed several bugs related to specially-crafted files + processing (thanks to OSS-Fuzz project) + +2023-12-19 Alex Tutubalin + + LibRaw 0.21.2-Release + + * New compile-defined limit LIBRAW_MAX_PROFILE_SIZE_MB: + limits allocation/read size for embedded color profile (default: 256Mb) + + * Embedded color profile allocation/read size: limited by input file size. + + * Multiple fixes (mostly inspired by oss-fuzz) to improve library stability and/or input checks. + + * raw-identify: use fallback if PATH_MAX not available + + * Disabled color conversion for Canon 16-bit thumbnails + + * docs/changelog: explained the case when no thumbnail is found in specific file + + * swapXX renamed to libraw_swapXX to avoid name conflict + + * better striped thumbnails handling + + +2023-01-05 Alex Tutubalin + LibRaw 0.21.1-Release + * fixed typo in panasonic metadata parser + +2022-12-18 Alex Tutubalin + LibRaw 0.21-Release + + * Multiple fixes inspired by oss-fuzz project + +2022-07-01 Alex Tutubalin + + LibRaw 0.21-Beta1 + + == Camera format support == + * Phase One/Leaf IIQ-S v2 support + * Canon CR3 filmrolls + * Canon CRM (movie) files + * Tiled bit-packed (and 16-bit unpacked) DNGs + * (non-standard) Deflate-compressed integer DNG files are allowed + +== Camera support == + + * Canon EOS R3, R7 and R10 + * Fujifilm X-H2S, X-T30 II + * OM System OM-1 + * Leica M11 + * Sony A7-IV (ILCE-7M4) + * DJI Mavic 3 + * Nikon Z9: standard compression formats only + + == Multiple (resolution) thumbnails support == + + * New imgdata.thumbs_list data item with data fields: + + int thumbcount: thumbnail count + libraw_thumbnail_item_t thumblist[LIBRAW_THUMBNAIL_MAXCOUNT]: list of thumbnails + + libraw_thumbnail_item_t fields: + + enum LibRaw_internal_thumbnail_formats tformat: internal thumbnail format + (this is not PPM/JPEG, but internal type related to thumbnail reading/unpacking method) + + ushort twidth, theight: thumbnail image size. + + ushort tflip: image rotation (see notes below) + + unsigned tlength: on-disk data size (not uncompressed for compressed formats) + + unsigned tmisc: bit depth and channel count: (color << 5) | bitsperpixel + + INT64 toffset: Thumbnail data offset in file + + Notes: + - Only TIFF-based and CR3 files are parsed for thumbnail list, other formats will have + thumbcount = 1. + + - If no thumbnails are found in file: thumbcount will be set to 1 and + thumblist[0] will be initialized with data from thumbnail fields, + so LibRaw::unpack_thumb_ex(0) will do the same as LibRaw::unpack_thumb() + + - Thumbnail image size may be unknown (not recorded in metadata), in this case twidth and theight are zero. + Usually small(er) thumbnails will always have twidth/theight filled, while largest one may have these fields set to zero. + + - Thumbnail rotation (tflip) is filled only for TIFF-based RAWs (if Orientation tag is not present in IFD, default zero value is used) + For non-tiff images, tflip is initialized to 0xffff (not known...) + + - There is no code to select thumbnail based on some criteria (e.g. minimal resolution), it is left to user to implement such a criteria, if needed + (see unpack_thumb_ex() call below) + + - If you want to get largest possible thumbnail: just use old unpack_thumb() call to get it. + + * new API call: LibRaw::unpack_thumb_ex(int i): + Unpacks i-th thumbnail if it exists into imgdata.thumbnail structure + i should be non-zero and less then imgdata.thumbs_list.thumbcount. + + * samples/simple_dcraw.cpp: new -E command line switch to extract all thumbnails from input file(s) + + == (Experimental) RawSpeed "version 3" (develop branch) support. == + + Build with -DUSE_RAWSPEED3, see details in RawSpeed3/README.md + + LibRaw::capabilities will set bit LIBRAW_CAPS_RAWSPEED3 if compiled w/ + RawSpeed-v3 support + + If file was processed (or tried to process) via RawSpeed-v3, these bits + are raised in imgdata.process_warnings: + LIBRAW_WARN_RAWSPEED3_PROCESSED - processed via RawSpeed v3 + LIBRAW_WARN_RAWSPEED3_PROBLEM - not processed (due to exception in RawSpeed library) + LIBRAW_WARN_RAWSPEED3_UNSUPPORTED - unsupported file + LIBRAW_WARN_RAWSPEED3_NOTLISTED - file not listed in cameras.xml data + + RawSpeed-v3 support is controlled via libraw_decoder_info.t->flags + (LIBRAW_DECODER_TRYRAWSPEED3 bit). + The bit is set for: + - lossless jpeg decoder + - Canon sRAW decoder + - lossless compressed and packed-compressed DNG decoders + - Pentax decoder + - Nikon (compressed) decoder + - Phase One Compressed and Hasselblad/Compressed decoders + - bitpacked decoder + - Panasonic (old 12-bit compression) decoder + - Olympus decoder + - Sony ARW (v1 and v2) decoders + - Samsung (version 1) decoder + + * (Experimental) Fine control of RawSpeed version selection/use. + To enable, build LibRaw with -DUSE_RAWSPEED_BITS + LibRaw::capabilities will set bit LIBRAW_CAPS_RAWSPEED_BITS if compiled + with this flag. + If enabled: + imgdata.rawparams.use_rawspeed becomes bit-field (instead of 0/1 off/on) + with bits: + LIBRAW_RAWSPEEDV1_USE - use RawSpeed Version 1 (if compiled with) + LIBRAW_RAWSPEEDV1_FAILONUNKNOWN - do not process unknown files + (not listed in RawSpeed v1 camera definitions file) + LIBRAW_RAWSPEEDV1_IGNOREERRORS - ignore mirror decoding errors (out of range data,etc) + + LIBRAW_RAWSPEEDV3_USE - Use RawSpeed Version 3 (if compiled with) + LIBRAW_RAWSPEEDV3_FAILONUNKNOWN - do not process unknown files + LIBRAW_RAWSPEEDV3_IGNOREERRORS - ignore minor decoding errors + + == Misc changes/improvements == + * New compile time define LIBRAW_OWN_SWAB + to use on platforms without swab() in C/C++ runtime + + * New imgdata.rawparams.options bit: LIBRAW_RAWOPTIONS_CANON_IGNORE_MAKERNOTES_ROTATION + If set: image orientation is set based on TIFF/IFD0:Orientation tag, + makernotes orientation data is ignored + + * Nikon makernotes: read NEFCompression tag for HE/HE* files + + * Nikon orientation tag: more fixed offsets for known cameras + + * Adobe DNG SDK 1.6 support (meaning, just an additional patch for GPR SDK) + + * removed LibRaw::memerr(), memory allocation failures are already handled + in LibRaw_memmgr::*alloc w/ exception thrown + + * removed memory error callback, out-of-memory error should be handled via + returned error code check, all related parameters (e.g. LibRaw constructor + option to not set such callback) is also removed + + * imgdata.params.adjust_maximum_thr is settable via C-API libraw_set_adjust_maximum_thr(..) + + * New rawoptions/processing flags for DNG processing if compiled + with Adobe DNG SDK: + LIBRAW_RAWOPTIONS_DNG_STAGE2_IFPRESENT,LIBRAW_RAWOPTIONS_DNG_STAGE3_IFPRESENT + If these flag(s) are set: Stage2/Stage3 processing will be performed + only if OpcodeList2/OpcodeList3 tags are present in the input DNG file + Old (hard) flags (LIBRAW_RAWOPTIONS_DNG_STAGE2 and + LIBRAW_RAWOPTIONS_DNG_STAGE3) are not removed and will force Stage2/3 + processing if set (regardless of input file tags) + + * New imgdata.rawparams.options bit: LIBRAW_RAWOPTIONS_DNG_ADD_MASKS + If set: DNG Transparency Masks will be extracted (if selected via shot_select) + + * New decoder flag: LIBRAW_DECODER_UNSUPPORTED_FORMAT + + == Bugs fixed == + + * Fixed possible out-of-buffer read in Nikon orientation tag parser + + * Windows datastream: fixed logic errors (not showing up in real life) + + * Out-of-range read-only array access in postprocessing if output_color is set to 0 (raw color) + + * Minolta Z2 was not recognized correctly on 32-bit systems + + * Fixed possible buffer overflow in Kodak C330 decoder + + * dcraw_process(): check for buffer allocation results to avoid NULL deref + +2021-10-11 Alex Tutubalin + * Camera support: + Apple iPhone 13 Pro + GoPro HERO10 (if compiled w/ USE_GPR_SDK) + Ricoh GR III + Sony Xperia 1 III + + * Fuji RAF files: XMP block extraction + + * Fixed a typo in LIBRAW_OPTIONS_* flag names + (was LIBRAW_OPIONS, old flags names not removed due to compatibility) + + * samples/raw-identify.cpp: -v flag documented in usage print. + +2021-09-14 Alex Tutubalin + * Camera support: + Fujifilm GFX 50S II + Nikon Z fc + Sony A7R-IIIA (ILCE-7RM3A), A7R-IVA (ILCE-7RM4A) + + * API/datastruct Changes: + - imgdata.params.shot_select moved to imgdata.rawparams.shot_select + (because this is decode-time option, not postprocessing option) + + - libraw_open_bayer(...) added to C-API + + - imgdata.makernotes.canon: separate SensorLeftBorder,SensorTopBorder.... + (and many other datafields) are united in libraw_area_t (rectangle) + groups for crop areas and optical black areas. + + * src/libraw_cxx.cpp completely removed from source tree to not confuse users. + (also all mentions are removed from Makefiles) + + * Better Olympus makernotes parsing: LiveND mode, Panorama mode tags. + + * clang-cl compatibility: + - defines _MSC_VER, but _forceinline is not supported + - warnings eliminated in Windows buffered datastream + + * Canon/12-bit files: adjust color.linear_max and makernotes.canon values + to match data range. + +2021-08-04 Alex Tutubalin + * Camera support: + Sony ZV-E10 + * DNG/Floating point: additional metadata check to refuse ambiguous/corrupted files. + * DNG/Floating point: correct handling of striped files (never seen in wild) + * Rawspeed support: disallow Nikon D6/Compressed processing + * Bug fixed: raw_inset_crops[] ctop/cheight was not adjusted right if vendor-specified + ctop equals to 1. + +2021-07-20 Alex Tutubalin + * Camera support: + Olympus E-P7 + +2021-07-08 Alex Tutubalin + * Camera support: + Panasonic GH5 Mark II + Pentax K3 Mark III + several phones w/ DNG files (checked) + + * Camera format support: Panasonic v6/12 bit + * Compile-time raw size limits implemented: + LIBRAW_MAX_NONDNG_RAW_FILE_SIZE - max file size for non-DNG files (default: 2GB - 1 byte) + LIBRAW_MAX_DNG_RAW_FILE_SIZE - max DNG file size limit (4GB-1 if compiled w/ DNG SDK, 2GB-1 otherwise) + + * ACES output: color conversion changed to provide D65 white point + + * Fix for Canon 5D Mark II/sRAW1 incorrect camera provided crop + +2021-05-07 Alex Tutubalin + * Camera support: + Fujifilm GFX 100S, X-E4: improved color data + Canon EOS M50 Mark II was supported but not listed in camera list + DJI Mavic Air 2S + GOPRO Hero9 + * Support for RaspberryPi HQ camera (if compiled w/ USE_6BY9RPI) + * Improved support for RPi V1/V2 cameras: + - white balance data extraction + - color matrix extracted to imgdata.color.cmatrix to use with + use_camera_matrix. + - full-size thumbnail/preview support for JPEG+RAW files (raspistill -r) + * Fuji GFX100/GFX100S: PixelShift metadata extraction. + * RawSpeed (master): fixed bug in old Samsung/compressed decoder, + apply this patch to RawSpeed: RawSpeed/rawspeed.samsung-decoder.patch + * DCI-P3 and Rec 2020 output colorspaces + * Eliminated multiple signed/unsigned mismatch warnings (reported by gcc11) + * fixed possible 1-byte stack underrun while handling text tags with zero length + * XMP block size in CR3 files limited to 1MB + * Preview block size in CR3 files limited to 100MB + * Fixed wrong handling of linear DNG files created from Pentax out-of-camera + DNGs + +2021-02-18 Alex Tutubalin + * Improved Phase One Compressed defects masking, thanks to Alexey Danilchenko + * Sony ILCE-1/Lossless compressed support + +2021-02-16 Alex Tutubalin + * Additional fields in libraw_internal_data.unpacker_data: + - INT64: exif_offset: base offset of 1st EXIF IFD in file + - INT64: ifd0_offset: base offset of 1st TIFF IFD (IFD0) in file + - unsigned cr3_exif_length, cr3_ifd0_lenght : CR3-specific length of + exif and ifd0 sections. + +2021-02-08 Alex Tutubalin + * CRX (CR3) decoder: fixed typo in constant; this does not affect any + known still photo (CR3) sample(s), but allows to use the decoder with + some video (CRM) files. + + * Imported user-contributed improvements to OpenMP postprocessing + (AHD and X-Trans demosaic) + + * Bugfix: overwrite (wrong) TIFF/Orientation tag value with Metadata/Camera Orientation + value for EOS 40D only. + +2021-02-04 Alex Tutubalin + * imgdata.sizes.raw_inset_crop rearranged: + now it is imgdata.sizes.raw_inset_crops[2]: + - item at [0] is the same as imgdatra.sizes.raw_inset_crop in previous + versions + - item at [1] is 'user crop', in particular: + -- set by DNG DefaultUserCrop tag + -- or set via raw aspect ratio tags (e.g. 16:9 aspect on Fujifilm cameras) + raw_inset_crops[1] is filled only if aspect ratio tags provides different + aspect ratio compared to raw_inset_crops[0]. + + There are no flags to check if raw_inset_crops[Nth] is filled; to see if it is filled check + the values of: + ctop/cleft < 0xffff (0xffff => standard values if not initialized) + ctop+cheight <= sizes.raw_height + cleft+cwidth <= sizes.raw_width + + Note: raw_inset_crops may be fooled by metadata (makernotes), use some correctness check before use. + + * LIBRAW_RAWOPTIONS_USE_DNG_DEFAULT_CROP processing flag removed, + DNG DefaultCrop* tags are parsed into raw_inset_crops[0] + + * new LibRaw call LibRaw::adjust_to_raw_inset_crop(unsigned mask, float maxcrop = 0.55f) + Promotes imgdata.sizes.raw_inset_crops[] values to + imgdata.sizes.*margin and imgdata.sizes.width/height fields + + mask: if bit 1 is set: prefer raw_inset_crops[1] + if bit 0 is set: prefer raw_inset_crops[0] + + maxcrop: limits crop to not less than (original width/height)*maxcrop; if raw_inset_crops[i] + data results in tighter crop, than this item is ignored. + + return value: index in raw_inset_crops[] used increased by one, so + 0: no changes made + 1: [0]th data used + 2: [1]th data used + + Note: this call SHOULD be used after LibRaw::unpack(), otherwise black level + calculation from masked area may be fooled resulting in wrong black levels. + +2021-01-21 Alex Tutubalin + + == LibRaw snapshot 202101 == + + = Camera format support: = + Lossy compressed CR3 files + Lossy compressed RAF files + Uncompressed floating point DNG files (16-24-32 bit) + Deflate compressed striped DNG files + XMP and HEIF-preview extraction from CR3 files + + = Camera support = + Apple iPhone 12 Max, iPhone 12 Max Pro + Canon EOS R5, EOS R6, EOS 850D, EOS-1D X Mark III (lossy compressed files) + FujiFilm X-S10 + Hasselblad CFV II 50C", + Leica M10-R, Q2 Monochrom, S3, SL2-S + Nikon Z 5, Z 6 II, Z 7 II + Olympus E-M10 Mark IV + Panasonic DC-G100 / G110, DC-S5 + Sony ILCE-7C (A7C), ILCE-7SM3 (A7S III) + Zeiss ZX1 + Plus multiple DNG-recording cameraphones/drones/etc. + + = Almost dropped camera support: = + Old/partially supported video/cinema cameras support is available only if + LibRaw is compiled with USE_OLD_VIDEOCAMS defined (this #define is + converted internally to LIBRAW_OLD_VIDEO_SUPPORT defined). + This affects: + Arri cameras + Canon C500 + RED Cine cameras + We plan to keep the support in LibRaw 0.21 (if compiled with define + mentioned above) and completely drop the support after 0.21. + If you're using LibRaw to decode RED Cine files, see LibRaw*datastreams + section below (in short: you'll need to use old fstream-based datastream + under Windows). + Cinema DNG files are not affected by this. + + = API/ABI changes = + + * Decoding parameters + imgdata.params is split into + imgdata.rawparams: parameters used for metadata/raw data decoding + imgdata.params: parameters used at postprocessing stage + + imgdata.params.raw_processing options are split into two sub-options sets + imgdata.rawparams.options: raw processing flags, useful for normal + operations + imgdata.rawparams.specials: special modes (e.g decoding only delta + pixels from Sony ARW) + + Old LIBRAW_PROCESSING_* flags are renamed to LIBRAW_RAWOPTIONS_* and + LIBRAW_RAWSPECIAL* + LIBRAW_PROCESSING_DP2Q_INTERPOLATE... flags are renamed to + LIBRAW_RAWSPECIAL_NODP2Q_INTERPOLATE with inverted meaning (with the + goal to have zero imgdata.rawparams.specials in normal use). + + * New processing flag LIBRAW_RAWOPTIONS_PROVIDE_NONSTANDARD_WB + If set (default is not), and when applicable, color.cam_mul[] and + color.WB_Coeffs/WBCT_Coeffs will contain WB settings for a + non-standard workflow. + Right now only Sony DSC-F828 is affected: camera-recorded white balance + can't be directly applied to raw data because WB is for RGB, while raw + data is RGBE. + + * New processing flag: LIBRAW_RAWOPTIONS_CAMERAWB_FALLBACK_TO_DAYLIGHT + If set (default is not), LibRaw::dcraw_process() will fallback to + daylight WB (excluding some very specific cases like Canon D30). + This is how LibRaw 0.19 (and older) works. + If not set: LibRaw::dcraw_process() will fallback to calculated auto WB if + camera WB is requested, but appropriate white balance was not found in + metadata. + + * Removed LIBRAW_PROCESSING_SKIP_MAKERNOTES processing flag: with new + Windows(-handle) datastreams metadata parsing performance is enough + to not skip makernotes parsing. + + * new output parameter: imgdata.params.output_flags and new + enum LibRaw_output_flags + Right now the only flag is implemented: LIBRAW_OUTPUT_FLAGS_PPMMETA + setting it will result into metadata written to PPM/PGM output file + + * LibRaw_*datastreams change and corresponding open_file() parameters change + LibRaw_file_datastream (based on iostreams) is moved under + #ifdef LIBRAW_USE_DEPRECATED_IOSTREAMS_DATASTREAM + Standard datastreams are: + LibRaw_bigfile_datastream (FILE* based) for POSIX systems + LibRaw_bigfile_buffered_datastream - for use with Win32 syscalls + API changes: + if LIBRAW_USE_DEPRECATED_IOSTREAMS_DATASTREAM is NOT defined, than + LibRaw::open_file() and similar calls drops the last INT64 max_buffered_sz + parameter which defines automatic selection between iostreams and + FILE* based datasteams. + + Note: LibRaw_bigfile_buffered_datastream does NOT implements + make_jas_stream() call, so RED Cine file decoding is not possible with + this datastream. Use deprecaded iostreams implementation instead. + + We plan to keep LIBRAW_USE_DEPRECATED_IOSTREAMS_DATASTREAM up to + LibRaw 0.21 and drop in 0.22. + + * Fuji decoder: + fuji_decode_loop/fuji_decode_strip parameters has changed; look into source + code for details if you're implementing your own fuji_decode_loop() + call in subclass to provide parallel fuji decoding. + + * Canon CR3 H265 (HEIF) preview limited support: + - new format value: LIBRAW_THUMBNAIL_H265 + - this thumbnail is NOT extracted by LibRaw::make_mem_thumb() yet; + + * LibRaw::capabilities + Two bits added: + LIBRAW_CAPS_ZLIB if compiled with USE_ZLIB + LIBRAW_CAPS_JPEG if compiled with USE_JPEG + + + * Windows datastreams: CreateFile2 is used if compiled for UWP. + + * API-datastruct: clarified behavior with use_camera_wb=1 setting. + + * identify(): restored the differentiation between fsize and flen. + + * New compile-time LIBRAW_FORCE_OPENMP to skip compiler version check + (if LibRaw user is absolutely sure that OpenMP is supported by compiler) + +2020-10-14 Alex Tutubalin + + * LibRaw 0.20.2 + Reverted 0.20.1 change: + - const buffer for open_buffer() and open_bayer() calls + Because of 0.20.0 ABI break + +2020-10-14 Alex Tutubalin + + * LibRaw 0.20.1 + * Improvements: + - exif callback is called on EXIF GPS and EXIF Interop IFDs + - open_bayer call documented + - Canon (ColorDatsSubver==32): parse Specular White instead of hardcoded value + * Fixes for normal files processing: + - Olympus XZ-1: do not provide linear_max (it is wrong in metadata) + - Nikon Z cameras: added space in camera list + - raw-identify: fixed wb-preset print + - Pentax Optio 33WR: maker index was incorrect + - dcraw_emu: corrected help line for -6 option. + - raw-identify: corrected range check for color matrices print + - use_camera_matrix option: fixed a bug introduced when making + compiler more happy. + + * Fixes for damaged/special crafted files processing: + - Fix for truncated CR3 files parsing + - DNG metadata merger: all color loops are limited to MIN(4,colors) + - Check for marings: should be less than raw image size + - Check for xmpdata present in Samsung Lens ID assignment + - Check for column range in leaf_hdr decoder + - Additional checks in Hasselblad model parser + - Fuji rotate: better limits check + - DNG files: limit tiff_samples + + * Not fixes, but makes ASAN/compilers/etc happy: + - corrected GPS EXIF output + - const buffer for open_buffer() and open_bayer() calls + + +2020-07-23 Alex Tutubalin + + * LibRaw 0.20 + +== Camera Format support == + Canon CR3 + GoPro (via GPR SDK) + Panasonic 14-bit + Fujifilm compressed/16bit + Rapsberry Pi RAW+JPEG format (if USE_6BY9RPI defined) + Foveon X3F support changed: it is supported only if USE_X3FTOOLS defined + at build (see below for 'Imported code policy changed') + +== Camera support (+59, 1131 total) == + Canon: PowerShot G5 X Mark II, G7 X Mark III, SX70 HS, + EOS R, EOS RP, EOS 90D, EOS 250D, EOS M6 Mark II, EOS M50, EOS M200 + EOS 1DX Mark III (lossless files only) + DJI Mavic Air, Osmo Action + FujiFilm GFX 100, X-A7, X-Pro3, X100V, X-T4 (uncompressed/lossless compressed only), X-T200 + GoPro Fusion, HERO5, HERO6, HERO7, HERO8 + Hasselblad L1D-20c, X1D II 50C + Leica D-LUX7, Q-P, Q2, V-LUX5, C-Lux / CAM-DC25, SL2, M10 Monochrom + Nikon D780, Z50, P950 + Olympus TG-6, E-M5 Mark III, E-PL10, E-M1 Mark III, + Panasonic DC-FZ1000 II, DC-G90, DC-S1, DC-S1R, DC-S1H, DC-TZ95 + PhaseOne IQ4 150MP + Ricoh GR III + Sony A7R IV, A9 II, ILCE-6100, ILCE-6600, RX0 II, RX100 VII + Zenit M + +also multiple smartphones (the tested ones are listed in LibRaw::cameraList) + +== Source code re-arranged == + * dcraw.c is not used in the generation and build processes + * dcraw_common.cpp and libraw_cxx.cpp are split into multiple code chunks + placed in separate subfolders (decoders/ for raw data decoders, + metadata/ for metadata parsers, etc) + * dcraw_common.cpp and libraw_cxx.cpp remain to preserve existing + build environments (these files are now just a bunch of #include directives). + * It is possible to build LibRaw + a)without postprocessing functions (dcraw_process() and called function) + b)without postprocessing and LibRaw::raw2image() call (and called function). + It may be useful to reduce library memory/code footprint. + See Makefile.devel.nopp and Makefile.devel.noppr2i for the list of source + files needed to build reduced/stripped library. + +== Normalized make/model == + +There is a huge number of identical cameras sold under different names, +depending on the market (e.g. multiple Panasonic or Canon models) +and even some identical cameras sold under different brands +(Panasonic -> Leica, Sony -> Hasselblad). + +To reduce clutter, a normalization mechanism has been implemented in LibRaw: + +In imgdata.idata: + char normalized_make[64]; - primary vendor name (e.g. Panasonic for + Leica re-branded cameras) + char normalized_model[64]; - primary camera model name + unsigned maker_index; - primary vendor name in indexed form (enum + LibRaw_cameramaker_index, LIBRAW_CAMERAMAKER_* constant). +These fields are always filled upon LibRaw::open_file()/open_buffer() calls. + +const char* LibRaw::cameramakeridx2maker(int index): converts maker_index +to normalized_make. + +We recommend that you use these normalized names in a variety of data tables +(color profiles, etc.) to reduce the number of duplicate entries. + +New vendor index values will be added strictly to the end of the +LibRaw_cameramaker_index table, ensuring that the numbers assigned to +vendors that are already known to LibRaw will not change. + +== DNG frame selection == + + DNG frames selection code re-worked: + - by default all frames w/ the NewSubfileType tag equal to 0 + (high-res image) are added to the list of available images (selection + performed via imgdata.params.shot_select field, as usual) + - the special case for Fuju SuperCCD (SamplesPerPixel == 2) works as + before: shot_select=1 will extract second sub-image. + - Additional flags to imgdata.params.raw_processing_options: + LIBRAW_PROCESSING_DNG_ADD_ENHANCED - will add Enhanced DNG frame + (NewSubfileType == 16) to the list of available frames + LIBRAW_PROCESSING_DNG_ADD_PREVIEWS - will add previews + (NewSubfileType == 1) to the list. + + - By default, DNG frames are not reordered and are available in same order + as in DNG (LibRaw traverses IFD/Sub-IFD trees in deep-first order). + To prioritize the largest image, set LIBRAW_PROCESSING_DNG_PREFER_LARGEST_IMAGE + bit in imgdata.params.raw_processing_options. + + - DNG Stage2/Stage3 processing via DNG SDK (request via flags in + raw_processing_options) + +== Imported code policy disclaimer == + + We've changed the policy regarding 3rd party code imported into LibRaw. + + We (like other authors of open-source RAW parsers) gladly import support + code for various RAW formats from other projects (if the license allows it). + This is done to expand camera support. + Unfortunately, not all imported code can tolerate truncated or otherwise + damaged raw files, as well as arbitrary conditions or arbitrary data; + not all authors handle rejecting unexpected input well. + + LibRaw is now widely used in various projects, including ImageMagick, which, + in turn, is often used on web sites to process any input images, including + arbitrary data from unknown users. + This opens up wide possibilities for exploiting the various vulnerabilities + present in the code borrowed from other projects into LibRaw. In order to + avoid such security risks, - the borrowed code will no longer compile + by default. + We are not able to support it in general case, and the authors refuse + to add code to reject unexpected input. + + Thus, if you use some kind of camera for which the support is disabled + by default, you need to recompile LibRaw for your specific case. + + Formats currently affected: + X3F (Foveon) file format. + Code is imported from Kalpanika X3F tools: https://github.com/Kalpanika/x3f + To turn the support on, define USE_X3FTOOLS + + Rapsberry Pi RAW+JPEG format. + Code is imported from https://github.com/6by9/dcraw/, + To turn the support on, define USE_6BY9RPI + Format support is indicated via LibRaw::capabilities() call with flags: + LIBRAW_CAPS_X3FTOOLS - Foveon support + LIBRAW_CAPS_RPI6BY9 - RPi RAW+JPEG support + +== GoPro .gpr format support == + GoPro format supported via open-source GPR SDK + See README.GoPro.txt for details. + +== Windows support/Windows unicode (wchar_t*) filenames support == + +* (old) LibRaw's WIN32 external define split into 3 defines to fine tune + compiler/api compatibility: + LIBRAW_WIN32_DLLDEFS - use to compile DLLs (__dllimport/__dllexport attributes) + LIBRAW_WIN32_UNICODEPATHS - indicates that runtime has calls/datatypes for wchar_t filenames + LIBRAW_WIN32_CALLS - use Win32 calls where appropriative (binary mode for files, LibRaw_windows_datastream, _snprintf instead of snprintf, etc). + + If the (old) WIN32 macro is defined at compile time, all three new defines are defined in libraw.h + If not, these defines are defined based on compiler version/libc++ defines + +* LibRaw::open_file(wchar_t*) is always compiled in under Windows, but + if LIBRAW_WIN32_UNICODEPATHS (see above) is not defined, this call will + return LIBRAW_NOT_IMPLEMENTED. + Use (LibRaw::capabilities() & LIBRAW_CAPS_UNICODEPATHS) on runtime + to check that this call was really implemented (or check for #ifdef LIBRAW_WIN32_UNICODEPATHS after #include ) + +== LibRaw*datastream simplified == + + * tempbuffer_open, subfile_open are not used, so removed from + LibRaw_abstract_datastream and derived classes. + + * jpeg_src() call implemented using ->read() call and own buffering + (16k buffer). + * buffering_off() call added. It should be used in derived classes + to switch from buffered reads to unbuffered. + +== minor/unsorted changes == + * new flag LIBRAW_WARN_DNGSDK_PROCESSED to indicate decoder used + * LibRaw::open() call, max_buf_size special meaning: + == 1 => open using bigfile_datastream + == 2 => open using file_datastream + * Add support for zlib during configure + * Fixed multiple problems found by OSS-Fuzz + * Lots of changes in imgdata.makernotes (hope someone will document it) + * DNG SDK could be used (if enabled) to unpack multi-image DNG files. + * DNG whitelevel calculated via BitsPerSample if not set via tags. + * DNG: support for LinearDNG w/ BlackLevelRepeat.. pattern + * Generic Arri camera format replaced w/ list of specific camera models in supported cameras list. + * new samples/rawtextdump sample: allows one to dump (small selection) of RAW data in text format. + * samples/raw-identify: + * +M/-M params (same as in dcraw_emu) + * -L parameter to get file list from a file + * -m paramerer to use mmap'ed IO. + * -t parameter for timing + * samples/dcraw_emu: fixed +M handling + * better support for Nikon Coolscan 16-bit NEF files. + * Visual Studio project files: re-generated to .vcxproj (Visual Studio 2019), different + intermediate folders for different sub-projects to allow 1-step rebuild. + * imgdata.makernotes...cameraspecific: removed the vendor name prefix from variables. + * Bayer images: ensure that even margins have the same COLOR() for both the active sensor area and the full sensor area. + * raw processing flag bit LIBRAW_PROCESSING_CHECK_DNG_ILLUMINANT inverted and renamed to + LIBRAW_PROCESSING_DONT_CHECK_DNG_ILLUMINANT. If not set, DNG illuminant will be checked. + * New libraw_decoder_t flags: + LIBRAW_DECODER_FLATDATA - in-file data could be used as is (if byte order matches), e.g. via mmap() + LIBRAW_DECODER_FLAT_BG2_SWAPPED - special flag for Sony ARQ: indicates R-G-G2-B channel + order in 4-color data + * Camera-recorded image crop data is parsed into imgdata.sizes.raw_inset_crop structure: + ctop,cleft,cwidth,cheight - crop size. + aspect - LibRawImageAspects enum (3to2, 4to3, etc) + * New define LIBRAW_NO_WINSOCK2 to not include winsock2.h on compile + + * New processing flag LIBRAW_PROCESSING_PROVIDE_NONSTANDARD_WB + If set (default is not), and when applicable, color.cam_mul[] and + color.WB_Coeffs/WBCT_Coeffs will contain WB settings for a non-standard + workflow. + Right now only Sony DSC-F828 is affected: camera-recorded white balance + can't be directly applied to raw data because WB is for RGB, while raw + data is RGBE. + + * New processing flag: LIBRAW_PROCESSING_CAMERAWB_FALLBACK_TO_DAYLIGHT + If set (default is not), LibRaw::dcraw_process() will fallback to + daylight WB (excluding some very specific cases like Canon D30). + This is how LibRaw 0.19 (and older) works. + If not set: LibRaw::dcraw_process() will fallback to calculated auto WB if + camera WB is requested, but appropriate white balance was not found in + metadata. + + * Google changes cherry-picked (thanks to Jamie Pinheiro) + * speedup: ppg interpolate: const loop invariant + + * Bugs fixed + -Fixed several UBs found by OSS Fuzz + -Fixed several problems found by other fuzzers. + - Thumbnail size range check (CVE-2020-15503) + Thanks to Jennifer Gehrke of Recurity Labs GmbH for problem report. + - fixed possible overflows in canon and sigma makernotes parsers + - fixed possible buffer overrun in crx (cr3) decoder + - fixed memory leak in crx decoder (if compiled with LIBRAW_NO_CR3_MEMPOOL) + - fixed possible overrun in Sony SRF and SR2 metadata parsers + + * Fixed typo in longitude (member of parsed GPS structure), update required for code that uses it. + + +2019-03-05 Alex Tutubalin + * Camera support + Canon A560 (CHDK hack) + FujiFilm X-T30 + Nikon Coolpix A1000 + Olympus E-M1X + Sony ILCE-6400 + Several dng files from phones and drones was tested + and added to built-in camera list too. + + * Multiple names for same Panasonic cameras are processed via + aliaces mechanics, no multiple duplicate fields in adobe_coeffs() table + + * Better makernotes parsing for many cameras + + * Better parsing of makernotes embedded into DNG files created by + Adobe DNG Converter + + * New imgdata.params.raw_processing_options value: LIBRAW_PROCESSING_ZEROFILTERS_FOR_MONOCHROMETIFFS + - If this bit is set + - and TIFF file contains SamplesPerPixel == 1 + - and filters value was not guessed from metadata parsing + LibRaw will assume the file is monochrome, not bayer. + This option is needed for monochrome scan processing (Imacon X1 etc). + This option may broke old TIF-like RAW files processing (Kodak 760,etc) + use with care (it is better to let user choose). + +2018-12-12 Alex Tutubalin + * Camera support: + Canon: PowerShot A480 (CHDK hack), EOS 2000D, EOS 4000D + Eyedeas E1 + FujiFilm: GFX 50R, XF10, X-T3, X-T100, DBP680 + GITUP G3 DUO (16:9 mode only, use custom camera for 4:3) + Kodak PIXPRO AZ901 + Leica M10-D, M10-P + Nikon D3500, Z6, Z7, P1000 + Panasonic LX100M2 + Pentax K-1 II + Sony A7 III, HX95, HX99, RX100-VA, RX100-VI + + * Fixed long standing bug in remove_zeroes: first two rows/cols was unprocessed + * Better parsing for NEF files modified (damaged) by NikonTransfer + * Better parsing for floating point DNG black levels (into color.dnglevels.fblack and dng_fcblack[], similar + to color.black and color.cblack[] for other formats). + * More flexible limit for RAW decoding memory usage: + imgdata.params.max_raw_memory_mb (default is LIBRAW_MAX_ALLOC_MB_DEFAULT) + + * New flags for imgdata.params.raw_processing_options: + LIBRAW_PROCESSING_CHECK_DNG_ILLUMINANT - will check DNG illuminant field when selecting color matrix + (note: incompatibility with previous versions, so default is not set). + LIBRAW_PROCESSING_DNGSDK_ZEROCOPY - will not copy data from Adobe DNG SDK decoded buffer, but use it as is + + * Switched from auto_ptr to unique_ptr, to get back define LIBRAW_USE_AUTOPTR + + * dcraw_emu: it is now possible to create output filename in a more flexible manner, via -Z switch: + -Z - will output to stdout + -Z ext will output into inputfilename.ext + -Z .ext will output into inputfilename.inputext.ext + + +2018-11-22 Alex Tutubalin + * Finally: got Sinar 4shot sample, works fine now + * OpenMP critical sections for malloc/free; extra #ifdefs removed; bin/dcraw_dist could be built again using Makefile.devel + * additional checks in parse_phase_one() + * more checks on file offsets/tag len in parse_minolta + * more checks in parse_ciff + * Mempool check reworked + * Old Leaf (16bit/3color/TIFF) support + * Fix cameraWB->autoWB fallback + * Polaroid x530 channel swap; get metadata pointer for Foveon files + * Fixed Secunia Advisory SA86384 + - possible infinite loop in unpacked_load_raw() + - possible infinite loop in parse_rollei() + - possible infinite loop in parse_sinar_ia() + Credits: Laurent Delosieres, Secunia Research at Flexera + + * LibRaw 0.19.1-Release + +2018-06-28 Alex Tutubalin + * changed wrong fix for Canon D30 white balance + * fixed possible stack overrun while reading zero-sized strings + * fixed possible integer overflow + * LibRaw 0.19.0-Release + +2018-06-11 Alex Tutubalin + * Sony uncompressed/untiled DNGs: do not set bits-per-sample to 14 bit + * Do not change tiff_bps for DNG files + * Another possible stack overflow in kodak radc reader + * Secunia Advisory SA83507, credits Kasper Leigh Haabb, + Secunia Research at Flexera" + - parse_qt: possible integer overflow + - reject broken/crafted NOKIARAW files + * LibRaw 0.19-Beta6 + +2018-05-10 Alex Tutubalin + * Put rogue printf's behind #ifdef DCRAW_VERBOSE + * Exceptions was not caught in x3f_new_from_file resulting in x3f handle leak + * packed_load_raw(): EOF check on each row + * define LIBRAW_USE_CALLOC_INSTEAD_OF_MALLOC to use ::calloc instead of + ::malloc in LibRaw_mem_mgr malloc calls; + Note: realloc is not changed, so only partial fix + * Fixed possible div by zero in EOS D30 WB data parse + * U-suffix for filter-var manipulation consts + * restored static specifier for utf2char() lost in previous bugfix + * Fixed stack overrun in kodak_radc_load_raw + * Secunia Advisory SA83050: possible infinite loop in parse_minolta() + * LibRaw 0.19-Beta5 + +2018-05-03 Alex Tutubalin + * CVE-2018-10529 fixed: out of bounds read in X3F parser + * CVE-2018-10528 fixed: possible stack overrun in X3F parser + * LibRaw 0.19-Beta4 + +2018-04-24 Alex Tutubalin + * LibRaw 0.19-Beta3 + * fixed lot of bugs reported by ImageMagic/oss-fuzz + * fixed several bugs reported by Secunia team (adv 81800, + Credit: Laurent Delosieres, Secunia Research at Flexera) + +2018-03-22 Alex Tutubalin + * LibRaw 0.19-Beta2 + * Better handling of broken JPEG thumbnails + * Panasonic GH5S/G9-hires decoder, thanks to Alexey Danilchenko + Note: ABI has changed due to this patch, so shlib version increased + * Fujifilm X-A5/A20 metadata parsing fix + * New error code LIBRAW_TOO_BIG: image data size excess LIBRAW_MAX_ALLOC_MB + * winsock2 included before windows.h to make MinGW happy + +2018-02-23 Alex Tutubalin + + * LibRaw 0.19-Beta1 + + * 84 cameras added compared to 0.18 (1014 total): + Apple + iPhone 8(*), iPhone 8 plus, iPhone X + BlackMagic + URSA Mini 4k, URSA Mini 4.6k, URSA Mini Pro 4.6k + Canon CHDK hack + PowerShot A410, A540, D10, ELPH 130 IS, ELPH 160 IS, SD750, + SX100 IS,SX130 IS, SX160 IS, SX510 HS, SX10 IS, IXUS 900Ti + Canon + PowerShot G1 X Mark III, G9 X Mark II, EOS 6D Mark II, EOS 77D, + EOS 200D, EOS 800D, EOS M6, EOS M100 + Casio EX-ZR4100/5100 + DJI + Phantom4 Pro/Pro+, Zenmuse X5, Zenmuse X5R + FujiFilm + S6500fd, GFX 50S, X100f, X-A3, X-A5, X-A10, X-A20, X-E3, X-H1, X-T20 + GITUP GIT2P + Hasselblad + H6D-100c, A6D-100c + Huawei + P9 (EVA-L09/AL00), Honor6a, Honor9, Mate10 (BLA-L29) + Leica + CL, M10, TL2 + LG + V20 (F800K), VS995, + Nikon + D850, D5600, D7500, Coolpix B700 + Olympus + E-PL9, E-M10 Mark III, TG-5 + OnePlus + One, A3303, A5000 + Panasonic + DMC-FZ45, DMC-FZ72, DC-FZ80/82, DC-G9 (std. res mode only), DC-GF10/GF90, + DC-GH5, DC-GX9, DC-GX800/850/GF9, DMC-LX1, DC-ZS70 (DC-TZ90/91/92, DC-T93), + DC-TZ100/101/ZS100, DC-TZ200/ZS200 + PARROT + Bebop 2, Bebop Drone + Pentax KP + PhaseOne IQ3 100MP Trichromatic + Samsung + Galaxy Nexus, Galaxy S3, S6 (SM-G920F), S7, S7 Edge, S8 (SM-G950U), + Sony + A7R III, A9, DSC-RX0, DSC-RX10IV + Yi M1 + YUNEEC + CGO3, CGO3P + Xiaoyi YIAC3 (YI 4k) + + Note(*): for mobile phones with DNG format recording, only really tested cameras + are added to supported camera list. Really LibRaw should support any correct DNG. + + * No more built-in support for LibRaw demosaic packs (GPL2/GPL3). + We're unable to support this (very old code), so we'll be happy to transfer this + code to some maintainer who wish to work with it. + + In LibRaw 0.19 we provide extension API: user-settable callbacks to be called in + code points where demosaic pack code was called. + + - int callbacks.pre_identify_cb(void *) => to be called in LibRaw::open_datastream + before call to (standard) identify() function. If this call returns 1, this means + that RAW file is identified and all metadata fields are set, so no need to run + standard identify code. + - void callbacks.post_identify_cb(void*) => called just after identify(), but before + any cleanup code; + - dcraw_process() callbacks are called before dcraw_process phases (name speaks for itself): + pre_subtractblack_cb, pre_scalecolors_cb, pre_preinterpolate_cb, pre_interpolate_cb, + interpolate_bayer_cb, interpolate_xtrans_cb, post_interpolate_cb, pre_converttorgb_cb, + post_converttorgb_cb + + All these new callbacks are called with (this) as the only arg. + To continue LibRaw-demosaic-pack-GPLx support one need to subclass LibRaw, set needed + callbacks in (e.g.) constructor code, than these callbacks to be called + + * Better DNG parser: + - support for DefaultCrop Origin/Size tags (add LIBRAW_PROCESSING_USE_DNG_DEFAULT_CROP to raw_processing_options to enable) + - better parsing for nested DNG tags (use tag from RAW IFD, fallback to IFD0 if no tag in current IFD) + - DNG PreviewColorspace extracted into dng_levels.preview_colorspace + + * Metadata extraction: + - Better extraction of camera measured balance (LIBRAW_WBI_Auto and WBI_Measured), + this not the same as 'as shot' if some preset/manual tune is used. + - Extraction of camera custom balances (LIBRAW_WBI_CustomN) + - Nikon data compression tag extracted into makernotes.nikon.NEFCompression + - Hasselblad BaseISO and Gain extracted into makernotes.hasselblad + - Canon multishot params extracted into makernotes.canon.multishot + - lot of other vendor-specific makernotes data (see data structures definitions for details). + + * New LibRaw::open_bayer call allows to pass sensor dump w/o metadata directly to LibRaw: + virtual int open_bayer(unsigned char *data, unsigned datalen, + ushort _raw_width, ushort _raw_height, ushort _left_margin, ushort _top_margin, + ushort _right_margin, ushort _bottom_margin, + unsigned char procflags, unsigned char bayer_pattern, unsigned unused_bits, unsigned otherflags, + unsigned black_level); + Parameters: + data, datalen - buffer passed + width/height/margins - speaks for itself + procflags: + for 10-bit format: + 1: "4 pixels in 5 bytes" packing is used + 0: "6 pixels in 8 bytes" packing is used + for 16-bit format: + 1: Big-endian data + bayer_pattern: one of LIBRAW_OPENBAYER_RGGB,LIBRAW_OPENBAYER_BGGR, + LIBRAW_OPENBAYER_GRBG,LIBRAW_OPENBAYER_GBRG + unused_bits: count of upper zero bits + otherflags: + Bit 1 - filter (average neighbors) for pixels with values of zero + Bits 2-4 - the orientation of the image (0=do not rotate, 3=180, 5=90CCW, 6=90CW) + black_level: file black level (it also may be specified via imgdata.params) + + see samples/openbayer_sample.cpp for usage sample (note, this sample is 'sample only', suited for + Kodak KAI-0340 sensor, you'll need change open_bayer() params for your data). + + * Color data added/updated/fixed for many cameras + + * Correct data maximum for Fuji X-* cameras + + * Thumbnail processing: + - JPEG thumbnails: if compiled with libjpeg, color count is extracted into imgdata.thumbnail.tcolors + - PPM (bitmap) thumbnails: color count is set according to thumbnail IFD tag + - PPM16 thumbnails: if LIBRAW_PROCESSING_USE_PPM16_THUMBS set in raw_processing_options, than thumbnail will be extracted + as is, not converted to 8 bit. thumbnail.tformat is set to LIBRAW_THUMBNAIL_BITMAP16 in this case. + Untested, because it is hard to find RAWs with 16-bit bitmaps. + +== Compatibility fixes + + * struct tiff_tag renamed to libraw_tiff_tag + * pow64f renamed to libraw_pow64f + +== Bugs fixed: + + * COLOR(r,c) works correctly on X-Trans files + +== Security fixes: +Secunia #81000: +Credit: Laurent Delosieres, Secunia Research at Flexera + * leaf_hdr_load_raw: check for image pointer for demosaiced raw + * NOKIARAW parser: check image dimensions readed from file + * quicktake_100_load_raw: check width/height limits + +Secunia #79000: +Credit: Laurent Delosieres, Secunia Research at Flexera + * All legacy (RGB raw) image loaders checks for imgdata.image is not NULL + * kodak_radc_load_raw: check image size before processing + * legacy memory allocator: allocate max(widh,raw_width)*max(height,raw_height) + +Secunia #76000: + * Fixed fuji_width handling if file is neither fuji nor DNG + * Fixed xtrans interpolate for broken xtrans pattern + * Fixed panasonic decoder + * LibRaw 0.18.6 + +Other fixes: + * Checks for width+left_margin/height+top_margin not larger than 64k + * LIBRAW_MAX_ALLOC_MB define limits maximum image/raw_image allocation + (default is 2048 so 2Gb per array) + * LibRaw::read_shorts item count is now unsigned + * Fixed possible out of bound access in Kodak 65000 loader + * CVE-2017-14348: Fix for possible heap overrun in Canon makernotes parser + Credit: Henri Salo from Nixu Corporation + * Fix for CVE-2017-13735 + * CVE-2017-14265: Additional check for X-Trans CFA pattern data + * Fixed several errors (Secunia advisory SA75000) + * ACES colorspace output option included in dcraw_emu help page + * Avoided possible 32-bit overflows in Sony metadata parser + * Phase One flat field code called even for half-size + + +2016-12-27 Alex Tutubalin + * Licensing changes: + - there is no 'LibRaw Software License 27032010' licensing anymore (and all signed + agreements have expired) + - LibRaw is now dual-licensed: LGPL 2.1 or CDDL 1.0 + + * Camera support (+87): + Apple: iPad Pro, iPhone SE, iPhone 6s, iPhone 6 plus, iPhone 7, iPhone 7 plus + BlackMagic Micro Cinema Camera, URSA, URSA Mini + Canon PowerShot G5 X, PowerShot G7 X Mark II, PowerShot G9 X, + IXUS 160 (CHDK hack), EOS 5D Mark IV, EOS 80D, EOS 1300D, EOS M10, EOS M5, + EOS-1D X Mark II + Casio EX-ZR4000/5000 + DXO One, + FujiFilm X-Pro2, X70, X-E2S, X-T2 + Gione E7 + GITUP GIT2 + Google Pixel,Pixel XL + Hasselblad X1D, True Zoom + HTC MyTouch 4G, One (A9), One (M9), 10 + Huawei P9 + Leica M (Typ 262), M-D (Typ 262), S (Typ 007), SL (Typ 601), X-U (Typ 113), TL + LG G3, G4 + Meizy MX4 + Nikon D5, D500, D3400 + Olympus E-PL8, E-M10 Mark II, Pen F, SH-3, E-M1-II + Panasonic DMC-G8/80/81/85, DMC-GX80/85, DMC-TZ80/81/85/ZS60, DMC-TZ100/101/ZS100,DMC-LX9/10/15, FZ2000/FZ2500 + Pentax K-1, K-3 II, K-70 + PhaseOne IQ3 100MP + RaspberryPi Camera, Camera V2 + Ricoh GR II + Samsung Galaxy S7, S7 Edge + Sigma sd Quattro + Sony A7S II, ILCA-68 (A68),ILCE-6300,DSC-RX1R II,DSC-RX10III, DSC-RX100V,ILCA-99M2 (A99-II), a6500 + IMX214, IMX219, IMX230, IMX298-mipi 16mp, IMX219-mipi 8mp, Xperia L + PtGrey GRAS-50S5C + YUNEEC CGO4 + Xiaomi MI3, RedMi Note3 Pro + + * Floating point DNG support: + - new data fields: + imgdata.rawdata.float_image - bayer float data + imgdata.rawdata.float3_image - 3-component float data + imgdata.rawdata.float4_image - 4-component float data + imgdata.color.fmaximum - float data maximum (calculated from real data, + rounded to 1.0 if below 1.0) + - new raw processing flag + LIBRAW_PROCESSING_CONVERTFLOAT_TO_INT - converts float data to 16-bit + integer immediately after decoding with default parameters + - new API Calls: + int LibRaw::is_floating_point() returns non-zero if RAW file contains + floating point data + int LibRaw::have_fpdata() returns non-zero if rawdata.float*_image is not + null (so FP data has been unpacked but not converted to integrer, see below). + LibRaw::convertFloatToInt(float dmin=4096.f, float dmax=32767.f, float dtarget = 16383.f) + converts float/float3/float4_image to raw_image/color3/color4_image with or without scaling: + - if both real data maximum and metadata maximum are within the range ( >= dmin && <=dmax), float + data is just converted to integer + - if data is out of the range given above, values are scaled so real data maximum becomes dtarget + - if data was rescaled (normalized), scale multiplier is stored in imgdata.color.fnorm + + * LibRaw can be built with Adobe DNG SDK support to decode exotic DNG formats (e.g. 8 bit). + See README.DNGSDK.txt for details + + * New API calls + unsigned LibRaw::capabilities and C-API libraw_capabilities() + allows developers to determine LibRaw compile flags at runtime. + Returns ORed bit fields: + LIBRAW_CAPS_RAWSPEED - LibRaw was compiled with RawSpeed Support + LIBRAW_CAPS_DNGSDK - LibRaw was compiled with Adobe DNG SDK + LIBRAW_CAPS_DEMOSAICSGPL2, LIBRAW_CAPS_DEMOSAICSGPL3 - LibRaw was compiled with demosaic packs (GPL2/GPL3) + + * More metadata parsed: + - White balance coefficients stored in the raw file are extracted into: + int imgdata.color.WBCoeffs[256][4] - array indexed by EXIF lightsource type + for example, WBCoeffs[21][..] contains coefficients for D65 lightsource + float imgdata.color.WBCT_Coeffs[64][5] contains white balance data specified + for given color temperature: WBCT_Coeffs[i][0] contains temperature value, + and [1]..[4] are WB coefficients. + - DNG analog balance, per-channel black/white level, and forward matrix + - vendor specific metadata stored in vendor-specific data structures + + * new C-API calls: + void libraw_set_user_mul(libraw_data_t *lr,int index, float val); + void libraw_set_ca_correction(libraw_data_t *lr,int ca_correc, float ca_red, float ca_blue); + void libraw_set_cfalinenoise(libraw_data_t *lr,int cfaline, float linenoise); + void libraw_set_wf_debanding(libraw_data_t *lr, int wf_debanding, float wfd0, float wfd1, float wfd2, float wfd3); + void libraw_set_interpolation_passes(libraw_data_t *lr,int passes); + + * Existing API changes: + imgdata.params fields (all very specific purpose): sony_arw2_options, sraw_ycc, and params.x3f_flags + replaced with single bit-field raw_processing_options + See LIBRAW_PROCESSING_* bits in documentation. + + * zlib library is optional + Use -DUSE_ZLIB to compile with zlib (to provide deflate DNG support) + * libjpeg version: jpeg_mem_src() is mandatory, so use libjpeg-turbo + or libjpeg 8+ + * Fixes in vng_interpolate to make modern compilers happy + * Fixed bug in Sony SR2 files black level + * DNG files with BlackLevel both in vendor makernotes and BlackLevel: + BlackLevel tag always takes precedence + * strlen replaced with strnlen in most cases, added local version of strnlen + * ChannelBlackLevel added to canon makernotes + * unpack_thumb() data size/offset check against file size + +2015-08-15 Alex Tutubalin + + * LibRaw 0.17 + + * Fixed dcraw.c ljpeg_start possibly buffer overrun + + * fixed several bugs detected by using American Fuzzy Lop + + * C-API extension to support 3DLut Creator + + * More metadata parsing/extraction: + - XMP packet extracted (if exists) + - DNG Color information parsed + - GPS data (partially) parsed + - EXIF/Makernotes parsed for used optics (for both RAW files and DNG converted by Adobe convertor). + + * Exif/Makernotes parser callback (called for each processed tag) + + * Sony ARW2.3 decoder: + - params.sony_arw2_hack removed, decoded data are always in 0...17k range (note the difference with dcraw!) + - Additional processing options for Sony lossy compression technical analysis. + + * Dcraw 9.26 imported (but some changes not approved because Libraw do it better) with some exceptions: + - no Pentax K3-II frame selection code + - no built-in JPEG decompressor + + * Many improvements in data decoding/processing: + - Correct decoding of black level values from metadata for many formats, LibRaw do not rely on hardcoded black levels. + + * 224 camera models added to supported camera list. + Some of them are new (released since LibRaw 0.16 come out), some was supported before, but missed from the list. + Added cameras are: + + Alcatel 5035D + BlackMagic Pocket Cinema Camera, Production Camera 4k + Canon PowerShot A550, A3300 IS, G1 X Mark II, G7 X, SD950, SX60 HS, EOS 7D Mark II, EOS 20Da, EOS 60Da, EOS 1200D, EOS-1D C, 5DS, 5DS R, 750D, 760D, M2, M3, G3 X + Casio EX-FC300S, EX-FC400S, EX-Z1080, EX-ZR700, EX-ZR710, EX-ZR750, EX-ZR800, EX-ZR850, EX-ZR1000, EX-ZR1100, ZR1200, ZR1300, EX-ZR1500, EX-100, EX-10 + Digital Bolex D16,D16M + DJI 4384x3288, + Epson R-D1s, R-D1x + FujiFilm E505,S1,S205EXR,HS10,HS11,HS22EXR,HS33EXR,HS35EXR,F505EXR,F605EXR,F775EXR,F900EXR,X100T,X30,X-T1,X-T1 Graphite Silver, XQ2, X-A2, X-T10 + Hasselblad H5D-60, H5D-50,H5D-50c,H5D-40,H4D-60,H4D-50,H4D-40,H4D-31,H3DII-22,H3DII-31,H3DII-39,H3DII-50,H3D-22,H3D-31,H3D-39,H2D-22,H2D-39,CF-22,CF-31,CF-39,Stellar II,HV + HTC UltraPixel + Imacon Ixpress 96, 96C, 384, 384C (single shot only),132C, 528C (single shot only) + ISG 2020x1520 + Ikonoskop A-Cam dII Panchromatic, A-Cam dII + Kinefinity KineMINI, KineRAW Mini, KineRAW S35 + Kodak DCS460D, S-1 + Leaf Credo 50 + Lenovo a820 + Leica Digital-Modul-R, D-Lux (Typ 109), M (Typ 240), Monochrom (Typ 240), M-E, M-P, R8, S, T (Typ 701), X (Typ 113), X2, X-E (Typ 102), V-Lux (Typ 114), Monochrom (Typ 246), Q + Matrix 4608x3288 + Nikon D4s, D600, D610, D750, D800, D800E, D810, D3300, D5500, Df, 1 J4, 1 S2, 1 V3, Coolpix P340, Coolscan NEF, D7200, 1 J5,D810A + Nokia 1200x1600 + Olympus E-450, E-600, E-PL6, E-PL7, E-M1, E-M10, E-M5 Mark II, SP565UZ, STYLUS1s, SH-2, TG-4, AIR-A01 + Panasonic DMC-CM1, DMC-FZ7, DMC-FZ70, DMC-FZ1000, DMC-GF7, DMC-GH4, AG-GH4, DMC-GM1s, DMC-GM5, DMC-LX100, DMC-TZ60/61/SZ40, DMC-TZ70, FZ300/330, GX8 + Pentax GR, K110D, K-01, K-S1, Q, QS-1, 645Z, K-S2, K3 II + PhaseOne IQ250, IQ260, IQ260 Achromatic, IQ280, Achromatic+, P 20+, P 21, P 25+, P 30+, P 40+ + Ricoh GXR MOUNT A12, GXR MOUNT A16 24-85mm F3.5-5.5, GXR, S10 24-72mm F2.5-4.4 VC, GXR, GR A12 50mm F2.5 MACRO, GXR, GR LENS A12 28mm F2.5, GXR, GXR P10 + Samsung GX-1L, NX1, NX5, NX1000, NX1100, NX30, NX300, NX300M, NX3000, NX mini, Galaxy S3, Galaxy Nexus, NX500 + Sigma dp1 Quattro, dp2 Quattro, dp3 Quattro, dp0 Quattro + Sinar eMotion 22, eMotion 54, eSpirit 65, eMotion 75, eVolution 75, Sinarback 54 + Sony A7 II, A7S, ILCA-77M2 (A77-II), ILCE-3000, ILCE-5000, ILCE-5100, ILCE-6000, ILCE-QX1, DSC-RX100III, DSLR-A560, NEX-VG20, NEX-VG30, NEX-VG900, IMX135-mipi 13mp, IMX135-QCOM, IMX072-mipi, RX100-IV, A7R-II, RX10-II + + * Fujifilm F700/S20Pro second frame support + +2014-02-01 Alex Tutubalin + * Updated Oly E-M10 & Panasonic TZ60/61 color data + * Updated foveon SD9-14 white level + * Support for 1x1 BlackLevelRepeatDim + +2014-01-31 Alex Tutubalin + * imported dcraw 1.461: fixed error in BlackLevelDim handling + * Accurate work with pattern black-level (cblack[6+]) + * Support for Olympus E-M10 and Fujifilm X-T1 + * Adjusted possible maximum value for Sigma SD9 small raws + +2014-01-27 Alex Tutubalin + * dcraw 1.460: Nikon D3300, Panasonic DMC-TZ61, Sony ILCE-5000 +2014-01-25 Alex Tutubalin + * PhaseOne IQ250 support (both compressed and uncompressed) +2014-01-21 Alex Tutubalin + * imgdata.params.sony_arw2_hack removed. + It always on for ARW2-files. + * New imgdata.params.sony_arw2_options processing flags + Values: + LIBRAW_SONYARW2_NONE - normal processing + LIBRAW_SONYARW2_BASEONLY - BASE pixels outputeed, delta pixels set to 0 + LIBRAW_SONYARW2_DELTAONLY - Delta pixels written to raw data, base pixels zeroed + LIBRAW_SONYARW2_DELTAZEROBASE - Only deltas written without base offset + +2014-01-20 Alex Tutubalin + * Imported dcraw 9.20: + - Support for DNG BlackLevelRepeatDim tags + - imgdata.color.cblack[] holds variable BlackLevel for DNG files (up to ~4k values) + - imgdata.params.use_camera_matrix is now ON by default. Set it to 3 if you want + to force use of DNG embedded matrix. + - Tone curve for Canon RMF format supported + - Color data for Canon C500 + * Additional camera support: + Alcatel 5035D + DJI 4384x3288 + Fujifilm F900EXR + Kodak 12MP + Matrix 4608x3288 + Nokia 1200x1600 + Olympus E-PL6 + Panasonic DMC-FZ7 + +2014-01-17 Alex Tutubalin + * Camera support: + Added: Fujifilm XE2, XQ1 + Color data updated: Nikon D4 1 AW1/J3, Fuji X-M2 + Fixes: Nikon D610 visible image area, Canon A3300 bayer + pattern + * RawSpeed support: enabled processing for cameras, + unknown to RawSpeed + * Fixed error in LibRaw::unpack_thumb() + * little improve performance in my_strcasestr + * Fix compiler errors for VS2012/OpenMP + * Fixed typo which prevents to use Demosaic Pack GPL2 + * LibRaw 0.16.0-Release + +2013-11-15 Alex Tutubalin + * New cameras supported + Leica C, X VARIO + Nikon D5300, D610, Df, 1 AW1 + Nokia Lumia 1020, 1520 + Olympus STYLUS1 + Pentax K-3 + Sony RX10, A3000 (ILCE-3000), + * Color data updated: + Canon S120 + Nikon P7800, 1 J3 + Olympus E-M1 + * Corrected image visible area sizes + Canon G16 + Sigma pre-Merrill cameras: small and medium-sized RAWs + + * Better EXIF parsing: + - ISO values for new Nikon cameras (D4, D800) + - black level extraction for Nikon D5300 + - correct Olympus color data conversion + + * Better Visual Studio compatibility (esp. old versions) + * Cmake build: added ws2_32 library for MinGW builds + * LibRaw 0.16.0-Beta1 + +2013-10-22 Alex Tutubalin + * Support for new cameras: + Sony A7, A7R + Panasonic GM1 + + * Sony RX1R and RX100M2 color data updated. + + * Sony cameras model name is set by SonyModelID EXIF tag + + * Sony ARW2: black level and color matrix extracted from EXIF data + + * Samsung: black level and color matrix extracted from EXIF; + Camera multipliers are now extracted correctly even if black is not 0 + + * Better source compatibility with Mac OS X compilation + + * Better source compatibility with Win32 compilation + + * DNG without Compression tag assumed uncompressed + + * Better X3F-tools based Foveon support: + - new Foveon metadata parser based on X3F-tools. So, if LibRaw compiled + without demosaic-pack-GPL2, then no dcraw Foveon code used. + - Support for Medium resolution RAWs from DPx Merrill and SD1 cameras. + RAW data extracted as is (4800x1600 pixels), aspect ratio is set to + 0.5, so these RAWs are processed to full-size 4800x3200 RGB. + - Support for Foveon thumbnail extraction. Only JPEG and bitmap + thumbnails extracted, but 'foveon' (RAW) thumbnails are really not used + in production cameras. + - New imgdata.params.force_foveon_x3f flag + Forces use of x3f-tools based code for Foveon processing if LibRaw + compiled with demosaic-pack-GPL2 (and does nothing if LibRaw compiled + without this pack). + New flag -disadcf added to dcraw_emu sample to use this flag. + - LibRaw do not calls exit() on broken Foveon files. + + * API/ABI changed, so all code using LibRaw should be recompiled. + + * LibRaw 0.16.0-Alpha3 + + +2013-10-16 Alex Tutubalin + * Support for new cameras: + Canon S120 (preliminary color data), G16 + Fujifilm X-A1 (preliminary color data) + Hasselblad Lunar, Stellar + Nikon P7800 (preliminary color data) + Pentax K50, K500, Q7 + Samsung Galaxy NX (EK-GN120) + Sony NEX-5T + + * Updated color data for: + Samsung NX300 + Sony RX1R + Sigma SD1, SD1 Merrill, DPxx (only if non-GPL2 foveon decoder used) + + * Image dimensions table for Foveon cameras (only if + non-GPL2 foveon decoder used) + + * Fixed memory leak in x3f-tools code (new Foveon decoder) + * Fixed DHT-demosaic incompatibility with MS VisualStudio in OpenMP directives + * Additional image size checks. + * LibRaw 0.16-Alpha2 + +2013-09-22 Alex Tutubalin + * Support for new cameras: + Baumer TXG14 + Blackmagic Cinema + Canon EOS 70D, C500 + Fujifilm X-M1 + Nikon D5200 + Olympus E-P5,E-M1 + OmniVision OV5647 (Raspberry Pi) + Panasonic LF1, GX7, GF6 + Richon GR + Samsung NX300, NX1100, NX2000 + Sony RX100II, RX1R, NEX-3N + + * Support for Foveon sensor based on X3F code by Roland Karlsson + BSD-like license, so included in main LibRaw code. + No 'foveon interpolation', so no way to get good colors from + old Sigma cameras (SD9, SD14, Polaroid x530). For modern Foveon cameras + one may try to create ICC profile (not supplied). + + TODO: thumbnail extraction, fast cancellation + + Old foveon_*_load_raw (from dcraw) code is used if compiled with + LIBRAW_DEMOSAIC_PACK_GPL2 + + * API Changes: + + + New parameters in imgdata.params: + - imgdata.params.no_interpolation - disables interpolation step in + LibRaw::dcraw_process() call. + - imgdata.params.no_auto_scale - disables call to scale_colors() in + LibRaw::dcraw_process() call. + - imgdata.params.sraw_ycc - disables Canon sRAW YCbCr to RGB conversion + in LibRaw::unpack() call (use for RAW analyzers + + + New Fuji X-Trans handling: + - imgdata.iparams.filters value is now 9 for Fuji X-Trans (instead of 2) + - imgdata.iparams.xtrans[6][6] matrix contains row/col to color mapping + for Fuji X-Trans sensor. + + + LibRaw::setCancelFlag() - use for fast decoder termination + + + LibRaw_abstract_datastream::make_byte_buffer() call is not needed more. + + + New demosaic code: DHT Demosaic by Anton Petrusevich + Set params.user_qual=11 to use. + + + New demosaic code: Modified AHD Demosaic by Anton Petrusevich + Set params.user_qual=12 to use. + + + New C-API call libraw_COLOR(libraw_data_t *t, int row,int col) + (so LibRaw::COLOR(row,col) exposed to C-API users) + + * Removed faster lossless jpeg decoder ported from RawSpeed library + some years ago. Build LibRaw with RawSpeed to get fast decoding. + + * Fixed decoding error for some Canon sRAW files. + + * Disabled RawSpeed's bad pixel processing if RawSpeed used. + + * EOS M and EOS 70D added to unique Canon ID table + + * Canon EOS model name normalized by unique ID table + + * Backported 0.15.4 input data checks + + * Support for CMake builds + + * Updated RawSpeed supported camera list + + * Internals changed, so all code using LibRaw should be recompiled. + + * LibRaw 0.16.0-Alpha1 + +2013-05-23 Alex Tutubalin + + LibRaw 0.15-Release + + New camera/format support: + * Adobe DNG: fast Load DNG (LightRoom 4.x), support for + lossy-compressed DNG (LR 4.x, requires libjpeg 6+) + * Canon: G1 X, SX220 HS, EOS 5D Mark III, EOS 650D, EOS 1D-X, + 100D (Rebel SL1), 700D (Rebel T5i), 6D, EOS M, G15, S110, SX50 + * Casio: EX-ZR100,EX-Z8 + * Fujifilm: X-S1, HS30EXR, X1-Pro,X-E1, X20, X100S, SL1000, HS50EXR, + F800EXR, XF1 + * Leica: D-LUX6 and V-LUX4 + * Nikon: D4, D3200, D800, D800E, 1 J2, 1 V2, D600, 1 J3, 1 S1, Coolpix A, + Coolpix P330, Coolpix P7700, D7100 + * Olympus: E-M5, XZ-2, XZ-10, E-PL5, E-PM2 + * Panasonic: G5, G6, DMC-GF5, FZ200, GH3, LX7 + * Pentax: MX-1, K-5 II, K-5 IIs, K-30, Q10 + * Samsung: EX2F, NX20, NX210, support for the new firmware for NX100 + * Sigma: SD15, SD1, SD1 Merill, DP1, DP1S, DP1X, DP2, DP2S, DP2X + (only with Demosaic-pack-GPL2) + * Sony: SLT-A58, RX-1, SLT-A99, NEX-5R, NEX-6, NEX-F3, SLT-A37, SLT-A57 + * Multishot files: Imacon Ixpress 39Mpix + +API changes: + 1. dcraw_process() can now be called several times with different parameters + without re-opening and unpacking the file for second and consecutive + calls to dcraw_process + + 2. deleted (nobody uses those) + - LibRaw::dcraw_document_mode_processing (and respective C-API) + - imgdata.color.color_flags data field + + 3. LibRaw::unpack() now decodes data into different buffers, the buffer + depends on the raw data type + - imgdata.rawdata.raw_image - 1 color component per pixel, + for b/w and Bayer type sensors + - imgdata.rawdata.color3_image - 3 color components per pixel, + sRAW/mRAW files, RawSpeed decoding + - imgdata.rawdata.color4_image - 4 components per pixel, the 4th + component can be void + + 4. Support for compiling with RawSpeed library, http://rawstudio.org/blog/?p=800 + details are in README.RawSpeed + + 5. Suppression of banding + + 6. New API calls + - recycle_datastream(), + - open_file(wchar_t*) (Win32) + + +2012-04-05 Alex Tutubalin + * Casio EX-Z500 support + * (possible) I/O exceptions on file open caught in open_datastream + * Fixed possible read-after-buffer in Sony ARW2 decoder + * Fixed mingw32 errors when compiling LibRaw_windows_datastream + * Makefile.msvc: support of OpenMP and LCMS (uncomment to use) + * Fixed decoding of some Leaf Aptus II files + * LibRaw 0.14.6-Release + +2011-12-24 Alex Tutubalin + * Fixed bug (uninitialized variable) in SMAL format decoding. + + * Imported new dcraw 9.12 (1.446): support for Leica V-LUX 3, + updated color data for Canon S100, Fujifilm X10, Nikon 1 J1/V1, + Panasonic GX1, Samsung NX200, Sony NEX-7 + + * LibRaw 0.14.5-Release + +2011-12-12 Alex Tutubalin + + * Fixes to Panasonic/Leica file parser to prevent crash + on broken jpegs. + + * Fixes to include order in src/libraw_datastream.cpp to + better compile with KDEWIN + + * Floating-point DNGs are rejected on early processing stage. + + * Support for new cameras: Canon S100, Fuji X10, Panasonic GX1, + Samsung NX200, Sony NEX-7. + + * LibRaw 0.14.4-Release + + +2011-10-26 Alex Tutubalin + * Bug fixes in black level subtraction code for PhaseOne files + + * New API call LibRaw::get_internal_data_pointer() for developers + who need access to libraw_internal_data fields (i.e. + Fuji SuperCCD layout). + + * doc/API-overview fixes to reflect 0.14 changes + + * LibRaw 0.14.3-Release + +2011-10-19 Alex Tutubalin + * Fixed bug in Canon 1D and 1Ds files decoding. + * New decoder information bit DECODER_HASRAWCURVE + * LibRaw 0.14.2-Release + +2011-10-11 Alex Tutubalin + * Imported dcraw 9.11/1.445: + + Support for new cameras added: Fujifilm F600EXR, Nikon P7100, + Olympus E-PL3 and E-PM1, Panasonic DMC-FZ150, Sony NEX-5N, + A65 and A77. + + Changed color data for: Olympus E-P3, Panasonic G3 and GF3, + PhaseOne H25, P40 and P65, Sony NEX-C3, NEX-5, NEX-3, A35 and A55. + + Support for dark frame extraction on Sony cameras. + + * DCB demosaicing: reserving 6 pixels instead of 3 to suppress + colored image frame. + * LibRaw 0.14.1-Release + +2011-09-21 Alex Tutubalin + * Cosmetic changes to make Visual C++/OpenMP more happy + * Fix megapixel calculation for postprocessing_benchmark in half mode + * Shlib version number increment + * LibRaw 0.14.0-Release + +2011-09-04 Alex Tutubalin + * Fixed bug with Kodak thumbnail extraction + * raw2image_ex() always return value + * LibRaw 0.14.0-Beta2 + +2011-09-02 Alex Tutubalin + * Cosmetic changes to LibRaw_file_datastream interface + + * OpenMP speedup of postprocessing steps (up to 50% for + half mode and 4-core machine) + + * LibRaw 0.14.0-Beta1 + +2011-08-20 Alex Tutubalin + + * Patch to dcraw_emu for SunStudio compiler compatibility + + * Fixed crash in unprocessed_raw sample due to uninitialized + timestamp variable. + + * Fixed crash in raw decoding if raw_width/raw_height is + less than resulting image width/height. + + * imgdata.sizes.flip is set from user_flip only on + postprocessing and/or adjust_sizes_info_only() + + * Fixed buffer overrun for some LJPEG-compressed files + + * Most of LibRaw_datastream function bodies are moved to + separate source file + + * LibRaw_windows_datastream is merged to main sourcetree + + * LibRaw 0.14.0-Alpha5 + +2011-08-11 Alex Tutubalin + * Imported dcraw 9.10 (1.444), support for new cameras added: + ARRIRAW format, Canon SX30 IS, Leica D-LUX 5 and V-LUX2, + Olympus E-P3, Panasonic G3 and GF3, Sony NEX-C3 and SLT-A35 + + * Support for RedOne digital movie cameras (R3D format). + To enable this support you should: + + install libjasper JPEG2000 support library + + + compile LibRaw with -DUSE_JASPER compiler switch (./configure + will do it for you) + + + If you use own LibRaw_datastream implementation, you should + implement make_jas_stream() call for your datastream. See + bottom of src/libraw_cxx.cpp for implementations in datafile + and mem-buffer LibRaw streams. + + * Bugfix: green matching is turned off if output image is shrinked + due to wavelet filtering or aberration correction. + + * fixed open_file()/adjust_sizes_info_only() code path + + * Removed imgdata.sizes.bottom_margin and right_margin data fields + use imgdata.sizes.raw_width - width - left_margin to get right one, + the same with bottom_margin. + + * minor ./configure cleanup + + * Qmake files and Visual Studio Project files are updated. + + * New version check macros: + For use at runtime checks: + LIBRAW_RUNTIME_CHECK_VERSION_EXACT() - checks that runtime + major/minor version numbers are same with compile-time values. + + LIBRAW_RUNTIME_CHECK_VERSION_NOTLESS() - checks that runtime + version is not less that compile-time one. + + For use at compile-time in preprocessor directives: + LIBRAW_COMPILE_CHECK_VERSION_EXACT(major,minor) - Compile-time + check that LibRaw version is exact major.minor. + + LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(major,minor) - Compile-time + check that version is not less than major.minor. + + * all client code should be recompiled due to internals change. + + * LibRaw 0.14.0-Alpha4 + +2011-07-19 Alex Tutubalin + * New sample samples/postprocessing_benchmark.cpp + This sample measures postprocessing speed. + All demosaic methods, averaged white balance, median + filtering, wavelet filtration, highlight recovery, and + cropping are supported. + + * Removed LibRaw::rotate_fuji_raw() call and corresponding C-API call. + + * The LibRaw::adjust_sizes_info_only() call may be called repeated + and mixed with dcraw_process() call. + + * Postprocessing speedup and optimization, especially if cropping set. + + * Cropping works for FujiCCD raws. For the technical reasons, the position + of top-left corner of crop area will be rounded to the nearest + multiple of 4 (the corner is shifted top-left). + + * LibRaw 0.14.0-Alpha3 + +2011-07-15 Alex Tutubalin + * imported cropping code from 0.13 branch + +2011-07-12 Alex Tutubalin + * samples/multirender_test - check for different clip settings + +2011-07-11 Alex Tutubalin + * New call LibRaw::free_image(), deallocates imgdata.image buffer. + Use this call if current postprocessing results are not + needed, but it is to early to call recycle() because + dcraw_process() may be called later. + + * New C-API calls + libraw_raw2image() - C API for LibRaw::raw2image() + libraw_free_image() - C API for LibRaw::free_image() + libraw_get_decoder_info() - C API for LibRaw::get_decoder_info() + + * Bugfix: change of params.user_flip aftee open()/unpack() + calls should work. + + * LibRaw 0.14.0-Alpha2 + +2011-07-10 Alex Tutubalin + * Multiple rendering (LibRaw::dcraw_process() calls) allowed + without re-opening RAW file thrfough the sequence of open()/unpack() + calls. + You should be able to change any processing parameters (except + shot_select parameter) between dcraw_process() calls. + + + New sample in samples/multirender_test.cpp: renders data 4 times: + in half and full modes with different white balance settings. + + + Unprocessed RAW data is stored in separate data buffer: + (2 bytes per pixel for all Bayer-pattern images, + 8 bytes per pixel for Foveon, sRAW, and other full-color raw + formats), so now LibRaw uses 25% more memory for full processing of + most common Bayer images; while for just unpack memory is reduced + 4 times. + + + New call LibRaw::raw2image() fills imgdata.image array + with fresh copy of data. + There is no need to call raw2image() separately if you use + dcraw_process() or dcraw_document_mode_processing() calls. + + + New call LibRaw::get_decoder_info() to determine raw data + storage layout. See samples/unprocessed_raw.cpp for an example + of how to use it. + + If your code uses usual open()/unpack()/dcraw_process() call + sequence, then NOTHING CHANGED: your program should produce same + results. For interactive programs you may skip open()/unpack() + calls after adjusting processing parameters, so user should see + image refreshed much faster. + + If your code uses raw data (open+unpack calls), you need to call + LibRaw::raw2image(), and imgdata.image will contain same bitmap + as in LibRaw 0.13.x + + If you code uses access to masked borders data, you need to + rewrite it. See samples/unprocessed_raw.cpp as a sample. + + Unfortunately, documentation is untouched yet. This problem will be + fixed in next Alpha release. + + Other changes: + + * No separate imgdata.masked_pixels buffers, Bayer raw formats are read + to buffer with borders. So, no ugly add_masked_border_to_bitmap() + call. + + * No filtering_mode parameter. Raw tone curve is applied + at unpack() stage; zero pixels removed on postprocessing stage. + + * unprocessed_raw and 4colors samples are adjusted to use + new RAW data storage layout. + + * all client code should be recompiled due to internals change. + + * LibRaw 0.14.0-Alpha1 + +2011-07-03 Alex Tutubalin + * Cosmetic cleanup in Libraw_memmgr code + + * Permit OpenMP support on MS VS2008 + + * More general mem_image interface: + + New call get_mem_image_format returns bitmap size and bit depth + + New call copy_mem_image can copy bitmap into buffer with + different color order (RGB/BGR) and line stride + + dcraw_make_mem_image() uses calls mentioned above + + see documentation for info on these function parameters. + + * libraw/librawwindows.h implements LibRaw_datastream class based + on Windows memory mapped files.Win32/64-only + Thanks to Linc Brookes. + + * Fixed parallel make errors in configure/Makefile.am + + * LibRaw 0.13.6-Release + + +2011-05-18 Alex Tutubalin + * Imported new dcraw 9.08/1.443: + + New color data for Canon 600D and 1100D, Fuji S200EXR + + New camera supported: Fuji HS20EXR and F550EXR, Kodak Z990, + Nikon D5100, Olympus E-PL1s and XZ-1, + Samsung NX11, Sony A230 and 290. + * LibRaw 0.13.5-Release + +2011-04-02 Alex Tutubalin + * Imported new dcraw 9.07/1.442: + + Support for Canon 600D and 1100D, Hasselblad H4D-60, + Olympus E-PL2 + * Color data for Leaf Aptus II and Canon Powershot S2 IS + * LibRaw 0.13.4-Release + +2011-03-30 Alex Tutubalin + * Preliminary support for Leaf Aptus II cameras (no color data yet): + Leaf Aptus II 6,7,8,10 and 12 are tested, Aptus II 5 should work. + * Preliminary support for Fujifilm X100 camera (again, no color data). + * Fixed possible after the end of buffer read when working with + in-memory data. + * Fixed possible loss of JPEG stream sync marks in LJPEG decoder + (this bug was found only for Leaf Aptus II RAWs). + * LibRaw 0.13.3-Release + +2011-03-08 Alex Tutubalin + * Fixed broken camera white balance reading for some Sony cameras + * LibRaw 0.13.2-Release + +2011-02-25 Alex Tutubalin + * Sony A390 support (colordata from A380) + * Leica D-LUX 4: fixed typo in camera name in colordata + +2011-02-15 Alex Tutubalin + * New -mem option for dcraw_emu: I/O via allocated buffer + * Removed debug printf from LibRaw_memory_buffer code + * Preliminary shared library support + +2011-02-12 Alex Tutubalin + * Added qmake .pro and Visual Studio 2008 sln/vcproj project files +2011-02-07 Alex Tutubalin + * dcraw_emu documentation updated + * ./configure stuff changed for correct linking on some systems + * FBDD denoising is disabled for full-color images and 4-color bayer + data (including forced 4-color via four_color_rgb option) + * LibRaw 0.13.1-Release + +2011-02-05 Alex Tutubalin + * ./configure fixes for PACKAGE_REQUIRES + * Makefile.msvc: correct compiler flags for demosaic packs + * dcraw.c 9.06/1.440 imported: + + New camera support: Canon S95, Casio EX-Z1080, Panasonic GF2 + and GH2, Samsung NX100, Sony A-580 + + New color data for: Canon G12, Nikon D3100, D7000 and P7000, + Olympus E-5, Pentax K-r and K-5, Samsung NX10 and WB2000 + * green_matching() code is disabled for half-size processing + * LibRaw 0.13.0-Release + +2011-01-15 Alex Tutubalin + * Fallback to old huffman decoder for Sony files with unspecified + data length (Sony A100) + * Fixed incomplete data fields reset in LibRaw::recycle() + * LibRaw 0.13.0-Beta3 + +2011-01-13 Alex Tutubalin + * Better parsing of unknown command-line params in dcraw_emu sample + * Brigtness table in ahd_demosaic is calculated in reversed order + to prevent possible (very unlikely) multithreaded app problem. + * New exposure correction code based on linear-cubic root combination. + New working correction range is from 0.25 (-2 stops) to 8 (+3 stops) + * LibRaw 0.13.0-Beta2 + +2011-01-10 Alex Tutubalin + * Fixed file extension in half_mt.c sample + +2011-01-10 Alex Tutubalin + * Three patches provided by Jacques Desmis: + - Exposure correction before demosaic (demosaic pack GPL3) + - OpenMP speed-up in median filters (demosaic pack GPL2) + - OpenMP speed-up in green equilibration (demosaic pack GPL3) + * Merged 0.12.2-0.12.3 changes: + - Patches for ./configure system for better LCMS2 support + - Patches for ./configure system + - math.h included before any other includes to make KDE compile + with Visual C++ happy + - Fuji FinePix S5500 size adjusted to ignore (rare?) garbage + at top of frame. + * all client code should be recompiled due to internals change. + * LibRaw 0.13.0-Beta1 + +2010-12-22 Alex Tutubalin + * Zero copy huffman buffer for LibRaw_buffer_datastream + * Fixed memory leak in compressed NEFs handling + * LibRaw 0.13.0-Alpha2 + +2010-12-20 Alex Tutubalin + * Demosaic-pack-GPL3 changes: + + New noise reduction methods before demosaic + - Banding suppression + - High-frequency noise suppression + - Green channel equalization + + New chromatic aberration correction. + All three methods are written by Emil Martinec for Raw Therapee. + Adapted to LibRaw by Jacques Desmis + + * Merged Foveon code fix from LibRaw 0.12.1 + + * LJPEG decompressor speed-up (about 1.5 times for Canon cameras + and slightly less for others). Some ideas are from RawSpeed library. + + * all client code should be recompiled due to internals change. + + * LibRaw 0.13.0-Alpha1 + +2010-12-12 Alex Tutubalin + * Thread-safe and demosaic packs support for MinGW build + * Demosaic packs support for MS VC build + * LibRaw 0.12.0-Release + +2010-12-09 Alex Tutubalin + * Fixed bug in add_masked_borders_to_bitmap() call for cameras + with odd pixels border. + * New command line options for unprocessed_raw sample: + -B - subtract black level, -M - add masked pixels to bitmap. + * Foveon-sensor cameras added to supported camera list if + compiled with demosaic pack GPL2 + * LibRaw 0.12.0-Beta4 + +2010-12-05 Alex Tutubalin + * Demosaic packs support in Makefile.dist + * Foveon support in LibRaw demosaic pack GPL2 + * all client code should be recompiled due to internals change. + * LibRaw 0.12.0-Beta3 + +2010-11-27 Alex Tutubalin + * Fixed allocation bug in lmmse_interpolation (demosaic-pack-GPL2) + * In LMMSE and AMaZE interpolators allocation changed to calloc + to make valgrind happy with uninitialized values + * Changes in distribution-making scripts + * LibRaw 0.12.0-Beta2 + +2010-11-21 Alex Tutubalin + * Fixes to green_matching code by Sergey Pavlov + +2010-11-20 Alex Tutubalin + * Update for new demosaic-pack-GPL3 + * LibRaw 0.12.0-Beta1 + +2010-11-19 Alex Tutubalin + * Demosaic pack(s) supported via ./configure + +2010-11-17 Alex Tutubalin + * LCMS2 support + * afd_interpolate(2,1) instead of (5,0) + * dcraw_emu sample command line keys added and reordered + to reflect changes in LibRaw 0.12. + * Nikon P7000: color matrix data and black level patch for ISO >=400 + Thanks to Gunnar Thorburn + * Support for several industrial cameras based on Sony ICX 625/655 + sensor: JAI BB500CL/GE, SVS625CL, ptGrey GRAS-50S5C + Thanks to kaare + +2010-11-15 Alex Tutubalin + + * Several demosaic algorithms, found in other open-source RAW processing + packages are implemented in LibRaw. + + 1) DCB demosaic and FBDD denoise by Jacek Gozdz are included in + main LibRaw source. + 2) GPL2 demosaic pack with these demosaic methods: + * AFD and LMMSE implementations from PerfectRaw by Manuel Llorens + * VCD, Modified AHD, post-demosaic refinemend and median + filters by Paul Lee + 3) GPL3 demosaic pack with AMaZe interpolation by Emil Martinec + + See more details in README.demosaic-packs + + * Current implementation of dcraw_emu sample allows only selection + of demosaic method (via -q) options. All other parameters change + will be implemented later. + + * LibRaw 0.12-alpha1 + +2010-11-11 Alex Tutubalin + * Imported 0.11(2) version changes: + + Fixed dcraw_emu command line processing code + + OpenMP is completely disabled on MacOS X if compiled with -pthread + due to well-known MacOS problem. + + dcraw 9.05 (1.439) imported, many new cameras supported: + Canon: G12, SX120, 60D, + Hasselblad H4D, Nokia X2, Olympus E-5, + Nikon: D3100, D7000, P7000, + Panasonic: FZ40, FZ100, LX5, + Pentax: K-r, K-5, 645D, + Samsung GX20, WB2000 + * LibRaw 0.12-alpha0 + +2010-11-08 Alex Tutubalin + * Fixes for Sun Studio compiler compatibility + * Fixes for Visual Studio 2010 compatibility + * All russian-language files are converted to UTF-8 + * LibRaw 0.11.0-Release + +2010-10-18 Alex Tutubalin + * Disabled OpenMP for wavelet_denoise under Mac OS X + * More Visual C++ 2003 warnings cleaned in libraw/*h files + * LibRaw 0.11-Beta7 + +2010-10-16 Alex Tutubalin + * internal/dcraw_fileio.c can be compiled with -DDCRAW_VERBOSE again + * fixed comment style in libraw_datastream.h + * LibRaw 0.11-Beta6 + +2010-10-15 Alex Tutubalin + + * New changes to I/O layer. Three LibRaw_*datastream clasees are + exists: + + LibRaw_buffer_datastream - buffer reaging + + LibRaw_file_datastream - file reading using iostreams + (large files are no supported on some systems) + + LibRaw_bigfile_datastream - FILE*-based file I/O + + * file/bigfile_datastream is selected automatically by + LibRaw::open_file based on input file size. + By default, files larger than 250Mb are opened using + bigfile interface, you may change this behaviour + by using second optional parameter of open_file() + + * There is no way to use default parameter values in C API, + so new call libraw_open_file_ex added with two parameters + (file name and minimal file size for bigfile_datastream use). + + * all client code should be recompiled due to internals change. + + * All LibRaw_abstract_datastream functions are virtual again. You may + (again) use your own I/O layer. + + * new -d key for dcraw_emu sample: print timings of processing stages + + * simple_dcraw sample simplified: no mmap code + + * LibRaw 0.11-Beta5 + +2010-10-08 Alex Tutubalin + * Fixed bug in exception handling in OpenMP sections in + AHD interpolation code. + + * LibRaw_datastreams are now C++ iostreams based instead of old + plain FILE* calls. + LibRaw::open_file() in multithreaded programs are WAY faster + on many OSes (Linux, Windows, MacOSX) because of no extra locks. + + * all client code should be recompiled due to internals change. + + * LibRaw 0.11-Beta4 + + +2010-10-01 Alex Tutubalin + * Fixed bug in LibRaw::dcraw_process() code: for half_size + processing, params.four_color_rgb was set to 1 internally + and not returned back after postprocessing. + + * Several Visual Studio 2003 compatibility fixes + + * AHD interpolation refactored. Now it is about 10% faster than + dcraw in single-process mode and up to 1.5 times faster on + 4-core and OpenMP (total execution time counted, not AHD itself) + Thanks to Adam Hooper + * AHD interpolation refactored. Now it is about 10% faster than + dcraw in single-process mode and up to 1.5 times faster on + 4-core and OpenMP (total execution time counted, not AHD itself) + Thanks to Adam Hooper + + * LibRaw 0.11-Beta3 + +2010-09-07 Alex Tutubalin + * Phase One files: LibRaw::unpack() sets colordata.black to + approximately correct value. + + * Fixed minor error in setting colordata.maximum value + for Phase One files. + + * LibRaw::subtract_black() sets colordata.black and + colordata.cblack[] to zero to preserve data integrity. + + * LibRaw 0.11-Beta2 + + +2010-09-04 Alex Tutubalin + + * It is now possible to crop output image on postprocessing + stage (dcraw_process). Coordinates and size of the output box + are set via imgdata.params.cropbox[4] parameter. Look into + LibRaw documentation for more details. + + + New fatal error code LIBRAW_BAD_CROP + + + New dcraw_emu sample command line switch: -B x y w h + (sets cropbox) + + Thanks to Patrick and Jan. + + * Processing pipeline has changed: the black level is subtracted + from data on postprocessing stage either automatically + (on dcraw_process() stage) or by special LibRaw API call: + + + New API calls: LibRaw::subtract_black() (C++ API) and + libraw_subtract_black (C API). + If you use dcraw_process() or dcraw_document_mode_processing() + calls YOU DON'T NEED to call subtract_black() directly. + + + The raw preprocessing mode LIBRAW_FILTERING_NOBLACKS + is deprecated and removed from LibRaw. + + * New ./configure script. + Use ./configure -h for usage details. + Thanks to Siddhesh Poyarekar + + * New API cals static LibRaw::dcraw_clear_mem() (C++ API) + and libraw_dcraw_clear_mem(..) (C API). + This calls are used to free memory, allocated by + dcraw_make_mem_image() and dcraw_make_mem_thumb() instead + of free() call. + + In some cases LibRaw and calling process have different + memory managers, so free() of make_mem_image() data + results to program crash (especially in Win32/VisualStudio + environment). + + * LibRaw::free() is now private instead of public (again). + + * Minor changes and bugfixes: + + + Memory allocation exceptions (std::bad_alloc) are caught, + so LibRaw API calls will return reasonable error codes + instead of C++ exception (possibly unhandled). + This problem is very unlikely to see in wild: if application + cannot allocate small data for internal structure, it will + always fail on allocation for RAW image data. + + + WIN32/VisualStudio 2008/2010: fopen,fscanf and sscanf calls + in Libraw_datastream code are changed to *_s (secure) ones. + + + Debug print removed from fatal error handler. + + + Mmaped I/O for dcraw_emu sample is turned on via -E switch + now (because old -B switch is used for setting cropbox). + + * all client code should be recompiled due to structures size change + + * LibRaw 0.11-Beta1 + + +2010-07-31 Alex Tutubalin + * dcraw 9.04 (1.438) imported: changes in tiff metadata parser, + fixed a typo in Canon A720 model name + * small patch in Sony ARW2 unpacking code to make valgrind happy + * LibRaw 0.10.0-Beta3. + +2010-07-05 Alex Tutubalin + * dcraw 9.03 (1.437) imported: + + New cameras: Canon SX20, Nikon D3s, Olympus E-P2, Panasoni DMC-GF1, + Samsung EX1, Sony A450 + + Color data changed for some cameras + + * LibRaw 0.10.0-Beta2. + +2010-06-06 Alex Tutubalin + * dcraw 9.01 (1.434) imported: + + Separate black levels for each color channel. + + New cameras: Canon 550D, Casio EX-Z1050, Fuji HS10/HS11, + Kodak Z981, Panasonic G2 and G10, Phase One P65, + Samsung NX-10 and WB550, Sony NEX-3 and NEX-5. + + Fixed file descriptor leak in dark frame subtraction processing + + * Fixed dcraw 9.01's bug in DNG black level processing + + * Preliminary support for Sony A450 camera. + + * New command-line switch -h in mem_image sample (half_size support) + + * Some patches by Johannes Hanika (darktable author): + + OpenMP speedup for PPG-interpolation + + green_matching - suppress of 'color maze' on cameras with + different green channel sensitivity. This option is turns on + by filed with same name in imgdata.params + + * all client code should be recompiled due to structures size + change + + * LibRaw::free() is now public instead of private. + + * LibRaw 0.10.0-Beta1. + +2010-05-15 Alex Tutubalin + * Fixed bug in 8-bit RAW processing code + * LibRaw 0.9.1-Release + +2010-04-26 Alex Tutubalin + * OpenMP support: OpenMP is possible under MinGW (untested) + * LibRaw 0.9.0-Release + +2010-04-21 Alex Tutubalin + * Finally fixed inconsistency in Fuji files processing + * New COLOR(row,col) call to get bayer color index in image[] array + * Old FC() call is deprecated and will be removed in future releases + * unprocessed_raw sample switched to COLOR() call + * LibRaw 0.9.0-Beta5 + + +2010-04-10 Alex Tutubalin + * Fixed bug in unpacking DNG files made from Fuji RAFs. + * LibRaw 0.9.0-Beta4 + +2010-04-09 Alex Tutubalin + + * Fixed typecast error (problem reported only on gcc 4.2.1/32bit) + in CRW files processing. + + * C++ API call LibRaw::adjust_maximum() is now deprecated and + de-documented, use params.adjust_maximum_thr instead (on by default) + + * C-API call libraw_adjust_maximum() removed. + + * New postprocessing parameter params.adjust_maximum_thr + This parameter replaces LibRaw::adjust_maximum(), but more flexible + Defaults are reasonable (0.75, same as in old adjust_maximum), + look into documentation for more details. + + * Removed last OpenMP warning + + * dcraw_emu's -c parameter now wants numeric (float) argument. This value + is assigned to params.adjust_maximum_thr. + Use -c 0.0 for dcraw compatibility. + + * all client code should be recompiled due to structures size + change + + * LibRaw 0.9.0-Beta3 + + +2010-03-29 Alex Tutubalin + * Fixed a bug in channel_maximum[] calculation for + Panasonic cameras. + * channel_maximum[] data now calculated for ALL cameras. + * OpenMP warnings suppressed. + * Documented the -c command-line switch for dcraw_emu sample. + * Removed extra messages from dcraw_emu sample. + * LibRaw 0.9.0-Beta2 + +2010-03-28 Alex Tutubalin + + New licensing: + + * Triple licensing (selected by LibRaw user): + + + LGPL 2.1 (http://www.gnu.org/licenses/lgpl-2.1.html) + + CDDL 1.0 (http://www.opensource.org/licenses/cddl1.txt) + + LibRaw Software License (27 March 2010 version) + (http://www.libraw.org/data/LICENSE.LibRaw.pdf) + + * There is no separate LibRaw-Lite and LibRaw-Commercial versions, + only single LibRaw. + Current LibRaw-Lite and LibRaw-Commercial users should switch + to LibRaw without loss of functionality. + It is possible to change licensig too (e.g. from LGPL to CDDL + for LibRaw-Lite users and from LibRaw License to LGPL or CDDL + for LibRaw-Commercial users). + + * No Foveon support :( + It is not possible to get good color from Foveon sensors with + *any* converter. So, there is no need to support these cameras. + Dcraw's Foveon-processing code is too strict licensed (GPL), + so we choose to drop it. + + New Features: + + * New data field colordata.channel_maximum[4] - per channel data + maximum (calculated for most cameras, 0 for others). + + * New call LibRaw::adjust_maximum() (and libraw_adjust_maximum() in C API). + This call changes hardcoded colordata.maximum value to calculated + at unpack stage. This helps suppress false color in highlights + (magenta clouds and so). + + * New command line parameter -c for dcraw_emu sample. Calls adjust_maximum() + for each processed file. + + * all client code should be recompiled due to structures size + change + + * LibRaw 0.9.0-Beta1 + +2010-02-06 Alex Tutubalin + * Fixed ambiguity in pow/sqrt calls (to make Sun C++ compiler happy) + * OpenMP is not supported under MS Visual Studio + * Masked a bug in RIFF format parser + * LibRaw 0.8.6 + +2009-12-30 Alex Tutubalin + * Fixed bug in simple_dcraw sample parameters processing + * Imported dcraw 8.99 (1.432): + + New cameras: Canon: 1D mk IV, Canon S90; Casio Z750, + Nikon D3S, Pentax K-x, Sony A-500/550, Fuji S200EXR + + New color data for Canon G11 and Sony A850 + + Changes in Canon sRAW processing + + Changes in Kodak metadata processing + + Changes in uncompressed Fuji files processing (FinePix S5xxx) + * LibRaw 0.8.5 + +2009-11-21 Alex Tutubalin + + Fixed a bug in processing of uncompressed Phase One files + * LibRaw 0.8.4 + +2009-10-24 Alex Tutubalin + + Imported dcraw 8.98/1.431: + * New Cameras: Canon 7D, Panasonic GF1, Sony A850 and A380, + Casio Z850, Nikon D300s + + changes in libraw_datastream.h to make compilers more happy + * LibRaw 0.8.3 + +2009-09-02 Alex Tutubalin + + Fixed bug in Hasselblad .3FR unpacking code + * Imported dcraw 8.97/1.428: Nikon D3000 image width fix + * LibRaw 0.8.2 + +2009-08-31 Alex Tutubalin + + Enum LibRaw_thumbnail_formats (LIBRAW_IMAGE_*) values changed to + match values in enum LibRaw_image_formats (LIBRAW_THUMBNAIL_*). + You need to recompile all sources using these constants. + +2009-08-30 Alex Tutubalin + * Imported dcraw 8.97/1.427: + + new cameras: Canon A470, Canon G11 (without color data), + Nikon D3000, Olympus E-P1, Panasonic DMC-FZ35/FZ38 + + some changes in decoding code. + * Fixes for Microsoft Visual C++ 6.0 compatibility + * C-API dcraw_make_mem_thumb() call finally exported in API + * LibRaw 0.8.1 + +2009-08-24 Alex Tutubalin + * Imported dcraw 8.96/1.426 + + New cameras: Casio EX-Z60 and EX-Z75, Kodak Z980, + Nikon D5000, Olympus X200, D560Z,C350Z,E620, + Pentax K7, Sony A330. + + New color data for many cameras + + Generalized unpacker code for Canon and Casio P&S cameras + * LibRaw 0.8.0-Release + +2009-08-13 Alex Tutubalin + * RAW files larger than 2Gb are supported on: + - Unix (all supported: FreeBSD, MacOS X, Linux) + - Windows (with C runtime version >= 8.0) + * bzero replaced with memset to make Solaris users happy + * All applications on 32-bit systems should be recompiled + due to data structures size changes. + * Minor fixes in windows makefile + * LibRaw 0.8.0-Beta5 + +2009-07-21 Alex Tutubalin + * Imported dcraw 8.95 (1.425): + + new huffman tree code + + New cameras supported: AGFAPHOTO DC-833m, Casio EX-S20, + Phase One P65, Samsung S850 + + Removed hardcoded white-balance data for many P&S cameras. + It is recommended to set params.use_camera_wb to 1 for + safe WB. + * Fixes for Nikon D5000 files: no pink stripe at + right side of frame + * C-wrapper: added missed calls + libraw_dcraw_make_mem_image + libraw_dcraw_ make_mem_thumb + * Minor fixes to make non-gcc compilers more happy + * Internal structures changed, full recompilation of all client + code is needed. + * LibRaw 0.8.0-Beta4 + +2009-06-08 Alex Tutubalin + * Fixes: gamma curve processing was not performed in + dcraw_write_mem_image() + * Fixes: gamma curve processing was not performed for + Kodak thumbnails + * LibRaw 0.8.0-Beta3 + +2009-06-05 Alex Tutubalin + * Fixes in documentation: params.gamm[] described more precisely + * Fixes in version number, 0.8-beta1 was mistakenly 0.0.0-beta1 + * LibRaw 0.8.0-Beta2 + +2009-06-04 Alex Tutubalin + * Imported dcraw 8.94 (1.423): + + New camera support: + Canon: SX1, 500D/Rebel T1i, A570, A590, SX110 + Kodak Z1015, Motorola PIXL, Olympus E30, Panasonic DMC-GH1 + + Improved color data for Nikon D3X + + New gamma curve model + + Many changes in RAW unpacking code + + Canon cameras: black level is not subtracted if set + params.document_mode > 1 + + * API changed: params.gamma_16bit field removed. Gamma curve is + set via params.gamm[0]/gamm[1] values (see documentation and + samples for details) + * LibRaw::identify() split to avoid MS VS2008 bug (too many + nested blocks) + + * Samples: dcraw_emu and mem_image samples supports new dcraw + 16bit/gamma semantics: + -6: set 16 bit output + -4: set 16 bit output and linear gamma curve and no auto + brightness + * LibRaw 0.8.0-Beta1 + +2009-04-28 Alex Tutubalin + * Identify sample renamed to raw-identify (name conflict + with ImageMagic) + * Copyright notice changes + * Many compiler warnings removed + +2009-04-07 Alex Tutubalin + * More accurate types conversion in libraw_datastream.h + * New postprocessing parameter auto_bright_thr: set portion of + clipped pixels for auto brightening code (instead of + dcraw-derived hardcoded 1%) + * -U option for dcraw_emu sample sets auto_bright_thr parameter + * all client code should be recompiled due to structures size + change + * LibRaw 0.7.2-Release + +2009-03-22 Alex Tutubalin + * Fixed typo in OpenMP support code + * MinGW support + * dcraw source is included in distribution + * LibRaw 0.7.1-Release + +2009-03-15 Alex Tutubalin + * Fuji SuperCCD RAWs: color channels unshuffled on RAW + read stage (moved from postprocessing stage) + + * LibRaw 0.7.0-Release + +2009-03-13 Alex Tutubalin + * dcraw 8.93/1.421 imported: + + more accurate pentax dSLR support + + fixes in Kodak 620x/720x identification + + faster identification procedure for some formats. + * LibRaw 0.7.0-Beta5 + + +2009-03-08 Alex Tutubalin + * dcraw 8.92/1.420 imported: + + user-specified gamma curve + + Pentax K2000/Km support + + Changes in Canon sRAW processing (support for 5D2 fw 1.07) + + * all client code should be recompiled + + * LibRaw 0.7.0-Beta4 + +2009-02-13 Alex Tutubalin + * bugfix: 4channels sample finally subtracts black by default + * dcraw 8.91/1.419 imported: + + fixes in RIFF files parsing + + * LibRaw 0.7.0-Beta3 + +2009-02-12 Alex Tutubalin + * Black level was not calculated for Canon RAWs in + some filtering modes + + * 4channels sample prints calculated black level + (scaled if autoscaling used). + Also output file names for this sample now includes + color channel name (R/G/B/G2 or C/M/Y/G) + + * LibRaw 0.7.0-Beta2 + +2009-02-09 Alex Tutubalin + * New sample 4channels: splits RAW color channels into four + separate TIFFs + + * LibRaw 0.7.0-Beta1 + +2009-02-07 Alex Tutubalin + * Fixed bug in external jpeg metadata reading code. + + * Cleaned some C++ warnings + + * dcraw 8.91/1.418 imported + + Hasselblad V96C support + + * You need to clean and recompile client code which + uses LibRaw_*_datastream classes. + + * LibRaw 0.7.0-Alpha6 + +2009-01-30 Alex Tutubalin + + * New data input framework is created. It is possible now to + easyly implement your own data input interface for LibRaw + (e.g. for reading RAW data from network data stream) + + * All older programs using previous LibRaw versions are + compatible at source code level. + + * LibRaw can read RAW data from memory buffer via + new LibRaw::open_buffer() API call (implemented on top of + new input framework). + This call used in sample application dcraw_emu and simple_dcraw + (with -B command-line switch) to test new API. + + * Error handling callback functions now can be called with + NULL filename passed (if underlying data stream object + does not know file name). + So, client error handling callbacks should work with NULL + filename. + + * All client code should be recompiled + + * Imported dcraw 8.90/1.417: + + Support for loading White Balance data from + Sony ARW files edited with Sony IDC software. + + * LibRaw 0.7.0-Alpha5 + +2009-01-17 Alex Tutubalin + * Raw filtering mode LIBRAW_FILTERING_NOPOSTPROCESS has renamed + to LIBRAW_FILTERING_NORAWCURVE for better reflect its purpose. + This filtering_mode bit turns off tone curve applying on + RAW data on bayer-pattern cameras with raw tone curve: + + Adobe DNG (only RAW with bayer pattern) + + Nikon compressed NEF + + Some Kodak cameras + + Sony A700/A900 (tone curve applied to 8-bit raws) + + * unprocessed_raw sample: added command-line key -N, this key + turns on LIBRAW_FILTERING_NORAWCURVE filtering mode. + + * New scheme of Fuji RAW processing (introduced in 0.7-Alpha3) + supports DNG files generated from Fuji RAF. + + * Imported dcraw 8.90/1.416: + + better support for Samsung S85 + + fixed possible integer overflow in wavelet denoising code + + * LibRaw 0.7.0-Alpha4 + + +2009-01-14 Alex Tutubalin + * Black mask extraction supported for all files with bayer data + (one component per pixel). Black mask data not available + for multi-component data (Foveon, Canon sRAW, Sinar 4-shot, + Kodak YCC/YRGB). + + * Black level subtraction can be turned off for all bayer + cameras (added support for PhaseOne backs). + + * Fujifilm camera processing model changed: + + RAW data is extracted without 45-degree rotation + + dcraw-compatible rotation is performed on postptocessing stage + + it is possible to rotate RAW data without postprocessing + by LibRaw::rotate_fuji_raw() call. + + * New filtering mode setting: LIBRAW_FILTERING_NOPOSTPROCESS + This bits turns off RAW tone curve processing based on tone curve + readed from RAW metadata. + This mode supported only for PhaseOne backs now (to be supported + on all relevant cameras in nearest future releases) + + * Black level data (got from RAW data) are stored for PhaseOne backs. + + * Black level subtraction bug (derived from dcraw) fixed + for PhaseOne files. + + * Fixed processing of -s parameter for dcraw_emu sample + + * Parameter -s N (select shot number) added to + unprocessed_raw sample. + + * Imported dcraw 8.90/1.414: + + changes in QuickTake 100 metadata processing + + changes in external jpeg processing code + + Samsung S85 support + + * All client code should be recompiled + + * LibRaw 0.7.0-Alpha3 released + +2009-01-10 Alex Tutubalin + * Fixed bug in add_masked_borders: crash if output dimensions + is already larger than raw dimensions + * Fixed out of bounds in samples/unprocessed_raw.cpp for files + with non-square pixels + + * LibRaw 0.7.0-Alpha2 released + +2009-01-08 Alex Tutubalin + * Fixed bug in 0.7.0-a0: black frame size has not reset, + so in batch processing there is an error in black frame + size for files without black frame. + + * Implemented reading of black/masked pixels data for + near all cameras with masked pixels, exclding: + + Canon sRAW, Leaf (MOS), Sinar 4-shot - more than one + color component in black frame (redesign of black frame + data structures required). + + Fuji SuperCCD: need to design right methods of extraction + (should we rotate and resize black pixels as active ones??) + + * Tested for most dSLR data formats with masked pixels: 7 of 9 + untested formats are from old P&S cameras. + + * New call LibRaw::unpack_function_name() returns unpack function name + (useful for testers only) + + * New identify sample parameters (useful for test-suite builders + to check test coverage): + -u - print unpack function name + -f - print masked frame size + These parameters works only for identify run without -v parameter + + * Imported dcraw 8.89/1.411 + + changes in Panasonic FZ50 files parsing + + * LibRaw 0.7.0-Alpha1 released + + +2009-01-05 Alex Tutubalin + * It is possible to turn off RAW data filtration (black level + subtraction, zero pixels averaging): + + supported on all cameras except Foveon and Phase One + + filtraction controlled by new parameter "filtering_mode" + + it is possible to expand API by filtering procedures + built for specific camera model. + + * Black border (masked pixels) extraction: + + API (data structures) for storing black mask. + + Black mask extraction supported only for limited list of + data formats: + - Canon .CRW, .CR2 (with exception of sRAW),A600, A5 + - Adobe DNG (both converted RAW and native DNG) + - Nikon NEF (compressed only) + this list to be expanded in future LibRaw versions + * New call add_masked_borders_to_bitmap makes full bitmap + 'masked border' + image + * Usage sample for functionality listed above: + samples/unprocessed_raw + * Imported dcraw 8.89/1.410: + + fixed bugs in Hasselblad .fff decoding + + fixes in Imacon metadata decoding + * Documentation changes + * All client code should be recompiled + * LibRaw 0.7.0-Alpha0 + + +2009-01-01 Alex Tutubalin + * Fixed a bug (filedescriptor and buffer memory leak) in thumbnail + extraction when called before metadata analysis. + Thanks to Albert Astalis Cid. + * LibRaw 0.6.4 Release + +2008-12-11 Alex Tutubalin + * Imported new edition of dcraw 8.89 (version 1.409) + * Nikon NEF decoding changed + * LibRaw 0.6.3 Release + +2008-12-03 Alex Tutubalin + * fixed bug in Panasonic .RW2 processing (only for thread-safe version, + single-threaded version was not affected) + * All client code should be recompiled + * LibRaw 0.6.2 Release + +2008-12-03 Alex Tutubalin + * Imported dcraw 8.89 (version 1.407) + * New cameras: + Canon G10 & 5D Mk2, Leaf AFi 7, Leica D-LUX4, Panasonic FX150 & G1, + Fujifilm IS Pro, + * Changed camera support (color conversion tables): + Canon 50D, Nikon D90 & P6000, Panasonic LX3 & FZ28, Sony A900 + * LibRaw 0.6.2 beta + +2008-09-25 Alex Tutubalin + * Added new data field float LibRaw::imgdata.color.cam_xyz[4][3]. + This field contains constant table (different for each camera) for + Camera RGB->XYZ conversion. + * All client code should be recompiled + * LibRaw 0.6.1 Release + +2008-09-18 Alex Tutubalin + * dcraw 8.88 imported: + - new cameras (Canon 50D, Sony A900, Nikon D90 & P6000, + Panasonic LX3 FZ28) + - new method of black point subtraction for Canon cameras, + preliminary banding suppression. + * Stack memory usage lowered (some thread data moved to dynamic + memory) + * some patches for MSVC compatibility + * LibRaw 0.6.0 Release + +2008-09-16 Alex Tutubalin + * Enum definitions changed to make gcc -pedantic happy + * Compiler/preprocessor flags does not affects LibRaw class field set + (i.e. structure for thread local storage is always allocated) + * Default library compilation mode (i.e. sources imported in another + project) is thread-safe + +2008-09-14 Alex Tutubalin + * OpenMP support for most CPU consuming steps of processing: + ahd_interpolation. wavelet_denoise + 10-30% speed-up of full processing pipe on 2-core CPU + OpenMP supported only on gcc (Linux/FreeBSD and Mac OS X) + + * LibRaw 0.6.0-Beta-1 + +2008-09-10 Alex Tutubalin + * All set_**handler accepts additional void* pointer, which should point to + callback private data. This pointer passed to user callback when it called. + + * LibRaw 0.6.0-alpha5 + + * All client code should be recompiled + +2008-09-10 Alex Tutubalin + * New processing stages in enum LibRaw_progress: + LIBRAW_PROGRESS_BAD_PIXELS LIBRAW_PROGRESS_DARK_FRAME + (reserved stages LIBRAW_PROGRESS_RESERVED_PRE1-PRE2 has removed) + * libraw_strprogress() - convert progress code into string + + * Added progress/cancellation user callbacks + + new fatal error code: CANCELLED_BY_CALLBACK + + sample usage in samples/dcraw_emu.cpp (try run it with -v -v -v opts) + + * LibRaw 0.6.0-alpha4 + + * All client code should be recompiled + +2008-09-08 Alex Tutubalin + * ICC-profiles support (same as in dcraw) + + input/output profiles (specified as path to 'icc' file or 'embed' for + embedded input profile) + + additional warnings + + LCMS library used + + * support of bad pixel map (caller should specify path to bad pixel file + in dcraw-compatible format) + + * dark frame subtraction support (caller should supply path to 16-bit PGM + map). samples/simple_dcraw.cpp - -4 option added for dark frame file + generation + + * support of bad pixeld map (dcraw-compatible format) + + * the dcraw_emu sample supports all new features (ICC, dark frame, bad + pixels) + + * libraw/libraw_version.h, defines, calls and macros for version checks: + + LibRaw::version(), LibRaw::versionNumber(), LIBRAW_CHECK_VERSION() + + * List of supported cameras: + + LibRaw::cameraCount() + + LibRaw::cameraList() + + * fixed error in adjust_sizes_info_only + + * documentation changes + + * LibRaw 0.6.0-alpha3 + +2008-09-07 Alex Tutubalin + * samples/mem_image.c - bitwise equal output with dcraw -4 + (PPMs outputted with network byte order) + * LibRaw 0.6.0-alpha2 + +2008-09-06 Alex Tutubalin + * Added calls dcraw_make_mem_image and dcraw_make_mem_image: + + functions (and supporting code) + + documentation changed + + new sample code samples/mem_image.cpp + * Added processing parameter LibRaw::imgdata.params.gamma_16bit + (set to 1 to make gamma correction for 16-bit output) + * LibRaw 0.6.0-alpha1 + +2008-08-28 Alex Tutubalin + * dcraw 1.404 (8.87) imported: + - 6 new cameras supported (Canon 1000D, A720, SD300; + Nikon D700, Oly E-520,Kodak C603) + * Licensing changed to GPL v2 + +2008-05-02 Alex Tutubalin + * mmap/malloc+read IO-layer removed due to no performance gain. + FILE I/O returned + +2008-05-02 Alex Tutubalin + * dcraw 1.403 imported + - changes in ljpeg decompression (index values cut to 12 bit) + - changes in parse_foveon() jpeg thumbnail extraction + * LibRaw 0.5.3 released + +2008-04-24 Alex Tutubalin + * Linux build of samples/identify fixed + * documentation editorial + * LibRaw 0.5.2 released + +2008-04-21 Alex Tutubalin + * All documentation translated to English + * English changelog started :) + * minor bug (include path) fixed in samples/half_mt + * LibRaw 0.5.1 released diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/share/doc/libraw/LICENSE.CDDL b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/share/doc/libraw/LICENSE.CDDL new file mode 100644 index 0000000000000000000000000000000000000000..8ee560c09af1695c3bd793fc39c765cbe2f63214 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/share/doc/libraw/LICENSE.CDDL @@ -0,0 +1,340 @@ +COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 + +1. Definitions. + +1.1. Contributor means each individual or entity that creates or +contributes to the creation of Modifications. + +1.2. Contributor Version means the combination of the Original +Software, prior Modifications used by a Contributor (if any), +and the Modifications made by that particular Contributor. + +1.3. Covered Software means (a) the Original Software, or (b) +Modifications, or (c) the combination of files containing +Original Software with files containing Modifications, in each +case including portions thereof. + +1.4. Executable means the Covered Software in any form other +than Source Code. + +1.5. Initial Developer means the individual or entity that first +makes Original Software available under this License. + +1.6. Larger Workmeans a work which combines Covered Software or +portions thereof with code not governed by the terms of this +License. + +1.7. License means this document. + +1.8. Licensable means having the right to grant, to the maximum +extent possible, whether at the time of the initial grant or +subsequently acquired, any and all of the rights conveyed herein. + +1.9. Modifications means the Source Code and Executable form of +any of the following: A. Any file that results from an addition +to, deletion from or modification of the contents of a file +containing Original Software or previous Modifications; B. Any +new file that contains any part of the Original Software or +previous Modification; or C. Any new file that is contributed or +otherwise made available under the terms of this License. + +1.10. Original Software means the Source Code and Executable +form of computer software code that is originally released under +this License. + +1.11. Patent Claims means any patent claim(s), now owned or +hereafter acquired, including without limitation, method, +process, and apparatus claims, in any patent Licensable by +grantor. + +1.12. Source Code means (a) the common form of computer software +code in which modifications are made and (b) associated +documentation included in or with such code. + +1.13. You (or Your) means an individual or a legal entity +exercising rights under, and complying with all of the terms of, +this License. For legal entities, You includes any entity which +controls, is controlled by, or is under common control with You. +For purposes of this definition, control means (a) the power, +direct or indirect, to cause the direction or management of such +entity, whether by contract or otherwise, or (b) ownership of +more than fifty percent (50%) of the outstanding shares or +beneficial ownership of such entity. + +2. License Grants. + +2.1. The Initial Developer Grant. Conditioned upon Your +compliance with Section 3.1 below and subject to third party +intellectual property claims, the Initial Developer hereby +grants You a world-wide, royalty-free, non-exclusive license: + +(a) under intellectual property rights (other than patent or +trademark) Licensable by Initial Developer, to use, reproduce, +modify, display, perform, sublicense and distribute the Original +Software (or portions thereof), with or without Modifications, +and/or as part of a Larger Work; and + +(b) under Patent Claims infringed by the making, using or +selling of Original Software, to make, have made, use, practice, +sell, and offer for sale, and/or otherwise dispose of the +Original Software (or portions thereof); + +(c) The licenses granted in Sections 2.1(a) and (b) are +effective on the date Initial Developer first distributes or +otherwise makes the Original Software available to a third party +under the terms of this License; + +(d) Notwithstanding Section 2.1(b) above, no patent license is +granted: (1) for code that You delete from the Original +Software, or (2) for infringements caused by: (i) the +modification of the Original Software, or (ii) the combination +of the Original Software with other software or devices. + +2.2. Contributor Grant. Conditioned upon Your compliance with +Section 3.1 below and subject to third party intellectual +property claims, each Contributor hereby grants You a +world-wide, royalty-free, non-exclusive license: + +(a) under intellectual property rights (other than patent or +trademark) Licensable by Contributor to use, reproduce, modify, +display, perform, sublicense and distribute the Modifications +created by such Contributor (or portions thereof), either on an +unmodified basis, with other Modifications, as Covered Software +and/or as part of a Larger Work; and + +(b) under Patent Claims infringed by the making, using, or +selling of Modifications made by that Contributor either alone +and/or in combination with its Contributor Version (or portions +of such combination), to make, use, sell, offer for sale, have +made, and/or otherwise dispose of: (1) Modifications made by +that Contributor (or portions thereof); and (2) the combination +of Modifications made by that Contributor with its Contributor +Version (or portions of such combination). + +(c) The licenses granted in Sections 2.2(a) and 2.2(b) +areeffective on the date Contributor first distributes or +otherwise makes the Modifications available to a third party. + +(d) Notwithstanding Section 2.2(b) above, no patent license is +granted: (1) for any code that Contributor has deleted from the +Contributor Version; (2) for infringements caused by: (i) third +party modifications of Contributor Version, or (ii) the +combination of Modifications made by that Contributor with other +software (except as part of the Contributor Version) or other +devices; or (3) under Patent Claims infringed by Covered +Software in the absence of Modifications made by that +Contributor. + +3. Distribution Obligations. + +3.1. Availability of Source Code. Any Covered Software that You +distribute or otherwise make available in Executable form must +also be made available in Source Code form and that Source Code +form must be distributed only under the terms of this License. +You must include a copy of this License with every copy of the +Source Code form of the Covered Software You distribute or +otherwise make available. You must inform recipients of any such +Covered Software in Executable form as to how they can obtain +such Covered Software in Source Code form in a reasonable manner +on or through a medium customarily used for software exchange. + +3.2. Modifications. The Modifications that You create or to +which You contribute are governed by the terms of this License. +You represent that You believe Your Modifications are Your +original creation(s) and/or You have sufficient rights to grant +the rights conveyed by this License. + +3.3. Required Notices. You must include a notice in each of Your +Modifications that identifies You as the Contributor of the +Modification. You may not remove or alter any copyright, patent +or trademark notices contained within the Covered Software, or +any notices of licensing or any descriptive text giving +attribution to any Contributor or the Initial Developer. + +3.4. Application of Additional Terms. You may not offer or +impose any terms on any Covered Software in Source Code form +that alters or restricts the applicable version of this License +or the recipients rights hereunder. You may choose to offer, and +to charge a fee for, warranty, support, indemnity or liability +obligations to one or more recipients of Covered +Software. However, you may do so only on Your own behalf, and +not on behalf of the Initial Developer or any Contributor. You +must make it absolutely clear that any such warranty, support, +indemnity or liability obligation is offered by You alone, and +You hereby agree to indemnify the Initial Developer and every +Contributor for any liability incurred by the Initial Developer +or such Contributor as a result of warranty, support, indemnity +or liability terms You offer. + +3.5. Distribution of Executable Versions. You may distribute the +Executable form of the Covered Software under the terms of this +License or under the terms of a license of Your choice, which +may contain terms different from this License, provided that You +are in compliance with the terms of this License and that the +license for the Executable form does not attempt to limit or +alter the recipients rights in the Source Code form from the +rights set forth in this License. If You distribute the Covered +Software in Executable form under a different license, You must +make it absolutely clear that any terms which differ from this +License are offered by You alone, not by the Initial Developer +or Contributor. You hereby agree to indemnify the Initial +Developer and every Contributor for any liability incurred by +the Initial Developer or such Contributor as a result of any +such terms You offer. + +3.6. Larger Works. You may create a Larger Work by combining +Covered Software with other code not governed by the terms of +this License and distribute the Larger Work as a single product. +In such a case, You must make sure the requirements of this +License are fulfilled for the Covered Software. + +4. Versions of the License. + +4.1. New Versions. Sun Microsystems, Inc. is the initial license +steward and may publish revised and/or new versions of this +License from time to time. Each version will be given a +distinguishing version number. Except as provided in Section +4.3, no one other than the license steward has the right to +modify this License. + +4.2. Effect of New Versions. You may always continue to use, +distribute or otherwise make the Covered Software available +under the terms of the version of the License under which You +originally received the Covered Software. If the Initial +Developer includes a notice in the Original Software prohibiting +it from being distributed or otherwise made available under any +subsequent version of the License, You must distribute and make +the Covered Software available under the terms of the version of +the License under which You originally received the Covered +Software. Otherwise, You may also choose to use, distribute or +otherwise make the Covered Software available under the terms of +any subsequent version of the License published by the license +steward. + +4.3. Modified Versions. When You are an Initial Developer and +You want to create a new license for Your Original Software, You +may create and use a modified version of this License if You: +(a) rename the license and remove any references to the name of +the license steward (except to note that the license differs +from this License); and (b) otherwise make it clear that the +license contains terms which differ from this License. + +5. DISCLAIMER OF WARRANTY. COVERED SOFTWARE IS PROVIDED UNDER +THIS LICENSE ON AN AS IS BASIS, WITHOUT WARRANTY OF ANY KIND, +EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, +WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF DEFECTS, +MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. +THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED +SOFTWARE IS WITH YOU. SHOULD ANY COVERED SOFTWARE PROVE +DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY +OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, +REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN +ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED SOFTWARE +IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. + +6. TERMINATION. + +6.1. This License and the rights granted hereunder will +terminate automatically if You fail to comply with terms herein +and fail to cure such breach within 30 days of becoming aware of +the breach. Provisions which, by their nature, must remain in +effect beyond the termination of this License shall survive. + +6.2. If You assert a patent infringement claim (excluding +declaratory judgment actions) against Initial Developer or a +Contributor (the Initial Developer or Contributor against whom +You assert such claim is referred to as Participant) alleging +that the Participant Software (meaning the Contributor Version +where the Participant is a Contributor or the Original Software +where the Participant is the Initial Developer) directly or +indirectly infringes any patent, then any and all rights granted +directly or indirectly to You by such Participant, the Initial +Developer (if the Initial Developer is not the Participant) and +all Contributors under Sections 2.1 and/or 2.2 of this License +shall, upon 60 days notice from Participant terminate +prospectively and automatically at the expiration of such 60 day +notice period, unless if within such 60 day period You withdraw +Your claim with respect to the Participant Software against such +Participant either unilaterally or pursuant to a written +agreement with Participant. + +6.3. In the event of termination under Sections 6.1 or 6.2 +above, all end user licenses that have been validly granted by +You or any distributor hereunder prior to termination (excluding +licenses granted to You by any distributor) shall survive +termination. + +7. LIMITATION OF LIABILITY. UNDER NO CIRCUMSTANCES AND UNDER NO +LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR +OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER +CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED SOFTWARE, OR ANY +SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY +INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY +CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOST +PROFITS, LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR +MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, +EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY +OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO +LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH +PARTYS NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH +LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR +LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS +EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. + +8. U.S. GOVERNMENT END USERS. The Covered Software is a +commercial item, as that term is defined in 48 C.F.R. 2.101 +(Oct. 1995), consisting of commercial computer software (as that +term is defined at 48 C.F.R. 252.227-7014(a)(1)) and commercial +computer software documentation as such terms are used in 48 +C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and +48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all +U.S. Government End Users acquire Covered Software with only +those rights set forth herein. This U.S. Government Rights +clause is in lieu of, and supersedes, any other FAR, DFAR, or +other clause or provision that addresses Government rights in +computer software under this License. + +9. MISCELLANEOUS. This License represents the complete agreement +concerning subject matter hereof. If any provision of this +License is held to be unenforceable, such provision shall be +reformed only to the extent necessary to make it enforceable. +This License shall be governed by the law of the jurisdiction +specified in a notice contained within the Original Software +(except to the extent applicable law, if any, provides +otherwise), excluding such jurisdictions conflict-of-law +provisions. Any litigation relating to this License shall be +subject to the jurisdiction of the courts located in the +jurisdiction and venue specified in a notice contained within +the Original Software, with the losing party responsible for +costs, including, without limitation, court costs and reasonable +attorneys fees and expenses. The application of the United +Nations Convention on Contracts for the International Sale of +Goods is expressly excluded. Any law or regulation which +provides that the language of a contract shall be construed +against the drafter shall not apply to this License. You agree +that You alone are responsible for compliance with the United +States export administration regulations (and the export control +laws and regulation of any other countries) when You use, +distribute or otherwise make available any Covered Software. + +10. RESPONSIBILITY FOR CLAIMS. As between Initial Developer and +the Contributors, each party is responsible for claims and +damages arising, directly or indirectly, out of its utilization +of rights under this License and You agree to work with Initial +Developer and Contributors to distribute such responsibility on +an equitable basis. Nothing herein is intended or shall be +deemed to constitute any admission of liability. + +---------------------------------------------------------------- + +NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND +DISTRIBUTION LICENSE (CDDL): This code is released under the +CDDL and shall be governed by the laws of the State of +California (excluding conflict-of-law provisions). Any +litigation relating to this License shall be subject to the +jurisdiction of the Federal Courts of the Northern District of +California and the state courts of the State of California, with +venue lying in Santa Clara County, California. + +---------------------------------------------------------------- + diff --git a/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/share/doc/libraw/LICENSE.LGPL b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/share/doc/libraw/LICENSE.LGPL new file mode 100644 index 0000000000000000000000000000000000000000..3b204400cf3d548f93a0f4f8e85d41d7e39ecb59 --- /dev/null +++ b/data/miniconda3/pkgs/libraw-0.21.5-h074291d_0/share/doc/libraw/LICENSE.LGPL @@ -0,0 +1,458 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments-2.19.2.dist-info/licenses/AUTHORS b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments-2.19.2.dist-info/licenses/AUTHORS new file mode 100644 index 0000000000000000000000000000000000000000..811c66ae178b354c0a0eb9bd5e7a9ac63b4b056c --- /dev/null +++ b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments-2.19.2.dist-info/licenses/AUTHORS @@ -0,0 +1,291 @@ +Pygments is written and maintained by Georg Brandl . + +Major developers are Tim Hatch and Armin Ronacher +. + +Other contributors, listed alphabetically, are: + +* Sam Aaron -- Ioke lexer +* Jean Abou Samra -- LilyPond lexer +* João Abecasis -- JSLT lexer +* Ali Afshar -- image formatter +* Thomas Aglassinger -- Easytrieve, JCL, Rexx, Transact-SQL and VBScript + lexers +* Maxence Ahlouche -- PostgreSQL Explain lexer +* Muthiah Annamalai -- Ezhil lexer +* Nikolay Antipov -- OpenSCAD lexer +* Kumar Appaiah -- Debian control lexer +* Andreas Amann -- AppleScript lexer +* Timothy Armstrong -- Dart lexer fixes +* Jeffrey Arnold -- R/S, Rd, BUGS, Jags, and Stan lexers +* Eiríkr Åsheim -- Uxntal lexer +* Jeremy Ashkenas -- CoffeeScript lexer +* José Joaquín Atria -- Praat lexer +* Stefan Matthias Aust -- Smalltalk lexer +* Lucas Bajolet -- Nit lexer +* Ben Bangert -- Mako lexers +* Max Battcher -- Darcs patch lexer +* Thomas Baruchel -- APL lexer +* Tim Baumann -- (Literate) Agda lexer +* Paul Baumgart, 280 North, Inc. -- Objective-J lexer +* Michael Bayer -- Myghty lexers +* Thomas Beale -- Archetype lexers +* John Benediktsson -- Factor lexer +* David Benjamin, Google LLC -- TLS lexer +* Trevor Bergeron -- mIRC formatter +* Vincent Bernat -- LessCSS lexer +* Christopher Bertels -- Fancy lexer +* Sébastien Bigaret -- QVT Operational lexer +* Jarrett Billingsley -- MiniD lexer +* Adam Blinkinsop -- Haskell, Redcode lexers +* Stéphane Blondon -- Procfile, SGF and Sieve lexers +* Frits van Bommel -- assembler lexers +* Pierre Bourdon -- bugfixes +* Martijn Braam -- Kernel log lexer, BARE lexer +* JD Browne, Google LLC -- GoogleSQL lexer +* Matthias Bussonnier -- ANSI style handling for terminal-256 formatter +* chebee7i -- Python traceback lexer improvements +* Hiram Chirino -- Scaml and Jade lexers +* Mauricio Caceres -- SAS and Stata lexers. +* Michael Camilleri, John Gabriele, sogaiu -- Janet lexer +* Daren Chandisingh -- Gleam lexer +* Ian Cooper -- VGL lexer +* David Corbett -- Inform, Jasmin, JSGF, Snowball, and TADS 3 lexers +* Leaf Corcoran -- MoonScript lexer +* Fraser Cormack -- TableGen lexer +* Gabriel Corona -- ASN.1 lexer +* Christopher Creutzig -- MuPAD lexer +* Daniël W. Crompton -- Pike lexer +* Pete Curry -- bugfixes +* Bryan Davis -- EBNF lexer +* Bruno Deferrari -- Shen lexer +* Walter Dörwald -- UL4 lexer +* Luke Drummond -- Meson lexer +* Giedrius Dubinskas -- HTML formatter improvements +* Owen Durni -- Haxe lexer +* Alexander Dutton, Oxford University Computing Services -- SPARQL lexer +* James Edwards -- Terraform lexer +* Nick Efford -- Python 3 lexer +* Sven Efftinge -- Xtend lexer +* Artem Egorkine -- terminal256 formatter +* Matthew Fernandez -- CAmkES lexer +* Paweł Fertyk -- GDScript lexer, HTML formatter improvements +* Michael Ficarra -- CPSA lexer +* James H. Fisher -- PostScript lexer +* Amanda Fitch, Google LLC -- GoogleSQL lexer +* William S. Fulton -- SWIG lexer +* Carlos Galdino -- Elixir and Elixir Console lexers +* Michael Galloy -- IDL lexer +* Naveen Garg -- Autohotkey lexer +* Simon Garnotel -- FreeFem++ lexer +* Laurent Gautier -- R/S lexer +* Alex Gaynor -- PyPy log lexer +* Richard Gerkin -- Igor Pro lexer +* Alain Gilbert -- TypeScript lexer +* Alex Gilding -- BlitzBasic lexer +* GitHub, Inc -- DASM16, Augeas, TOML, and Slash lexers +* Bertrand Goetzmann -- Groovy lexer +* Krzysiek Goj -- Scala lexer +* Rostyslav Golda -- FloScript lexer +* Andrey Golovizin -- BibTeX lexers +* Matt Good -- Genshi, Cheetah lexers +* Michał Górny -- vim modeline support +* Alex Gosse -- TrafficScript lexer +* Patrick Gotthardt -- PHP namespaces support +* Hubert Gruniaux -- C and C++ lexer improvements +* Olivier Guibe -- Asymptote lexer +* Phil Hagelberg -- Fennel lexer +* Florian Hahn -- Boogie lexer +* Martin Harriman -- SNOBOL lexer +* Matthew Harrison -- SVG formatter +* Steven Hazel -- Tcl lexer +* Dan Michael Heggø -- Turtle lexer +* Aslak Hellesøy -- Gherkin lexer +* Greg Hendershott -- Racket lexer +* Justin Hendrick -- ParaSail lexer +* Jordi Gutiérrez Hermoso -- Octave lexer +* David Hess, Fish Software, Inc. -- Objective-J lexer +* Ken Hilton -- Typographic Number Theory and Arrow lexers +* Varun Hiremath -- Debian control lexer +* Rob Hoelz -- Perl 6 lexer +* Doug Hogan -- Mscgen lexer +* Ben Hollis -- Mason lexer +* Max Horn -- GAP lexer +* Fred Hornsey -- OMG IDL Lexer +* Alastair Houghton -- Lexer inheritance facility +* Tim Howard -- BlitzMax lexer +* Dustin Howett -- Logos lexer +* Ivan Inozemtsev -- Fantom lexer +* Hiroaki Itoh -- Shell console rewrite, Lexers for PowerShell session, + MSDOS session, BC, WDiff +* Brian R. Jackson -- Tea lexer +* Christian Jann -- ShellSession lexer +* Jonas Camillus Jeppesen -- Line numbers and line highlighting for + RTF-formatter +* Dennis Kaarsemaker -- sources.list lexer +* Dmitri Kabak -- Inferno Limbo lexer +* Igor Kalnitsky -- vhdl lexer +* Colin Kennedy - USD lexer +* Alexander Kit -- MaskJS lexer +* Pekka Klärck -- Robot Framework lexer +* Gerwin Klein -- Isabelle lexer +* Eric Knibbe -- Lasso lexer +* Stepan Koltsov -- Clay lexer +* Oliver Kopp - Friendly grayscale style +* Adam Koprowski -- Opa lexer +* Benjamin Kowarsch -- Modula-2 lexer +* Domen Kožar -- Nix lexer +* Oleh Krekel -- Emacs Lisp lexer +* Alexander Kriegisch -- Kconfig and AspectJ lexers +* Marek Kubica -- Scheme lexer +* Jochen Kupperschmidt -- Markdown processor +* Gerd Kurzbach -- Modelica lexer +* Jon Larimer, Google Inc. -- Smali lexer +* Olov Lassus -- Dart lexer +* Matt Layman -- TAP lexer +* Dan Lazin, Google LLC -- GoogleSQL lexer +* Kristian Lyngstøl -- Varnish lexers +* Sylvestre Ledru -- Scilab lexer +* Chee Sing Lee -- Flatline lexer +* Mark Lee -- Vala lexer +* Thomas Linder Puls -- Visual Prolog lexer +* Pete Lomax -- Phix lexer +* Valentin Lorentz -- C++ lexer improvements +* Ben Mabey -- Gherkin lexer +* Angus MacArthur -- QML lexer +* Louis Mandel -- X10 lexer +* Louis Marchand -- Eiffel lexer +* Simone Margaritelli -- Hybris lexer +* Tim Martin - World of Warcraft TOC lexer +* Kirk McDonald -- D lexer +* Gordon McGregor -- SystemVerilog lexer +* Stephen McKamey -- Duel/JBST lexer +* Brian McKenna -- F# lexer +* Charles McLaughlin -- Puppet lexer +* Kurt McKee -- Tera Term macro lexer, PostgreSQL updates, MySQL overhaul, JSON lexer +* Joe Eli McIlvain -- Savi lexer +* Lukas Meuser -- BBCode formatter, Lua lexer +* Cat Miller -- Pig lexer +* Paul Miller -- LiveScript lexer +* Hong Minhee -- HTTP lexer +* Michael Mior -- Awk lexer +* Bruce Mitchener -- Dylan lexer rewrite +* Reuben Morais -- SourcePawn lexer +* Jon Morton -- Rust lexer +* Paulo Moura -- Logtalk lexer +* Mher Movsisyan -- DTD lexer +* Dejan Muhamedagic -- Crmsh lexer +* Adrien Nayrat -- PostgreSQL Explain lexer +* Ana Nelson -- Ragel, ANTLR, R console lexers +* David Neto, Google LLC -- WebGPU Shading Language lexer +* Kurt Neufeld -- Markdown lexer +* Nam T. Nguyen -- Monokai style +* Jesper Noehr -- HTML formatter "anchorlinenos" +* Mike Nolta -- Julia lexer +* Avery Nortonsmith -- Pointless lexer +* Jonas Obrist -- BBCode lexer +* Edward O'Callaghan -- Cryptol lexer +* David Oliva -- Rebol lexer +* Pat Pannuto -- nesC lexer +* Jon Parise -- Protocol buffers and Thrift lexers +* Benjamin Peterson -- Test suite refactoring +* Ronny Pfannschmidt -- BBCode lexer +* Dominik Picheta -- Nimrod lexer +* Andrew Pinkham -- RTF Formatter Refactoring +* Clément Prévost -- UrbiScript lexer +* Tanner Prynn -- cmdline -x option and loading lexers from files +* Oleh Prypin -- Crystal lexer (based on Ruby lexer) +* Nick Psaris -- K and Q lexers +* Xidorn Quan -- Web IDL lexer +* Elias Rabel -- Fortran fixed form lexer +* raichoo -- Idris lexer +* Daniel Ramirez -- GDScript lexer +* Kashif Rasul -- CUDA lexer +* Nathan Reed -- HLSL lexer +* Justin Reidy -- MXML lexer +* Jonathon Reinhart, Google LLC -- Soong lexer +* Norman Richards -- JSON lexer +* Corey Richardson -- Rust lexer updates +* Fabrizio Riguzzi -- cplint leder +* Lubomir Rintel -- GoodData MAQL and CL lexers +* Andre Roberge -- Tango style +* Georg Rollinger -- HSAIL lexer +* Michiel Roos -- TypoScript lexer +* Konrad Rudolph -- LaTeX formatter enhancements +* Mario Ruggier -- Evoque lexers +* Miikka Salminen -- Lovelace style, Hexdump lexer, lexer enhancements +* Stou Sandalski -- NumPy, FORTRAN, tcsh and XSLT lexers +* Matteo Sasso -- Common Lisp lexer +* Joe Schafer -- Ada lexer +* Max Schillinger -- TiddlyWiki5 lexer +* Andrew Schmidt -- X++ lexer +* Ken Schutte -- Matlab lexers +* René Schwaiger -- Rainbow Dash style +* Sebastian Schweizer -- Whiley lexer +* Tassilo Schweyer -- Io, MOOCode lexers +* Pablo Seminario -- PromQL lexer +* Ted Shaw -- AutoIt lexer +* Joerg Sieker -- ABAP lexer +* Robert Simmons -- Standard ML lexer +* Kirill Simonov -- YAML lexer +* Corbin Simpson -- Monte lexer +* Ville Skyttä -- ASCII armored lexer +* Alexander Smishlajev -- Visual FoxPro lexer +* Steve Spigarelli -- XQuery lexer +* Jerome St-Louis -- eC lexer +* Camil Staps -- Clean and NuSMV lexers; Solarized style +* James Strachan -- Kotlin lexer +* Tom Stuart -- Treetop lexer +* Colin Sullivan -- SuperCollider lexer +* Ben Swift -- Extempore lexer +* tatt61880 -- Kuin lexer +* Edoardo Tenani -- Arduino lexer +* Tiberius Teng -- default style overhaul +* Jeremy Thurgood -- Erlang, Squid config lexers +* Brian Tiffin -- OpenCOBOL lexer +* Bob Tolbert -- Hy lexer +* Doug Torrance -- Macaulay2 lexer +* Matthias Trute -- Forth lexer +* Tuoa Spi T4 -- Bdd lexer +* Erick Tryzelaar -- Felix lexer +* Alexander Udalov -- Kotlin lexer improvements +* Thomas Van Doren -- Chapel lexer +* Dave Van Ee -- Uxntal lexer updates +* Daniele Varrazzo -- PostgreSQL lexers +* Abe Voelker -- OpenEdge ABL lexer +* Pepijn de Vos -- HTML formatter CTags support +* Matthias Vallentin -- Bro lexer +* Benoît Vinot -- AMPL lexer +* Linh Vu Hong -- RSL lexer +* Taavi Väänänen -- Debian control lexer +* Immanuel Washington -- Smithy lexer +* Nathan Weizenbaum -- Haml and Sass lexers +* Nathan Whetsell -- Csound lexers +* Dietmar Winkler -- Modelica lexer +* Nils Winter -- Smalltalk lexer +* Davy Wybiral -- Clojure lexer +* Whitney Young -- ObjectiveC lexer +* Diego Zamboni -- CFengine3 lexer +* Enrique Zamudio -- Ceylon lexer +* Alex Zimin -- Nemerle lexer +* Rob Zimmerman -- Kal lexer +* Evgenii Zheltonozhskii -- Maple lexer +* Vincent Zurczak -- Roboconf lexer +* Hubert Gruniaux -- C and C++ lexer improvements +* Thomas Symalla -- AMDGPU Lexer +* 15b3 -- Image Formatter improvements +* Fabian Neumann -- CDDL lexer +* Thomas Duboucher -- CDDL lexer +* Philipp Imhof -- Pango Markup formatter +* Thomas Voss -- Sed lexer +* Martin Fischer -- WCAG contrast testing +* Marc Auberer -- Spice lexer +* Amr Hesham -- Carbon lexer +* diskdance -- Wikitext lexer +* vanillajonathan -- PRQL lexer +* Nikolay Antipov -- OpenSCAD lexer +* Markus Meyer, Nextron Systems -- YARA lexer +* Hannes Römer -- Mojo lexer +* Jan Frederik Schaefer -- PDDL lexer + +Many thanks for all contributions! diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments-2.19.2.dist-info/licenses/LICENSE b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments-2.19.2.dist-info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..446a1a805c8a949579fb8a9799f2bec7777349dc --- /dev/null +++ b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments-2.19.2.dist-info/licenses/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2006-2022 by the respective authors (see AUTHORS file). +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/__init__.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/__init__.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b279633ca4f932bb987e9404286c51c0768e91b5 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/__init__.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/_mapping.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/_mapping.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..805dcc9984513556bc92a01e5323cf62150fd347 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/_mapping.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/abap.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/abap.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..05a58cfba81c37fe83aa7efae8e22f8903d5c9e5 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/abap.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/algol.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/algol.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7208e050cfef906b3b5c016e6f36692a55ebe638 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/algol.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/algol_nu.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/algol_nu.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2a9b6bada8d901484e98e871902175d929e0c5a2 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/algol_nu.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/arduino.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/arduino.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9cba754e2ece404ffbbd9a093502cea0639e3bb9 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/arduino.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/autumn.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/autumn.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9501fdb9e950b09be060a5eb051f5e96b80744a0 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/autumn.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/borland.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/borland.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6d561398eec7ccedb1865a9efa861927ac423fbb Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/borland.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/bw.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/bw.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b2d750ddcef8d20e10c34cb3da1d860717a9b1ab Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/bw.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/coffee.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/coffee.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..04dc0839333215862d30d2413c5b4f0a36bd4755 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/coffee.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/colorful.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/colorful.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e01cdc4c4b499fa2985ea425b5be55376152e07c Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/colorful.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/default.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/default.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0cdd3519b2d35bba594d8ce229f83bf9b3d438d4 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/default.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/dracula.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/dracula.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2f4bdff078d00772964ef9646b59c2f80923ffab Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/dracula.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/emacs.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/emacs.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9ab716e2d4238bf903f3e74c583cdd244706ab98 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/emacs.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/friendly.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/friendly.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fefe7dddef0edfc2a10f12ec76c2c8642b3226c9 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/friendly.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/fruity.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/fruity.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bbd8a906a6d5e84e5668daed3b2a6731d1068b0a Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/fruity.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/igor.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/igor.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..99614a5f93bf073e7c4133d104ec447ffd7398f8 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/igor.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/inkpot.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/inkpot.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..201c01c8e8ba00ea7ad8b0e5086e6b0cf4451d28 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/inkpot.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/lightbulb.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/lightbulb.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0ba7aa876f75e46e02207baaae60da7392d0c007 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/lightbulb.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/lilypond.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/lilypond.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d9829fa9f7530bdb25c724a9d7ef4b029c7944b7 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/lilypond.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/lovelace.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/lovelace.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5291f59aa66c86d0c2bee3fc9b2cb88e2a72fb77 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/lovelace.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/manni.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/manni.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..13557b499a2192ec469993b63800e8126a1e9c1e Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/manni.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/material.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/material.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..69650567e060d923af5bc1b2e7ed8a7851d637ce Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/material.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/monokai.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/monokai.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2a23d3f8d9dc96b526452e8db269de1117876c08 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/monokai.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/paraiso_light.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/paraiso_light.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..09404e8e8415fa39d688d0f2f6ce01416c3fa8d5 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/paraiso_light.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/pastie.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/pastie.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e06c61cc3a331756a301d775e91478d5cfc7025b Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/pastie.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/rainbow_dash.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/rainbow_dash.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..30010c94cb8e72cb984cab7d29618172054fa331 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/rainbow_dash.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/rrt.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/rrt.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f8dbfd0b5515420cc7d1c1d6c0926ef94bf4db34 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/rrt.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/sas.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/sas.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..295c404a3ae90c34a07ed93f757072578c13c101 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/sas.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/solarized.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/solarized.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..343718dfa8c837ae852e49e5f7e5ca11c31e78f3 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/solarized.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/tango.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/tango.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e5a271f3af65e0e94dd448f12233983cbc8bb2eb Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/tango.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/trac.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/trac.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b3ee40b225218111f346d5927c5c90d6f8f5602d Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/trac.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/vim.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/vim.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..90d21bdbdd786e3cd23fd723828381bb47190b69 Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/vim.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/zenburn.cpython-313.pyc b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/zenburn.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8c12008f63bd5547bb7b2d890f1676c8f8425f9f Binary files /dev/null and b/data/miniconda3/pkgs/pygments-2.19.2-py313h06a4308_0/lib/python3.13/site-packages/pygments/styles/__pycache__/zenburn.cpython-313.pyc differ diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/chardefs.h b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/chardefs.h new file mode 100644 index 0000000000000000000000000000000000000000..02f7e17e26927bdcc2b54393694a0a812967ff6c --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/chardefs.h @@ -0,0 +1,165 @@ +/* chardefs.h -- Character definitions for readline. */ + +/* Copyright (C) 1994-2021 Free Software Foundation, Inc. + + This file is part of the GNU Readline Library (Readline), a library + for reading lines of text with interactive input and history editing. + + Readline is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Readline is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Readline. If not, see . +*/ + +#ifndef _CHARDEFS_H_ +#define _CHARDEFS_H_ + +#include + +#if defined (HAVE_CONFIG_H) +# if defined (HAVE_STRING_H) +# include +# endif /* HAVE_STRING_H */ +# if defined (HAVE_STRINGS_H) +# include +# endif /* HAVE_STRINGS_H */ +#else +# include +#endif /* !HAVE_CONFIG_H */ + +#ifndef whitespace +#define whitespace(c) (((c) == ' ') || ((c) == '\t')) +#endif + +#ifdef CTRL +# undef CTRL +#endif +#ifdef UNCTRL +# undef UNCTRL +#endif + +/* Some character stuff. */ +#define control_character_threshold 0x020 /* Smaller than this is control. */ +#define control_character_mask 0x1f /* 0x20 - 1 */ +#define meta_character_threshold 0x07f /* Larger than this is Meta. */ +#define control_character_bit 0x40 /* 0x000000, must be off. */ +#define meta_character_bit 0x080 /* x0000000, must be on. */ +#define largest_char 255 /* Largest character value. */ + +#define CTRL_CHAR(c) ((c) < control_character_threshold && (((c) & 0x80) == 0)) +#define META_CHAR(c) ((unsigned char)(c) > meta_character_threshold && (unsigned char)(c) <= largest_char) + +#define CTRL(c) ((c) & control_character_mask) +#define META(c) ((c) | meta_character_bit) + +#define UNMETA(c) ((c) & (~meta_character_bit)) +#define UNCTRL(c) _rl_to_upper(((c)|control_character_bit)) + +#ifndef UCHAR_MAX +# define UCHAR_MAX 255 +#endif +#ifndef CHAR_MAX +# define CHAR_MAX 127 +#endif + +/* use this as a proxy for C89 */ +#if defined (HAVE_STDLIB_H) && defined (HAVE_STRING_H) +# define IN_CTYPE_DOMAIN(c) 1 +# define NON_NEGATIVE(c) 1 +#else +# define IN_CTYPE_DOMAIN(c) ((c) >= 0 && (c) <= CHAR_MAX) +# define NON_NEGATIVE(c) ((unsigned char)(c) == (c)) +#endif + +#if !defined (isxdigit) && !defined (HAVE_ISXDIGIT) && !defined (__cplusplus) +# define isxdigit(c) (isdigit((unsigned char)(c)) || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F')) +#endif + +/* Some systems define these; we want our definitions. */ +#undef ISPRINT + +/* Beware: these only work with single-byte ASCII characters. */ + +#define ISALNUM(c) (IN_CTYPE_DOMAIN (c) && isalnum ((unsigned char)c)) +#define ISALPHA(c) (IN_CTYPE_DOMAIN (c) && isalpha ((unsigned char)c)) +#define ISDIGIT(c) (IN_CTYPE_DOMAIN (c) && isdigit ((unsigned char)c)) +#define ISLOWER(c) (IN_CTYPE_DOMAIN (c) && islower ((unsigned char)c)) +#define ISPRINT(c) (IN_CTYPE_DOMAIN (c) && isprint ((unsigned char)c)) +#define ISUPPER(c) (IN_CTYPE_DOMAIN (c) && isupper ((unsigned char)c)) +#define ISXDIGIT(c) (IN_CTYPE_DOMAIN (c) && isxdigit ((unsigned char)c)) + +#define _rl_lowercase_p(c) (NON_NEGATIVE(c) && ISLOWER(c)) +#define _rl_uppercase_p(c) (NON_NEGATIVE(c) && ISUPPER(c)) +#define _rl_digit_p(c) ((c) >= '0' && (c) <= '9') + +#define _rl_alphabetic_p(c) (NON_NEGATIVE(c) && ISALNUM(c)) +#define _rl_pure_alphabetic(c) (NON_NEGATIVE(c) && ISALPHA(c)) + +#ifndef _rl_to_upper +# define _rl_to_upper(c) (_rl_lowercase_p(c) ? toupper((unsigned char)(c)) : (c)) +# define _rl_to_lower(c) (_rl_uppercase_p(c) ? tolower((unsigned char)(c)) : (c)) +#endif + +#ifndef _rl_digit_value +# define _rl_digit_value(x) ((x) - '0') +#endif + +#ifndef _rl_isident +# define _rl_isident(c) (ISALNUM(c) || (c) == '_') +#endif + +#ifndef ISOCTAL +# define ISOCTAL(c) ((c) >= '0' && (c) <= '7') +#endif +#define OCTVALUE(c) ((c) - '0') + +#define HEXVALUE(c) \ + (((c) >= 'a' && (c) <= 'f') \ + ? (c)-'a'+10 \ + : (c) >= 'A' && (c) <= 'F' ? (c)-'A'+10 : (c)-'0') + +#ifndef NEWLINE +#define NEWLINE '\n' +#endif + +#ifndef RETURN +#define RETURN CTRL('M') +#endif + +#ifndef RUBOUT +#define RUBOUT 0x7f +#endif + +#ifndef TAB +#define TAB '\t' +#endif + +#ifdef ABORT_CHAR +#undef ABORT_CHAR +#endif +#define ABORT_CHAR CTRL('G') + +#ifdef PAGE +#undef PAGE +#endif +#define PAGE CTRL('L') + +#ifdef SPACE +#undef SPACE +#endif +#define SPACE ' ' /* XXX - was 0x20 */ + +#ifdef ESC +#undef ESC +#endif +#define ESC CTRL('[') + +#endif /* _CHARDEFS_H_ */ diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/history.h b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/history.h new file mode 100644 index 0000000000000000000000000000000000000000..4721e3a29f488c0e5a1e2dd0337426ca883d070e --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/history.h @@ -0,0 +1,291 @@ +/* history.h -- the names of functions that you can call in history. */ + +/* Copyright (C) 1989-2023 Free Software Foundation, Inc. + + This file contains the GNU History Library (History), a set of + routines for managing the text of previously typed lines. + + History is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + History is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with History. If not, see . +*/ + +#ifndef _HISTORY_H_ +#define _HISTORY_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include /* XXX - for history timestamp code */ + +#if defined READLINE_LIBRARY +# include "rlstdc.h" +# include "rltypedefs.h" +#else +# include +# include +#endif + +typedef void *histdata_t; + +/* Let's not step on anyone else's define for now, since we don't use this yet. */ +#ifndef HS_HISTORY_VERSION +# define HS_HISTORY_VERSION 0x0803 /* History 8.3 */ +#endif + +/* The structure used to store a history entry. */ +typedef struct _hist_entry { + char *line; + char *timestamp; /* char * rather than time_t for read/write */ + histdata_t data; +} HIST_ENTRY; + +#ifndef HIST_ENTRY_DEFINED +# define HIST_ENTRY_DEFINED +#endif + +/* Size of the history-library-managed space in history entry HS. */ +#define HISTENT_BYTES(hs) (strlen ((hs)->line) + strlen ((hs)->timestamp)) + +/* A structure used to pass the current state of the history stuff around. */ +typedef struct _hist_state { + HIST_ENTRY **entries; /* Pointer to the entries themselves. */ + int offset; /* The location pointer within this array. */ + int length; /* Number of elements within this array. */ + int size; /* Number of slots allocated to this array. */ + int flags; +} HISTORY_STATE; + +/* Flag values for the `flags' member of HISTORY_STATE. */ +#define HS_STIFLED 0x01 + +/* Initialization and state management. */ + +/* Begin a session in which the history functions might be used. This + just initializes the interactive variables. */ +extern void using_history (void); + +/* Return the current HISTORY_STATE of the history. */ +extern HISTORY_STATE *history_get_history_state (void); + +/* Set the state of the current history array to STATE. */ +extern void history_set_history_state (HISTORY_STATE *); + +/* Manage the history list. */ + +/* Place STRING at the end of the history list. + The associated data field (if any) is set to NULL. */ +extern void add_history (const char *); + +/* Change the timestamp associated with the most recent history entry to + STRING. */ +extern void add_history_time (const char *); + +/* Remove an entry from the history list. WHICH is the magic number that + tells us which element to delete. The elements are numbered from 0. */ +extern HIST_ENTRY *remove_history (int); + +/* Remove a set of entries from the history list: FIRST to LAST, inclusive */ +extern HIST_ENTRY **remove_history_range (int, int); + +/* Allocate a history entry consisting of STRING and TIMESTAMP and return + a pointer to it. */ +extern HIST_ENTRY *alloc_history_entry (char *, char *); + +/* Copy the history entry H, but not the (opaque) data pointer */ +extern HIST_ENTRY *copy_history_entry (HIST_ENTRY *); + +/* Free the history entry H and return any application-specific data + associated with it. */ +extern histdata_t free_history_entry (HIST_ENTRY *); + +/* Make the history entry at WHICH have LINE and DATA. This returns + the old entry so you can dispose of the data. In the case of an + invalid WHICH, a NULL pointer is returned. */ +extern HIST_ENTRY *replace_history_entry (int, const char *, histdata_t); + +/* Clear the history list and start over. */ +extern void clear_history (void); + +/* Stifle the history list, remembering only MAX number of entries. */ +extern void stifle_history (int); + +/* Stop stifling the history. This returns the previous amount the + history was stifled by. The value is positive if the history was + stifled, negative if it wasn't. */ +extern int unstifle_history (void); + +/* Return 1 if the history is stifled, 0 if it is not. */ +extern int history_is_stifled (void); + +/* Information about the history list. */ + +/* Return a NULL terminated array of HIST_ENTRY which is the current input + history. Element 0 of this list is the beginning of time. If there + is no history, return NULL. */ +extern HIST_ENTRY **history_list (void); + +/* Returns the number which says what history element we are now + looking at. */ +extern int where_history (void); + +/* Return the history entry at the current position, as determined by + history_offset. If there is no entry there, return a NULL pointer. */ +extern HIST_ENTRY *current_history (void); + +/* Return the history entry which is logically at OFFSET in the history + array. OFFSET is relative to history_base. */ +extern HIST_ENTRY *history_get (int); + +/* Return the timestamp associated with the HIST_ENTRY * passed as an + argument */ +extern time_t history_get_time (HIST_ENTRY *); + +/* Return the number of bytes that the primary history entries are using. + This just adds up the lengths of the_history->lines. */ +extern int history_total_bytes (void); + +/* Moving around the history list. */ + +/* Set the position in the history list to POS. */ +extern int history_set_pos (int); + +/* Back up history_offset to the previous history entry, and return + a pointer to that entry. If there is no previous entry, return + a NULL pointer. */ +extern HIST_ENTRY *previous_history (void); + +/* Move history_offset forward to the next item in the input_history, + and return the a pointer to that entry. If there is no next entry, + return a NULL pointer. */ +extern HIST_ENTRY *next_history (void); + +/* Searching the history list. */ + +/* Search the history for STRING, starting at history_offset. + If DIRECTION < 0, then the search is through previous entries, + else through subsequent. If the string is found, then + current_history () is the history entry, and the value of this function + is the offset in the line of that history entry that the string was + found in. Otherwise, nothing is changed, and a -1 is returned. */ +extern int history_search (const char *, int); + +/* Search the history for STRING, starting at history_offset. + The search is anchored: matching lines must begin with string. + DIRECTION is as in history_search(). */ +extern int history_search_prefix (const char *, int); + +/* Search for STRING in the history list, starting at POS, an + absolute index into the list. DIR, if negative, says to search + backwards from POS, else forwards. + Returns the absolute index of the history element where STRING + was found, or -1 otherwise. */ +extern int history_search_pos (const char *, int, int); + +/* Managing the history file. */ + +/* Add the contents of FILENAME to the history list, a line at a time. + If FILENAME is NULL, then read from ~/.history. Returns 0 if + successful, or errno if not. */ +extern int read_history (const char *); + +/* Read a range of lines from FILENAME, adding them to the history list. + Start reading at the FROM'th line and end at the TO'th. If FROM + is zero, start at the beginning. If TO is less than FROM, read + until the end of the file. If FILENAME is NULL, then read from + ~/.history. Returns 0 if successful, or errno if not. */ +extern int read_history_range (const char *, int, int); + +/* Write the current history to FILENAME. If FILENAME is NULL, + then write the history list to ~/.history. Values returned + are as in read_history (). */ +extern int write_history (const char *); + +/* Append NELEMENT entries to FILENAME. The entries appended are from + the end of the list minus NELEMENTs up to the end of the list. */ +extern int append_history (int, const char *); + +/* Truncate the history file, leaving only the last NLINES lines. */ +extern int history_truncate_file (const char *, int); + +/* History expansion. */ + +/* Expand the string STRING, placing the result into OUTPUT, a pointer + to a string. Returns: + + 0) If no expansions took place (or, if the only change in + the text was the de-slashifying of the history expansion + character) + 1) If expansions did take place + -1) If there was an error in expansion. + 2) If the returned line should just be printed. + + If an error occurred in expansion, then OUTPUT contains a descriptive + error message. */ +extern int history_expand (const char *, char **); + +/* Extract a string segment consisting of the FIRST through LAST + arguments present in STRING. Arguments are broken up as in + the shell. */ +extern char *history_arg_extract (int, int, const char *); + +/* Return the text of the history event beginning at the current + offset into STRING. Pass STRING with *INDEX equal to the + history_expansion_char that begins this specification. + DELIMITING_QUOTE is a character that is allowed to end the string + specification for what to search for in addition to the normal + characters `:', ` ', `\t', `\n', and sometimes `?'. */ +extern char *get_history_event (const char *, int *, int); + +/* Return an array of tokens, much as the shell might. The tokens are + parsed out of STRING. */ +extern char **history_tokenize (const char *); + +/* Exported history variables. */ +extern int history_base; +extern int history_length; +extern int history_max_entries; +extern int history_offset; + +extern int history_lines_read_from_file; +extern int history_lines_written_to_file; + +extern char history_expansion_char; +extern char history_subst_char; +extern char *history_word_delimiters; +extern char history_comment_char; +extern char *history_no_expand_chars; +extern char *history_search_delimiter_chars; + +extern int history_quotes_inhibit_expansion; +extern int history_quoting_state; + +extern int history_write_timestamps; + +/* These two are undocumented; the second is reserved for future use */ +extern int history_multiline_entries; +extern int history_file_version; + +/* Backwards compatibility */ +extern int max_input_history; + +/* If set, this function is called to decide whether or not a particular + history expansion should be treated as a special case for the calling + application and not expanded. */ +extern rl_linebuf_func_t *history_inhibit_expansion_function; + +#ifdef __cplusplus +} +#endif + +#endif /* !_HISTORY_H_ */ diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/keymaps.h b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/keymaps.h new file mode 100644 index 0000000000000000000000000000000000000000..2903814838620ffaa72cc4bbbb93e4a9c63ab172 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/keymaps.h @@ -0,0 +1,100 @@ +/* keymaps.h -- Manipulation of readline keymaps. */ + +/* Copyright (C) 1987, 1989, 1992-2021 Free Software Foundation, Inc. + + This file is part of the GNU Readline Library (Readline), a library + for reading lines of text with interactive input and history editing. + + Readline is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Readline is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Readline. If not, see . +*/ + +#ifndef _KEYMAPS_H_ +#define _KEYMAPS_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#if defined (READLINE_LIBRARY) +# include "rlstdc.h" +# include "chardefs.h" +# include "rltypedefs.h" +#else +# include +# include +# include +#endif + +/* A keymap contains one entry for each key in the ASCII set. + Each entry consists of a type and a pointer. + FUNCTION is the address of a function to run, or the + address of a keymap to indirect through. + TYPE says which kind of thing FUNCTION is. */ +typedef struct _keymap_entry { + char type; + rl_command_func_t *function; +} KEYMAP_ENTRY; + +/* This must be large enough to hold bindings for all of the characters + in a desired character set (e.g, 128 for ASCII, 256 for ISO Latin-x, + and so on) plus one for subsequence matching. */ +#define KEYMAP_SIZE 257 +#define ANYOTHERKEY KEYMAP_SIZE-1 + +typedef KEYMAP_ENTRY KEYMAP_ENTRY_ARRAY[KEYMAP_SIZE]; +typedef KEYMAP_ENTRY *Keymap; + +/* The values that TYPE can have in a keymap entry. */ +#define ISFUNC 0 +#define ISKMAP 1 +#define ISMACR 2 + +extern KEYMAP_ENTRY_ARRAY emacs_standard_keymap, emacs_meta_keymap, emacs_ctlx_keymap; +extern KEYMAP_ENTRY_ARRAY vi_insertion_keymap, vi_movement_keymap; + +/* Return a new, empty keymap. + Free it with free() when you are done. */ +extern Keymap rl_make_bare_keymap (void); + +/* Return a new keymap which is a copy of MAP. */ +extern Keymap rl_copy_keymap (Keymap); + +/* Return a new keymap with the printing characters bound to rl_insert, + the lowercase Meta characters bound to run their equivalents, and + the Meta digits bound to produce numeric arguments. */ +extern Keymap rl_make_keymap (void); + +/* Free the storage associated with a keymap. */ +extern void rl_discard_keymap (Keymap); + +/* These functions actually appear in bind.c */ + +/* Return the keymap corresponding to a given name. Names look like + `emacs' or `emacs-meta' or `vi-insert'. */ +extern Keymap rl_get_keymap_by_name (const char *); + +/* Return the current keymap. */ +extern Keymap rl_get_keymap (void); + +/* Set the current keymap to MAP. */ +extern void rl_set_keymap (Keymap); + +/* Set the name of MAP to NAME */ +extern int rl_set_keymap_name (const char *, Keymap); + +#ifdef __cplusplus +} +#endif + +#endif /* _KEYMAPS_H_ */ diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/readline.h b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/readline.h new file mode 100644 index 0000000000000000000000000000000000000000..8a53b063e4278c6a2f8c78592fd52724c710e5c0 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/readline.h @@ -0,0 +1,1012 @@ +/* Readline.h -- the names of functions callable from within readline. */ + +/* Copyright (C) 1987-2024 Free Software Foundation, Inc. + + This file is part of the GNU Readline Library (Readline), a library + for reading lines of text with interactive input and history editing. + + Readline is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Readline is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Readline. If not, see . +*/ + +#if !defined (_READLINE_H_) +#define _READLINE_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#if defined (READLINE_LIBRARY) +# include "rlstdc.h" +# include "rltypedefs.h" +# include "keymaps.h" +# include "tilde.h" +#else +# include +# include +# include +# include +#endif + +/* Hex-encoded Readline version number. */ +#define RL_READLINE_VERSION 0x0803 /* Readline 8.3 */ +#define RL_VERSION_MAJOR 8 +#define RL_VERSION_MINOR 3 + +/* Readline data structures. */ + +/* Maintaining the state of undo. We remember individual deletes and inserts + on a chain of things to do. */ + +/* The actions that undo knows how to undo. Notice that UNDO_DELETE means + to insert some text, and UNDO_INSERT means to delete some text. I.e., + the code tells undo what to undo, not how to undo it. */ +enum undo_code { UNDO_DELETE, UNDO_INSERT, UNDO_BEGIN, UNDO_END }; + +/* What an element of THE_UNDO_LIST looks like. */ +typedef struct undo_list { + struct undo_list *next; + int start, end; /* Where the change took place. */ + char *text; /* The text to insert, if undoing a delete. */ + enum undo_code what; /* Delete, Insert, Begin, End. */ +} UNDO_LIST; + +/* The current undo list for RL_LINE_BUFFER. */ +extern UNDO_LIST *rl_undo_list; + +/* The data structure for mapping textual names to code addresses. */ +typedef struct _funmap { + const char *name; + rl_command_func_t *function; +} FUNMAP; + +extern FUNMAP **funmap; + +/* **************************************************************** */ +/* */ +/* Functions available to bind to key sequences */ +/* */ +/* **************************************************************** */ + +/* Bindable commands for numeric arguments. */ +extern int rl_digit_argument (int, int); +extern int rl_universal_argument (int, int); + +/* Bindable commands for moving the cursor. */ +extern int rl_forward_byte (int, int); +extern int rl_forward_char (int, int); +extern int rl_forward (int, int); +extern int rl_backward_byte (int, int); +extern int rl_backward_char (int, int); +extern int rl_backward (int, int); +extern int rl_beg_of_line (int, int); +extern int rl_end_of_line (int, int); +extern int rl_forward_word (int, int); +extern int rl_backward_word (int, int); +extern int rl_refresh_line (int, int); +extern int rl_clear_screen (int, int); +extern int rl_clear_display (int, int); +extern int rl_skip_csi_sequence (int, int); +extern int rl_arrow_keys (int, int); + +extern int rl_previous_screen_line (int, int); +extern int rl_next_screen_line (int, int); + +/* Bindable commands for inserting and deleting text. */ +extern int rl_insert (int, int); +extern int rl_quoted_insert (int, int); +extern int rl_tab_insert (int, int); +extern int rl_newline (int, int); +extern int rl_do_lowercase_version (int, int); +extern int rl_rubout (int, int); +extern int rl_delete (int, int); +extern int rl_rubout_or_delete (int, int); +extern int rl_delete_horizontal_space (int, int); +extern int rl_delete_or_show_completions (int, int); +extern int rl_insert_comment (int, int); + +/* Bindable commands for changing case. */ +extern int rl_upcase_word (int, int); +extern int rl_downcase_word (int, int); +extern int rl_capitalize_word (int, int); + +/* Bindable commands for transposing characters and words. */ +extern int rl_transpose_words (int, int); +extern int rl_transpose_chars (int, int); + +/* Bindable commands for searching within a line. */ +extern int rl_char_search (int, int); +extern int rl_backward_char_search (int, int); + +/* Bindable commands for readline's interface to the command history. */ +extern int rl_beginning_of_history (int, int); +extern int rl_end_of_history (int, int); +extern int rl_get_next_history (int, int); +extern int rl_get_previous_history (int, int); +extern int rl_operate_and_get_next (int, int); +extern int rl_fetch_history (int, int); + +/* Bindable commands for managing the mark and region. */ +extern int rl_set_mark (int, int); +extern int rl_exchange_point_and_mark (int, int); + +/* Bindable commands to set the editing mode (emacs or vi). */ +extern int rl_vi_editing_mode (int, int); +extern int rl_emacs_editing_mode (int, int); + +/* Bindable commands to change the insert mode (insert or overwrite) */ +extern int rl_overwrite_mode (int, int); + +/* Bindable commands for managing key bindings. */ +extern int rl_re_read_init_file (int, int); +extern int rl_dump_functions (int, int); +extern int rl_dump_macros (int, int); +extern int rl_dump_variables (int, int); + +/* Bindable commands for word completion. */ +extern int rl_complete (int, int); +extern int rl_possible_completions (int, int); +extern int rl_insert_completions (int, int); +extern int rl_old_menu_complete (int, int); +extern int rl_menu_complete (int, int); +extern int rl_backward_menu_complete (int, int); +extern int rl_export_completions (int, int); + +/* Bindable commands for killing and yanking text, and managing the kill ring. */ +extern int rl_kill_word (int, int); +extern int rl_backward_kill_word (int, int); +extern int rl_kill_line (int, int); +extern int rl_backward_kill_line (int, int); +extern int rl_kill_full_line (int, int); +extern int rl_unix_word_rubout (int, int); +extern int rl_unix_filename_rubout (int, int); +extern int rl_unix_line_discard (int, int); +extern int rl_copy_region_to_kill (int, int); +extern int rl_kill_region (int, int); +extern int rl_copy_forward_word (int, int); +extern int rl_copy_backward_word (int, int); +extern int rl_yank (int, int); +extern int rl_yank_pop (int, int); +extern int rl_yank_nth_arg (int, int); +extern int rl_yank_last_arg (int, int); +extern int rl_bracketed_paste_begin (int, int); +/* Not available unless _WIN32 is defined. */ +#if defined (_WIN32) +extern int rl_paste_from_clipboard (int, int); +#endif + +/* Bindable commands for incremental searching. */ +extern int rl_reverse_search_history (int, int); +extern int rl_forward_search_history (int, int); + +/* Bindable keyboard macro commands. */ +extern int rl_start_kbd_macro (int, int); +extern int rl_end_kbd_macro (int, int); +extern int rl_call_last_kbd_macro (int, int); +extern int rl_print_last_kbd_macro (int, int); + +/* Bindable undo commands. */ +extern int rl_revert_line (int, int); +extern int rl_undo_command (int, int); + +/* Bindable tilde expansion commands. */ +extern int rl_tilde_expand (int, int); + +/* Bindable terminal control commands. */ +extern int rl_restart_output (int, int); +extern int rl_stop_output (int, int); + +/* Miscellaneous bindable commands. */ +extern int rl_abort (int, int); +extern int rl_tty_status (int, int); + +extern int rl_execute_named_command (int, int); + +/* Bindable commands for incremental and non-incremental history searching. */ +extern int rl_history_search_forward (int, int); +extern int rl_history_search_backward (int, int); +extern int rl_history_substr_search_forward (int, int); +extern int rl_history_substr_search_backward (int, int); +extern int rl_noninc_forward_search (int, int); +extern int rl_noninc_reverse_search (int, int); +extern int rl_noninc_forward_search_again (int, int); +extern int rl_noninc_reverse_search_again (int, int); + +/* Bindable command used when inserting a matching close character. */ +extern int rl_insert_close (int, int); + +/* Not available unless READLINE_CALLBACKS is defined. */ +extern void rl_callback_handler_install (const char *, rl_vcpfunc_t *); +extern void rl_callback_read_char (void); +extern void rl_callback_handler_remove (void); +extern void rl_callback_sigcleanup (void); + +/* Things for vi mode. Not available unless readline is compiled -DVI_MODE. */ +/* VI-mode bindable commands. */ +extern int rl_vi_redo (int, int); +extern int rl_vi_undo (int, int); +extern int rl_vi_yank_arg (int, int); +extern int rl_vi_fetch_history (int, int); +extern int rl_vi_search_again (int, int); +extern int rl_vi_search (int, int); +extern int rl_vi_complete (int, int); +extern int rl_vi_tilde_expand (int, int); +extern int rl_vi_prev_word (int, int); +extern int rl_vi_next_word (int, int); +extern int rl_vi_end_word (int, int); +extern int rl_vi_insert_beg (int, int); +extern int rl_vi_append_mode (int, int); +extern int rl_vi_append_eol (int, int); +extern int rl_vi_eof_maybe (int, int); +extern int rl_vi_insertion_mode (int, int); +extern int rl_vi_insert_mode (int, int); +extern int rl_vi_movement_mode (int, int); +extern int rl_vi_arg_digit (int, int); +extern int rl_vi_change_case (int, int); +extern int rl_vi_put (int, int); +extern int rl_vi_column (int, int); +extern int rl_vi_delete_to (int, int); +extern int rl_vi_change_to (int, int); +extern int rl_vi_yank_to (int, int); +extern int rl_vi_yank_pop (int, int); +extern int rl_vi_rubout (int, int); +extern int rl_vi_delete (int, int); +extern int rl_vi_back_to_indent (int, int); +extern int rl_vi_unix_word_rubout (int, int); +extern int rl_vi_first_print (int, int); +extern int rl_vi_char_search (int, int); +extern int rl_vi_match (int, int); +extern int rl_vi_change_char (int, int); +extern int rl_vi_subst (int, int); +extern int rl_vi_overstrike (int, int); +extern int rl_vi_overstrike_delete (int, int); +extern int rl_vi_replace (int, int); +extern int rl_vi_set_mark (int, int); +extern int rl_vi_goto_mark (int, int); + +/* VI-mode utility functions. */ +extern int rl_vi_check (void); +extern int rl_vi_domove (int, int *); +extern int rl_vi_bracktype (int); + +extern void rl_vi_start_inserting (int, int, int); + +/* VI-mode pseudo-bindable commands, used as utility functions. */ +extern int rl_vi_fWord (int, int); +extern int rl_vi_bWord (int, int); +extern int rl_vi_eWord (int, int); +extern int rl_vi_fword (int, int); +extern int rl_vi_bword (int, int); +extern int rl_vi_eword (int, int); + +/* **************************************************************** */ +/* */ +/* Well Published Functions */ +/* */ +/* **************************************************************** */ + +/* Readline functions. */ +/* Read a line of input. Prompt with PROMPT. A NULL PROMPT means none. */ +extern char *readline (const char *); + +extern int rl_set_prompt (const char *); +extern int rl_expand_prompt (char *); + +extern int rl_initialize (void); + +/* Undocumented; unused by readline */ +extern int rl_discard_argument (void); + +/* Utility functions to bind keys to readline commands. */ +extern int rl_add_defun (const char *, rl_command_func_t *, int); +extern int rl_bind_key (int, rl_command_func_t *); +extern int rl_bind_key_in_map (int, rl_command_func_t *, Keymap); +extern int rl_unbind_key (int); +extern int rl_unbind_key_in_map (int, Keymap); +extern int rl_bind_key_if_unbound (int, rl_command_func_t *); +extern int rl_bind_key_if_unbound_in_map (int, rl_command_func_t *, Keymap); +extern int rl_unbind_function_in_map (rl_command_func_t *, Keymap); +extern int rl_unbind_command_in_map (const char *, Keymap); +extern int rl_bind_keyseq (const char *, rl_command_func_t *); +extern int rl_bind_keyseq_in_map (const char *, rl_command_func_t *, Keymap); +extern int rl_bind_keyseq_if_unbound (const char *, rl_command_func_t *); +extern int rl_bind_keyseq_if_unbound_in_map (const char *, rl_command_func_t *, Keymap); +extern int rl_generic_bind (int, const char *, char *, Keymap); + +extern char *rl_variable_value (const char *); +extern int rl_variable_bind (const char *, const char *); + +/* Backwards compatibility, use rl_bind_keyseq_in_map instead. */ +extern int rl_set_key (const char *, rl_command_func_t *, Keymap); + +/* Backwards compatibility, use rl_generic_bind instead. */ +extern int rl_macro_bind (const char *, const char *, Keymap); + +/* Undocumented in the texinfo manual; not really useful to programs. */ +extern int rl_translate_keyseq (const char *, char *, int *); +extern char *rl_untranslate_keyseq (int); + +extern rl_command_func_t *rl_named_function (const char *); +extern rl_command_func_t *rl_function_of_keyseq (const char *, Keymap, int *); +extern rl_command_func_t *rl_function_of_keyseq_len (const char *, size_t, Keymap, int *); +extern int rl_trim_arg_from_keyseq (const char *, size_t, Keymap); + +extern void rl_list_funmap_names (void); +extern char **rl_invoking_keyseqs_in_map (rl_command_func_t *, Keymap); +extern char **rl_invoking_keyseqs (rl_command_func_t *); + +extern void rl_print_keybinding (const char *, Keymap, int); + +extern void rl_function_dumper (int); +extern void rl_macro_dumper (int); +extern void rl_variable_dumper (int); + +extern int rl_read_init_file (const char *); +extern int rl_parse_and_bind (char *); + +/* Functions for manipulating keymaps. */ +extern Keymap rl_make_bare_keymap (void); +extern int rl_empty_keymap (Keymap); +extern Keymap rl_copy_keymap (Keymap); +extern Keymap rl_make_keymap (void); +extern void rl_discard_keymap (Keymap); +extern void rl_free_keymap (Keymap); + +extern Keymap rl_get_keymap_by_name (const char *); +extern char *rl_get_keymap_name (Keymap); +extern void rl_set_keymap (Keymap); +extern Keymap rl_get_keymap (void); + +extern int rl_set_keymap_name (const char *, Keymap); + +/* Undocumented; used internally only. */ +extern void rl_set_keymap_from_edit_mode (void); +extern char *rl_get_keymap_name_from_edit_mode (void); + +/* Functions for manipulating the funmap, which maps command names to functions. */ +extern int rl_add_funmap_entry (const char *, rl_command_func_t *); +extern const char **rl_funmap_names (void); +/* Undocumented, only used internally -- there is only one funmap, and this + function may be called only once. */ +extern void rl_initialize_funmap (void); + +/* Utility functions for managing keyboard macros. */ +extern void rl_push_macro_input (char *); + +/* Functions for undoing, from undo.c */ +extern void rl_add_undo (enum undo_code, int, int, char *); +extern void rl_free_undo_list (void); +extern int rl_do_undo (void); +extern int rl_begin_undo_group (void); +extern int rl_end_undo_group (void); +extern int rl_modifying (int, int); + +/* Functions for redisplay. */ +extern void rl_redisplay (void); +extern int rl_on_new_line (void); +extern int rl_on_new_line_with_prompt (void); +extern int rl_forced_update_display (void); +extern int rl_clear_visible_line (void); +extern int rl_clear_message (void); +extern int rl_reset_line_state (void); +extern int rl_crlf (void); + +/* Functions to manage the mark and region, especially the notion of an + active mark and an active region. */ +extern void rl_keep_mark_active (void); + +extern void rl_activate_mark (void); +extern void rl_deactivate_mark (void); +extern int rl_mark_active_p (void); + +extern int rl_message (const char *, ...) __attribute__((__format__ (printf, 1, 2))); + +extern int rl_show_char (int); + +/* Undocumented in texinfo manual. */ +extern int rl_character_len (int, int); +extern void rl_redraw_prompt_last_line (void); + +/* Save and restore internal prompt redisplay information. */ +extern void rl_save_prompt (void); +extern void rl_restore_prompt (void); + +/* Modifying text. */ +extern void rl_replace_line (const char *, int); +extern int rl_insert_text (const char *); +extern int rl_delete_text (int, int); +extern int rl_kill_text (int, int); +extern char *rl_copy_text (int, int); + +/* Terminal and tty mode management. */ +extern void rl_prep_terminal (int); +extern void rl_deprep_terminal (void); +extern void rl_tty_set_default_bindings (Keymap); +extern void rl_tty_unset_default_bindings (Keymap); + +extern int rl_tty_set_echoing (int); +extern int rl_reset_terminal (const char *); +extern void rl_resize_terminal (void); +extern void rl_set_screen_size (int, int); +extern void rl_get_screen_size (int *, int *); +extern void rl_reset_screen_size (void); + +extern char *rl_get_termcap (const char *); +extern void rl_reparse_colors (void); + +/* Functions for character input. */ +extern int rl_stuff_char (int); +extern int rl_execute_next (int); +extern int rl_clear_pending_input (void); +extern int rl_read_key (void); +extern int rl_getc (FILE *); +extern int rl_set_keyboard_input_timeout (int); + +/* Functions to set and reset timeouts. */ +extern int rl_set_timeout (unsigned int, unsigned int); +extern int rl_timeout_remaining (unsigned int *, unsigned int *); + +#undef rl_clear_timeout +#define rl_clear_timeout() rl_set_timeout (0, 0) + +/* `Public' utility functions . */ +extern void rl_extend_line_buffer (int); +extern int rl_ding (void); +extern int rl_alphabetic (int); +extern void rl_free (void *); + +/* Readline signal handling, from signals.c */ +extern int rl_set_signals (void); +extern int rl_clear_signals (void); +extern void rl_cleanup_after_signal (void); +extern void rl_reset_after_signal (void); +extern void rl_free_line_state (void); + +extern int rl_pending_signal (void); +extern void rl_check_signals (void); + +extern void rl_echo_signal_char (int); + +extern int rl_set_paren_blink_timeout (int); + +/* History management functions. */ + +extern void rl_clear_history (void); + +/* Undocumented. */ +extern int rl_maybe_save_line (void); +extern int rl_maybe_unsave_line (void); +extern int rl_maybe_replace_line (void); + +/* Completion functions. */ +extern int rl_complete_internal (int); +extern void rl_display_match_list (char **, int, int); + +extern char **rl_completion_matches (const char *, rl_compentry_func_t *); +extern char *rl_username_completion_function (const char *, int); +extern char *rl_filename_completion_function (const char *, int); + +extern int rl_completion_mode (rl_command_func_t *); + +#if 0 +/* Backwards compatibility (compat.c). These will go away sometime. */ +extern void free_undo_list (void); +extern int maybe_save_line (void); +extern int maybe_unsave_line (void); +extern int maybe_replace_line (void); + +extern int ding (void); +extern int alphabetic (int); +extern int crlf (void); + +extern char **completion_matches (char *, rl_compentry_func_t *); +extern char *username_completion_function (const char *, int); +extern char *filename_completion_function (const char *, int); +#endif + +/* **************************************************************** */ +/* */ +/* Well Published Variables */ +/* */ +/* **************************************************************** */ + +/* The version of this incarnation of the readline library. */ +extern const char *rl_library_version; /* e.g., "4.2" */ +extern int rl_readline_version; /* e.g., 0x0402 */ + +/* True if this is real GNU readline. */ +extern int rl_gnu_readline_p; + +/* Flags word encapsulating the current readline state. */ +extern unsigned long rl_readline_state; + +/* Says which editing mode readline is currently using. 1 means emacs mode; + 0 means vi mode. */ +extern int rl_editing_mode; + +/* Insert or overwrite mode for emacs mode. 1 means insert mode; 0 means + overwrite mode. Reset to insert mode on each input line. */ +extern int rl_insert_mode; + +/* The name of the calling program. You should initialize this to + whatever was in argv[0]. It is used when parsing conditionals. */ +extern const char *rl_readline_name; + +/* The prompt readline uses. This is set from the argument to + readline (), and should not be assigned to directly. */ +extern char *rl_prompt; + +/* The prompt string that is actually displayed by rl_redisplay. Public so + applications can more easily supply their own redisplay functions. */ +extern char *rl_display_prompt; + +/* The line buffer that is in use. */ +extern char *rl_line_buffer; + +/* The location of point, and end. */ +extern int rl_point; +extern int rl_end; + +/* The mark, or saved cursor position. */ +extern int rl_mark; + +/* Flag to indicate that readline has finished with the current input + line and should return it. */ +extern int rl_done; + +/* Flag to indicate that readline has read an EOF character or read has + returned 0 or error, and is returning a NULL line as a result. */ +extern int rl_eof_found; + +/* If set to a character value, that will be the next keystroke read. */ +extern int rl_pending_input; + +/* Non-zero if we called this function from _rl_dispatch(). It's present + so functions can find out whether they were called from a key binding + or directly from an application. */ +extern int rl_dispatching; + +/* Non-zero if the user typed a numeric argument before executing the + current function. */ +extern int rl_explicit_arg; + +/* The current value of the numeric argument specified by the user. */ +extern int rl_numeric_arg; + +/* The address of the last command function Readline executed. */ +extern rl_command_func_t *rl_last_func; + +/* The name of the terminal to use. */ +extern const char *rl_terminal_name; + +/* The input and output streams. */ +extern FILE *rl_instream; +extern FILE *rl_outstream; + +/* If non-zero, Readline gives values of LINES and COLUMNS from the environment + greater precedence than values fetched from the kernel when computing the + screen dimensions. */ +extern int rl_prefer_env_winsize; + +/* If non-zero, then this is the address of a function to call just + before readline_internal () prints the first prompt. */ +extern rl_hook_func_t *rl_startup_hook; + +/* If non-zero, this is the address of a function to call just before + readline_internal_setup () returns and readline_internal starts + reading input characters. */ +extern rl_hook_func_t *rl_pre_input_hook; + +/* The address of a function to call periodically while Readline is + awaiting character input, or NULL, for no event handling. */ +extern rl_hook_func_t *rl_event_hook; + +/* The address of a function to call if a read is interrupted by a signal. */ +extern rl_hook_func_t *rl_signal_event_hook; + +extern rl_hook_func_t *rl_timeout_event_hook; + +/* The address of a function to call if Readline needs to know whether or not + there is data available from the current input source. */ +extern rl_hook_func_t *rl_input_available_hook; + +/* The address of the function to call to fetch a character from the current + Readline input stream */ +extern rl_getc_func_t *rl_getc_function; + +extern rl_voidfunc_t *rl_redisplay_function; + +extern rl_vintfunc_t *rl_prep_term_function; +extern rl_voidfunc_t *rl_deprep_term_function; + +extern rl_macro_print_func_t *rl_macro_display_hook; + +/* Dispatch variables. */ +extern Keymap rl_executing_keymap; +extern Keymap rl_binding_keymap; + +extern int rl_executing_key; +extern char *rl_executing_keyseq; +extern int rl_key_sequence_length; + +/* Display variables. */ +/* If non-zero, readline will erase the entire line, including any prompt, + if the only thing typed on an otherwise-blank line is something bound to + rl_newline. */ +extern int rl_erase_empty_line; + +/* If non-zero, the application has already printed the prompt (rl_prompt) + before calling readline, so readline should not output it the first time + redisplay is done. */ +extern int rl_already_prompted; + +/* A non-zero value means to read only this many characters rather than + up to a character bound to accept-line. */ +extern int rl_num_chars_to_read; + +/* The text of a currently-executing keyboard macro. */ +extern char *rl_executing_macro; + +/* Variables to control readline signal handling. */ +/* If non-zero, readline will install its own signal handlers for + SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP, SIGTTIN, and SIGTTOU. */ +extern int rl_catch_signals; + +/* If non-zero, readline will install a signal handler for SIGWINCH + that also attempts to call any calling application's SIGWINCH signal + handler. Note that the terminal is not cleaned up before the + application's signal handler is called; use rl_cleanup_after_signal() + to do that. */ +extern int rl_catch_sigwinch; + +/* If non-zero, the readline SIGWINCH handler will modify LINES and + COLUMNS in the environment. */ +extern int rl_change_environment; + +/* Completion variables. */ +/* Pointer to the generator function for completion_matches (). + NULL means to use rl_filename_completion_function (), the default + filename completer. */ +extern rl_compentry_func_t *rl_completion_entry_function; + +/* Optional generator for menu completion. Default is + rl_completion_entry_function (rl_filename_completion_function). */ +extern rl_compentry_func_t *rl_menu_completion_entry_function; + +/* If rl_ignore_some_completions_function is non-NULL it is the address + of a function to call after all of the possible matches have been + generated, but before the actual completion is done to the input line. + The function is called with one argument; a NULL terminated array + of (char *). If your function removes any of the elements, they + must be free()'ed. */ +extern rl_compignore_func_t *rl_ignore_some_completions_function; + +/* Pointer to alternative function to create matches. + Function is called with TEXT, START, and END. + START and END are indices in RL_LINE_BUFFER saying what the boundaries + of TEXT are. + If this function exists and returns NULL then call the value of + rl_completion_entry_function to try to match, otherwise use the + array of strings returned. */ +extern rl_completion_func_t *rl_attempted_completion_function; + +/* The basic list of characters that signal a break between words for the + completer routine. The initial contents of this variable is what + breaks words in the shell, i.e. "n\"\\'`@$>". */ +extern const char *rl_basic_word_break_characters; + +/* The list of characters that signal a break between words for + rl_complete_internal. The default list is the contents of + rl_basic_word_break_characters. */ +extern const char *rl_completer_word_break_characters; + +/* Hook function to allow an application to set the completion word + break characters before readline breaks up the line. Allows + position-dependent word break characters. */ +extern rl_cpvfunc_t *rl_completion_word_break_hook; + +/* List of characters which can be used to quote a substring of the line. + Completion occurs on the entire substring, and within the substring + rl_completer_word_break_characters are treated as any other character, + unless they also appear within this list. */ +extern const char *rl_completer_quote_characters; + +/* List of quote characters which cause a word break. */ +extern const char *rl_basic_quote_characters; + +/* List of characters that need to be quoted in filenames by the completer. */ +extern const char *rl_filename_quote_characters; + +/* List of characters that are word break characters, but should be left + in TEXT when it is passed to the completion function. The shell uses + this to help determine what kind of completing to do. */ +extern const char *rl_special_prefixes; + +/* If non-zero, then this is the address of a function to call when + completing on a directory name. The function is called with + the address of a string (the current directory name) as an arg. It + changes what is displayed when the possible completions are printed + or inserted. The directory completion hook should perform + any necessary dequoting. This function should return 1 if it modifies + the directory name pointer passed as an argument. If the directory + completion hook returns 0, it should not modify the directory name + pointer passed as an argument. */ +extern rl_icppfunc_t *rl_directory_completion_hook; + +/* If non-zero, this is the address of a function to call when completing + a directory name. This function takes the address of the directory name + to be modified as an argument. Unlike rl_directory_completion_hook, it + only modifies the directory name used in opendir(2), not what is displayed + when the possible completions are printed or inserted. If set, it takes + precedence over rl_directory_completion_hook. The directory rewrite + hook should perform any necessary dequoting. This function has the same + return value properties as the directory_completion_hook. + + I'm not happy with how this works yet, so it's undocumented. I'm trying + it in bash to see how well it goes. */ +extern rl_icppfunc_t *rl_directory_rewrite_hook; + +/* If non-zero, this is the address of a function for the completer to call + before deciding which character to append to a completed name. It should + modify the directory name passed as an argument if appropriate, and return + non-zero if it modifies the name. This should not worry about dequoting + the filename; that has already happened by the time it gets here. */ +extern rl_icppfunc_t *rl_filename_stat_hook; + +/* If non-zero, this is the address of a function to call when reading + directory entries from the filesystem for completion and comparing + them to the partial word to be completed. The function should + either return its first argument (if no conversion takes place) or + newly-allocated memory. This can, for instance, convert filenames + between character sets for comparison against what's typed at the + keyboard. The returned value is what is added to the list of + matches. The second argument is the length of the filename to be + converted. */ +extern rl_dequote_func_t *rl_filename_rewrite_hook; + +/* If non-zero, this is the address of a function to call before + comparing the filename portion of a word to be completed with directory + entries from the filesystem. This takes the address of the partial word + to be completed, after any rl_filename_dequoting_function has been applied. + The function should either return its first argument (if no conversion + takes place) or newly-allocated memory. This can, for instance, convert + the filename portion of the completion word to a character set suitable + for comparison against directory entries read from the filesystem (after + their potential modification by rl_filename_rewrite_hook). + The returned value is what is added to the list of matches. + The second argument is the length of the filename to be converted. */ +extern rl_dequote_func_t *rl_completion_rewrite_hook; + +/* Backwards compatibility with previous versions of readline. */ +#define rl_symbolic_link_hook rl_directory_completion_hook + +/* If non-zero, then this is the address of a function to call when + completing a word would normally display the list of possible matches. + This function is called instead of actually doing the display. + It takes three arguments: (char **matches, int num_matches, int max_length) + where MATCHES is the array of strings that matched, NUM_MATCHES is the + number of strings in that array, and MAX_LENGTH is the length of the + longest string in that array. */ +extern rl_compdisp_func_t *rl_completion_display_matches_hook; + +/* Non-zero means that the results of the matches are to be treated + as filenames. This is ALWAYS zero on entry, and can only be changed + within a completion entry finder function. */ +extern int rl_filename_completion_desired; + +/* Non-zero means that the results of the matches are to be quoted using + double quotes (or an application-specific quoting mechanism) if the + filename contains any characters in rl_word_break_chars. This is + ALWAYS non-zero on entry, and can only be changed within a completion + entry finder function. */ +extern int rl_filename_quoting_desired; + +/* Non-zero means we should apply filename-type quoting to all completions + even if we are not otherwise treating the matches as filenames. This is + ALWAYS zero on entry, and can only be changed within a completion entry + finder function. */ +extern int rl_full_quoting_desired; + +/* Set to a function to quote a filename in an application-specific fashion. + Called with the text to quote, the type of match found (single or multiple) + and a pointer to the quoting character to be used, which the function can + reset if desired. */ +extern rl_quote_func_t *rl_filename_quoting_function; + +/* Function to call to remove quoting characters from a filename. Called + before completion is attempted, so the embedded quotes do not interfere + with matching names in the file system. */ +extern rl_dequote_func_t *rl_filename_dequoting_function; + +/* Function to call to decide whether or not a word break character is + quoted. If a character is quoted, it does not break words for the + completer. */ +extern rl_linebuf_func_t *rl_char_is_quoted_p; + +/* Non-zero means to suppress normal filename completion after the + user-specified completion function has been called. */ +extern int rl_attempted_completion_over; + +/* Set to a character describing the type of completion being attempted by + rl_complete_internal; available for use by application completion + functions. */ +extern int rl_completion_type; + +/* Set to the last key used to invoke one of the completion functions */ +extern int rl_completion_invoking_key; + +/* Up to this many items will be displayed in response to a + possible-completions call. After that, we ask the user if she + is sure she wants to see them all. The default value is 100. */ +extern int rl_completion_query_items; + +/* Character appended to completed words when at the end of the line. The + default is a space. Nothing is added if this is '\0'. */ +extern int rl_completion_append_character; + +/* If set to non-zero by an application completion function, + rl_completion_append_character will not be appended. */ +extern int rl_completion_suppress_append; + +/* Set to any quote character readline thinks it finds before any application + completion function is called. */ +extern int rl_completion_quote_character; + +/* Set to a non-zero value if readline found quoting anywhere in the word to + be completed; set before any application completion function is called. */ +extern int rl_completion_found_quote; + +/* If non-zero, the completion functions don't append any closing quote. + This is set to 0 by rl_complete_internal and may be changed by an + application-specific completion function. */ +extern int rl_completion_suppress_quote; + +/* If non-zero, readline will sort the completion matches. On by default. */ +extern int rl_sort_completion_matches; + +/* If non-zero, a slash will be appended to completed filenames that are + symbolic links to directory names, subject to the value of the + mark-directories variable (which is user-settable). This exists so + that application completion functions can override the user's preference + (set via the mark-symlinked-directories variable) if appropriate. + It's set to the value of _rl_complete_mark_symlink_dirs in + rl_complete_internal before any application-specific completion + function is called, so without that function doing anything, the user's + preferences are honored. */ +extern int rl_completion_mark_symlink_dirs; + +/* If non-zero, then disallow duplicates in the matches. */ +extern int rl_ignore_completion_duplicates; + +/* If this is non-zero, completion is (temporarily) inhibited, and the + completion character will be inserted as any other. */ +extern int rl_inhibit_completion; + +/* Applications can set this to non-zero to have readline's signal handlers + installed during the entire duration of reading a complete line, as in + readline-6.2. This should be used with care, because it can result in + readline receiving signals and not handling them until it's called again + via rl_callback_read_char, thereby stealing them from the application. + By default, signal handlers are only active while readline is active. */ +extern int rl_persistent_signal_handlers; + +/* Input error; can be returned by (*rl_getc_function) if readline is reading + a top-level command (RL_ISSTATE (RL_STATE_READCMD)). */ +#define READERR (-2) + +/* Definitions available for use by readline clients. */ +#define RL_PROMPT_START_IGNORE '\001' +#define RL_PROMPT_END_IGNORE '\002' + +/* Possible values for do_replace argument to rl_filename_quoting_function, + called by rl_complete_internal. */ +#define NO_MATCH 0 +#define SINGLE_MATCH 1 +#define MULT_MATCH 2 + +/* Possible state values for rl_readline_state */ +#define RL_STATE_NONE 0x0000000 /* no state; before first call */ + +#define RL_STATE_INITIALIZING 0x00000001 /* initializing */ +#define RL_STATE_INITIALIZED 0x00000002 /* initialization done */ +#define RL_STATE_TERMPREPPED 0x00000004 /* terminal is prepped */ +#define RL_STATE_READCMD 0x00000008 /* reading a command key */ +#define RL_STATE_METANEXT 0x00000010 /* reading input after ESC */ +#define RL_STATE_DISPATCHING 0x00000020 /* dispatching to a command */ +#define RL_STATE_MOREINPUT 0x00000040 /* reading more input in a command function */ +#define RL_STATE_ISEARCH 0x00000080 /* doing incremental search */ +#define RL_STATE_NSEARCH 0x00000100 /* doing non-inc search */ +#define RL_STATE_SEARCH 0x00000200 /* doing a history search */ +#define RL_STATE_NUMERICARG 0x00000400 /* reading numeric argument */ +#define RL_STATE_MACROINPUT 0x00000800 /* getting input from a macro */ +#define RL_STATE_MACRODEF 0x00001000 /* defining keyboard macro */ +#define RL_STATE_OVERWRITE 0x00002000 /* overwrite mode */ +#define RL_STATE_COMPLETING 0x00004000 /* doing completion */ +#define RL_STATE_SIGHANDLER 0x00008000 /* in readline sighandler */ +#define RL_STATE_UNDOING 0x00010000 /* doing an undo */ +#define RL_STATE_INPUTPENDING 0x00020000 /* rl_execute_next called */ +#define RL_STATE_TTYCSAVED 0x00040000 /* tty special chars saved */ +#define RL_STATE_CALLBACK 0x00080000 /* using the callback interface */ +#define RL_STATE_VIMOTION 0x00100000 /* reading vi motion arg */ +#define RL_STATE_MULTIKEY 0x00200000 /* reading multiple-key command */ +#define RL_STATE_VICMDONCE 0x00400000 /* entered vi command mode at least once */ +#define RL_STATE_CHARSEARCH 0x00800000 /* vi mode char search */ +#define RL_STATE_REDISPLAYING 0x01000000 /* updating terminal display */ + +#define RL_STATE_DONE 0x02000000 /* done; accepted line */ +#define RL_STATE_TIMEOUT 0x04000000 /* done; timed out */ +#define RL_STATE_EOF 0x08000000 /* done; got eof on read */ + +/* Rearrange these for next major version */ +#define RL_STATE_READSTR 0x10000000 /* reading a string for M-x */ + +#define RL_SETSTATE(x) (rl_readline_state |= (x)) +#define RL_UNSETSTATE(x) (rl_readline_state &= ~(x)) +#define RL_ISSTATE(x) (rl_readline_state & (x)) + +struct readline_state { + /* line state */ + int point; + int end; + int mark; + int buflen; + char *buffer; + UNDO_LIST *ul; + char *prompt; + + /* global state */ + int rlstate; /* XXX -- needs to be unsigned long */ + int done; + Keymap kmap; + + /* input state */ + rl_command_func_t *lastfunc; + int insmode; + int edmode; + char *kseq; + int kseqlen; + + int pendingin; + FILE *inf; + FILE *outf; + char *macro; + + /* signal state */ + int catchsigs; + int catchsigwinch; + + /* search state */ + + /* completion state */ + rl_compentry_func_t *entryfunc; + rl_compentry_func_t *menuentryfunc; + rl_compignore_func_t *ignorefunc; + rl_completion_func_t *attemptfunc; + const char *wordbreakchars; + + /* options state */ + + /* hook state */ + + /* reserved for future expansion, so the struct size doesn't change */ + char reserved[64]; +}; + +extern int rl_save_state (struct readline_state *); +extern int rl_restore_state (struct readline_state *); + +#ifdef __cplusplus +} +#endif + +#endif /* _READLINE_H_ */ diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/rlconf.h b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/rlconf.h new file mode 100644 index 0000000000000000000000000000000000000000..e0fd735b5b3c16ba2931762665a0e0cb185942d4 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/rlconf.h @@ -0,0 +1,84 @@ +/* rlconf.h -- readline configuration definitions */ + +/* Copyright (C) 1992-2015 Free Software Foundation, Inc. + + This file is part of the GNU Readline Library (Readline), a library + for reading lines of text with interactive input and history editing. + + Readline is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Readline is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Readline. If not, see . +*/ + +#if !defined (_RLCONF_H_) +#define _RLCONF_H_ + +/* Define this if you want the vi-mode editing available. */ +#define VI_MODE + +/* Define this to get an indication of file type when listing completions. */ +#define VISIBLE_STATS + +/* Define this to get support for colors when listing completions and in + other places. */ +#define COLOR_SUPPORT + +/* This definition is needed by readline.c, rltty.c, and signals.c. */ +/* If on, then readline handles signals in a way that doesn't suck. */ +#define HANDLE_SIGNALS + +/* Ugly but working hack for binding prefix meta. */ +#define PREFIX_META_HACK + +/* The next-to-last-ditch effort file name for a user-specific init file. */ +#define DEFAULT_INPUTRC "~/.inputrc" + +/* The ultimate last-ditch filename for an init file -- system-wide. */ +#define SYS_INPUTRC "/etc/inputrc" + +/* If defined, expand tabs to spaces. */ +#define DISPLAY_TABS + +/* If defined, use the terminal escape sequence to move the cursor forward + over a character when updating the line rather than rewriting it. */ +/* #define HACK_TERMCAP_MOTION */ + +/* The string inserted by the `insert comment' command. */ +#define RL_COMMENT_BEGIN_DEFAULT "#" + +/* Define this if you want code that allows readline to be used in an + X `callback' style. */ +#define READLINE_CALLBACKS + +/* Define this if you want the cursor to indicate insert or overwrite mode. */ +/* #define CURSOR_MODE */ + +/* Define this if you want to enable code that talks to the Linux kernel + tty auditing system. */ +/* #define ENABLE_TTY_AUDIT_SUPPORT */ + +/* Defaults for the various editing mode indicators, inserted at the beginning + of the last (maybe only) line of the prompt if show-mode-in-prompt is on */ +#define RL_EMACS_MODESTR_DEFAULT "@" +#define RL_EMACS_MODESTR_DEFLEN 1 + +#define RL_VI_INS_MODESTR_DEFAULT "(ins)" +#define RL_VI_INS_MODESTR_DEFLEN 5 +#define RL_VI_CMD_MODESTR_DEFAULT "(cmd)" +#define RL_VI_CMD_MODESTR_DEFLEN 5 + +/* Do you want readline to assume it's running in an ANSI-compatible terminal + by default? If set to 0, readline tries to check and verify whether or not + it is. */ +#define RL_ANSI_TERM_DEFAULT 1 /* for now */ + +#endif /* _RLCONF_H_ */ diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/rlstdc.h b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/rlstdc.h new file mode 100644 index 0000000000000000000000000000000000000000..0e5c4f47f8ee0bb2146046ed3d8fd4321032cd8b --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/rlstdc.h @@ -0,0 +1,45 @@ +/* stdc.h -- macros to make source compile on both ANSI C and K&R C compilers. */ + +/* Copyright (C) 1993-2009,2023 Free Software Foundation, Inc. + + This file is part of the GNU Readline Library (Readline), a library + for reading lines of text with interactive input and history editing. + + Readline is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Readline is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Readline. If not, see . +*/ + +#if !defined (_RL_STDC_H_) +#define _RL_STDC_H_ + +/* Adapted from BSD /usr/include/sys/cdefs.h. */ + +/* A function can be defined using prototypes and compile on both ANSI C + and traditional C compilers with something like this: + extern char *func PARAMS((char *, char *, int)); */ + +#if !defined (PARAMS) +# if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus) +# define PARAMS(protos) protos +# else +# define PARAMS(protos) () +# endif +#endif + +#ifndef __attribute__ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) +# define __attribute__(x) +# endif +#endif + +#endif /* !_RL_STDC_H_ */ diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/rltypedefs.h b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/rltypedefs.h new file mode 100644 index 0000000000000000000000000000000000000000..61b81316502c8b37569c0b50c3dfbfe79760d1c5 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/rltypedefs.h @@ -0,0 +1,96 @@ +/* rltypedefs.h -- Type declarations for readline functions. */ + +/* Copyright (C) 2000-2023 Free Software Foundation, Inc. + + This file is part of the GNU Readline Library (Readline), a library + for reading lines of text with interactive input and history editing. + + Readline is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Readline is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Readline. If not, see . +*/ + +#ifndef _RL_TYPEDEFS_H_ +#define _RL_TYPEDEFS_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +/* Old-style, attempt to mark as deprecated in some way people will notice. */ + +#if !defined (_FUNCTION_DEF) && defined (WANT_OBSOLETE_TYPEDEFS) +# define _FUNCTION_DEF + +typedef int Function () __attribute__((deprecated)); +typedef void VFunction () __attribute__((deprecated)); +typedef char *CPFunction () __attribute__((deprecated)); +typedef char **CPPFunction () __attribute__((deprecated)); + +#endif /* _FUNCTION_DEF && WANT_OBSOLETE_TYPEDEFS */ + +/* New style. */ + +#if !defined (_RL_FUNCTION_TYPEDEF) +# define _RL_FUNCTION_TYPEDEF + +/* Bindable functions */ +typedef int rl_command_func_t (int, int); + +/* Typedefs for the completion system */ +typedef char *rl_compentry_func_t (const char *, int); +typedef char **rl_completion_func_t (const char *, int, int); + +typedef char *rl_quote_func_t (char *, int, char *); +typedef char *rl_dequote_func_t (char *, int); + +typedef int rl_compignore_func_t (char **); + +typedef void rl_compdisp_func_t (char **, int, int); + +/* Functions for displaying key bindings. Currently only one. */ +typedef void rl_macro_print_func_t (const char *, const char *, int, const char *); + +/* Type for input and pre-read hook functions like rl_event_hook */ +typedef int rl_hook_func_t (void); + +/* Input function type */ +typedef int rl_getc_func_t (FILE *); + +/* Generic function that takes a character buffer (which could be the readline + line buffer) and an index into it (which could be rl_point) and returns + an int. */ +typedef int rl_linebuf_func_t (char *, int); + +/* `Generic' function pointer typedefs */ +typedef int rl_intfunc_t (int); +#define rl_ivoidfunc_t rl_hook_func_t +typedef int rl_icpfunc_t (char *); +typedef int rl_icppfunc_t (char **); + +typedef void rl_voidfunc_t (void); +typedef void rl_vintfunc_t (int); +typedef void rl_vcpfunc_t (char *); +typedef void rl_vcppfunc_t (char **); + +typedef char *rl_cpvfunc_t (void); +typedef char *rl_cpifunc_t (int); +typedef char *rl_cpcpfunc_t (char *); +typedef char *rl_cpcppfunc_t (char **); + +#endif /* _RL_FUNCTION_TYPEDEF */ + +#ifdef __cplusplus +} +#endif + +#endif /* _RL_TYPEDEFS_H_ */ diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/tilde.h b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/tilde.h new file mode 100644 index 0000000000000000000000000000000000000000..bc8022afc329f3997a7f43548a73f212d09a0952 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/include/readline/tilde.h @@ -0,0 +1,68 @@ +/* tilde.h: Externally available variables and function in libtilde.a. */ + +/* Copyright (C) 1992-2009,2021 Free Software Foundation, Inc. + + This file contains the Readline Library (Readline), a set of + routines for providing Emacs style line input to programs that ask + for it. + + Readline is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Readline is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Readline. If not, see . +*/ + +#if !defined (_TILDE_H_) +# define _TILDE_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +typedef char *tilde_hook_func_t (char *); + +/* If non-null, this contains the address of a function that the application + wants called before trying the standard tilde expansions. The function + is called with the text sans tilde, and returns a malloc()'ed string + which is the expansion, or a NULL pointer if the expansion fails. */ +extern tilde_hook_func_t *tilde_expansion_preexpansion_hook; + +/* If non-null, this contains the address of a function to call if the + standard meaning for expanding a tilde fails. The function is called + with the text (sans tilde, as in "foo"), and returns a malloc()'ed string + which is the expansion, or a NULL pointer if there is no expansion. */ +extern tilde_hook_func_t *tilde_expansion_failure_hook; + +/* When non-null, this is a NULL terminated array of strings which + are duplicates for a tilde prefix. Bash uses this to expand + `=~' and `:~'. */ +extern char **tilde_additional_prefixes; + +/* When non-null, this is a NULL terminated array of strings which match + the end of a username, instead of just "/". Bash sets this to + `:' and `=~'. */ +extern char **tilde_additional_suffixes; + +/* Return a new string which is the result of tilde expanding STRING. */ +extern char *tilde_expand (const char *); + +/* Do the work of tilde expansion on FILENAME. FILENAME starts with a + tilde. If there is no expansion, call tilde_expansion_failure_hook. */ +extern char *tilde_expand_word (const char *); + +/* Find the portion of the string beginning with ~ that should be expanded. */ +extern char *tilde_find_word (const char *, int, int *); + +#ifdef __cplusplus +} +#endif + +#endif /* _TILDE_H_ */ diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/about.json b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..7e43ad86b8e09cc5a5aa83f9e6fb7563411251b4 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/about.json @@ -0,0 +1,139 @@ +{ + "channels": [ + "https://repo.anaconda.com/pkgs/main" + ], + "conda_build_version": "24.1.2", + "conda_version": "24.1.2", + "description": "The GNU Readline library provides a set of functions for use by applications\nthat allow users to edit command lines as they are typed in.\nThe Readline library includes additional functions to maintain a list of previously-entered command lines,\nto recall and perhaps reedit those lines, and perform csh-like history expansion on previous commands.\n", + "dev_url": "https://git.savannah.gnu.org/cgit/readline.git", + "doc_url": "https://tiswww.case.edu/php/chet/readline/rltop.html", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "flow_run_id": "1bebda3c-afd9-495e-ae11-d7b32bc4e83e", + "recipe-maintainers": [ + "croth1", + "jakirkham", + "jjhelmus", + "pelson", + "msarahan", + "asmeurer", + "msarahan", + "mingwandroid", + "ocefpaf" + ], + "remote_url": "git@github.com:AnacondaRecipes/readline-feedstock.git", + "sha": "697ae3037b1ae978a8a62fd9ea79d07fa9099983" + }, + "home": "https://tiswww.case.edu/php/chet/readline/rltop.html", + "identifiers": [], + "keywords": [], + "license": "GPL-3.0-only", + "license_family": "GPL", + "license_file": "COPYING", + "root_pkgs": [ + "_libgcc_mutex 0.1 main", + "_openmp_mutex 5.1 1_gnu", + "archspec 0.2.1 pyhd3eb1b0_0", + "boltons 23.0.0 py39h06a4308_0", + "brotli-python 1.0.9 py39h6a678d5_7", + "bzip2 1.0.8 h7b6447c_0", + "c-ares 1.19.1 h5eee18b_0", + "charset-normalizer 2.0.4 pyhd3eb1b0_0", + "conda-content-trust 0.2.0 py39h06a4308_0", + "conda-package-handling 2.2.0 py39h06a4308_0", + "conda-package-streaming 0.9.0 py39h06a4308_0", + "fmt 9.1.0 hdb19cb5_0", + "icu 73.1 h6a678d5_0", + "idna 3.4 py39h06a4308_0", + "jsonpatch 1.32 pyhd3eb1b0_0", + "jsonpointer 2.1 pyhd3eb1b0_0", + "krb5 1.20.1 h143b758_1", + "ld_impl_linux-64 2.38 h1181459_1", + "libarchive 3.6.2 h6ac8c49_2", + "libev 4.33 h7f8727e_1", + "libffi 3.4.4 h6a678d5_0", + "libgcc-ng 11.2.0 h1234567_1", + "libgomp 11.2.0 h1234567_1", + "libnghttp2 1.57.0 h2d74bed_0", + "libsolv 0.7.24 he621ea3_0", + "libssh2 1.10.0 hdbd6064_2", + "libstdcxx-ng 11.2.0 h1234567_1", + "libxml2 2.10.4 hf1b16e4_1", + "lz4-c 1.9.4 h6a678d5_0", + "ncurses 6.4 h6a678d5_0", + "packaging 23.1 py39h06a4308_0", + "pcre2 10.42 hebb0a14_0", + "pluggy 1.0.0 py39h06a4308_1", + "pybind11-abi 4 hd3eb1b0_1", + "pycosat 0.6.6 py39h5eee18b_0", + "pycparser 2.21 pyhd3eb1b0_0", + "pysocks 1.7.1 py39h06a4308_0", + "python 3.9.18 h955ad1f_0", + "readline 8.2 h5eee18b_0", + "reproc 14.2.4 h295c915_1", + "reproc-cpp 14.2.4 h295c915_1", + "ruamel.yaml 0.17.21 py39h5eee18b_0", + "ruamel.yaml.clib 0.2.6 py39h5eee18b_1", + "sqlite 3.41.2 h5eee18b_0", + "tk 8.6.12 h1ccaba5_0", + "tqdm 4.65.0 py39hb070fc8_0", + "wheel 0.41.2 py39h06a4308_0", + "yaml-cpp 0.8.0 h6a678d5_0", + "zlib 1.2.13 h5eee18b_0", + "zstandard 0.19.0 py39h5eee18b_0", + "zstd 1.5.5 hc292b87_0", + "attrs 23.1.0 py39h06a4308_0", + "beautifulsoup4 4.12.2 py39h06a4308_0", + "ca-certificates 2023.12.12 h06a4308_0", + "certifi 2024.2.2 py39h06a4308_0", + "cffi 1.16.0 py39h5eee18b_0", + "chardet 4.0.0 py39h06a4308_1003", + "click 8.1.7 py39h06a4308_0", + "conda 24.1.2 py39h06a4308_0", + "conda-build 24.1.2 py39h06a4308_0", + "conda-index 0.4.0 pyhd3eb1b0_0", + "conda-libmamba-solver 24.1.0 pyhd3eb1b0_0", + "cryptography 42.0.2 py39hdda0065_0", + "distro 1.8.0 py39h06a4308_0", + "filelock 3.13.1 py39h06a4308_0", + "jinja2 3.1.3 py39h06a4308_0", + "jsonschema 4.19.2 py39h06a4308_0", + "jsonschema-specifications 2023.7.1 py39h06a4308_0", + "libcurl 8.5.0 h251f7ec_0", + "libedit 3.1.20230828 h5eee18b_0", + "liblief 0.12.3 h6a678d5_0", + "libmamba 1.5.6 haf1ee3a_0", + "libmambapy 1.5.6 py39h2dafd23_0", + "markupsafe 2.1.3 py39h5eee18b_0", + "menuinst 2.0.2 py39h06a4308_0", + "more-itertools 10.1.0 py39h06a4308_0", + "openssl 3.0.13 h7f8727e_0", + "patch 2.7.6 h7b6447c_1001", + "patchelf 0.17.2 h6a678d5_0", + "pip 23.3.1 py39h06a4308_0", + "pkginfo 1.9.6 py39h06a4308_0", + "platformdirs 3.10.0 py39h06a4308_0", + "psutil 5.9.0 py39h5eee18b_0", + "py-lief 0.12.3 py39h6a678d5_0", + "pyopenssl 24.0.0 py39h06a4308_0", + "python-libarchive-c 2.9 pyhd3eb1b0_1", + "pytz 2023.3.post1 py39h06a4308_0", + "pyyaml 6.0.1 py39h5eee18b_0", + "referencing 0.30.2 py39h06a4308_0", + "requests 2.31.0 py39h06a4308_1", + "rpds-py 0.10.6 py39hb02cf49_0", + "setuptools 68.2.2 py39h06a4308_0", + "soupsieve 2.5 py39h06a4308_0", + "tomli 2.0.1 py39h06a4308_0", + "tzdata 2023d h04d1e81_0", + "urllib3 2.1.0 py39h06a4308_1", + "xz 5.4.5 h5eee18b_0", + "yaml 0.2.5 h7b6447c_0" + ], + "summary": "library for editing command lines as they are typed in", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/files b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/files new file mode 100644 index 0000000000000000000000000000000000000000..e2a317be6ff7d74f21f7b1b023b79efcfc2cede8 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/files @@ -0,0 +1,29 @@ +include/readline/chardefs.h +include/readline/history.h +include/readline/keymaps.h +include/readline/readline.h +include/readline/rlconf.h +include/readline/rlstdc.h +include/readline/rltypedefs.h +include/readline/tilde.h +lib/libhistory.a +lib/libhistory.so +lib/libhistory.so.8 +lib/libhistory.so.8.3 +lib/libreadline.a +lib/libreadline.so +lib/libreadline.so.8 +lib/libreadline.so.8.3 +lib/pkgconfig/history.pc +lib/pkgconfig/readline.pc +share/doc/readline/CHANGES +share/doc/readline/INSTALL +share/doc/readline/README +share/doc/readline/history.html +share/doc/readline/readline.html +share/doc/readline/rluserman.html +share/info/history.info +share/info/readline.info +share/info/rluserman.info +share/man/man3/history.3 +share/man/man3/readline.3 diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/git b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/has_prefix b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/has_prefix new file mode 100644 index 0000000000000000000000000000000000000000..4d66df921863148044ce25231ff502054f76d1e5 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/has_prefix @@ -0,0 +1,2 @@ +/croot/readline_1754485605901/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol text lib/pkgconfig/history.pc +/croot/readline_1754485605901/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol text lib/pkgconfig/readline.pc diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/hash_input.json b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..eb2caa02f3153553f43a4e8fb0edca0b115703d6 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/hash_input.json @@ -0,0 +1,8 @@ +{ + "ncurses": "6", + "c_compiler": "gcc", + "channel_targets": "defaults", + "target_platform": "linux-64", + "c_compiler_version": "11.2.0", + "__glibc": "__glibc >=2.17,<3.0.a0" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/index.json b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..398e73497c25e3229dc80058fae73cda46a2b31d --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/index.json @@ -0,0 +1,17 @@ +{ + "arch": "x86_64", + "build": "hc2a1206_0", + "build_number": 0, + "depends": [ + "__glibc >=2.17,<3.0.a0", + "libgcc-ng >=11.2.0", + "ncurses >=6.5,<7.0a0" + ], + "license": "GPL-3.0-only", + "license_family": "GPL", + "name": "readline", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1754485653893, + "version": "8.3" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/licenses/COPYING b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/licenses/COPYING new file mode 100644 index 0000000000000000000000000000000000000000..94a9ed024d3859793618152ea559a168bbcbb5e2 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/licenses/COPYING @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/paths.json b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..f742bc983dd79eada134cdee2d04d5964ef01777 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/paths.json @@ -0,0 +1,183 @@ +{ + "paths": [ + { + "_path": "include/readline/chardefs.h", + "path_type": "hardlink", + "sha256": "9ba24bdf97311a56b49494aa17072965cae628390d648e207622f4068da960ff", + "size_in_bytes": 4724 + }, + { + "_path": "include/readline/history.h", + "path_type": "hardlink", + "sha256": "5b8762c1086f62ed54567e258a72183b384534f57453d07f57085a03187a270a", + "size_in_bytes": 10678 + }, + { + "_path": "include/readline/keymaps.h", + "path_type": "hardlink", + "sha256": "4c42c3c5d2bb3aba10c7e7f27dd79841f30857fde61c6c85bf67f4f2ac1befc4", + "size_in_bytes": 3201 + }, + { + "_path": "include/readline/readline.h", + "path_type": "hardlink", + "sha256": "1934a225c54300308cbda341851b693ecdbba66623e5f84527d90be9de34f572", + "size_in_bytes": 39616 + }, + { + "_path": "include/readline/rlconf.h", + "path_type": "hardlink", + "sha256": "f140434f57cba8dbd83e87997c73608b51643b6dd89f292aa5eb83a68c816dd2", + "size_in_bytes": 3044 + }, + { + "_path": "include/readline/rlstdc.h", + "path_type": "hardlink", + "sha256": "5a66bb179f4a7ad32b9a0a04b0a60c20c0b3f5ee63b1b2eed41fc64fbd590e64", + "size_in_bytes": 1551 + }, + { + "_path": "include/readline/rltypedefs.h", + "path_type": "hardlink", + "sha256": "9c756ee45536c3999c3d9b50c75343fe0338d7634ca96c3b375d13e30e9c582e", + "size_in_bytes": 3064 + }, + { + "_path": "include/readline/tilde.h", + "path_type": "hardlink", + "sha256": "76ea2566b9045468f1ae1a0a97e62d765edcd642a2d1f12a62a6af1b4dfe9729", + "size_in_bytes": 2652 + }, + { + "_path": "lib/libhistory.a", + "path_type": "hardlink", + "sha256": "e1713b90e545270b509fec3398b88f28c6ee4df1d3e64cf4fcc156a64dcb65ee", + "size_in_bytes": 84526 + }, + { + "_path": "lib/libhistory.so", + "path_type": "softlink", + "sha256": "80f4d6d75cb79e5a132019285d9796643d3127d84661f4d45d8bbf63d69025ef", + "size_in_bytes": 59120 + }, + { + "_path": "lib/libhistory.so.8", + "path_type": "softlink", + "sha256": "80f4d6d75cb79e5a132019285d9796643d3127d84661f4d45d8bbf63d69025ef", + "size_in_bytes": 59120 + }, + { + "_path": "lib/libhistory.so.8.3", + "path_type": "hardlink", + "sha256": "80f4d6d75cb79e5a132019285d9796643d3127d84661f4d45d8bbf63d69025ef", + "size_in_bytes": 59120 + }, + { + "_path": "lib/libreadline.a", + "path_type": "hardlink", + "sha256": "2152fb16bced27b27afe89781277814c2f6d03e775abb7ff1a90ce9c6d1ae0ee", + "size_in_bytes": 796336 + }, + { + "_path": "lib/libreadline.so", + "path_type": "softlink", + "sha256": "e4f8e11f9697c71faeaa42de41da4b0ae59d182f47e9d95720288efa4c412ad1", + "size_in_bytes": 430464 + }, + { + "_path": "lib/libreadline.so.8", + "path_type": "softlink", + "sha256": "e4f8e11f9697c71faeaa42de41da4b0ae59d182f47e9d95720288efa4c412ad1", + "size_in_bytes": 430464 + }, + { + "_path": "lib/libreadline.so.8.3", + "path_type": "hardlink", + "sha256": "e4f8e11f9697c71faeaa42de41da4b0ae59d182f47e9d95720288efa4c412ad1", + "size_in_bytes": 430464 + }, + { + "_path": "lib/pkgconfig/history.pc", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/croot/readline_1754485605901/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol", + "sha256": "96ae678a723fec65a477316b3458775627693596c0548115e7b8594fc3c8a12a", + "size_in_bytes": 548 + }, + { + "_path": "lib/pkgconfig/readline.pc", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/croot/readline_1754485605901/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol", + "sha256": "27ae4e26e244af80d3e3d63f62c93667921577acaef82d80ddca6289260939da", + "size_in_bytes": 562 + }, + { + "_path": "share/doc/readline/CHANGES", + "path_type": "hardlink", + "sha256": "f74dff0f05bb20311c53287b02866f343e69cd8bf9d4e58230e3f8d31e2dd7d9", + "size_in_bytes": 88142 + }, + { + "_path": "share/doc/readline/INSTALL", + "path_type": "hardlink", + "sha256": "c0b93d8533fbf743e24f93b7f6bc26ba1a4e5e292117289a891e728454af2fb5", + "size_in_bytes": 14330 + }, + { + "_path": "share/doc/readline/README", + "path_type": "hardlink", + "sha256": "c66390595e51c1ab99aeac37ee9cd5f7cd652e1ee5da86dea7682f769205e57c", + "size_in_bytes": 8146 + }, + { + "_path": "share/doc/readline/history.html", + "path_type": "hardlink", + "sha256": "2eec7a7084f73aec15e6e1ad103e6c3ca36ab384bb6cb55123a3c08e858aa08c", + "size_in_bytes": 116091 + }, + { + "_path": "share/doc/readline/readline.html", + "path_type": "hardlink", + "sha256": "44f209944f7f1166589f2d417bb0904034ecac69db05eeeffc5f4b79a908af31", + "size_in_bytes": 481447 + }, + { + "_path": "share/doc/readline/rluserman.html", + "path_type": "hardlink", + "sha256": "11bace2423451564da95cb4e0d2ef1be5f1759f6d6d8e7737bfdaceb6f11c26b", + "size_in_bytes": 151722 + }, + { + "_path": "share/info/history.info", + "path_type": "hardlink", + "sha256": "f547b3c8547ee4092941f088ccbb1301eb40a509bca39708f8dca87627563b69", + "size_in_bytes": 66323 + }, + { + "_path": "share/info/readline.info", + "path_type": "hardlink", + "sha256": "500c11a34c367045aa1a37f3f1add3efe00d72386cf1ae911a781e5472a3a0fb", + "size_in_bytes": 258713 + }, + { + "_path": "share/info/rluserman.info", + "path_type": "hardlink", + "sha256": "aff0a840a4a1e52912abf0890e063259f69a4550cbfc800b605f4a5bc4bf637b", + "size_in_bytes": 100612 + }, + { + "_path": "share/man/man3/history.3", + "path_type": "hardlink", + "sha256": "49625c9f34dbedc1b4881fe36f10459849cc9b39a479d067e191a470b0ce8a94", + "size_in_bytes": 26594 + }, + { + "_path": "share/man/man3/readline.3", + "path_type": "hardlink", + "sha256": "2254c883f9d0af108d93a20ddae98363f82885d2ab36f08b34d76ae6eaec22bc", + "size_in_bytes": 60431 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/recipe/build.sh b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/recipe/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..8315c66c394fcd6e1708c3d7639b78a74d684376 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/recipe/build.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +./configure --prefix=${PREFIX} \ + --build=${BUILD} \ + --host=${HOST} \ + --enable-multibyte \ + --with-curses \ + --disable-install-examples \ + || { cat config.log; exit 1; } +make SHLIB_LIBS="$(pkg-config --libs ncursesw)" -j${CPU_COUNT} ${VERBOSE_AT} +make install diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/recipe/conda_build_config.yaml b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..91a6fb56aac661355a9c27dbf6533c8cef45180d --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/recipe/conda_build_config.yaml @@ -0,0 +1,395 @@ +VERBOSE_AT: V=1 +VERBOSE_CM: VERBOSE=1 +alsa_lib: '1.2' +ampl_mp: '3.1' +aom: '3.6' +armadillo: '12' +arpack: '3.9' +arrow_cpp: 19.0.0 +assimp: 6.0.2 +at_spi2_core: '2.36' +aws_c_auth: 0.9.0 +aws_c_cal: 0.9.2 +aws_c_common: 0.12.3 +aws_c_compression: 0.3.1 +aws_c_event_stream: 0.5.5 +aws_c_http: 0.10.2 +aws_c_io: 0.20.1 +aws_c_mqtt: 0.13.2 +aws_c_s3: 0.8.3 +aws_c_sdkutils: 0.2.4 +aws_checksums: 0.2.7 +aws_crt_cpp: 0.32.10 +aws_sdk_cpp: 1.11.528 +azure_core_cpp: 1.14.1 +azure_identity_cpp: 1.10.1 +azure_storage_blobs_cpp: 12.13.0 +azure_storage_common_cpp: 12.10.0 +backtrace: '20241216' +blas_impl: openblas +blosc: '1' +boost: '1.82' +boost_cpp: '1.82' +brotli: '1' +brunsli: '0' +bzip2: '1' +c_ares: '1' +c_blosc2: '2.17' +c_compiler: gcc +c_compiler_version: 11.2.0 +c_stdlib: sysroot +c_stdlib_version: '2.17' +cairo: '1' +capnproto: 1.1.0 +ceres_solver: '2.2' +cfitsio: '3.470' +cgo_compiler: go-cgo +cgo_compiler_version: '1.21' +channel_targets: defaults +charls: '2.2' +clang_variant: clang +coin_or_cbc: '2.10' +coin_or_cgl: '0.60' +coin_or_clp: '1.17' +coin_or_osi: '0.108' +coin_or_utils: '2.11' +cpu_optimization_target: nocona +cran_mirror: https://cran.r-project.org +cuda_compiler: cuda-nvcc +cuda_compiler_version: '12.4' +cudnn: '9' +cutensor: '2' +cxx_compiler: gxx +cxx_compiler_version: 11.2.0 +cyrus_sasl: 2.1.28 +dav1d: 1.2.1 +dbus: '1' +eigen: 3.3.7 +epoxy: '1.5' +expat: '2' +extend_keys: +- pin_run_as_build +- ignore_build_only_deps +- extend_keys +- ignore_version +ffmpeg: '6' +fftw: '3.3' +flatbuffers: 25.2.10 +fmt: '9' +fontconfig: '2' +fortran_compiler: gfortran +fortran_compiler_version: 11.2.0 +freeglut: '3' +freetds: '1' +freetype: '2' +freexl: '2' +fribidi: '1' +g2clib: '1.6' +gcab: '1' +gdbm: '1.18' +gdk_pixbuf: '2' +geos: 3.10.6 +geotiff: '1.7' +getopt_win32: '0.1' +gettext: '0' +gflags: '2.2' +giflib: '5.2' +gl2ps: 1.4.2 +glew: '2.2' +glib: '2' +glog: '0.5' +glpk: '4.65' +glslang: '15' +gmp: '6' +gnupg: '2.4' +gnutls: '3.8' +go_compiler: go-nocgo +go_compiler_version: '1.21' +graphite2: '1' +gsl: '2.7' +gst_plugins_base: '1.24' +gst_plugins_good: '1.24' +gstreamer: '1.24' +gstreamer_orc: '0.4' +gtest: 1.14.0 +gtk3: '3' +gts: '0.7' +harfbuzz: '10' +hdf4: 4.2.13 +hdf5: 1.14.5 +hdfeos2: '2.20' +hdfeos5: '5.1' +icu: '73' +ignore_build_only_deps: +- numpy +- python +igraph: '0.10' +isl: '0.22' +jansson: '2' +jasper: '4' +jemalloc: 5.2.1 +jpeg: 9e +json_c: '0.16' +jsoncpp: 1.9.4 +jxrlib: '1.1' +kealib: '1.5' +khronos_opencl_icd_loader: 2024.5.8 +krb5: '1.21' +lame: '3.100' +lcms2: '2' +leptonica: '1.82' +lerc: '4' +level_zero: '1' +leveldb: '1.23' +libabseil: '20250127.0' +libaec: '1' +libaio: '0.3' +libapr: '1' +libapriconv: '1' +libaprutil: '1' +libarchive: '3.7' +libassuan: '3' +libavif: '1' +libbrotlicommon: '1.0' +libbrotlidec: '1.0' +libbrotlienc: '1.0' +libclang13: '14.0' +libclang_cpp14: '14.0' +libcrc32c: '1.1' +libcryptominisat: '5.6' +libcurl: '8' +libdap4: '3.19' +libde265: 1.0.15 +libdeflate: '1.22' +libdrm: '2.4' +libebm: 0.4.4 +libedit: '3.1' +libegl: '1' +libev: '4.33' +libevent: 2.1.12 +libfaiss: 1.0.0 +libffi: '3.4' +libflac: '1.4' +libgcrypt: '1' +libgd: '2.3' +libgdal: '3.11' +libgdal_core: '3.11' +libgit2: '1.6' +libgl: '1' +libgles: '1' +libglib: '2' +libglu: '9' +libglvnd: '1' +libglx: '1' +libgpg_error: '1' +libgrpc: '1.71' +libgsasl: '1' +libgsf: '1.14' +libheif: '1.19' +libhiredis: '1.3' +libiconv: '1' +libidn2: '2' +libjpeg_turbo: '3' +libkml: '1.3' +libksba: '1.6' +liblief: '0.16' +libllvm19: '19.1' +libmamba: '2.0' +libmambapy: '2.0' +libmlir19: '19.1' +libmpdec: '4' +libmpdecxx: '4' +libnetcdf: '4' +libnghttp2: '1' +libnsl: '2.0' +libntlm: '1' +libogg: '1.3' +libopenblas: '0' +libopengl: '1' +libopus: '1' +libortools: '9.9' +libosqp: 0.6.3 +libpcap: '1.10' +libpciaccess: '0.18' +libpng: '1.6' +libpq: '17' +libprotobuf: 5.29.3 +libqdldl: 0.1.7 +librdkafka: '2.2' +libre2_11: '2024' +librsvg: '2' +libsentencepiece: 0.2.0 +libsndfile: '1.2' +libsodium: 1.0.18 +libspatialindex: 1.9.3 +libspatialite: '5.1' +libssh2: '1' +libtasn1: '4' +libtensorflow: 2.18.1 +libtensorflow_cc: 2.18.1 +libtheora: '1' +libthrift: '0.15' +libtiff: '4' +libtmglib: '3' +libtorch: '2.6' +libunistring: '0' +libunwind: '1' +libutf8proc: '2' +libuuid: '1' +libuv: '1' +libvorbis: '1' +libvpx: '1.13' +libvulkan: '1.4' +libwebp: 1.3.2 +libwebp_base: '1' +libxcb: '1' +libxkbcommon: '1' +libxkbfile: '1' +libxml2: '2.13' +libxmlsec1: '1.3' +libxslt: '1' +libzopfli: '1.0' +lmdb: '0' +lua: '5' +lz4_c: '1.9' +lzo: '2' +macports_legacy_support: '1' +mbedtls: '3.5' +mesalib: '25.1' +metis: '5.1' +minizip: '4' +mkl: '2023' +mkl_service: '2' +mpc: '1' +mpfr: '4' +mpich: '4' +mysql_libs: '9.3' +nanobind_abi: '15' +nccl: '2' +ncurses: '6' +nettle: '3.7' +nlopt: '2.7' +npth: '1' +nspr: '4' +nss: '3' +ntbtls: '0' +numpy: '2.1' +ocl_icd: '2' +oniguruma: '6.9' +openblas: '0' +openblas_devel: '0' +openh264: '2.6' +openjpeg: '2' +openldap: '2.6' +openmpi: '4.1' +openssl: '3' +orc: 2.1.1 +pango: '1' +pcre: '8' +pcre2: '10.42' +pdal: '2.5' +perl: '5.38' +pin_run_as_build: + python: + max_pin: x.x + min_pin: x.x + r-base: + max_pin: x.x + min_pin: x.x + libboost: + max_pin: x.x.x +pixman: '0' +popt: '1' +proj: 9.3.1 +ptscotch: 6.0.9 +pugixml: '1.11' +py_lief: '0.16' +pybind11_abi: '5' +pyqt: '6.7' +pyqtchart: '5.15' +pyqtwebengine: '6.7' +python: '3.13' +python_igraph: '0.10' +python_impl: cpython +python_implementation: cpython +pytorch: '2.6' +qhull: '2020.2' +qpdf: '11' +qt: '6.7' +quantlib: '1' +r_base: 4.3.1 +r_implementation: r-base +r_version: 4.3.1 +rdkit: 2023.03.3 +re2: '2024' +readline: '8' +reproc: '14.2' +reproc_cpp: '14.2' +rhash: '1' +ruby: '3.2' +rust_compiler: rust +rust_compiler_version: 1.87.0 +s2n: 1.5.14 +scotch: 6.0.9 +serf: '1.3' +simdjson: '3.10' +sip: '6.10' +sleef: '3' +snappy: '1' +spdlog: '1' +spdlog_fmt_embed: '1' +spirv_tools: '2025' +sqlite: '3' +suitesparse: '7' +target_platform: linux-64 +tesseract: 5.2.0 +tiledb: '2.26' +tk: '8.6' +unixodbc: '2.3' +vc: '14' +vtk_base: 9.4.1 +vtk_io_ffmpeg: 9.4.1 +wayland: '1.24' +x264: 1!152.20180806 +xcb_util: '0.4' +xcb_util_cursor: '0.1' +xcb_util_image: '0.4' +xcb_util_keysyms: '0.4' +xcb_util_renderutil: '0.3' +xcb_util_wm: '0.4' +xerces_c: '3.2' +xorg_libice: '1' +xorg_libsm: '1' +xorg_libx11: '1' +xorg_libxau: '1' +xorg_libxcomposite: '0' +xorg_libxcursor: '1' +xorg_libxdamage: '1' +xorg_libxdmcp: '1' +xorg_libxext: '1' +xorg_libxfixes: '6' +xorg_libxft: '2' +xorg_libxi: '1' +xorg_libxinerama: '1.1' +xorg_libxmu: '1' +xorg_libxrandr: '1' +xorg_libxrender: '0.9' +xorg_libxscrnsaver: '1' +xorg_libxshmfence: '1' +xorg_libxt: '1' +xorg_libxtst: '1' +xorg_libxxf86vm: '1' +xorg_xextproto: '7' +xorg_xorgproto: '2024' +xxhash: 0.8.0 +xz: '5' +yaml: '0.2' +yaml_cpp: '0.8' +zeromq: '4.3' +zfp: '1' +zip_keys: +- - python + - numpy +zlib: '1.2' +zlib_ng: '2.0' +zstd: '1.5' diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/recipe/meta.yaml b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/recipe/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4920fbe75d5e1bc63209798dbda65c18c97cf912 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/recipe/meta.yaml @@ -0,0 +1,91 @@ +# This file created by conda-build 24.1.2 +# meta.yaml template originally from: +# /feedstock/recipe, last modified Wed Aug 6 13:06:40 2025 +# ------------------------------------------------ + +package: + name: readline + version: '8.3' +source: + patches: + - patches/readline83-001.patch + sha256: fe5383204467828cd495ee8d1d3c037a7eba1389c22bc6a041f627976f9061cc + url: https://ftp.gnu.org/gnu/readline/readline-8.3.tar.gz +build: + number: '0' + run_exports: + - readline >=8.3,<9.0a0 + string: hc2a1206_0 +requirements: + build: + - _libgcc_mutex 0.1 main + - _openmp_mutex 5.1 1_gnu + - _sysroot_linux-64_curr_repodata_hack 3 haa98f57_10 + - binutils_impl_linux-64 2.40 h5293946_0 + - binutils_linux-64 2.40.0 hc2dff05_2 + - gcc_impl_linux-64 11.2.0 h1234567_1 + - gcc_linux-64 11.2.0 h5c386dc_2 + - kernel-headers_linux-64 3.10.0 h57e8cba_10 + - ld_impl_linux-64 2.40 h12ee557_0 + - libgcc-devel_linux-64 11.2.0 h1234567_1 + - libgcc-ng 11.2.0 h1234567_1 + - libgomp 11.2.0 h1234567_1 + - libstdcxx-ng 11.2.0 h1234567_1 + - make 4.2.1 h1bed415_1 + - patch 2.7.6 h7b6447c_1001 + - pkg-config 0.29.2 h1bed415_8 + - sysroot_linux-64 2.17 h57e8cba_10 + host: + - _libgcc_mutex 0.1 main + - _openmp_mutex 5.1 1_gnu + - libgcc-ng 11.2.0 h1234567_1 + - libgomp 11.2.0 h1234567_1 + - ncurses 6.5 h7934f7d_0 + run: + - __glibc >=2.17,<3.0.a0 + - libgcc-ng >=11.2.0 + - ncurses >=6.5,<7.0a0 +test: + commands: + - test -f ${PREFIX}/lib/libreadline.a + - test -f ${PREFIX}/lib/libreadline${SHLIB_EXT} + - test -f ${PREFIX}/lib/libhistory.a + - test -f ${PREFIX}/lib/libhistory${SHLIB_EXT} + - python -c "import readline" + requires: + - python 3.* +about: + description: 'The GNU Readline library provides a set of functions for use by applications + + that allow users to edit command lines as they are typed in. + + The Readline library includes additional functions to maintain a list of previously-entered + command lines, + + to recall and perhaps reedit those lines, and perform csh-like history expansion + on previous commands. + + ' + dev_url: https://git.savannah.gnu.org/cgit/readline.git + doc_url: https://tiswww.case.edu/php/chet/readline/rltop.html + home: https://tiswww.case.edu/php/chet/readline/rltop.html + license: GPL-3.0-only + license_family: GPL + license_file: COPYING + summary: library for editing command lines as they are typed in +extra: + copy_test_source_files: true + final: true + flow_run_id: 1bebda3c-afd9-495e-ae11-d7b32bc4e83e + recipe-maintainers: + - asmeurer + - croth1 + - jakirkham + - jjhelmus + - mingwandroid + - msarahan + - msarahan + - ocefpaf + - pelson + remote_url: git@github.com:AnacondaRecipes/readline-feedstock.git + sha: 697ae3037b1ae978a8a62fd9ea79d07fa9099983 diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/recipe/meta.yaml.template b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/recipe/meta.yaml.template new file mode 100644 index 0000000000000000000000000000000000000000..553d916c6f19f8e2c8a1ec0580ed2a5fca388ac6 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/recipe/meta.yaml.template @@ -0,0 +1,75 @@ +{% set name = "readline" %} +{% set version = "8.3" %} + +package: + name: {{ name }} + version: {{ version }} + +source: + url: https://ftp.gnu.org/gnu/{{ name }}/{{ name }}-{{ version }}.tar.gz + sha256: fe5383204467828cd495ee8d1d3c037a7eba1389c22bc6a041f627976f9061cc + patches: + - patches/readline83-001.patch + +build: + # Per the upstream homepage, Windows is not supported. + # To avoid build failure Windows is therefore skipped. + skip: true # [win] + number: 0 + run_exports: + # change soname at major ver: https://abi-laboratory.pro/tracker/timeline/readline/ + - {{ pin_subpackage('readline') }} + +requirements: + build: + - {{ stdlib('c') }} + - {{ compiler('c') }} + - pkg-config + - make + - patch # [not win] + - m2-patch # [win] + host: + - ncurses {{ ncurses }} + run: + - ncurses + +test: + requires: + - python 3.* + commands: + {% set readline_libs = [ + 'libreadline', + 'libhistory' + ] %} + {% for lib in readline_libs %} + - test -f ${PREFIX}/lib/{{ lib }}.a + - test -f ${PREFIX}/lib/{{ lib }}${SHLIB_EXT} # [not win] + {% endfor %} + # catch missing termcap/ncurses linkage problems + - python -c "import readline" + +about: + home: https://tiswww.case.edu/php/chet/readline/rltop.html + license: GPL-3.0-only + license_family: GPL + license_file: COPYING + summary: library for editing command lines as they are typed in + description: | + The GNU Readline library provides a set of functions for use by applications + that allow users to edit command lines as they are typed in. + The Readline library includes additional functions to maintain a list of previously-entered command lines, + to recall and perhaps reedit those lines, and perform csh-like history expansion on previous commands. + dev_url: https://git.savannah.gnu.org/cgit/readline.git + doc_url: https://tiswww.case.edu/php/chet/readline/rltop.html + +extra: + recipe-maintainers: + - croth1 + - jakirkham + - jjhelmus + - pelson + - msarahan + - asmeurer + - msarahan + - mingwandroid + - ocefpaf diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/recipe/patches/readline83-001.patch b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/recipe/patches/readline83-001.patch new file mode 100644 index 0000000000000000000000000000000000000000..4bbc94192517b56d9f14c550a0c918c6f23b65b7 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/recipe/patches/readline83-001.patch @@ -0,0 +1,51 @@ +From 15970c431517a046099d8294c91d778b1da9b29d Mon Sep 17 00:00:00 2001 +From: Chet Ramey +Date: Fri, 11 Jul 2025 11:51:15 -0400 +Subject: Readline-8.3 patch 1: fix for readline event hook + +--- + input.c | 6 +++++- + patchlevel | 2 +- + 2 files changed, 6 insertions(+), 2 deletions(-) + +diff --git a/input.c b/input.c +index e6a39e2..3383edb 100644 +--- a/input.c ++++ b/input.c +@@ -261,13 +261,16 @@ rl_gather_tyi (void) + input = 0; + tty = fileno (rl_instream); + +- /* Move this up here to give it first shot, but it can't set chars_avail */ ++ /* Move this up here to give it first shot, but it can't set chars_avail, ++ so we assume a single character is available. */ + /* XXX - need rl_chars_available_hook? */ + if (rl_input_available_hook) + { + result = (*rl_input_available_hook) (); + if (result == 0) + result = -1; ++ else ++ chars_avail = 1; + } + + #if defined (HAVE_PSELECT) || defined (HAVE_SELECT) +@@ -285,6 +288,7 @@ rl_gather_tyi (void) + #endif + if (result <= 0) + return 0; /* Nothing to read. */ ++ result = -1; /* there is something, so check how many chars below */ + } + #endif + +diff --git a/patchlevel b/patchlevel +index d8c9df7..fdf4740 100644 +--- a/patchlevel ++++ b/patchlevel +@@ -1,3 +1,3 @@ + # Do not edit -- exists only for use by patch + +-0 ++1 +-- +cgit v1.2.3 diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/repodata_record.json b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..ef0849fb45d0839df48ac22fa98d9414a7562b2a --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/repodata_record.json @@ -0,0 +1,24 @@ +{ + "arch": "x86_64", + "build": "hc2a1206_0", + "build_number": 0, + "channel": "https://repo.anaconda.com/pkgs/main/linux-64/", + "constrains": [], + "depends": [ + "__glibc >=2.17,<3.0.a0", + "libgcc-ng >=11.2.0", + "ncurses >=6.5,<7.0a0" + ], + "fn": "readline-8.3-hc2a1206_0.conda", + "license": "GPL-3.0-only", + "license_family": "GPL", + "md5": "8578e006d4ef5cb98a6cda232b3490f6", + "name": "readline", + "platform": "linux", + "sha256": "0a438fa74f2776bde137017d6c18214b5da65b557f6a59f877fa4e091582f789", + "size": 481826, + "subdir": "linux-64", + "timestamp": 1754485653000, + "url": "https://repo.anaconda.com/pkgs/main/linux-64/readline-8.3-hc2a1206_0.conda", + "version": "8.3" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/run_exports.json b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/run_exports.json new file mode 100644 index 0000000000000000000000000000000000000000..a2efacb9c9117aa431f795320d092d3f0c046d0b --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/run_exports.json @@ -0,0 +1 @@ +{"weak": ["readline >=8.3,<9.0a0"]} \ No newline at end of file diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/test/run_test.sh b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..1477420670766ded000b18553d28e071aed3c152 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/test/run_test.sh @@ -0,0 +1,12 @@ + + +set -ex + + + +test -f ${PREFIX}/lib/libreadline.a +test -f ${PREFIX}/lib/libreadline${SHLIB_EXT} +test -f ${PREFIX}/lib/libhistory.a +test -f ${PREFIX}/lib/libhistory${SHLIB_EXT} +python -c "import readline" +exit 0 diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/test/test_time_dependencies.json b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/test/test_time_dependencies.json new file mode 100644 index 0000000000000000000000000000000000000000..8adeb3f24a2fc3fd00cbaf766eb6c6a6e2856710 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/info/test/test_time_dependencies.json @@ -0,0 +1 @@ +["python 3.*"] \ No newline at end of file diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/libhistory.a b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/libhistory.a new file mode 100644 index 0000000000000000000000000000000000000000..dc5b4a3db2fb47f41abe32078272f0e6388955ce Binary files /dev/null and b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/libhistory.a differ diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/libhistory.so b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/libhistory.so new file mode 100644 index 0000000000000000000000000000000000000000..a4ecc028c19c65c5c4d6cfe6d8b1f76725e85efa Binary files /dev/null and b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/libhistory.so differ diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/libhistory.so.8 b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/libhistory.so.8 new file mode 100644 index 0000000000000000000000000000000000000000..a4ecc028c19c65c5c4d6cfe6d8b1f76725e85efa Binary files /dev/null and b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/libhistory.so.8 differ diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/libhistory.so.8.3 b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/libhistory.so.8.3 new file mode 100644 index 0000000000000000000000000000000000000000..a4ecc028c19c65c5c4d6cfe6d8b1f76725e85efa Binary files /dev/null and b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/libhistory.so.8.3 differ diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/pkgconfig/history.pc b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/pkgconfig/history.pc new file mode 100644 index 0000000000000000000000000000000000000000..12776ce546c0c98ba7e6de6d215b983b77977533 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/pkgconfig/history.pc @@ -0,0 +1,11 @@ +prefix=/croot/readline_1754485605901/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: History +Description: Gnu History library for managing previously-entered lines +URL: http://tiswww.cwru.edu/php/chet/readline/rltop.html +Version: 8.3 +Libs: -L${libdir} -lhistory +Cflags: -I${includedir} diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/pkgconfig/readline.pc b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/pkgconfig/readline.pc new file mode 100644 index 0000000000000000000000000000000000000000..0973e73e92b5711238a4ad968e73decb5956d7e2 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/lib/pkgconfig/readline.pc @@ -0,0 +1,12 @@ +prefix=/croot/readline_1754485605901/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: Readline +Description: Gnu Readline library for command line editing +URL: http://tiswww.cwru.edu/php/chet/readline/rltop.html +Version: 8.3 +Requires.private: tinfo +Libs: -L${libdir} -lreadline +Cflags: -I${includedir} diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/CHANGES b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/CHANGES new file mode 100644 index 0000000000000000000000000000000000000000..8c89f1e36bce609373a9094c1f64ba1b8010ea30 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/CHANGES @@ -0,0 +1,2112 @@ +This document details the changes between this version, readline-8.3, and +the previous version, readline-8.2. + +1. Changes to Readline + +a. Fixed a bug in clearing the visible line structure before redisplay. + +b. Fix a bug where setlocale(3) returning NULL caused a crash. + +c. Fixed signal checking in callback mode to handle signals that arrive before + readline restore's the application's signal handlers. + +d. Fixed a bug with word completion where the directory name needs to be + dequoted and tilde-expanded. + +e. Fixed a bug that caused compilation to fail on systems with select but not + pselect. + +f. System-specific changes for: WIN32, z/OS, Cygwin, MSYS + +g. Fixed a bug that caused word completion mismatches if the quoted text the + user typed was longer than the unquoted match. + +h. Fixes for freeing undo lists that might appear in history list entries + after non-incremental searches. + +i. Fixes for some errors revealed by address sanitizer. + +j. In vi mode, if an `f' or `F' move command associated with a `c' or `C' + command fails, don't enter insert mode. + +k. Fixed bug with truncating a history file containing timestamps that caused + the timestamp associated with the first history entry not to be written. + +l. Fix vi-mode so that a motion command attached to d/D, y/Y, or t/T must + consume or delete at least one character. + +m. Fix a redisplay error when displaying meta characters as octal sequences + and other C locale issues. + +n. Fix error that caused characters composing an incomplete multibyte + character not to be inserted into the line. + +o. In callback mode, let the application echo the signal characters (e.g., ^C) + when the application's signal handlers are installed. + +p. Added some support for lines that consume more than the physical number of + screen lines. + +q. Make sure dump-variables returns the string values for active-region-start-color + and active-region-end-color if they're set. + +r. Fixes to how characters between 128 and 159 are printed when displaying + macro values (use symbolic notation instead of directly printing the + character). + +s. Don't convert meta characters that contain NULL (\M-\C-@) to actual NULs, + which prematurely terminates the macro value. + +t. Fix typo in the readline color prefix extension that it uses for coloring + filename prefixes when displaying possible completions. + +u. Call the filename rewrite hook on the word being completed before comparing + it against possible completions from the file system to get consistent + strings. + +v. Fix infinite recursion that can happen if someone binds a key that doesn't + have a different upper and lower case represenation to do-lowercase-version. + +w. Check for non-ANSI (dumb) terminals a little more thoroughly. + +x. Don't attempt to history-expand the `quick substitution' character at the + beginning of a line if the application has set the quoting state to single + quotes. + +y. Fix small memory leak if non-incremental or incremental search is + interrupted by a signal. + +z. Loading very large history files should be much faster. + +aa. Retry opening startup files if the open is interrupted by a signal + and is not automatically restarted. + +bb. Make sure the bracketed-paste input buffer is null-terminated when read + returns an error. + +cc. Fixed a small memory leak in execute-named-command if the command doesn't + exist or the function doesn't return. + +dd. Fix for attempting to change case of invalid multibyte characters. + +ee. Fix for possible completions that compare identically when using case- + insensitive completion but have different byte lengths. + +ff. Fix to make non-incremental searches use undo lists and set the history + position the same way as incremental searches. + +gg. Don't check for signals when handling a received signal. + +hh. Fix off-by-one error when tokenizing words like $((expr)) while performing + history expansion. + +ii. Fixes for incremental searches and redisplay in the C locale. + +jj. Fixes for some use-after-free of the undo list errors when stacking multiple + commands that use rl_maybe_replace_line to save changes to a history entry. + +kk. Fixes to ensure that completion-prefix-display-length and + colored-completion-prefix are mutually exclusive. + +ll. Fixed a bug that allowed a history search to change the current history + list position. + +mm. Fixed a bug that allowed ^G to retain a saved command to execute. + +nn. Updates to new export-completions command to allow filename suffixes. + +oo. Fixed a redisplay bug with prompts containing multiple sequences of + invisible characters that are longer than the screen width. + +pp. The history library no longer skips blank lines while it is reading a + multiline history entry from a history file. + +2. New Features in Readline + +a. Output a newline if there is no prompt and readline reads an empty line. + +b. The history library falls back to stdio when writing the history list if + mmap fails. + +c. New bindable variable `search-ignore-case', causes readline to perform + case-insensitive incremental and non-incremental history searches. + +d. rl_full_quoting_desired: new application-settable variable, causes all + completions to be quoted as if they were filenames. + +e. rl_macro_display_hook: new application-settable function pointer, used if + the application wants to print macro values itself instead of letting + readline do it + +f. rl_reparse_colors: new application-callable function, reparses $LS_COLORS + (presumably after the user changes it) + +g. rl_completion_rewrite_hook: new application-settable function pointer, + called to modify the word being completed before comparing it against + pathnames from the file system. + +h. execute-named-command: a new bindable command that reads the name of a + readline command from the standard input and executes it. Bound to M-x + in emacs mode by default. + +i. Incremental and non-incremental searches now allow ^V/^Q (or, in the former + case, anything bound to quoted-insert) to quote characters in the search + string. + +j. Documentation has been significantly updated. + +k. New `force-meta-prefix' bindable variable, which forces the use of ESC as + the meta prefix when using "\M-" in key bindings instead of overloading + convert-meta. + +l. The default value for `readline-colored-completion-prefix' no longer has a + leading `.'; the original report was based on a misunderstanding. + +m. There is a new bindable command, `export-completions', which writes the + possible completions for a word to the standard output in a defined format. + +n. Readline can reset its idea of the screen dimensions when executing after + a SIGCONT. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-8.2, and +the previous version, readline-8.1. + +1. Changes to Readline + +a. Fixed a problem with cleaning up active marks when using callback mode. + +b. Fixed a problem with arithmetic comparison operators checking the version. + +c. Fixed a problem that could cause readline not to build on systems without + POSIX signal functions. + +d. Fixed a bug that could cause readline to crash if the application removed + the callback line handler before readline read all typeahead. + +e. Added additional checks for read errors in the middle of readline commands. + +f. Fixed a redisplay problem that occurred when switching from the digit- + argument prompt `(arg: N)' back to the regular prompt and the regular + prompt contained invisible characters. + +g. Fixed a problem with restoring the prompt when aborting an incremental + search. + +h. Fix a problem with characters > 128 not being displayed correctly in certain + single-byte encodings. + +i. Fixed a problem with unix-filename-rubout that caused it to delete too much + when applied to a pathname consisting only of one or more slashes. + +j. Fixed a display problem that caused the prompt to be wrapped incorrectly if + the screen changed dimensions during a call to readline() and the prompt + became longer than the screen width. + +k. Fixed a problem that caused the \r output by turning off bracketed paste + to overwrite the line if terminal echo was disabled. + +l. Fixed a bug that could cause colored-completion-prefix to not display if + completion-prefix-display-length was set. + +m. Fixed a problem with line wrapping prompts when a group of invisible + characters runs to the right edge of the screen and the prompt extends + longer then the screen width. + +n. Fixed a couple problems that could cause rl_end to be set incorrectly by + transpose-words. + +o. Prevent some display problems when running a command as the result of a + trap or one bound using `bind -x' and the command generates output. + +p. Fixed an issue with multi-line prompt strings that have one or more + invisible characters at the end of a physical line. + +q. Fixed an issue that caused a history line's undo list to be cleared when + it should not have been. + +r. When replacing a history entry, make sure the existing entry has a non-NULL + timestamp before copying it; it may have been added by the application, not + the history library. + +2. New Features in Readline + +a. There is now an HS_HISTORY_VERSION containing the version number of the + history library for applications to use. + +b. History expansion better understands multiple history expansions that may + contain strings that would ordinarily inhibit history expansion (e.g., + `abc!$!$'). + +c. There is a new framework for readline timeouts, including new public + functions to set timeouts and query how much time is remaining before a + timeout hits, and a hook function that can trigger when readline times + out. There is a new state value to indicate a timeout. + +d. Automatically bind termcap key sequences for page-up and page-down to + history-search-backward and history-search-forward, respectively. + +e. There is a new `fetch-history' bindable command that retrieves the history + entry corresponding to its numeric argument. Negative arguments count back + from the end of the history. + +f. `vi-undo' is now a bindable command. + +g. There is a new option: `enable-active-region'. This separates control of + the active region and bracketed-paste. It has the same default value as + bracketed-paste, and enabling bracketed paste enables the active region. + Users can now turn off the active region while leaving bracketed paste + enabled. + +h. rl_completer_word_break_characters is now `const char *' like + rl_basic_word_break_characters. + +i. Readline looks in $LS_COLORS for a custom filename extension + (*.readline-colored-completion-prefix) and uses that as the default color + for the common prefix displayed when `colored-completion-prefix' is set. + +j. Two new bindable string variables: active-region-start-color and + active-region-end-color. The first sets the color used to display the + active region; the second turns it off. If set, these are used in place + of terminal standout mode. + +k. New readline state (RL_STATE_EOF) and application-visible variable + (rl_eof_found) to allow applications to detect when readline reads EOF + before calling the deprep-terminal hook. + +l. There is a new configuration option: --with-shared-termcap-library, which + forces linking the shared readline library with the shared termcap (or + curses/ncurses/termlib) library so applications don't have to do it. + +m. Readline now checks for changes to locale settings (LC_ALL/LC_CTYPE/LANG) + each time it is called, and modifies the appropriate locale-specific display + and key binding variables when the locale changes. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-8.1, and +the previous version, readline-8.0. + +1. Changes to Readline + +a. There are a number of fixes that were found as the result of fuzzing with + random input. + +b. Changed the revert-all-at-newline behavior to make sure to start at the end + of the history list when doing it, instead of the line where the user hit + return. + +c. When parsing `set' commands from the inputrc file or an application, readline + now allows trailing whitespace. + +d. Fixed a bug that left a file descriptor open to the history file if the + file size was 0. + +e. Fixed a problem with binding key sequences containing meta characters. + +f. Fixed a bug that caused the wrong line to be displayed if the user tried to + move back beyond the beginning of the history list, or forward past the end + of the history list. + +g. If readline catches SIGTSTP, it now sets a hook that allows the calling + application to handle it if it desires. + +h. Fixed a redisplay problem with a prompt string containing embedded newlines. + +i. Fixed a problem with completing filenames containing invalid multibyte + sequences when case-insensitive comparisons are enabled. + +j. Fixed a redisplay problem with prompt strings containing invisible multibyte + characters. + +k. Fixed a problem with multibyte characters mapped to editing commands that + modify the search string in incremental search. + +l. Fixed a bug with maintaining the key sequence while resolving a bound + command in the presence of ambiguous sequences (sequences with a common + prefix), in most cases while attempting to unbind it. + +m. Fixed several buffer overflows found as the result of fuzzing. + +n. Reworked backslash handling when translating key sequences for key binding + to be more uniform and consistent, which introduces a slight backwards + incompatibility. + +o. Fixed a bug with saving the history that resulted in errors not being + propagated to the calling application when the history file is not writable. + +p. Readline only calls chown(2) on a newly-written history file if it really + needs to, instead of having it be a no-op. + +q. Readline now behaves better when operate-and-get-next is used when the + history list is `full': when there are already $HISTSIZE entries. + +r. Fixed a bug that could cause vi redo (`.') of a replace command not to work + correctly in the C or POSIX locale. + +s. Fixed a bug with vi-mode digit arguments that caused the last command to be + set incorrectly. This prevents yank-last-arg from working as intended, for + example. + +t. Make sure that all undo groups are closed when leaving vi insertion mode. + +u. Make sure that the vi-mode `C' and `c' commands enter insert mode even if + the motion command doesn't have any effect. + +v. Fixed several potential memory leaks in the callback mode context handling. + +w. If readline is handling a SIGTTOU, make sure SIGTTOU is blocked while + executing the terminal cleanup code, since it's no longer run in a signal + handling context. + +x. Fixed a bug that could cause an application with an application-specific + redisplay function to crash if the line data structures had not been + initialized. + +y. Terminals that are named "dumb" or unknown do not enable bracketed paste + by default. + +z. Ensure that disabling bracketed paste turns off highlighting the incremental + search string when the search is successful. + +2. New Features in Readline + +a. If a second consecutive completion attempt produces matches where the first + did not, treat it as a new completion attempt and insert a match as + appropriate. + +b. Bracketed paste mode works in more places: incremental search strings, vi + overstrike mode, character search, and reading numeric arguments. + +c. Readline automatically switches to horizontal scrolling if the terminal has + only one line. + +d. Unbinding all key sequences bound to a particular readline function now + descends into keymaps for multi-key sequences. + +e. rl-clear-display: new bindable command that clears the screen and, if + possible, the scrollback buffer (bound to emacs mode M-C-l by default). + +f. New active mark and face feature: when enabled, it will highlight the text + inserted by a bracketed paste (the `active region') and the text found by + incremental and non-incremental history searches. This is tied to bracketed + paste and can be disabled by turning off bracketed paste. + +g. Readline sets the mark in several additional commands. + +h. Bracketed paste mode is enabled by default. There is a configure-time + option (--enable-bracketed-paste-default) to set the default to on or off. + +i. Readline tries to take advantage of the more regular structure of UTF-8 + characters to identify the beginning and end of characters when moving + through the line buffer. + +j. The bindable operate-and-get-next command (and its default bindings) are + now part of readline instead of a bash-specific addition. + +k. The signal cleanup code now blocks SIGINT while processing after a SIGINT. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-8.0, and the +previous version, readline-7.0. + +1. Changes to Readline + +a. Added a guard to prevent nested macros from causing an infinite expansion + loop. + +b. Instead of allocating enough history list entries to hold the maximum list + size, cap the number allocated initially. + +c. Added a strategy to avoid allocating huge amounts of memory if a block of + history entries without timestamps occurs after a block with timestamps. + +d. Added support for keyboard timeouts when an ESC character is the last + character in a macro. + +e. There are several performance improvements when in a UTF-8 locale. + +f. Readline does a better job of preserving the original set of blocked + signals when using pselect() to wait for input. + +g. Fixed a bug that caused multibyte characters in macros to be mishandled. + +h. Fixed several bugs in the code that calculates line breaks when expanding + prompts that span several lines, contain multibyte characters, and contain + invisible character seqeuences. + +i. Fixed several bugs in cursor positioning when displaying lines with prompts + containing invisible characters and multibyte characters. + +j. When performing case-insensitive completion, Readline no longer sorts the + list of matches unless directed to do so. + +k. Fixed a problem with key sequences ending with a backslash. + +l. Fixed out-of-bounds and free memory read errors found via fuzzing. + +m. Fixed several cases where the mark was set to an invalid value. + +n. Fixed a problem with the case-changing operators in the case where the + lower and upper case versions of a character do not have the same number + of bytes. + +o. Handle incremental and non-incremental search character reads returning EOF. + +p. Handle the case where a failing readline command at the end of a multi-key + sequence could be misinterpreted. + +q. The history library now prints a meaningful error message if the history + file isn't a regular file. + +r. Fixed a problem with vi-mode redo (`.') on a command when trying to replace + a multibyte character. + +s. The key binding code now attempts to remove a keymap if a key unbinding + leaves it empty. + +t. Fixed a line-wrapping issue that caused problems for some terminal + emulators. + +u. If there is a key bound to the tty's VDISCARD special character, readline + disables VDISCARD while it is active. + +v. Fixed a problem with exiting bracketed paste mode on terminals that assume + the bracketed paste mode character sequence contains visible characters. + +w. Fixed a bug that could cause a key binding command to refer to an + uninitialized variable. + +x. Added more UTF-8-specific versions of multibyte functions, and optimized + existing functions if the current locale uses UTF-8 encoding. + +y. Fixed a problem with bracketed-paste inserting more than one character and + interacting with other readline functions. + +z. Fixed a bug that caused the history library to attempt to append a history + line to a non-existent history entry. + +aa. If using bracketed paste mode, output a newline after the \r that is the + last character of the mode disable string to avoid overwriting output. + +bb. Fixes to the vi-mode `b', `B', `w', `W', `e', and `E' commands to better + handle multibyte characters. + +cc. Fixed a redisplay problem that caused an extra newline to be generated on + accept-line when the line length is exactly the screenwidth. + +dd. Fixed a bug with adding multibyte characters to an incremental search + string. + +ee. Fixed a bug with redoing text insertions in vi mode. + +ff. Fixed a bug with pasting text into an incremental search string if bracketed + paste mode is enabled. ESC cannot be one of the incremental search + terminator characters for this to work. + +gg. Fixed a bug with anchored search patterns when performing searches in vi + mode. + +2. New Features in Readline + +a. Non-incremental vi-mode search (`N', `n') can search for a shell pattern, as + Posix specifies (uses fnmatch(3) if available). + +b. There are new `next-screen-line' and `previous-screen-line' bindable + commands, which move the cursor to the same column in the next, or previous, + physical line, respectively. + +c. There are default key bindings for control-arrow-key key combinations. + +d. A negative argument (-N) to `quoted-insert' means to insert the next N + characters using quoted-insert. + +e. New public function: rl_check_signals(), which allows applications to + respond to signals that readline catches while waiting for input using + a custom read function. + +f. There is new support for conditionally testing the readline version in an + inputrc file, with a full set of arithmetic comparison operators available. + +g. There is a simple variable comparison facility available for use within an + inputrc file. Allowable operators are equality and inequality; string + variables may be compared to a value; boolean variables must be compared to + either `on' or `off'; variable names are separated from the operator by + whitespace. + +h. The history expansion library now understands command and process + substitution and extended globbing and allows them to appear anywhere in a + word. + +i. The history library has a new variable that allows applications to set the + initial quoting state, so quoting state can be inherited from a previous + line. + +j. Readline now allows application-defined keymap names; there is a new public + function, rl_set_keymap_name(), to do that. + +k. The "Insert" keypad key, if available, now puts readline into overwrite + mode. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-7.0, and the +previous version, readline-6.3. + +1. Changes to Readline + +a. A bug that caused vi-mode `.' to be unable to redo `c', `d', and `y' + commands with modifiers was fixed. + +b. Fixed a bug that caused callback mode to dump core when reading a + multiple-key sequence (e.g., arrow keys). + +c. Fixed a bug that caused the redisplay code to erase some of the line when + using horizontal scrolling with incremental search. + +d. Readline's input handler now performs signal processing if read(2) is + interrupted by SIGALRM or SIGVTALRM. + +e. Fixed a problem with revert-all-at-newline freeing freed memory. + +f. Clarified the documentation for the history_quotes_inhibit_expansion + variable to note that it inhibits scanning for the history comment + character and that it only affects double-quoted strings. + +g. Fixed an off-by-one error in the prompt printed when performing searches. + +h. Use pselect(2), if available, to wait for input before calling read(2), so + a SIGWINCH can interrupt it, since it doesn't interrupt read(2). + +i. Some memory leaks caused by signals interrupting filename completion have + been fixed. + +j. Reading EOF twice on a non-empty line causes EOF to be returned, rather + than the partial line. This can cause partial lines to be executed on + SIGHUP, for example. + +k. Fixed a bug concerning deleting multibyte characters from the search + string while performing an incremental search. + +l. Fixed a bug with tilde expanding directory names in filename completion. + +m. Fixed a bug that did not allow binding sequences beginning with a `\'. + +n. Fixed a redisplay bug involving incorrect line wrapping when the prompt + contains a multibyte character in the last screen column. + +o. Fixed a bug that caused history expansion to disregard characters that are + documented to delimit a history event specifier without requiring `:'. + +p. Fixed a bug that could cause reading past the end of a string when reading + the value when binding the set of isearch terminators. + +q. Fixed a bug that caused readline commands that depend on knowing which + key invoked them to misbehave when dispatching key sequences that are + prefixes of other key bindings. + +r. Paren matching now works in vi insert mode. + +s. Colored completion prefixes are now displayed using a different color, less + likely to collide with files. + +t. Fixed a bug that caused vi-mode character search to misbehave when + running in callback mode. + +u. Fixed a bug that caused output to be delayed when input is coming from a + macro in vi-mode. + +v. Fixed a bug that caused the vi-mode `.' command to misbehave when redoing + a multi-key key sequence via a macro. + +w. Fixed a bug that caused problems with applications that supply their own + input function when performing completion. + +x. When read returns -1/EIO when attempting to read a key, return an error + instead of line termination back to the caller. + +y. Updated tty auditing feature based on patch from Red Hat. + +z. Fixed a bug that could cause the history library to crash on overflows + introduced by malicious editing of timestamps in the history file. + +aa. The history file writing functions only attempt to create and use a backup + history file if the history file exists and is a regular file. + +bb. Fixed an out-of-bounds read in readline's internal tilde expansion interface. + +cc. Fixed several redisplay bugs with prompt strings containing multibyte + and non-visible characters whose physical length is longer than the screen + width. + +dd. Fixed a redisplay bug with prompt strings containing invisible characters + whose physical length exceeds the screen width and using incremental search. + +ee. Readline prints more descriptive error messages when it encounters errors + while reading an inputrc file. + +ff. Fixed a bug in the character insertion code that attempts to optimize + typeahead when it reads a character that is not bound to self-insert and + resets the key sequence state. + +gg. When refreshing the line as the result of a key sequence, Readline attempts + to redraw only the last line of a multiline prompt. + +hh. Fixed an issue that caused completion of git commands to display + incorrectly when using colored-completion-prefix. + +ii. Fixed several redisplay bugs having to do with multibyte characters and + invisible characters in prompt strings. + +jj. Fixed a bug that caused mode strings to be displayed incorrectly if the + prompt was shorter than the mode string. + +2. New Features in Readline + +a. The history truncation code now uses the same error recovery mechanism as + the history writing code, and restores the old version of the history file + on error. The error recovery mechanism handles symlinked history files. + +b. There is a new bindable variable, `enable-bracketed-paste', which enables + support for a terminal's bracketed paste mode. + +c. The editing mode indicators can now be strings and are user-settable + (new `emacs-mode-string', `vi-cmd-mode-string' and `vi-ins-mode-string' + variables). Mode strings can contain invisible character sequences. + Setting mode strings to null strings restores the defaults. + +d. Prompt expansion adds the mode string to the last line of a multi-line + prompt (one with embedded newlines). + +e. There is a new bindable variable, `colored-completion-prefix', which, if + set, causes the common prefix of a set of possible completions to be + displayed in color. + +f. There is a new bindable command `vi-yank-pop', a vi-mode version of emacs- + mode yank-pop. + +g. The redisplay code underwent several efficiency improvements for multibyte + locales. + +h. The insert-char function attempts to batch-insert all pending typeahead + that maps to self-insert, as long as it is coming from the terminal. + +i. rl_callback_sigcleanup: a new application function that can clean up and + unset any state set by readline's callback mode. Intended to be used + after a signal. + +j. If an incremental search string has its last character removed with DEL, the + resulting empty search string no longer matches the previous line. + +k. If readline reads a history file that begins with `#' (or the value of + the history comment character) and has enabled history timestamps, the history + entries are assumed to be delimited by timestamps. This allows multi-line + history entries. + +l. Readline now throws an error if it parses a key binding without a terminating + `:' or whitespace. + +m. The default binding for ^W in vi mode now uses word boundaries specified + by Posix (vi-unix-word-rubout is bindable command name). + +n. rl_clear_visible_line: new application-callable function; clears all + screen lines occupied by the current visible readline line. + +o. rl_tty_set_echoing: application-callable function that controls whether + or not readline thinks it is echoing terminal output. + +p. Handle >| and strings of digits preceding and following redirection + specifications as single tokens when tokenizing the line for history + expansion. + +q. Fixed a bug with displaying completions when the prefix display length + is greater than the length of the completions to be displayed. + +r. The :p history modifier now applies to the entire line, so any expansion + specifying :p causes the line to be printed instead of expanded. + +s. New application-callable function: rl_pending_signal(): returns the signal + number of any signal readline has caught but not yet handled. + +t. New application-settable variable: rl_persistent_signal_handlers: if set + to a non-zero value, readline will enable the readline-6.2 signal handler + behavior in callback mode: handlers are installed when + rl_callback_handler_install is called and removed removed when a complete + line has been read. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-6.3, and the +previous version, readline-6.2. + +1. Changes to Readline + +a. Fixed a bug that did not allow the `dd', `cc', or `yy' vi editing mode + commands to work on the entire line. + +b. Fixed a bug that caused redisplay problems with prompts longer than 128 + characters and history searches. + +c. Fixed a bug that caused readline to try and run code to modify its idea + of the screen size in a signal handler context upon receiving a SIGWINCH. + +d. Fixed a bug that caused the `meta' key to be enabled beyond the duration + of an individual call top readline(). + +e. Added a workaround for a wcwidth bug in Mac OS X that caused readline's + redisplay to mishandle zero-width combining characters. + +f. Fixed a bug that caused readline to `forget' part of a key sequence when + a multiple-key sequence caused it to break out of an incremental search. + +g. Fixed bugs that caused readline to execute code in a signal handler + context if interrupted while reading from the file system during completion. + +h. Fixed a bug that caused readline to `forget' part of a key sequence when + reading an unbound multi-character key sequence. + +i. Fixed a bug that caused Readline's signal handlers to be installed beyond + the bounds of a single call to readline(). + +j. Fixed a bug that caused the `.' command to not redo the most recent `R' + command in vi mode. + +k. Fixed a bug that caused ignoring case in completion matches to result in + readline using the wrong match. + +l. Paren matching now works in vi insert mode. + +m. Fix menu-completion to make show-all-if-ambiguous and menu-complete-display-prefix + work together. + +n. Fixed a bug that didn't allow the `cc', `dd', or `yy' commands to be redone + in vi editing mode. + +o. Fixed a bug that caused the filename comparison code to not compare + multibyte characters correctly when using case-sensitive or case-mapping + comparisons. + +p. Fixed the input reading loop to call the input hook function only when there + is no terminal input available. + +q. Fixed a bug that caused binding a macro to a multi-character key sequence + where the sequence and macro value share a common prefix to not perform + the macro replacement. + +r. Fixed several redisplay errors with multibyte characters and prompts + containing invisible characters when using horizontal scrolling. + +s. Fixed a bug that caused redisplay errors when trying to overwrite + existing characters using multibyte characters. + +t. Fixed a bug in vi mode that caused the arrow keys to set the saved last + vi-mode command to the wrong value. + +u. Fixed a bug that caused double-quoted strings to be scanned incorrectly + when being used as the value of a readline variable assignment. + +v. Fixed a bug with vi mode that prevented `.' from repeating a command + entered on a previous line (command). + +w. Fixed a bug that could cause completion to core dump if it was interrupted + by a signal. + +x. Fixed a bug that could cause readline to crash and seg fault attempting to + expand an empty history entry. + +y. Fixed a bug that caused display problems with multi-line prompts containing + invisible characters on multiple lines. + +z. Fixed a bug that caused effects made by undoing changes to a history line to + be discarded. + +2. New Features in Readline + +a. Readline is now more responsive to SIGHUP and other fatal signals when + reading input from the terminal or performing word completion but no + longer attempts to run any not-allowable functions from a signal handler + context. + +b. There are new bindable commands to search the history for the string of + characters between the beginning of the line and the point + (history-substring-search-forward, history-substring-search-backward) + +c. Readline allows quoted strings as the values of variables when setting + them with `set'. As a side effect, trailing spaces and tabs are ignored + when setting a string variable's value. + +d. The history library creates a backup of the history file when writing it + and restores the backup on a write error. + +e. New application-settable variable: rl_filename_stat_hook: a function called + with a filename before using it in a call to stat(2). Bash uses it to + expand shell variables so things like $HOME/Downloads have a slash + appended. + +f. New bindable function `print-last-kbd-macro', prints the most-recently- + defined keyboard macro in a reusable format. + +g. New user-settable variable `colored-stats', enables use of colored text + to denote file types when displaying possible completions (colored analog + of visible-stats). + +h. New user-settable variable `keyseq-timout', acts as an inter-character + timeout when reading input or incremental search strings. + +i. New application-callable function: rl_clear_history. Clears the history list + and frees all readline-associated private data. + +j. New user-settable variable, show-mode-in-prompt, adds a characters to the + beginning of the prompt indicating the current editing mode. + +k. New application-settable variable: rl_input_available_hook; function to be + called when readline needs to check whether there is data available on its + input source. The default hook checks rl_instream. + +l. Readline calls an application-set event hook (rl_signal_event_hook) after + it gets a signal while reading input (read returns -1/EINTR but readline + does not handle the signal immediately) to allow the application to handle + or otherwise note it. Not currently called for SIGHUP or SIGTERM. + +m. If the user-settable variable `history-size' is set to a value less than + 0, the history list size is unlimited. + +n. When creating shared libraries on Mac OS X, the pathname written into the + library (install_name) no longer includes the minor version number. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-6.2, +and the previous version, readline-6.1. + +1. Changes to Readline + +a. Fixed a bug that caused the unconverted filename to be added to the list of + completions when the application specified filename conversion functions. + +b. Fixed a bug that caused the wrong filename to be passed to opendir when the + application has specified a filename dequoting function. + +c. Fixed a bug when repeating a character search in vi mode in the case where + there was no search to repeat. + +d. When show-all-if-ambiguous is set, the completion routines no longer insert + a common match prefix that is shorter than the text being completed. + +e. The full set of vi editing commands may now be used in callback mode. + +f. Fixed a bug that caused readline to not update its idea of the terminal + dimensions while running in `no-echo' mode. + +h. Fixed a bug that caused readline to dump core if an application called + rl_prep_terminal without setting rl_instream. + +i. Fixed a bug that caused meta-prefixed characters bound to incremental + search forward or backward to not be recognized if they were typed + subsequently. + +j. The incremental search code treats key sequences that map to the same + functions as (default) ^G, ^W, and ^Y as equivalent to those characters. + +k. Fixed a bug in menu-complete that caused it to misbehave with large + negative argument. + +l. Fixed a bug that caused vi-mode yank-last-arg to ring the bell when invoked + at the end of the line. + +m. Fixed a bug that made an explicit argument of 0 to yank-last-arg behave + as if it were a negative argument. + +n. Fixed a bug that caused directory names in words to be completed to not + be dequoted correctly. + +2. New Features in Readline + +a. The history library does not try to write the history filename in the + current directory if $HOME is unset. This closes a potential security + problem if the application does not specify a history filename. + +b. New bindable variable `completion-display-width' to set the number of + columns used when displaying completions. + +c. New bindable variable `completion-case-map' to cause case-insensitive + completion to treat `-' and `_' as identical. + +d. There are new bindable vi-mode command names to avoid readline's case- + insensitive matching not allowing them to be bound separately. + +e. New bindable variable `menu-complete-display-prefix' causes the menu + completion code to display the common prefix of the possible completions + before cycling through the list, instead of after. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-6.1, +and the previous version, readline-6.0. + +1. Changes to Readline + +a. The SIGWINCH signal handler now avoids calling the redisplay code if + one arrives while in the middle of redisplay. + +b. Changes to the timeout code to make sure that timeout values greater + than one second are handled better. + +c. Fixed a bug in the redisplay code that was triggered by a prompt + containing invisible characters exactly the width of the screen. + +d. Fixed a bug in the redisplay code encountered when running in horizontal + scroll mode. + +e. Fixed a bug that prevented menu completion from properly completing + filenames. + +f. Fixed a redisplay bug caused by a multibyte character causing a line to + wrap. + +g. Fixed a bug that caused key sequences of two characters to not be + recognized when a longer sequence identical in the first two characters + was bound. + +h. Fixed a bug that caused history expansion to be attempted on $'...' + single-quoted strings. + +i. Fixed a bug that caused incorrect redisplay when the prompt contained + multibyte characters in an `invisible' sequence bracketed by \[ and + \]. + +j. Fixed a bug that caused history expansion to short-circuit after + encountering a multibyte character. + +k. Fixed a bug that caused applications using the callback interface to not + react to SIGINT (or other signals) until another character arrived. + +2. New Features in Readline + +a. New bindable function: menu-complete-backward. + +b. In the vi insertion keymap, C-n is now bound to menu-complete by default, + and C-p to menu-complete-backward. + +c. When in vi command mode, repeatedly hitting ESC now does nothing, even + when ESC introduces a bound key sequence. This is closer to how + historical vi behaves. + +d. New bindable function: skip-csi-sequence. Can be used as a default to + consume key sequences generated by keys like Home and End without having + to bind all keys. + +e. New application-settable function: rl_filename_rewrite_hook. Can be used + to rewrite or modify filenames read from the file system before they are + compared to the word to be completed. + +f. New bindable variable: skip-completed-text, active when completing in the + middle of a word. If enabled, it means that characters in the completion + that match characters in the remainder of the word are "skipped" rather + than inserted into the line. + +g. The pre-readline-6.0 version of menu completion is available as + "old-menu-complete" for users who do not like the readline-6.0 version. + +h. New bindable variable: echo-control-characters. If enabled, and the + tty ECHOCTL bit is set, controls the echoing of characters corresponding + to keyboard-generated signals. + +i. New bindable variable: enable-meta-key. Controls whether or not readline + sends the smm/rmm sequences if the terminal indicates it has a meta key + that enables eight-bit characters. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-6.0, +and the previous version, readline-5.2. + +1. Changes to Readline + +a. Fixed a number of redisplay errors in environments supporting multibyte + characters. + +b. Fixed bugs in vi command mode that caused motion commands to inappropriately + set the mark. + +c. When using the arrow keys in vi insertion mode, readline allows movement + beyond the current end of the line (unlike command mode). + +d. Fixed bugs that caused readline to loop when the terminal has been taken + away and reads return -1/EIO. + +e. Fixed bugs in redisplay occurring when displaying prompts containing + invisible characters. + +f. Fixed a bug that caused the completion append character to not be reset to + the default after an application-specified completion function changed it. + +g. Fixed a problem that caused incorrect positioning of the cursor while in + emacs editing mode when moving forward at the end of a line while using + a locale supporting multibyte characters. + +h. Fixed an off-by-one error that caused readline to drop every 511th + character of buffered input. + +i. Fixed a bug that resulted in SIGTERM not being caught or cleaned up. + +j. Fixed redisplay bugs caused by multiline prompts with invisible characters + or no characters following the final newline. + +k. Fixed redisplay bug caused by prompts consisting solely of invisible + characters. + +l. Fixed a bug in the code that buffers characters received very quickly in + succession which caused characters to be dropped. + +m. Fixed a bug that caused readline to reference uninitialized data structures + if it received a SIGWINCH before completing initialization. + +n. Fixed a bug that caused the vi-mode `last command' to be set incorrectly + and therefore unrepeatable. + +o. Fixed a bug that caused readline to disable echoing when it was being used + with an output file descriptor that was not a terminal. + +p. Readline now blocks SIGINT while manipulating internal data structures + during redisplay. + +q. Fixed a bug in redisplay that caused readline to segfault when pasting a + very long line (over 130,000 characters). + +r. Fixed bugs in redisplay when using prompts with no visible printing + characters. + +s. Fixed a bug that caused redisplay errors when using prompts with invisible + characters and numeric arguments to a command in a multibyte locale. + +t. Fixed a bug that caused redisplay errors when using prompts with invisible + characters spanning more than two physical screen lines. + +2. New Features in Readline + +a. A new variable, rl_sort_completion_matches; allows applications to inhibit + match list sorting (but beware: some things don't work right if + applications do this). + +b. A new variable, rl_completion_invoking_key; allows applications to discover + the key that invoked rl_complete or rl_menu_complete. + +c. The functions rl_block_sigint and rl_release_sigint are now public and + available to calling applications who want to protect critical sections + (like redisplay). + +d. The functions rl_save_state and rl_restore_state are now public and + available to calling applications; documented rest of readline's state + flag values. + +e. A new user-settable variable, `history-size', allows setting the maximum + number of entries in the history list. + +f. There is a new implementation of menu completion, with several improvements + over the old; the most notable improvement is a better `completions + browsing' mode. + +g. The menu completion code now uses the rl_menu_completion_entry_function + variable, allowing applications to provide their own menu completion + generators. + +h. There is support for replacing a prefix of a pathname with a `...' when + displaying possible completions. This is controllable by setting the + `completion-prefix-display-length' variable. Matches with a common prefix + longer than this value have the common prefix replaced with `...'. + +i. There is a new `revert-all-at-newline' variable. If enabled, readline will + undo all outstanding changes to all history lines when `accept-line' is + executed. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-5.2, +and the previous version, readline-5.1. + +1. Changes to Readline + +a. Fixed a problem that caused segmentation faults when using readline in + callback mode and typing consecutive DEL characters on an empty line. + +b. Fixed several redisplay problems with multibyte characters, all having to + do with the different code paths and variable meanings between single-byte + and multibyte character redisplay. + +c. Fixed a problem with key sequence translation when presented with the + sequence \M-\C-x. + +d. Fixed a problem that prevented the `a' command in vi mode from being + undone and redone properly. + +e. Fixed a problem that prevented empty inserts in vi mode from being undone + properly. + +f. Fixed a problem that caused readline to initialize with an incorrect idea + of whether or not the terminal can autowrap. + +g. Fixed output of key bindings (like bash `bind -p') to honor the setting of + convert-meta and use \e where appropriate. + +h. Changed the default filename completion function to call the filename + dequoting function if the directory completion hook isn't set. This means + that any directory completion hooks need to dequote the directory name, + since application-specific hooks need to know how the word was quoted, + even if no other changes are made. + +i. Fixed a bug with creating the prompt for a non-interactive search string + when there are non-printing characters in the primary prompt. + +j. Fixed a bug that caused prompts with invisible characters to be redrawn + multiple times in a multibyte locale. + +k. Fixed a bug that could cause the key sequence scanning code to return the + wrong function. + +l. Fixed a problem with the callback interface that caused it to fail when + using multi-character keyboard macros. + +m. Fixed a bug that could cause a core dump when an edited history entry was + re-executed under certain conditions. + +n. Fixed a bug that caused readline to reference freed memory when attmpting + to display a portion of the prompt. + +o. Fixed a bug with prompt redisplay in a multi-byte locale to avoid redrawing + the prompt and input line multiple times. + +p. Fixed history expansion to not be confused by here-string redirection. + +q. Readline no longer treats read errors by converting them to newlines, as + it does with EOF. This caused partial lines to be returned from readline(). + +r. Fixed a redisplay bug that occurred in multibyte-capable locales when the + prompt was one character longer than the screen width. + +2. New Features in Readline + +a. Calling applications can now set the keyboard timeout to 0, allowing + poll-like behavior. + +b. The value of SYS_INPUTRC (configurable at compilation time) is now used as + the default last-ditch startup file. + +c. The history file reading functions now allow windows-like \r\n line + terminators. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-5.1, +and the previous version, readline-5.0. + +1. Changes to Readline + +a. Fixed a bug that caused multiliine prompts to be wrapped and displayed + incorrectly. + +b. Fixed a bug that caused ^P/^N in emacs mode to fail to display the current + line correctly. + +c. Fixed a problem in computing the number of invisible characters on the first + line of a prompt whose length exceeds the screen width. + +d. Fixed vi-mode searching so that failure preserves the current line rather + than the last line in the history list. + +e. Fixed the vi-mode `~' command (change-case) to have the correct behavior at + end-of-line when manipulating multibyte characters. + +f. Fixed the vi-mode `r' command (change-char) to have the correct behavior at + end-of-line when manipulating multibyte characters. + +g. Fixed multiple bugs in the redisplay of multibyte characters: displaying + prompts longer than the screen width containing multibyte characters, + +h. Fix the calculation of the number of physical characters in the prompt + string when it contains multibyte characters. + +i. A non-zero value for the `rl_complete_suppress_append' variable now causes + no `/' to be appended to a directory name. + +j. Fixed forward-word and backward-word to work when words contained + multibyte characters. + +k. Fixed a bug in finding the delimiter of a `?' substring when performing + history expansion in a locale that supports multibyte characters. + +l. Fixed a memory leak caused by not freeing the timestamp in a history entry. + +m. Fixed a bug that caused "\M-x" style key bindings to not obey the setting + of the `convert-meta' variable. + +n. Fixed saving and restoring primary prompt when prompting for incremental + and non-incremental searches; search prompts now display multibyte + characters correctly. + +o. Fixed a bug that caused keys originally bound to self-insert but shadowed + by a multi-character key sequence to not be inserted. + +p. Fixed code so rl_prep_term_function and rl_deprep_term_function aren't + dereferenced if NULL (matching the documentation). + +q. Extensive changes to readline to add enough state so that commands + requiring additional characters (searches, multi-key sequences, numeric + arguments, commands requiring an additional specifier character like + vi-mode change-char, etc.) work without synchronously waiting for + additional input. + +r. Lots of changes so readline builds and runs on MinGW. + +s. Readline no longer tries to modify the terminal settings when running in + callback mode. + +t. The Readline display code no longer sets the location of the last invisible + character in the prompt if the \[\] sequence is empty. + +u. The `change-case' command now correctly changes the case of multibyte + characters. + +v. Changes to the shared library construction scripts to deal with Windows + DLL naming conventions for Cygwin. + +w. Fixed the redisplay code to avoid core dumps resulting from a poorly-timed + SIGWINCH. + +x. Fixed the non-incremental search code in vi mode to dispose of any current + undo list when copying a line from the history into the current editing + buffer. + +y. Fixed a bug that caused reversing the incremental search direction to + not work correctly. + +z. Fixed the vi-mode `U' command to only undo up to the first time insert mode + was entered, as Posix specifies. + +aa. Fixed a bug in the vi-mode `r' command that left the cursor in the wrong + place. + +bb. Fixed a redisplay bug caused by moving the cursor vertically to a line + with invisible characters in the prompt in a multibyte locale. + +cc. Fixed a bug that could cause the terminal special chars to be bound in the + wrong keymap in vi mode. + +2. New Features in Readline + +a. The key sequence sent by the keypad `delete' key is now automatically + bound to delete-char. + +b. A negative argument to menu-complete now cycles backward through the + completion list. + +c. A new bindable readline variable: bind-tty-special-chars. If non-zero, + readline will bind the terminal special characters to their readline + equivalents when it's called (on by default). + +d. New bindable command: vi-rubout. Saves deleted text for possible + reinsertion, as with any vi-mode `text modification' command; `X' is bound + to this in vi command mode. + +e. If the rl_completion_query_items is set to a value < 0, readline never + asks the user whether or not to view the possible completions. + +f. The `C-w' binding in incremental search now understands multibyte + characters. + +g. New application-callable auxiliary function, rl_variable_value, returns + a string corresponding to a readline variable's value. + +h. When parsing inputrc files and variable binding commands, the parser + strips trailing whitespace from values assigned to boolean variables + before checking them. + +i. A new external application-controllable variable that allows the LINES + and COLUMNS environment variables to set the window size regardless of + what the kernel returns. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-5.0, +and the previous version, readline-4.3. + +1. Changes to Readline + +a. Fixes to avoid core dumps because of null pointer references in the + multibyte character code. + +b. Fix to avoid infinite recursion caused by certain key combinations. + +c. Fixed a bug that caused the vi-mode `last command' to be set incorrectly. + +d. Readline no longer tries to read ahead more than one line of input, even + when more is available. + +e. Fixed the code that adjusts the point to not mishandle null wide + characters. + +f. Fixed a bug in the history expansion `g' modifier that caused it to skip + every other match. + +g. Fixed a bug that caused the prompt to overwrite previous output when the + output doesn't contain a newline and the locale supports multibyte + characters. This same change fixes the problem of readline redisplay + slowing down dramatically as the line gets longer in multibyte locales. + +h. History traversal with arrow keys in vi insertion mode causes the cursor + to be placed at the end of the new line, like in emacs mode. + +i. The locale initialization code does a better job of using the right + precedence and defaulting when checking the appropriate environment + variables. + +j. Fixed the history word tokenizer to handle <( and >( better when used as + part of bash. + +k. The overwrite mode code received several bug fixes to improve undo. + +l. Many speedups to the multibyte character redisplay code. + +m. The callback character reading interface should not hang waiting to read + keyboard input. + +n. Fixed a bug with redoing vi-mode `s' command. + +o. The code that initializes the terminal tracks changes made to the terminal + special characters with stty(1) (or equivalent), so that these changes + are reflected in the readline bindings. New application-callable function + to make it work: rl_tty_unset_default_bindings(). + +p. Fixed a bug that could cause garbage to be inserted in the buffer when + changing character case in vi mode when using a multibyte locale. + +q. Fixed a bug in the redisplay code that caused problems on systems + supporting multibyte characters when moving between history lines when the + new line has more glyphs but fewer bytes. + +r. Undo and redo now work better after exiting vi insertion mode. + +s. Make sure system calls are restarted after a SIGWINCH is received using + SA_RESTART. + +t. Improvements to the code that displays possible completions when using + multibyte characters. + +u. Fixed a problem when parsing nested if statements in inputrc files. + +v. The completer now takes multibyte characters into account when looking for + quoted substrings on which to perform completion. + +w. The history search functions now perform better bounds checking on the + history list. + +x. Change to history expansion functions to treat `^' as equivalent to word + one, as the documentation states. + +y. Some changes to the display code to improve display and redisplay of + multibyte characters. + +z. Changes to speed up the multibyte character redisplay code. + +aa. Fixed a bug in the vi-mode `E' command that caused it to skip over the + last character of a word if invoked while point was on the word's + next-to-last character. + +bb. Fixed a bug that could cause incorrect filename quoting when + case-insensitive completion was enabled and the word being completed + contained backslashes quoting word break characters. + +cc. Fixed a bug in redisplay triggered when the prompt string contains + invisible characters. + +dd. Fixed some display (and other) bugs encountered in multibyte locales + when a non-ascii character was the last character on a line. + +ee. Fixed some display bugs caused by multibyte characters in prompt strings. + +ff. Fixed a problem with history expansion caused by non-whitespace characters + used as history word delimiters. + +gg. Fixed a problem that could cause readline to refer to freed memory when + moving between history lines while doing searches. + +hh. Improvements to the code that expands and displays prompt strings + containing multibyte characters. + +ii. Fixed a problem with vi-mode not correctly remembering the numeric argument + to the last `c'hange command for later use with `.'. + +jj. Fixed a bug in vi-mode that caused multi-digit count arguments to work + incorrectly. + +kk. Fixed a problem in vi-mode that caused the last text modification command + to not be remembered across different command lines. + +ll. Fixed problems with changing characters and changing case at the end of + the line. + +mm. Fixed a problem with readline saving the contents of the current line + before beginning a non-interactive search. + +nn. Fixed a problem with EOF detection when using rl_event_hook. + +oo. Fixed a problem with the vi mode `p' and `P' commands ignoring numeric + arguments. + +2. New Features in Readline + +a. History expansion has a new `a' modifier equivalent to the `g' modifier + for compatibility with the BSD csh. + +b. History expansion has a new `G' modifier equivalent to the BSD csh `g' + modifier, which performs a substitution once per word. + +c. All non-incremental search operations may now undo the operation of + replacing the current line with the history line. + +d. The text inserted by an `a' command in vi mode can be reinserted with + `.'. + +e. New bindable variable, `show-all-if-unmodified'. If set, the readline + completer will list possible completions immediately if there is more + than one completion and partial completion cannot be performed. + +f. There is a new application-callable `free_history_entry()' function. + +g. History list entries now contain timestamp information; the history file + functions know how to read and write timestamp information associated + with each entry. + +h. Four new key binding functions have been added: + + rl_bind_key_if_unbound() + rl_bind_key_if_unbound_in_map() + rl_bind_keyseq_if_unbound() + rl_bind_keyseq_if_unbound_in_map() + +i. New application variable, rl_completion_quote_character, set to any + quote character readline finds before it calls the application completion + function. + +j. New application variable, rl_completion_suppress_quote, settable by an + application completion function. If set to non-zero, readline does not + attempt to append a closing quote to a completed word. + +k. New application variable, rl_completion_found_quote, set to a non-zero + value if readline determines that the word to be completed is quoted. + Set before readline calls any application completion function. + +l. New function hook, rl_completion_word_break_hook, called when readline + needs to break a line into words when completion is attempted. Allows + the word break characters to vary based on position in the line. + +m. New bindable command: unix-filename-rubout. Does the same thing as + unix-word-rubout, but adds `/' to the set of word delimiters. + +n. When listing completions, directories have a `/' appended if the + `mark-directories' option has been enabled. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-4.3, +and the previous version, readline-4.2a. + +1. Changes to Readline + +a. Fixed output of comment-begin character when listing variable values. + +b. Added some default key bindings for common escape sequences produced by + HOME and END keys. + +c. Fixed the mark handling code to be more emacs-compatible. + +d. A bug was fixed in the code that prints possible completions to keep it + from printing empty strings in certain circumstances. + +e. Change the key sequence printing code to print ESC as M\- if ESC is a + meta-prefix character -- it's easier for users to understand than \e. + +f. Fixed unstifle_history() to return values that match the documentation. + +g. Fixed the event loop (rl_event_hook) to handle the case where the input + file descriptor is invalidated. + +h. Fixed the prompt display code to work better when the application has a + custom redisplay function. + +i. Changes to make reading and writing the history file a little faster, and + to cope with huge history files without calling abort(3) from xmalloc. + +j. The vi-mode `S' and `s' commands are now undone correctly. + +k. Fixed a problem which caused the display to be messed up when the last + line of a multi-line prompt (possibly containing invisible characters) + was longer than the screen width. + +2. New Features in Readline + +a. Support for key `subsequences': allows, e.g., ESC and ESC-a to both + be bound to readline functions. Now the arrow keys may be used in vi + insert mode. + +b. When listing completions, and the number of lines displayed is more than + the screen length, readline uses an internal pager to display the results. + This is controlled by the `page-completions' variable (default on). + +c. New code to handle editing and displaying multibyte characters. + +d. The behavior introduced in bash-2.05a of deciding whether or not to + append a slash to a completed name that is a symlink to a directory has + been made optional, controlled by the `mark-symlinked-directories' + variable (default is the 2.05a behavior). + +e. The `insert-comment' command now acts as a toggle if given a numeric + argument: if the first characters on the line don't specify a + comment, insert one; if they do, delete the comment text + +f. New application-settable completion variable: + rl_completion_mark_symlink_dirs, allows an application's completion + function to temporarily override the user's preference for appending + slashes to names which are symlinks to directories. + +g. New function available to application completion functions: + rl_completion_mode, to tell how the completion function was invoked + and decide which argument to supply to rl_complete_internal (to list + completions, etc.). + +h. Readline now has an overwrite mode, toggled by the `overwrite-mode' + bindable command, which could be bound to `Insert'. + +i. New application-settable completion variable: + rl_completion_suppress_append, inhibits appending of + rl_completion_append_character to completed words. + +j. New key bindings when reading an incremental search string: ^W yanks + the currently-matched word out of the current line into the search + string; ^Y yanks the rest of the current line into the search string, + DEL or ^H deletes characters from the search string. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-4.2a, +and the previous version, readline-4.2. + +1. Changes to Readline + +a. More `const' and type casting fixes. + +b. Changed rl_message() to use vsnprintf(3) (if available) to fix buffer + overflow problems. + +c. The completion code no longer appends a `/' or ` ' to a match when + completing a symbolic link that resolves to a directory name, unless + the match does not add anything to the word being completed. This + means that a tab will complete the word up to the full name, but not + add anything, and a subsequent tab will add a slash. + +d. Fixed a trivial typo that made the vi-mode `dT' command not work. + +e. Fixed the tty code so that ^S and ^Q can be inserted with rl_quoted_insert. + +f. Fixed the tty code so that ^V works more than once. + +g. Changed the use of __P((...)) for function prototypes to PARAMS((...)) + because the use of __P in typedefs conflicted g++ and glibc. + +h. The completion code now attempts to do a better job of preserving the + case of the word the user typed if ignoring case in completions. + +i. Readline defaults to not echoing the input and lets the terminal + initialization code enable echoing if there is a controlling terminal. + +j. The key binding code now processes only two hex digits after a `\x' + escape sequence, and the documentation was changed to note that the + octal and hex escape sequences result in an eight-bit value rather + than strict ASCII. + +k. Fixed a few places where negative array subscripts could have occurred. + +l. Fixed the vi-mode code to use a better method to determine the bounds of + the array used to hold the marks, and to avoid out-of-bounds references. + +m. Fixed the defines in chardefs.h to work better when chars are signed. + +n. Fixed configure.in to use the new names for bash autoconf macros. + +o. Readline no longer attempts to define its own versions of some ctype + macros if they are implemented as functions in libc but not as macros in + . + +p. Fixed a problem where rl_backward could possibly set point to before + the beginning of the line. + +q. Fixed Makefile to not put -I/usr/include into CFLAGS, since it can cause + include file problems. + +2. New Features in Readline + +a. Added extern declaration for rl_get_termcap to readline.h, making it a + public function (it was always there, just not in readline.h). + +b. New #defines in readline.h: RL_READLINE_VERSION, currently 0x0402, + RL_VERSION_MAJOR, currently 4, and RL_VERSION_MINOR, currently 2. + +c. New readline variable: rl_readline_version, mirrors RL_READLINE_VERSION. + +d. New bindable boolean readline variable: match-hidden-files. Controls + completion of files beginning with a `.' (on Unix). Enabled by default. + +e. The history expansion code now allows any character to terminate a + `:first-' modifier, like csh. + +f. The incremental search code remembers the last search string and uses + it if ^R^R is typed without a search string. + +h. New bindable variable `history-preserve-point'. If set, the history + code attempts to place the user at the same location on each history + line retrieved with previous-history or next-history. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-4.2, +and the previous version, readline-4.1. + +1. Changes to Readline + +a. When setting the terminal attributes on systems using `struct termio', + readline waits for output to drain before changing the attributes. + +b. A fix was made to the history word tokenization code to avoid attempts to + dereference a null pointer. + +c. Readline now defaults rl_terminal_name to $TERM if the calling application + has left it unset, and tries to initialize with the resultant value. + +d. Instead of calling (*rl_getc_function)() directly to get input in certain + places, readline now calls rl_read_key() consistently. + +e. Fixed a bug in the completion code that allowed a backslash to quote a + single quote inside a single-quoted string. + +f. rl_prompt is no longer assigned directly from the argument to readline(), + but uses memory allocated by readline. This allows constant strings to + be passed to readline without problems arising when the prompt processing + code wants to modify the string. + +g. Fixed a bug that caused non-interactive history searches to return the + wrong line when performing multiple searches backward for the same string. + +h. Many variables, function arguments, and function return values are now + declared `const' where appropriate, to improve behavior when linking with + C++ code. + +i. The control character detection code now works better on systems where + `char' is unsigned by default. + +j. The vi-mode numeric argument is now capped at 999999, just like emacs mode. + +k. The Function, CPFunction, CPPFunction, and VFunction typedefs have been + replaced with a set of specific prototyped typedefs, though they are + still in the readline header files for backwards compatibility. + +m. Nearly all of the (undocumented) internal global variables in the library + now have an _rl_ prefix -- there were a number that did not, like + screenheight, screenwidth, alphabetic, etc. + +n. The ding() convenience function has been renamed to rl_ding(), though the + old function is still defined for backwards compatibility. + +o. The completion convenience functions filename_completion_function, + username_completion_function, and completion_matches now have an rl_ + prefix, though the old names are still defined for backwards compatibility. + +p. The functions shared by readline and bash (linkage is satisfied from bash + when compiling with bash, and internally otherwise) now have an sh_ prefix. + +q. Changed the shared library creation procedure on Linux and BSD/OS 4.x so + that the `soname' contains only the major version number rather than the + major and minor numbers. + +r. Fixed a redisplay bug that occurred when the prompt spanned more than one + physical line and contained invisible characters. + +s. Added a missing `includedir' variable to the Makefile. + +t. When installing the shared libraries, make sure symbolic links are relative. + +u. Added configure test so that it can set `${MAKE}' appropriately. + +v. Fixed a bug in rl_forward that could cause the point to be set to before + the beginning of the line in vi mode. + +w. Fixed a bug in the callback read-char interface to make it work when a + readline function pushes some input onto the input stream with + rl_execute_next (like the incremental search functions). + +x. Fixed a file descriptor leak in the history file manipulation code that + was tripped when attempting to truncate a non-regular file (like + /dev/null). + +y. Changes to make all of the exported readline functions declared in + readline.h have an rl_ prefix (rltty_set_default_bindings is now + rl_tty_set_default_bindings, crlf is now rl_crlf, etc.) + +z. The formatted documentation included in the base readline distribution + is no longer removed on a `make distclean'. + +aa. Some changes were made to avoid gcc warnings with -Wall. + +bb. rl_get_keymap_by_name now finds keymaps case-insensitively, so + `set keymap EMACS' works. + +cc. The history file writing and truncation functions now return a useful + status on error. + +dd. Fixed a bug that could cause applications to dereference a NULL pointer + if a NULL second argument was passed to history_expand(). + +ee. If a hook function assigned to rl_event_hook sets rl_done to a non-zero + value, rl_read_key() now immediately returns '\n' (which is assumed to + be bound to accept-line). + +2. New Features in Readline + +a. The blink timeout for paren matching is now settable by applications, + via the rl_set_paren_blink_timeout() function. + +b. _rl_executing_macro has been renamed to rl_executing_macro, which means + it's now part of the public interface. + +c. Readline has a new variable, rl_readline_state, which is a bitmap that + encapsulates the current state of the library; intended for use by + callbacks and hook functions. + +d. rlfe has a new -l option to log input and output (-a appends to logfile), + a new -n option to set the readline application name, and -v and -h + options for version and help information. + +e. rlfe can now perform filename completion for the inferior process if the + OS has a /proc//cwd that can be read with readlink(2) to get the + inferior's current working directory. + +f. A new file, rltypedefs.h, contains the new typedefs for function pointers + and is installed by `make install'. + +g. New application-callable function rl_set_prompt(const char *prompt): + expands its prompt string argument and sets rl_prompt to the result. + +h. New application-callable function rl_set_screen_size(int rows, int cols): + public method for applications to set readline's idea of the screen + dimensions. + +i. The history example program (examples/histexamp.c) is now built as one + of the examples. + +j. The documentation has been updated to cover nearly all of the public + functions and variables declared in readline.h. + +k. New function, rl_get_screen_size (int *rows, int *columns), returns + readline's idea of the screen dimensions. + +l. The timeout in rl_gather_tyi (readline keyboard input polling function) + is now settable via a function (rl_set_keyboard_input_timeout()). + +m. Renamed the max_input_history variable to history_max_entries; the old + variable is maintained for backwards compatibility. + +n. The list of characters that separate words for the history tokenizer is + now settable with a variable: history_word_delimiters. The default + value is as before. + +o. There is a new history.3 manual page documenting the history library. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-4.1, +and the previous version, readline-4.0. + +1. Changes to Readline + +a. Changed the HTML documents so that the table-of-contents is no longer + a separate file. + +b. Changes to the shared object configuration for: Irix 5.x, Irix 6.x, + OSF/1. + +c. The shared library major and minor versions are now constructed + automatically by configure and substituted into the makefiles. + +d. It's now possible to install the shared libraries separately from the + static libraries. + +e. The history library tries to truncate the history file only if it is a + regular file. + +f. A bug that caused _rl_dispatch to address negative array indices on + systems with signed chars was fixed. + +g. rl-yank-nth-arg now leaves the history position the same as when it was + called. + +h. Changes to the completion code to handle MS-DOS drive-letter:pathname + filenames. + +i. Completion is now case-insensitive by default on MS-DOS. + +j. Fixes to the history file manipulation code for MS-DOS. + +k. Readline attempts to bind the arrow keys to appropriate defaults on MS-DOS. + +l. Some fixes were made to the redisplay code for better operation on MS-DOS. + +m. The quoted-insert code will now insert tty special chars like ^C. + +n. A bug was fixed that caused the display code to reference memory before + the start of the prompt string. + +o. More support for __EMX__ (OS/2). + +p. A bug was fixed in readline's signal handling that could cause infinite + recursion in signal handlers. + +q. A bug was fixed that caused the point to be less than zero when rl_forward + was given a very large numeric argument. + +r. The vi-mode code now gets characters via the application-settable value + of rl_getc_function rather than calling rl_getc directly. + +s. The history file code now uses O_BINARY mode when reading and writing + the history file on cygwin32. + +t. Fixed a bug in the redisplay code for lines with more than 256 line + breaks. + +u. A bug was fixed which caused invisible character markers to not be + stripped from the prompt string if the terminal was in no-echo mode. + +v. Readline no longer tries to get the variables it needs for redisplay + from the termcap entry if the calling application has specified its + own redisplay function. Readline treats the terminal as `dumb' in + this case. + +w. Fixes to the SIGWINCH code so that a multiple-line prompt with escape + sequences is redrawn correctly. + +x. Changes to the install and install-shared targets so that the libraries + and header files are installed separately. + +2. New Features in Readline + +a. A new Readline `user manual' is in doc/rluserman.texinfo. + +b. Parentheses matching is now always compiled into readline, and enabled + or disabled when the value of the `blink-matching-paren' variable is + changed. + +c. MS-DOS systems now use ~/_inputrc as the last-ditch inputrc filename. + +d. MS-DOS systems now use ~/_history as the default history file. + +e. history-search-{forward,backward} now leave the point at the end of the + line when the string to search for is empty, like + {reverse,forward}-search-history. + +f. history-search-{forward,backward} now leave the last history line found + in the readline buffer if the second or subsequent search fails. + +g. New function for use by applications: rl_on_new_line_with_prompt, used + when an application displays the prompt itself before calling readline(). + +h. New variable for use by applications: rl_already_prompted. An application + that displays the prompt itself before calling readline() must set this to + a non-zero value. + +i. A new variable, rl_gnu_readline_p, always 1. The intent is that an + application can verify whether or not it is linked with the `real' + readline library or some substitute. + +j. Per Bothner's `rlfe' (pronounced `Ralphie') readline front-end program + is included in the examples subdirectory, though it is not built + by default. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-4.0, +and the previous version, readline-2.2. + +1. Changes to Readline + +a. The version number is now 4.0, to match the major and minor version + numbers on the shared readline and history libraries. Future + releases will maintain the identical numbering. + +b. Fixed a typo in the `make install' recipe that copied libreadline.a + to libhistory.old right after installing it. + +c. The readline and history info files are now installed out of the source + directory if they are not found in the build directory. + +d. The library no longer exports a function named `savestring' -- backwards + compatibility be damned. + +e. There is no longer any #ifdef SHELL code in the source files. + +f. Some changes were made to the key binding code to fix memory leaks and + better support Win32 systems. + +g. Fixed a silly typo in the paren matching code -- it's microseconds, not + milliseconds. + +h. The readline library should be compilable by C++ compilers. + +i. The readline.h public header file now includes function prototypes for + all readline functions, and some changes were made to fix errors in the + source files uncovered by the use of prototypes. + +j. The maximum numeric argument is now clamped at 1000000. + +k. Fixes to rl_yank_last_arg to make it behave better. + +l. Fixed a bug in the display code that caused core dumps if the prompt + string length exceeded 1024 characters. + +m. The menu completion code was fixed to properly insert a single completion + if there is only one match. + +n. A bug was fixed that caused the display code to improperly display tabs + after newlines. + +o. A fix was made to the completion code in which a typo caused the wrong + value to be passed to the function that computed the longest common + prefix of the list of matches. + +p. The completion code now checks the value of rl_filename_completion_desired, + which is set by application-supplied completion functions to indicate + that filename completion is being performed, to decide whether or not to + call an application-supplied `ignore completions' function. + +q. Code was added to the history library to catch history substitutions + using `&' without a previous history substitution or search having been + performed. + + +2. New Features in Readline + +a. There is a new script, support/shobj-conf, to do system-specific shared + object and library configuration. It generates variables for configure + to substitute into makefiles. The README file provides a detailed + explanation of the shared library creation process. + +b. Shared libraries and objects are now built in the `shlib' subdirectory. + There is a shlib/Makefile.in to control the build process. `make shared' + from the top-level directory is still the right way to build shared + versions of the libraries. + +c. rlconf.h is now installed, so applications can find out which features + have been compiled into the installed readline and history libraries. + +d. rlstdc.h is now an installed header file. + +e. Many changes to the signal handling: + o Readline now catches SIGQUIT and cleans up the tty before returning; + o A new variable, rl_catch_signals, is available to application writers + to indicate to readline whether or not it should install its own + signal handlers for SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP, + SIGTTIN, and SIGTTOU; + o A new variable, rl_catch_sigwinch, is available to application + writers to indicate to readline whether or not it should install its + own signal handler for SIGWINCH, which will chain to the calling + applications's SIGWINCH handler, if one is installed; + o There is a new function, rl_free_line_state, for application signal + handlers to call to free up the state associated with the current + line after receiving a signal; + o There is a new function, rl_cleanup_after_signal, to clean up the + display and terminal state after receiving a signal; + o There is a new function, rl_reset_after_signal, to reinitialize the + terminal and display state after an application signal handler + returns and readline continues + +f. There is a new function, rl_resize_terminal, to reset readline's idea of + the screen size after a SIGWINCH. + +g. New public functions: rl_save_prompt and rl_restore_prompt. These were + previously private functions with a `_' prefix. These functions are + used when an application wants to write a message to the `message area' + with rl_message and have the prompt restored correctly when the message + is erased. + +h. New function hook: rl_pre_input_hook, called just before readline starts + reading input, after initialization. + +i. New function hook: rl_display_matches_hook, called when readline would + display the list of completion matches. The new function + rl_display_match_list is what readline uses internally, and is available + for use by application functions called via this hook. + +j. New bindable function, delete-char-or-list, like tcsh. + +k. A new variable, rl_erase_empty_line, which, if set by an application using + readline, will cause readline to erase, prompt and all, lines on which the + only thing typed was a newline. + +l. There is a new script, support/shlib-install, to install and uninstall + the shared readline and history libraries. + +m. A new bindable variable, `isearch-terminators', which is a string + containing the set of characters that should terminate an incremental + search without being executed as a command. + +n. A new bindable function, forward-backward-delete-char. + +------------------------------------------------------------------------------- +This document details the changes between this version, readline-2.2, +and the previous version, readline-2.1. + +1. Changes to Readline + +a. Added a missing `extern' to a declaration in readline.h that kept + readline from compiling cleanly on some systems. + +b. The history file is now opened with mode 0600 when it is written for + better security. + +c. Changes were made to the SIGWINCH handling code so that prompt redisplay + is done better. + +d. ^G now interrupts incremental searches correctly. + +e. A bug that caused a core dump when the set of characters to be quoted + when completing words was empty was fixed. + +f. Fixed a problem in the readline test program rltest.c that caused a core + dump. + +g. The code that handles parser directives in inputrc files now displays + more error messages. + +h. The history expansion code was fixed so that the appearance of the + history comment character at the beginning of a word inhibits history + expansion for that word and the rest of the input line. + +i. The code that prints completion listings now behaves better if one or + more of the filenames contains non-printable characters. + +j. The time delay when showing matching parentheses is now 0.5 seconds. + + +2. New Features in Readline + +a. There is now an option for `iterative' yank-last-arg handline, so a user + can keep entering `M-.', yanking the last argument of successive history + lines. + +b. New variable, `print-completions-horizontally', which causes completion + matches to be displayed across the screen (like `ls -x') rather than up + and down the screen (like `ls'). + +c. New variable, `completion-ignore-case', which causes filename completion + and matching to be performed case-insensitively. + +d. There is a new bindable command, `magic-space', which causes history + expansion to be performed on the current readline buffer and a space to + be inserted into the result. + +e. There is a new bindable command, `menu-complete', which enables tcsh-like + menu completion (successive executions of menu-complete insert a single + completion match, cycling through the list of possible completions). + +f. There is a new bindable command, `paste-from-clipboard', for use on Win32 + systems, to insert the text from the Win32 clipboard into the editing + buffer. + +g. The key sequence translation code now understands printf-style backslash + escape sequences, including \NNN octal escapes. These escape sequences + may be used in key sequence definitions or macro values. + +h. An `$include' inputrc file parser directive has been added. diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/INSTALL b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/INSTALL new file mode 100644 index 0000000000000000000000000000000000000000..52ba8eb360eb52464c612076fa4d4c9404697194 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/INSTALL @@ -0,0 +1,335 @@ +Basic Installation +================== + +These are installation instructions for Readline. + +The simplest way to compile readline is: + + 1. `cd' to the directory containing the readline source code and type + `./configure' to configure readline for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes some time. While running, it prints some + messages telling which features it is checking for. + + If you want to build readline in a directory other than the source + directory, just run `configure' using a full pathname, for instance: + + bash /usr/local/src/readline/readline-8.3/configure + + 2. Type `make' to compile readline and build the static readline + and history libraries. If supported, this will build the shared + readline and history libraries also. See below for instructions on + compiling the other parts of the distribution. Typing `make everything' + will build the static and shared libraries (if supported) and the + example programs. + + 3. Type `make install' to install the static readline and history + libraries, the readline include files, the documentation, and, if + supported, the shared readline and history libraries. + + 4. You can remove the created libraries and object files from the + build directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile readline for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the readline developers, and should be used with care. + +The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It +uses those values to create a `Makefile' in the build directory, +and Makefiles in the `doc', `shlib', and `examples' +subdirectories. It also creates a `config.h' file containing +system-dependent definitions. Finally, it creates a shell script +`config.status' that you can run in the future to recreate the +current configuration, a file `config.cache' that saves the +results of its tests to speed up reconfiguring, and a file +`config.log' containing compiler output (useful mainly for +debugging `configure'). + +To find out more about the options and arguments that the `configure' +script understands, type + + bash-4.2$ ./configure --help + +at a shell prompt in your readline source directory. + +If you want to build readline in a directory separate from the source +directory - to build for multiple architectures, for example - just use +the full path to the configure script. The following commands will +build readline in a directory under `/usr/local/build' from the source code +in `/usr/local/src/readline/readline-8.3': + + mkdir /usr/local/build/readline-8.3 + cd /usr/local/build/readline-8.3 + bash /usr/local/src/readline/readline-8.3/configure + make + +See `Compiling For Multiple Architectures' below for more information +about building in a directory separate from the source. + +If you need to do unusual things to compile readline, please try +to figure out how `configure' could check whether to do them, and +mail diffs or instructions to so they can +be considered for the next release. If at some point +`config.cache' contains results you don't want to keep, you may +remove or edit it. + +The file `configure.in' is used to create `configure' by a +program called `autoconf'. You only need `configure.in' if you +want to change it or regenerate `configure' using a newer version +of `autoconf'. The readline `configure.in' requires autoconf +version 2.69 or newer. + +Compilers and Options +===================== + +Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + +You can compile readline for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + +If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile readline for one architecture at a +time in the source code directory. After you have installed +readline for one architecture, use `make distclean' before +reconfiguring for another architecture. + +Installation Names +================== + +By default, `make install' will install the readline libraries in +`/usr/local/lib', the include files in `/usr/local/include/readline', +the man pages in `/usr/local/man', and the info files in `/usr/local/info'. +You can specify an installation prefix other than `/usr/local' by +giving `configure' the option `--prefix=PATH' or by supplying a value for +the DESTDIR variable when running `make install'. + +You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. +If you give `configure' the option `--exec-prefix=PATH', the +readline Makefiles will use PATH as the prefix for installing the +libraries. Documentation and other data files will still use the +regular prefix. + +Specifying the System Type +========================== + +There may be some features `configure' can not figure out +automatically, but need to determine by the type of host readline +will run on. Usually `configure' can figure that out, but if it +prints a message saying it can not guess the host type, give it +the `--host=TYPE' option. TYPE can either be a short name for +the system type, such as `sun4', or a canonical name with three +fields: CPU-COMPANY-SYSTEM (e.g., i386-unknown-freebsd4.2). + +See the file `config.sub' for the possible values of each field. + +Sharing Defaults +================ + +If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: the readline `configure' looks for a site script, but not +all `configure' scripts do. + +Operation Controls +================== + +`configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. + +Optional Features +================= + +The readline `configure' recognizes two `--with-PACKAGE' options: + +`--with-curses' + This tells readline that it can find the termcap library functions + (tgetent, et al.) in the curses library, rather than a separate + termcap library. Readline uses the termcap functions, but does not + usually link with the termcap or curses library itself, allowing + applications which link with readline the to choose an appropriate + library. This option tells readline to link the example programs with + the curses library rather than libtermcap. + +`--with-shared-termcap-library' + This tells the readline build process to link the shared version of + libreadline against a shared version of the curses or termcap library + (see the description of SHLIB_LIBS below under `Shared Libraries'). + This relieves the application of having to link with curses or termcap + itself, but does not allow the application to choose which library to + use. This is only effective on systems that build shared libraries (see + below; the default for shared libraries is `yes'). + +`configure' also recognizes several `--enable-FEATURE' options: + +`--enable-bracketed-paste-default' + Enable bracketed paste by default, so the initial value of the + `enable-bracketed-paste' Readline variable is `on'. The default + is `yes'. + +`--enable-install-examples' + Install the readline example programs as part of `make install'. + +`--enable-multibyte' + Build with support for multibyte characters enabled on systems with the + necessary framework (locale definitions, C library functions, etc.). The + default is `yes'. + +`--enable-shared' + Build the shared libraries by default on supported platforms. The + default is `yes'. + +`--enable-static' + Build the static libraries by default. The default is `yes'. + +Shared Libraries +================ + +There is support for building shared versions of the readline and +history libraries. The configure script creates a Makefile in +the `shlib' subdirectory, and typing `make shared' will cause +shared versions of the readline and history libraries to be built +on supported platforms. + +If `configure' is given the `--enable-shared' option, it will attempt +to build the shared libraries by default on supported platforms. This +option is enabled by default. + +Configure calls the script support/shobj-conf to test whether or +not shared library creation is supported and to generate the values +of variables that are substituted into shlib/Makefile. If you +try to build shared libraries on an unsupported platform, `make' +will display a message asking you to update support/shobj-conf for +your platform. + +If you need to update support/shobj-conf, you will need to create +a `stanza' for your operating system and compiler. The script uses +the value of host_os and ${CC} as determined by configure. For +instance, FreeBSD 4.2 with any version of gcc is identified as +`freebsd4.2-gcc*'. + +In the stanza for your operating system-compiler pair, you will need to +define several variables. They are: + +SHOBJ_CC The C compiler used to compile source files into shareable + object files. This is normally set to the value of ${CC} + by configure, and should not need to be changed. + +SHOBJ_CFLAGS Flags to pass to the C compiler ($SHOBJ_CC) to create + position-independent code. If you are using gcc, this + should probably be set to `-fpic'. + +SHOBJ_LD The link editor to be used to create the shared library from + the object files created by $SHOBJ_CC. If you are using + gcc, a value of `gcc' will probably work. + +SHOBJ_LDFLAGS Flags to pass to SHOBJ_LD to enable shared object creation. + If you are using gcc, `-shared' may be all that is necessary. + These should be the flags needed for generic shared object + creation. + +SHLIB_XLDFLAGS Additional flags to pass to SHOBJ_LD for shared library + creation. Many systems use the -R option to the link + editor to embed a path within the library for run-time + library searches. A reasonable value for such systems would + be `-R$(libdir)'. + +SHLIB_LIBS Any additional libraries that shared libraries should be + linked against when they are created. + +SHLIB_LIBPREF The prefix to use when generating the filename of the shared + library. The default is `lib'; Cygwin uses `cyg'. + +SHLIB_LIBSUFF The suffix to add to `libreadline' and `libhistory' when + generating the filename of the shared library. Many systems + use `so'; HP-UX uses `sl'. + +SHLIB_LIBVERSION The string to append to the filename to indicate the version + of the shared library. It should begin with $(SHLIB_LIBSUFF), + and possibly include version information that allows the + run-time loader to load the version of the shared library + appropriate for a particular program. Systems using shared + libraries similar to SunOS 4.x use major and minor library + version numbers; for those systems a value of + `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' is appropriate. + Systems based on System V Release 4 don't use minor version + numbers; use `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' on those systems. + Other Unix versions use different schemes. + +SHLIB_DLLVERSION The version number for shared libraries that determines API + compatibility between readline versions and the underlying + system. Used only on Cygwin. Defaults to $SHLIB_MAJOR, but + can be overridden at configuration time by defining DLLVERSION + in the environment. + +SHLIB_DOT The character used to separate the name of the shared library + from the suffix and version information. The default is `.'; + systems like Cygwin which don't separate version information + from the library name should set this to the empty string. + +SHLIB_STATUS Set this to `supported' when you have defined the other + necessary variables. Make uses this to determine whether + or not shared library creation should be attempted. If + shared libraries are not supported, this will be set to + `unsupported'. + +You should look at the existing stanzas in support/shobj-conf for ideas. + +Once you have updated support/shobj-conf, re-run configure and type +`make shared' or `make'. The shared libraries will be created in the +shlib subdirectory. + +If shared libraries are created, `make install' will install them. +You may install only the shared libraries by running `make +install-shared' from the top-level build directory. Running `make +install' in the shlib subdirectory will also work. If you don't want +to install any created shared libraries, run `make install-static'. diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/README b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/README new file mode 100644 index 0000000000000000000000000000000000000000..75eaa2ff8e57b78ff9d4ac6a7a7c76e956dd7935 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/README @@ -0,0 +1,197 @@ +Introduction +============ + +This is the Gnu Readline library, version 8.3. + +The Readline library provides a set of functions for use by applications +that allow users to edit command lines as they are typed in. Both +Emacs and vi editing modes are available. The Readline library includes +additional functions to maintain a list of previously-entered command +lines, to recall and perhaps reedit those lines, and perform csh-like +history expansion on previous commands. + +The history facilities are also placed into a separate library, the +History library, as part of the build process. The History library +may be used without Readline in applications which desire its +capabilities. + +The Readline library is free software, distributed under the terms of +the [GNU] General Public License as published by the Free Software +Foundation, version 3 of the License. For more information, see the +file COPYING. + +To build the library, try typing `./configure', then `make'. The +configuration process is automated, so no further intervention should +be necessary. Readline builds with `gcc' by default if it is +available. If you want to use `cc' instead, type + + CC=cc ./configure + +if you are using a Bourne-style shell. If you are not, the following +may work: + + env CC=cc ./configure + +Read the file INSTALL in this directory for more information about how +to customize and control the build process, including how to build readline +in a directory other than the source directory. + +The file rlconf.h contains C preprocessor defines that enable and disable +certain Readline features. + +The special make target `everything' will build the static and shared +libraries (if the target platform supports them) and the examples. + +Examples +======== + +There are several example programs that use Readline features in the +examples directory. The `rl' program is of particular interest. It +is a command-line interface to Readline, suitable for use in shell +scripts in place of `read' (but look at bash's `read -e' first). + +Shared Libraries +================ + +There is skeletal support for building shared versions of the +Readline and History libraries. The configure script creates +a Makefile in the `shlib' subdirectory, and typing `make shared' +will cause shared versions of the Readline and History libraries +to be built on supported platforms. + +If `configure' is given the `--enable-shared' option, it will attempt +to build the shared libraries by default on supported platforms. + +Configure calls the script support/shobj-conf to test whether or +not shared library creation is supported and to generate the values +of variables that are substituted into shlib/Makefile. If you +try to build shared libraries on an unsupported platform, `make' +will display a message asking you to update support/shobj-conf for +your platform. + +If you need to update support/shobj-conf, you will need to create +a `stanza' for your operating system and compiler. The script uses +the value of host_os and ${CC} as determined by configure. For +instance, FreeBSD 4.2 with any version of gcc is identified as +`freebsd4.2-gcc*'. + +In the stanza for your operating system-compiler pair, you will need to +define several variables. They are: + +SHOBJ_CC The C compiler used to compile source files into shareable + object files. This is normally set to the value of ${CC} + by configure, and should not need to be changed. + +SHOBJ_CFLAGS Flags to pass to the C compiler ($SHOBJ_CC) to create + position-independent code. If you are using gcc, this + should probably be set to `-fpic'. + +SHOBJ_LD The link editor to be used to create the shared library from + the object files created by $SHOBJ_CC. If you are using + gcc, a value of `gcc' will probably work. + +SHOBJ_LDFLAGS Flags to pass to SHOBJ_LD to enable shared object creation. + If you are using gcc, `-shared' may be all that is necessary. + These should be the flags needed for generic shared object + creation. + +SHLIB_XLDFLAGS Additional flags to pass to SHOBJ_LD for shared library + creation. Many systems use the -R option to the link + editor to embed a path within the library for run-time + library searches. A reasonable value for such systems would + be `-R$(libdir)'. + +SHLIB_LIBS Any additional libraries that shared libraries should be + linked against when they are created. + +SHLIB_LIBPREF The prefix to use when generating the filename of the shared + library. The default is `lib'; Cygwin uses `cyg'. + +SHLIB_LIBSUFF The suffix to add to `libreadline' and `libhistory' when + generating the filename of the shared library. Many systems + use `so'; HP-UX uses `sl'. + +SHLIB_LIBVERSION The string to append to the filename to indicate the version + of the shared library. It should begin with $(SHLIB_LIBSUFF), + and possibly include version information that allows the + run-time loader to load the version of the shared library + appropriate for a particular program. Systems using shared + libraries similar to SunOS 4.x use major and minor library + version numbers; for those systems a value of + `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' is appropriate. + Systems based on System V Release 4 don't use minor version + numbers; use `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' on those systems. + Other Unix versions use different schemes. + +SHLIB_DLLVERSION The version number for shared libraries that determines API + compatibility between readline versions and the underlying + system. Used only on Cygwin. Defaults to $SHLIB_MAJOR, but + can be overridden at configuration time by defining DLLVERSION + in the environment. + +SHLIB_DOT The character used to separate the name of the shared library + from the suffix and version information. The default is `.'; + systems like Cygwin which don't separate version information + from the library name should set this to the empty string. + +SHLIB_STATUS Set this to `supported' when you have defined the other + necessary variables. Make uses this to determine whether + or not shared library creation should be attempted. + +You should look at the existing stanzas in support/shobj-conf for ideas. + +Once you have updated support/shobj-conf, re-run configure and type +`make shared'. The shared libraries will be created in the shlib +subdirectory. + +If shared libraries are created, `make install' will install them. +You may install only the shared libraries by running `make +install-shared' from the top-level build directory. Running `make +install' in the shlib subdirectory will also work. If you don't want +to install any created shared libraries, run `make install-static'. + +Documentation +============= + +The documentation for the Readline and History libraries appears in +the `doc' subdirectory. There are three texinfo files and a +Unix-style manual page describing the facilities available in the +Readline library. The texinfo files include both user and +programmer's manuals. HTML versions of the manuals appear in the +`doc' subdirectory as well. + +Usage +===== + +Our position on the use of Readline through a shared-library linking +mechanism is that there is no legal difference between shared-library +linking and static linking--either kind of linking combines various +modules into a single larger work. The conditions for using Readline +in a larger work are stated in section 3 of the GNU GPL. + +Reporting Bugs +============== + +Bug reports for Readline should be sent to: + + bug-readline@gnu.org + +When reporting a bug, please include the following information: + + * the version number and release status of Readline (e.g., 4.2-release) + * the machine and OS that it is running on + * a list of the compilation flags or the contents of `config.h', if + appropriate + * a description of the bug + * a recipe for recreating the bug reliably + * a fix for the bug if you have one! + +If you would like to contact the Readline maintainer directly, send mail +to bash-maintainers@gnu.org. + +Since Readline is developed along with bash, the bug-bash@gnu.org mailing +list (mirrored to the Usenet newsgroup gnu.bash.bug) often contains +Readline bug reports and fixes. + +Chet Ramey +chet.ramey@case.edu diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/history.html b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/history.html new file mode 100644 index 0000000000000000000000000000000000000000..62803d81e89c7cbae8036be1c1ac466617d9ca19 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/history.html @@ -0,0 +1,1835 @@ + + + + + + +GNU History Library + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +

GNU History Library

+ +

This document describes the GNU History library, a programming tool that +provides a consistent user interface for recalling lines of previously +typed input. +

+ + + + +
+
+ +

1 Using History Interactively

+ + +

This chapter describes how to use the GNU History Library +interactively, from a user’s standpoint. +It should be considered a user’s guide. +For information on using the GNU History Library in your own programs, +see Programming with GNU History. +

+ + + +
+
+ +

1.1 History Expansion

+ + +

The History library +provides a history expansion feature that is similar +to the history expansion provided by csh +(also referred to as history substitution where appropriate). +This section describes the syntax used to manipulate the +history information. +

+ +

History expansions introduce words from the history list into +the input stream, making it easy to repeat commands, insert the +arguments to a previous command into the current input line, or +fix errors in previous commands quickly. +

+ +

History expansion takes place in two parts. +The first is to determine +which entry from the history list should be used during substitution. +The second is to select portions of that entry to include into the +current one. +

+

The entry selected from the history is called the event, +and the portions of that entry that are acted upon are words. +Various modifiers are available to manipulate the selected words. +The entry is split into words in the same fashion that Bash +does when reading input, +so that several words surrounded by quotes are considered one word. +The event designator selects the event, the optional +word designator selects words from the event, and +various optional modifiers are available to manipulate the +selected words. +

+

History expansions are introduced by the appearance of the +history expansion character, which is ‘!’ by default. +History expansions may appear anywhere in the input, but do not nest. +

+

History expansion implements shell-like quoting conventions: +a backslash can be used to remove the special handling for the next character; +single quotes enclose verbatim sequences of characters, and can be used to +inhibit history expansion; +and characters enclosed within double quotes may be subject to history +expansion, since backslash can escape the history expansion character, +but single quotes may not, since they are not treated specially within +double quotes. +

+ +

There is a special abbreviation for substitution, active when the +quick substitution character +(default ‘^’) +is the first character on the line. +It selects the previous history list entry, using an event designator +equivalent to !!, +and substitutes one string for another in that entry. +It is described below (see Event Designators). +This is the only history expansion that does not begin with the history +expansion character. +

+ + + +
+
+ +

1.1.1 Event Designators

+ + +

An event designator is a reference to an entry in the history list. +The event designator consists of the portion of the word beginning +with the history expansion character, and ending with the word designator +if one is present, or the end of the word. +Unless the reference is absolute, events are relative to the current +position in the history list. + +

+
+
!
+

Start a history substitution, except when followed by a space, tab, +the end of the line, or ‘=’. +

+
+
!n
+

Refer to history list entry n. +

+
+
!-n
+

Refer to the history entry minus n. +

+
+
!!
+

Refer to the previous entry. +This is a synonym for ‘!-1’. +

+
+
!string
+

Refer to the most recent command +preceding the current position in the history list +starting with string. +

+
+
!?string[?]
+

Refer to the most recent command +preceding the current position in the history list +containing string. +The trailing +‘?’ may be omitted if the string is followed immediately by +a newline. +If string is missing, this uses +the string from the most recent search; +it is an error if there is no previous search string. +

+
+
^string1^string2^
+

Quick Substitution. +Repeat the last command, replacing string1 with string2. +Equivalent to !!:s^string1^string2^. +

+
+
!#
+

The entire command line typed so far. +

+
+
+ +
+
+
+ +

1.1.2 Word Designators

+ +

Word designators are used to select desired words from the event. +They are optional; if the word designator isn’t supplied, the history +expansion uses the entire event. +A ‘:’ separates the event specification from the word designator. +It may be omitted if the word designator begins with a ‘^’, ‘$’, +‘*’, ‘-’, or ‘%’. +Words are numbered from the beginning of the line, +with the first word being denoted by 0 (zero). +That first word is usually the command word, and the arguments begin +with the second word. +Words are inserted into the current line separated by single spaces. +

+

For example, +

+
+
!!
+

designates the preceding command. +When you type this, the preceding command is repeated in toto. +

+
+
!!:$
+

designates the last word of the preceding command. +This may be shortened to !$. +

+
+
!fi:2
+

designates the second argument of the most recent command starting with +the letters fi. +

+
+ +

Here are the word designators: +

+
+
0 (zero)
+

The 0th word. +For the shell, and many other, applications, this is the command word. +

+
+
n
+

The nth word. +

+
+
^
+

The first argument: word 1. +

+
+
$
+

The last word. +This is usually the last argument, but expands to the +zeroth word if there is only one word in the line. +

+
+
%
+

The first word matched by the most recent ‘?string?’ search, +if the search string begins with a character that is part of a word. +By default, searches begin at the end of each line and proceed to the +beginning, so the first word matched is the one closest to the end of +the line. +

+
+
x-y
+

A range of words; ‘-y’ abbreviates ‘0-y’. +

+
+
*
+

All of the words, except the 0th. +This is a synonym for ‘1-$’. +It is not an error to use ‘*’ if there is just one word in the event; +it expands to the empty string in that case. +

+
+
x*
+

Abbreviates ‘x-$’. +

+
+
x-
+

Abbreviates ‘x-$’ like ‘x*’, but omits the last word. +If ‘x’ is missing, it defaults to 0. +

+
+
+ +

If a word designator is supplied without an event specification, the +previous command is used as the event, equivalent to !!. +

+
+
+
+ +

1.1.3 Modifiers

+ +

After the optional word designator, you can add a sequence of one or more +of the following modifiers, each preceded by a ‘:’. +These modify, or edit, the word or words selected from the history event. +

+
+
h
+

Remove a trailing filename component, leaving only the head. +

+
+
t
+

Remove all leading filename components, leaving the tail. +

+
+
r
+

Remove a trailing suffix of the form ‘.suffix’, leaving +the basename. +

+
+
e
+

Remove all but the trailing suffix. +

+
+
p
+

Print the new command but do not execute it. +

+ +
+
s/old/new/
+

Substitute new for the first occurrence of old in the +event line. +Any character may be used as the delimiter in place of ‘/’. +The delimiter may be quoted in old and new +with a single backslash. +If ‘&’ appears in new, it is replaced with old. +A single backslash quotes the ‘&’ in old and new. +If old is null, it is set to the last old +substituted, or, if no previous history substitutions took place, +the last string +in a !?string[?] +search. +If new is null, each matching old is deleted. +The final delimiter is optional if it is the last +character on the input line. +

+
+
&
+

Repeat the previous substitution. +

+
+
g
+
a
+

Cause changes to be applied over the entire event line. +This is used in conjunction with +‘s’, as in gs/old/new/, +or with ‘&’. +

+
+
G
+

Apply the following ‘s’ or ‘&’ modifier once to each word +in the event. +

+
+
+ +
+
+
+
+
+ +

2 Programming with GNU History

+ +

This chapter describes how to interface programs that you write +with the GNU History Library. +It should be considered a technical guide. +For information on the interactive use of GNU History, +see Using History Interactively. +

+ + +
+
+ +

2.1 Introduction to History

+ +

Many programs read input from the user a line at a time. +The GNU History library is able to keep track of those lines, +associate arbitrary data with each line, and utilize information from +previous lines when composing new ones. +

+

A programmer using the History library can use functions +to save commands on a history list, +associate arbitrary data with history list entries, +remove entries from the list, +search through the list for a line containing an arbitrary text string, +reference any entry in the list directly, +and read and write the history list from and to a file. +In addition, a history expansion function +is available which provides for a consistent user interface across +different programs. +

+

Someone using programs written with the History library has the +benefit of a consistent user interface with a set of well-known +commands for manipulating the text of previous lines and using that text +in new commands. +The basic history manipulation commands are similar to +the history substitution provided by csh. +

+

The programmer can also use the Readline library, which +includes some history manipulation by default, and has the added +advantage of command line editing. +

+

Before declaring any functions using any functionality the History +library provides in other code, an application writer should include +the file <readline/history.h> in any file that uses the +History library’s features. +It supplies declarations for all of the library’s +public functions and variables, +and declares all of the public data structures. +

+
+
+
+ +

2.2 History Storage

+ +

The history list is an array of history entries. +A history entry is declared as follows: +

+
+
typedef void *histdata_t;
+
+typedef struct _hist_entry {
+  char *line;
+  char *timestamp;
+  histdata_t data;
+} HIST_ENTRY;
+
+ +

The history list itself might therefore be declared as +

+
+
HIST_ENTRY **the_history_list;
+
+ +

The state of the History library is encapsulated into a single structure: +

+
+
/*
+ * A structure used to pass around the current state of the history.
+ */
+typedef struct _hist_state {
+  HIST_ENTRY **entries; /* Pointer to the entries themselves. */
+  int offset;           /* The location pointer within this array. */
+  int length;           /* Number of elements within this array. */
+  int size;             /* Number of slots allocated to this array. */
+  int flags;
+} HISTORY_STATE;
+
+ +

If the flags member includes HS_STIFLED, the history has been +stifled (limited to a maximum number of entries). +

+
+
+
+ +

2.3 History Functions

+ +

This section describes the calling sequence for the various functions +exported by the GNU History library. +

+ + +
+
+ +

2.3.1 Initializing History and State Management

+ +

This section describes functions used to initialize and manage +the state of the History library when you want to use the history +functions in your program. +

+
+
Function: void using_history (void)
+

Begin a session that will use the history functions. +This initializes the interactive variables. +

+ +
+
Function: HISTORY_STATE * history_get_history_state (void)
+

Return a structure describing the current state of the input history. +

+ +
+
Function: void history_set_history_state (HISTORY_STATE *state)
+

Set the state of the history list according to state. +

+ +
+
+
+ +

2.3.2 History List Management

+ +

These functions manage individual entries on the history list, or set +parameters managing the list itself. +

+
+
Function: void add_history (const char *string)
+

Add string to the end of the history list, and +set the associated data field (if any) to NULL. +If the maximum number of history entries has been set using +stifle_history(), and the new number of history entries +would exceed that maximum, this removes the oldest history entry. +

+ +
+
Function: void add_history_time (const char *string)
+

Change the time stamp associated with the most recent history entry to +string. +

+ +
+
Function: HIST_ENTRY * remove_history (int which)
+

Remove the history entry at offset which from the history list. +This returns the removed element so you can free the line, data, +and containing structure. +Since the data is private to your application, the History library +doesn’t know how to free it, if necessary. +

+ +
+
Function: histdata_t free_history_entry (HIST_ENTRY *histent)
+

Free the history entry histent and any history library private +data associated with it. +Returns the application-specific data +so the caller can dispose of it. +

+ +
+
Function: HIST_ENTRY * replace_history_entry (int which, const char *line, histdata_t data)
+

Make the history entry at offset which have line and data. +This returns the old entry so the caller can dispose of any +application-specific data. +In the case of an invalid which, this returns NULL. +

+ +
+
Function: void clear_history (void)
+

Clear the history list by deleting all the entries. +

+ +
+
Function: void stifle_history (int max)
+

Stifle the history list, remembering only the last max entries. +The history list will contain only max entries at a time. +

+ +
+
Function: int unstifle_history (void)
+

Stop stifling the history. +This returns the previously-set maximum number of history +entries (as set by stifle_history()). +The value is positive if the history was stifled, negative if it wasn’t. +

+ +
+
Function: int history_is_stifled (void)
+

Returns non-zero if the history is stifled, zero if it is not. +

+ +
+
+
+ +

2.3.3 Information About the History List

+ +

These functions return information about the entire history list or +individual list entries. +

+
+
Function: HIST_ENTRY ** history_list (void)
+

Return a NULL terminated array of HIST_ENTRY * which is the +current input history. +Element 0 of this list is the beginning of time. +Return NULL if there is no history. +

+ +
+
Function: int where_history (void)
+

Return the offset of the current history entry. +

+ +
+
Function: HIST_ENTRY * current_history (void)
+

Return the history entry at the current position, as determined by +where_history(). +If there is no entry there, return NULL. +

+ +
+
Function: HIST_ENTRY * history_get (int offset)
+

Return the history entry at position offset. +The range of valid +values of offset starts at history_base and ends at +history_length - 1 (see History Variables). +If there is no entry there, or if offset is outside the valid +range, return NULL. +

+ +
+
Function: time_t history_get_time (HIST_ENTRY *entry)
+

Return the time stamp associated with the history entry entry. +If the timestamp is missing or invalid, return 0. +

+ +
+
Function: int history_total_bytes (void)
+

Return the number of bytes that the primary history entries are using. +This function returns the sum of the lengths of all the lines in the +history. +

+ +
+
+
+ +

2.3.4 Moving Around the History List

+ +

These functions allow the current index into the history list to be +set or changed. +

+
+
Function: int history_set_pos (int pos)
+

Set the current history offset to pos, an absolute index +into the list. +Returns 1 on success, 0 if pos is less than zero or greater +than the number of history entries. +

+ +
+
Function: HIST_ENTRY * previous_history (void)
+

Back up the current history offset to the previous history entry, and +return a pointer to that entry. +If there is no previous entry, return NULL. +

+ +
+
Function: HIST_ENTRY * next_history (void)
+

If the current history offset refers to a valid history entry, +increment the current history offset. +If the possibly-incremented history offset refers to a valid history +entry, return a pointer to that entry; +otherwise, return NULL. +

+ +
+
+
+ +

2.3.5 Searching the History List

+ + +

These functions search the history list for entries containing +a specific string. +Searching may be performed both forward and backward +from the current history position. +The search may be anchored, +meaning that the string must match at the beginning of a history entry. + +

+
+
Function: int history_search (const char *string, int direction)
+

Search the history for string, starting at the current history offset. +If direction is less than 0, then the search is through +previous entries, otherwise through subsequent entries. +If string is found, then the current history index is set to +that history entry, and history_search +returns the offset in the line of the entry where +string was found. +Otherwise, nothing is changed, and this returns -1. +

+ +
+
Function: int history_search_prefix (const char *string, int direction)
+

Search the history for string, starting at the current history +offset. +The search is anchored: matching history entries must begin with string. +If direction is less than 0, then the search is +through previous entries, otherwise through subsequent entries. +If string is found, then the current history index is set to +that entry, and the return value is 0. +Otherwise, nothing is changed, and this returns -1. +

+ +
+
Function: int history_search_pos (const char *string, int direction, int pos)
+

Search for string in the history list, starting at pos, an +absolute index into the list. +If direction is negative, the search +proceeds backward from pos, otherwise forward. +Returns the index in the history list +of the history element where string was +found, or -1 otherwise. +

+ +
+
+
+ +

2.3.6 Managing the History File

+ +

The History library can read the history from and write it to a file. +This section documents the functions for managing a history file. +

+
+
Function: int read_history (const char *filename)
+

Add the contents of filename to the history list, one entry +at a time. +If filename is NULL, this reads from ~/.history, +if it exists. +This attempts to determine whether the history file includes timestamp +information, and assigns timestamps to the history entries it reads +if so. +Returns 0 if successful, or errno if not. +

+ +
+
Function: int read_history_range (const char *filename, int from, int to)
+

Read a range of lines from filename, adding them to the history list. +Start reading at line from and end at to. +If from is zero, start at the beginning. +If to is less than from, this reads until the end of the file. +This attempts to determine whether the history file includes timestamp +information, and assigns timestamps to the history entries it reads +if so. +If filename is NULL, this reads from ~/.history, +if it exists. +Returns 0 if successful, or errno if not. +

+ +
+
Function: int write_history (const char *filename)
+

Write the current history to filename, overwriting filename +if necessary. +This writes timestamp information if the +history_write_timestamps variable is set to a non-zero value. +If filename is NULL, then write the history list to +~/.history. +Returns 0 on success, or errno on a read or write error. +

+ +
+
Function: int append_history (int nelements, const char *filename)
+

Append the last nelements of the history list to filename. +This writes timestamp information if the +history_write_timestamps variable is set to a non-zero value. +If filename is NULL, then append to ~/.history. +Returns 0 on success, or errno on a read or write error. +

+ +
+
Function: int history_truncate_file (const char *filename, int nlines)
+

Truncate the history file filename, leaving only the last +nlines lines. +If filename is NULL, this truncates ~/.history. +Returns 0 on success, or errno on failure. +

+ +
+
+
+ +

2.3.7 History Expansion

+ +

These functions implement history expansion. +

+
+
Function: int history_expand (const char *string, char **output)
+

Expand string, placing the result into output, a pointer +to a string (see History Expansion). +Returns: +

+
0
+

If no expansions took place (or, if the only change in +the text was the removal of escape characters preceding the history expansion +character); +

+
1
+

if expansions did take place; +

+
-1
+

if there was an error in expansion; +

+
2
+

if the returned line should be displayed, but not executed, +as with the :p modifier (see Modifiers). +

+
+ +

If an error occurred during expansion, +then output contains a descriptive error message. +

+ +
+
Function: char * get_history_event (const char *string, int *cindex, int qchar)
+

Returns the text of the history event beginning at string + +*cindex. +Modifies *cindex to point to after the event specifier. +At function entry, cindex points to the index into string +where the history event specification begins. +qchar +is a character that is allowed to end the event specification in addition +to the “normal” terminating characters. +

+ +
+
Function: char ** history_tokenize (const char *string)
+

Return an array of tokens parsed out of string, much as the +shell might. +The tokens are split on the characters in the +history_word_delimiters variable, +and shell quoting conventions are obeyed as described below. +

+ +
+
Function: char * history_arg_extract (int first, int last, const char *string)
+

Extract a string segment consisting of the first through last +arguments present in string. +This splits string into arguments using history_tokenize. +

+ +
+
+
+
+ +

2.4 History Variables

+ +

This section describes the externally-visible variables exported by +the GNU History Library. +

+
+
Variable: int history_base
+

The logical offset of the first entry in the history list. +

+ +
+
Variable: int history_length
+

The number of entries currently stored in the history list. +

+ +
+
Variable: int history_max_entries
+

The maximum number of history entries. +This must be changed using stifle_history(). +

+ +
+
Variable: int history_write_timestamps
+

If non-zero, timestamps are written to the history file, so they can be +preserved between sessions. +The default value is 0, meaning that timestamps are not saved. +

+

The current timestamp format uses the value of history_comment_char +to delimit timestamp entries in the history file. +If that variable does not have a value (the default), +the history library will not write timestamps. +

+ +
+
Variable: char history_expansion_char
+

The character that introduces a history event. +The default is ‘!’. +Setting this to 0 inhibits history expansion. +

+ +
+
Variable: char history_subst_char
+

The character that invokes word substitution if found at the start of +a line. +The default is ‘^’. +

+ +
+
Variable: char history_comment_char
+

During tokenization, if this character appears as the first character +of a word, then it and all subsequent characters up to a newline are +ignored, suppressing history expansion for the remainder of the line. +This is disabled by default. +

+ +
+
Variable: char * history_word_delimiters
+

The characters that separate tokens for history_tokenize(). +The default value is " \t\n()<>;&|". +

+ +
+
Variable: char * history_search_delimiter_chars
+

The list of additional characters which can delimit a history search +string, in addition to space, TAB, ‘:’ and ‘?’ in the case of +a substring search. +The default is empty. +

+ +
+
Variable: char * history_no_expand_chars
+

The list of characters which inhibit history expansion if found immediately +following history_expansion_char. +The default is space, tab, newline, carriage return, and ‘=’. +

+ +
+
Variable: int history_quotes_inhibit_expansion
+

If non-zero, the history expansion code implements shell-like quoting: +single-quoted words are not scanned for the history expansion +character or the history comment character, and double-quoted words may +have history expansion performed, since single quotes are not special +within double quotes. +The default value is 0. +

+ +
+
Variable: int history_quoting_state
+

An application may set this variable to indicate that the current line +being expanded is subject to existing quoting. +If set to ‘'’, +history expansion assumes that the line is single-quoted and +inhibit expansion until it reads an unquoted closing single quote; +if set to ‘"’, +history expansion assumes the line is double quoted +until it reads an unquoted closing double quote. +If set to 0, the default, +history expansion assumes the line is not quoted and +treats quote characters within the line as described above. +This is only effective if history_quotes_inhibit_expansion is set. +This is intended for use by applications like Bash which allow +quoted strings to span multiple lines. +

+ +
+
Variable: rl_linebuf_func_t * history_inhibit_expansion_function
+

This should be set to the address of a function that takes two arguments: +a char * (string) +and an int index into that string (i). +It should return a non-zero value if the history expansion starting at +string[i] should not be performed; zero if the expansion should +be done. +It is intended for use by applications like Bash that use the history +expansion character for additional purposes. +By default, this variable is set to NULL. +

+ +
+
+
+ +

2.5 History Programming Example

+ +

The following program demonstrates simple use of the GNU History Library. +

+
+
#include <stdio.h>
+#include <readline/history.h>
+
+int
+main (int argc, char **argv)
+{
+  char line[1024], *t;
+  int len, done = 0;
+
+  line[0] = 0;
+
+  using_history ();
+  while (!done)
+    {
+      printf ("history$ ");
+      fflush (stdout);
+      t = fgets (line, sizeof (line) - 1, stdin);
+      if (t && *t)
+        {
+          len = strlen (t);
+          if (t[len - 1] == '\n')
+            t[len - 1] = '\0';
+        }
+
+      if (!t)
+        strcpy (line, "quit");
+
+      if (line[0])
+        {
+          char *expansion;
+          int result;
+
+          result = history_expand (line, &expansion);
+          if (result)
+            fprintf (stderr, "%s\n", expansion);
+
+          if (result < 0 || result == 2)
+            {
+              free (expansion);
+              continue;
+            }
+
+          add_history (expansion);
+          strncpy (line, expansion, sizeof (line) - 1);
+          free (expansion);
+        }
+
+      if (strcmp (line, "quit") == 0)
+        done = 1;
+      else if (strcmp (line, "save") == 0)
+        write_history ("history_file");
+      else if (strcmp (line, "read") == 0)
+        read_history ("history_file");
+      else if (strcmp (line, "list") == 0)
+        {
+          register HIST_ENTRY **the_list;
+          register int i;
+
+          the_list = history_list ();
+          if (the_list)
+            for (i = 0; the_list[i]; i++)
+              printf ("%d: %s\n", i + history_base, the_list[i]->line);
+        }
+      else if (strncmp (line, "delete", 6) == 0)
+        {
+          int which;
+          if ((sscanf (line + 6, "%d", &which)) == 1)
+            {
+              HIST_ENTRY *entry = remove_history (which);
+              if (!entry)
+                fprintf (stderr, "No such entry %d\n", which);
+              else
+                {
+                  free (entry->line);
+                  free (entry);
+                }
+            }
+          else
+            {
+              fprintf (stderr, "non-numeric arg given to `delete'\n");
+            }
+        }
+    }
+}
+
+ +
+
+
+
+ +

Appendix A GNU Free Documentation License

+ +
Version 1.3, 3 November 2008 +
+ +
+
Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
+http://fsf.org/
+
+Everyone is permitted to copy and distribute verbatim copies
+of this license document, but changing it is not allowed.
+
+ +
    +
  1. PREAMBLE + +

    The purpose of this License is to make a manual, textbook, or other +functional and useful document free in the sense of freedom: to +assure everyone the effective freedom to copy and redistribute it, +with or without modifying it, either commercially or noncommercially. +Secondarily, this License preserves for the author and publisher a way +to get credit for their work, while not being considered responsible +for modifications made by others. +

    +

    This License is a kind of “copyleft”, which means that derivative +works of the document must themselves be free in the same sense. It +complements the GNU General Public License, which is a copyleft +license designed for free software. +

    +

    We have designed this License in order to use it for manuals for free +software, because free software needs free documentation: a free +program should come with manuals providing the same freedoms that the +software does. But this License is not limited to software manuals; +it can be used for any textual work, regardless of subject matter or +whether it is published as a printed book. We recommend this License +principally for works whose purpose is instruction or reference. +

    +
  2. APPLICABILITY AND DEFINITIONS + +

    This License applies to any manual or other work, in any medium, that +contains a notice placed by the copyright holder saying it can be +distributed under the terms of this License. Such a notice grants a +world-wide, royalty-free license, unlimited in duration, to use that +work under the conditions stated herein. The “Document”, below, +refers to any such manual or work. Any member of the public is a +licensee, and is addressed as “you”. You accept the license if you +copy, modify or distribute the work in a way requiring permission +under copyright law. +

    +

    A “Modified Version” of the Document means any work containing the +Document or a portion of it, either copied verbatim, or with +modifications and/or translated into another language. +

    +

    A “Secondary Section” is a named appendix or a front-matter section +of the Document that deals exclusively with the relationship of the +publishers or authors of the Document to the Document’s overall +subject (or to related matters) and contains nothing that could fall +directly within that overall subject. (Thus, if the Document is in +part a textbook of mathematics, a Secondary Section may not explain +any mathematics.) The relationship could be a matter of historical +connection with the subject or with related matters, or of legal, +commercial, philosophical, ethical or political position regarding +them. +

    +

    The “Invariant Sections” are certain Secondary Sections whose titles +are designated, as being those of Invariant Sections, in the notice +that says that the Document is released under this License. If a +section does not fit the above definition of Secondary then it is not +allowed to be designated as Invariant. The Document may contain zero +Invariant Sections. If the Document does not identify any Invariant +Sections then there are none. +

    +

    The “Cover Texts” are certain short passages of text that are listed, +as Front-Cover Texts or Back-Cover Texts, in the notice that says that +the Document is released under this License. A Front-Cover Text may +be at most 5 words, and a Back-Cover Text may be at most 25 words. +

    +

    A “Transparent” copy of the Document means a machine-readable copy, +represented in a format whose specification is available to the +general public, that is suitable for revising the document +straightforwardly with generic text editors or (for images composed of +pixels) generic paint programs or (for drawings) some widely available +drawing editor, and that is suitable for input to text formatters or +for automatic translation to a variety of formats suitable for input +to text formatters. A copy made in an otherwise Transparent file +format whose markup, or absence of markup, has been arranged to thwart +or discourage subsequent modification by readers is not Transparent. +An image format is not Transparent if used for any substantial amount +of text. A copy that is not “Transparent” is called “Opaque”. +

    +

    Examples of suitable formats for Transparent copies include plain +ASCII without markup, Texinfo input format, LaTeX input +format, SGML or XML using a publicly available +DTD, and standard-conforming simple HTML, +PostScript or PDF designed for human modification. Examples +of transparent image formats include PNG, XCF and +JPG. Opaque formats include proprietary formats that can be +read and edited only by proprietary word processors, SGML or +XML for which the DTD and/or processing tools are +not generally available, and the machine-generated HTML, +PostScript or PDF produced by some word processors for +output purposes only. +

    +

    The “Title Page” means, for a printed book, the title page itself, +plus such following pages as are needed to hold, legibly, the material +this License requires to appear in the title page. For works in +formats which do not have any title page as such, “Title Page” means +the text near the most prominent appearance of the work’s title, +preceding the beginning of the body of the text. +

    +

    The “publisher” means any person or entity that distributes copies +of the Document to the public. +

    +

    A section “Entitled XYZ” means a named subunit of the Document whose +title either is precisely XYZ or contains XYZ in parentheses following +text that translates XYZ in another language. (Here XYZ stands for a +specific section name mentioned below, such as “Acknowledgements”, +“Dedications”, “Endorsements”, or “History”.) To “Preserve the Title” +of such a section when you modify the Document means that it remains a +section “Entitled XYZ” according to this definition. +

    +

    The Document may include Warranty Disclaimers next to the notice which +states that this License applies to the Document. These Warranty +Disclaimers are considered to be included by reference in this +License, but only as regards disclaiming warranties: any other +implication that these Warranty Disclaimers may have is void and has +no effect on the meaning of this License. +

    +
  3. VERBATIM COPYING + +

    You may copy and distribute the Document in any medium, either +commercially or noncommercially, provided that this License, the +copyright notices, and the license notice saying this License applies +to the Document are reproduced in all copies, and that you add no other +conditions whatsoever to those of this License. You may not use +technical measures to obstruct or control the reading or further +copying of the copies you make or distribute. However, you may accept +compensation in exchange for copies. If you distribute a large enough +number of copies you must also follow the conditions in section 3. +

    +

    You may also lend copies, under the same conditions stated above, and +you may publicly display copies. +

    +
  4. COPYING IN QUANTITY + +

    If you publish printed copies (or copies in media that commonly have +printed covers) of the Document, numbering more than 100, and the +Document’s license notice requires Cover Texts, you must enclose the +copies in covers that carry, clearly and legibly, all these Cover +Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on +the back cover. Both covers must also clearly and legibly identify +you as the publisher of these copies. The front cover must present +the full title with all words of the title equally prominent and +visible. You may add other material on the covers in addition. +Copying with changes limited to the covers, as long as they preserve +the title of the Document and satisfy these conditions, can be treated +as verbatim copying in other respects. +

    +

    If the required texts for either cover are too voluminous to fit +legibly, you should put the first ones listed (as many as fit +reasonably) on the actual cover, and continue the rest onto adjacent +pages. +

    +

    If you publish or distribute Opaque copies of the Document numbering +more than 100, you must either include a machine-readable Transparent +copy along with each Opaque copy, or state in or with each Opaque copy +a computer-network location from which the general network-using +public has access to download using public-standard network protocols +a complete Transparent copy of the Document, free of added material. +If you use the latter option, you must take reasonably prudent steps, +when you begin distribution of Opaque copies in quantity, to ensure +that this Transparent copy will remain thus accessible at the stated +location until at least one year after the last time you distribute an +Opaque copy (directly or through your agents or retailers) of that +edition to the public. +

    +

    It is requested, but not required, that you contact the authors of the +Document well before redistributing any large number of copies, to give +them a chance to provide you with an updated version of the Document. +

    +
  5. MODIFICATIONS + +

    You may copy and distribute a Modified Version of the Document under +the conditions of sections 2 and 3 above, provided that you release +the Modified Version under precisely this License, with the Modified +Version filling the role of the Document, thus licensing distribution +and modification of the Modified Version to whoever possesses a copy +of it. In addition, you must do these things in the Modified Version: +

    +
      +
    1. Use in the Title Page (and on the covers, if any) a title distinct +from that of the Document, and from those of previous versions +(which should, if there were any, be listed in the History section +of the Document). You may use the same title as a previous version +if the original publisher of that version gives permission. + +
    2. List on the Title Page, as authors, one or more persons or entities +responsible for authorship of the modifications in the Modified +Version, together with at least five of the principal authors of the +Document (all of its principal authors, if it has fewer than five), +unless they release you from this requirement. + +
    3. State on the Title page the name of the publisher of the +Modified Version, as the publisher. + +
    4. Preserve all the copyright notices of the Document. + +
    5. Add an appropriate copyright notice for your modifications +adjacent to the other copyright notices. + +
    6. Include, immediately after the copyright notices, a license notice +giving the public permission to use the Modified Version under the +terms of this License, in the form shown in the Addendum below. + +
    7. Preserve in that license notice the full lists of Invariant Sections +and required Cover Texts given in the Document’s license notice. + +
    8. Include an unaltered copy of this License. + +
    9. Preserve the section Entitled “History”, Preserve its Title, and add +to it an item stating at least the title, year, new authors, and +publisher of the Modified Version as given on the Title Page. If +there is no section Entitled “History” in the Document, create one +stating the title, year, authors, and publisher of the Document as +given on its Title Page, then add an item describing the Modified +Version as stated in the previous sentence. + +
    10. Preserve the network location, if any, given in the Document for +public access to a Transparent copy of the Document, and likewise +the network locations given in the Document for previous versions +it was based on. These may be placed in the “History” section. +You may omit a network location for a work that was published at +least four years before the Document itself, or if the original +publisher of the version it refers to gives permission. + +
    11. For any section Entitled “Acknowledgements” or “Dedications”, Preserve +the Title of the section, and preserve in the section all the +substance and tone of each of the contributor acknowledgements and/or +dedications given therein. + +
    12. Preserve all the Invariant Sections of the Document, +unaltered in their text and in their titles. Section numbers +or the equivalent are not considered part of the section titles. + +
    13. Delete any section Entitled “Endorsements”. Such a section +may not be included in the Modified Version. + +
    14. Do not retitle any existing section to be Entitled “Endorsements” or +to conflict in title with any Invariant Section. + +
    15. Preserve any Warranty Disclaimers. +
    + +

    If the Modified Version includes new front-matter sections or +appendices that qualify as Secondary Sections and contain no material +copied from the Document, you may at your option designate some or all +of these sections as invariant. To do this, add their titles to the +list of Invariant Sections in the Modified Version’s license notice. +These titles must be distinct from any other section titles. +

    +

    You may add a section Entitled “Endorsements”, provided it contains +nothing but endorsements of your Modified Version by various +parties—for example, statements of peer review or that the text has +been approved by an organization as the authoritative definition of a +standard. +

    +

    You may add a passage of up to five words as a Front-Cover Text, and a +passage of up to 25 words as a Back-Cover Text, to the end of the list +of Cover Texts in the Modified Version. Only one passage of +Front-Cover Text and one of Back-Cover Text may be added by (or +through arrangements made by) any one entity. If the Document already +includes a cover text for the same cover, previously added by you or +by arrangement made by the same entity you are acting on behalf of, +you may not add another; but you may replace the old one, on explicit +permission from the previous publisher that added the old one. +

    +

    The author(s) and publisher(s) of the Document do not by this License +give permission to use their names for publicity for or to assert or +imply endorsement of any Modified Version. +

    +
  6. COMBINING DOCUMENTS + +

    You may combine the Document with other documents released under this +License, under the terms defined in section 4 above for modified +versions, provided that you include in the combination all of the +Invariant Sections of all of the original documents, unmodified, and +list them all as Invariant Sections of your combined work in its +license notice, and that you preserve all their Warranty Disclaimers. +

    +

    The combined work need only contain one copy of this License, and +multiple identical Invariant Sections may be replaced with a single +copy. If there are multiple Invariant Sections with the same name but +different contents, make the title of each such section unique by +adding at the end of it, in parentheses, the name of the original +author or publisher of that section if known, or else a unique number. +Make the same adjustment to the section titles in the list of +Invariant Sections in the license notice of the combined work. +

    +

    In the combination, you must combine any sections Entitled “History” +in the various original documents, forming one section Entitled +“History”; likewise combine any sections Entitled “Acknowledgements”, +and any sections Entitled “Dedications”. You must delete all +sections Entitled “Endorsements.” +

    +
  7. COLLECTIONS OF DOCUMENTS + +

    You may make a collection consisting of the Document and other documents +released under this License, and replace the individual copies of this +License in the various documents with a single copy that is included in +the collection, provided that you follow the rules of this License for +verbatim copying of each of the documents in all other respects. +

    +

    You may extract a single document from such a collection, and distribute +it individually under this License, provided you insert a copy of this +License into the extracted document, and follow this License in all +other respects regarding verbatim copying of that document. +

    +
  8. AGGREGATION WITH INDEPENDENT WORKS + +

    A compilation of the Document or its derivatives with other separate +and independent documents or works, in or on a volume of a storage or +distribution medium, is called an “aggregate” if the copyright +resulting from the compilation is not used to limit the legal rights +of the compilation’s users beyond what the individual works permit. +When the Document is included in an aggregate, this License does not +apply to the other works in the aggregate which are not themselves +derivative works of the Document. +

    +

    If the Cover Text requirement of section 3 is applicable to these +copies of the Document, then if the Document is less than one half of +the entire aggregate, the Document’s Cover Texts may be placed on +covers that bracket the Document within the aggregate, or the +electronic equivalent of covers if the Document is in electronic form. +Otherwise they must appear on printed covers that bracket the whole +aggregate. +

    +
  9. TRANSLATION + +

    Translation is considered a kind of modification, so you may +distribute translations of the Document under the terms of section 4. +Replacing Invariant Sections with translations requires special +permission from their copyright holders, but you may include +translations of some or all Invariant Sections in addition to the +original versions of these Invariant Sections. You may include a +translation of this License, and all the license notices in the +Document, and any Warranty Disclaimers, provided that you also include +the original English version of this License and the original versions +of those notices and disclaimers. In case of a disagreement between +the translation and the original version of this License or a notice +or disclaimer, the original version will prevail. +

    +

    If a section in the Document is Entitled “Acknowledgements”, +“Dedications”, or “History”, the requirement (section 4) to Preserve +its Title (section 1) will typically require changing the actual +title. +

    +
  10. TERMINATION + +

    You may not copy, modify, sublicense, or distribute the Document +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense, or distribute it is void, and +will automatically terminate your rights under this License. +

    +

    However, if you cease all violation of this License, then your license +from a particular copyright holder is reinstated (a) provisionally, +unless and until the copyright holder explicitly and finally +terminates your license, and (b) permanently, if the copyright holder +fails to notify you of the violation by some reasonable means prior to +60 days after the cessation. +

    +

    Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. +

    +

    Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, receipt of a copy of some or all of the same material does +not give you any rights to use it. +

    +
  11. FUTURE REVISIONS OF THIS LICENSE + +

    The Free Software Foundation may publish new, revised versions +of the GNU Free Documentation License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. See +http://www.gnu.org/copyleft/. +

    +

    Each version of the License is given a distinguishing version number. +If the Document specifies that a particular numbered version of this +License “or any later version” applies to it, you have the option of +following the terms and conditions either of that specified version or +of any later version that has been published (not as a draft) by the +Free Software Foundation. If the Document does not specify a version +number of this License, you may choose any version ever published (not +as a draft) by the Free Software Foundation. If the Document +specifies that a proxy can decide which future versions of this +License can be used, that proxy’s public statement of acceptance of a +version permanently authorizes you to choose that version for the +Document. +

    +
  12. RELICENSING + +

    “Massive Multiauthor Collaboration Site” (or “MMC Site”) means any +World Wide Web server that publishes copyrightable works and also +provides prominent facilities for anybody to edit those works. A +public wiki that anybody can edit is an example of such a server. A +“Massive Multiauthor Collaboration” (or “MMC”) contained in the +site means any set of copyrightable works thus published on the MMC +site. +

    +

    “CC-BY-SA” means the Creative Commons Attribution-Share Alike 3.0 +license published by Creative Commons Corporation, a not-for-profit +corporation with a principal place of business in San Francisco, +California, as well as future copyleft versions of that license +published by that same organization. +

    +

    “Incorporate” means to publish or republish a Document, in whole or +in part, as part of another Document. +

    +

    An MMC is “eligible for relicensing” if it is licensed under this +License, and if all works that were first published under this License +somewhere other than this MMC, and subsequently incorporated in whole +or in part into the MMC, (1) had no cover texts or invariant sections, +and (2) were thus incorporated prior to November 1, 2008. +

    +

    The operator of an MMC Site may republish an MMC contained in the site +under CC-BY-SA on the same site at any time before August 1, 2009, +provided the MMC is eligible for relicensing. +

    +
+ +

ADDENDUM: How to use this License for your documents

+ +

To use this License in a document you have written, include a copy of +the License in the document and put the following copyright and +license notices just after the title page: +

+
+
  Copyright (C)  year  your name.
+  Permission is granted to copy, distribute and/or modify this document
+  under the terms of the GNU Free Documentation License, Version 1.3
+  or any later version published by the Free Software Foundation;
+  with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
+  Texts.  A copy of the license is included in the section entitled ``GNU
+  Free Documentation License''.
+
+ +

If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, +replace the “with…Texts.” line with this: +

+
+
    with the Invariant Sections being list their titles, with
+    the Front-Cover Texts being list, and with the Back-Cover Texts
+    being list.
+
+ +

If you have Invariant Sections without Cover Texts, or some other +combination of the three, merge those two alternatives to suit the +situation. +

+

If your document contains nontrivial examples of program code, we +recommend releasing these examples in parallel under your choice of +free software license, such as the GNU General Public License, +to permit their use in free software. +

+ + +
+
+
+ +

Appendix B Concept Index

+ + +
+
+
+ +

Appendix C Function and Variable Index

+
+
Jump to:   A +   +C +   +F +   +G +   +H +   +N +   +P +   +R +   +S +   +U +   +W +   +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Index EntrySection

A
add_historyHistory List Management
add_history_timeHistory List Management
append_historyManaging the History File

C
clear_historyHistory List Management
current_historyInformation About the History List

F
free_history_entryHistory List Management

G
get_history_eventHistory Expansion

H
history_arg_extractHistory Expansion
history_baseHistory Variables
history_comment_charHistory Variables
history_expandHistory Expansion
history_expansion_charHistory Variables
history_getInformation About the History List
history_get_history_stateInitializing History and State Management
history_get_timeInformation About the History List
history_inhibit_expansion_functionHistory Variables
history_is_stifledHistory List Management
history_lengthHistory Variables
history_listInformation About the History List
history_max_entriesHistory Variables
history_no_expand_charsHistory Variables
history_quotes_inhibit_expansionHistory Variables
history_quoting_stateHistory Variables
history_searchSearching the History List
history_search_delimiter_charsHistory Variables
history_search_posSearching the History List
history_search_prefixSearching the History List
history_set_history_stateInitializing History and State Management
history_set_posMoving Around the History List
history_subst_charHistory Variables
history_tokenizeHistory Expansion
history_total_bytesInformation About the History List
history_truncate_fileManaging the History File
history_word_delimitersHistory Variables
history_write_timestampsHistory Variables

N
next_historyMoving Around the History List

P
previous_historyMoving Around the History List

R
read_historyManaging the History File
read_history_rangeManaging the History File
remove_historyHistory List Management
replace_history_entryHistory List Management

S
stifle_historyHistory List Management

U
unstifle_historyHistory List Management
using_historyInitializing History and State Management

W
where_historyInformation About the History List
write_historyManaging the History File

+ +
+ +
+
+ + + + + diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/readline.html b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/readline.html new file mode 100644 index 0000000000000000000000000000000000000000..897bc7c22091a3d3a2e80ffabf3f1341c67c9fa4 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/readline.html @@ -0,0 +1,6706 @@ + + + + + + +GNU Readline Library + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +

GNU Readline Library

+ +

This document describes the GNU Readline Library, a utility which aids +in the consistency of user interface across discrete programs which +provide a command line interface. +The Readline home page is http://www.gnu.org/software/readline/. +

+ + + + + +
+

Table of Contents

+ +
+ + +
+
+
+
+ +

1 Command Line Editing

+ +

This chapter describes the basic features of the GNU +command line editing interface. +

+ + +
+
+ +

1.1 Introduction to Line Editing

+ +

The following paragraphs use Emacs style to +describe the notation used to represent keystrokes. +

+

The text C-k is read as ‘Control-K’ and describes the character +produced when the k key is pressed while the Control key +is depressed. +

+

The text M-k is read as ‘Meta-K’ and describes the character +produced when the Meta key (if you have one) is depressed, and the k +key is pressed (a meta character), then both are released. +The Meta key is labeled ALT or Option on many keyboards. +On keyboards with two keys labeled ALT (usually to either side of +the space bar), the ALT on the left side is generally set to +work as a Meta key. +One of the ALT keys may also be configured +as some other modifier, such as a +Compose key for typing accented characters. +

+

On some keyboards, the Meta key modifier produces characters with +the eighth bit (0200) set. +You can use the enable-meta-key variable +to control whether or not it does this, if the keyboard allows it. +On many others, the terminal or terminal emulator converts the metafied +key to a key sequence beginning with ESC as described in the +next paragraph. +

+

If you do not have a Meta or ALT key, or another key working as +a Meta key, you can generally achieve the latter effect by typing ESC +first, and then typing k. +The ESC character is known as the meta prefix). +

+

Either process is known as metafying the k key. +

+

If your Meta key produces a key sequence with the ESC meta prefix, +you can make M-key key bindings you specify +(see Key Bindings in Readline Init File Syntax) +do the same thing by setting the force-meta-prefix variable. +

+

The text M-C-k is read as ‘Meta-Control-k’ and describes the +character produced by metafying C-k. +

+

In addition, several keys have their own names. +Specifically, +DEL, ESC, LFD, SPC, RET, and TAB all +stand for themselves when seen in this text, or in an init file +(see Readline Init File). +If your keyboard lacks a LFD key, typing C-j will +output the appropriate character. +The RET key may be labeled Return or Enter on +some keyboards. +

+
+
+
+ +

1.2 Readline Interaction

+ + +

Often during an interactive session you type in a long line of text, +only to notice that the first word on the line is misspelled. +The Readline library gives you a set of commands for manipulating the text +as you type it in, allowing you to just fix your typo, and not forcing +you to retype the majority of the line. +Using these editing commands, +you move the cursor to the place that needs correction, and delete or +insert the text of the corrections. +Then, when you are satisfied with the line, you simply press RET. +You do not have to be at the +end of the line to press RET; the entire line is accepted +regardless of the location of the cursor within the line. +

+ + +
+
+ +

1.2.1 Readline Bare Essentials

+ + + + +

In order to enter characters into the line, simply type them. +The typed +character appears where the cursor was, and then the cursor moves one +space to the right. +If you mistype a character, you can use your +erase character to back up and delete the mistyped character. +

+

Sometimes you may mistype a character, and +not notice the error until you have typed several other characters. +In that case, you can type C-b to move the cursor to the left, +and then correct your mistake. +Afterwards, you can move the cursor to the right with C-f. +

+

When you add text in the middle of a line, you will notice that characters +to the right of the cursor are ‘pushed over’ to make room for the text +that you have inserted. +Likewise, when you delete text behind the cursor, +characters to the right of the cursor are ‘pulled back’ to fill in the +blank space created by the removal of the text. +These are the bare +essentials for editing the text of an input line: +

+
+
C-b
+

Move back one character. +

+
C-f
+

Move forward one character. +

+
DEL or Backspace
+

Delete the character to the left of the cursor. +

+
C-d
+

Delete the character underneath the cursor. +

+
Printing characters
+

Insert the character into the line at the cursor. +

+
C-_ or C-x C-u
+

Undo the last editing command. +You can undo all the way back to an empty line. +

+
+ +

Depending on your configuration, the Backspace key might be set to +delete the character to the left of the cursor and the DEL key set +to delete the character underneath the cursor, like C-d, rather +than the character to the left of the cursor. +

+
+
+
+ +

1.2.2 Readline Movement Commands

+ +

The above table describes the most basic keystrokes that you need +in order to do editing of the input line. +For your convenience, many other commands are available in +addition to C-b, C-f, C-d, and DEL. +Here are some commands for moving more rapidly within the line. +

+
+
C-a
+

Move to the start of the line. +

+
C-e
+

Move to the end of the line. +

+
M-f
+

Move forward a word, where a word is composed of letters and digits. +

+
M-b
+

Move backward a word. +

+
C-l
+

Clear the screen, reprinting the current line at the top. +

+
+ +

Notice how C-f moves forward a character, while M-f moves +forward a word. +It is a loose convention that control keystrokes +operate on characters while meta keystrokes operate on words. +

+
+
+
+ +

1.2.3 Readline Killing Commands

+ + + + +

Killing text means to delete the text from the line, but to save +it away for later use, usually by yanking (re-inserting) +it back into the line. +(‘Cut’ and ‘paste’ are more recent jargon for ‘kill’ and ‘yank’.) +

+

If the description for a command says that it ‘kills’ text, then you can +be sure that you can get the text back in a different (or the same) +place later. +

+

When you use a kill command, the text is saved in a kill-ring. +Any number of consecutive kills save all of the killed text together, so +that when you yank it back, you get it all. +The kill ring is not line specific; the text that you killed on a previously +typed line is available to be yanked back later, when you are typing +another line. + +

+

Here is the list of commands for killing text. +

+
+
C-k
+

Kill the text from the current cursor position to the end of the line. +

+
+
M-d
+

Kill from the cursor to the end of the current word, or, if between +words, to the end of the next word. +Word boundaries are the same as those used by M-f. +

+
+
M-DEL
+

Kill from the cursor to the start of the current word, or, if between +words, to the start of the previous word. +Word boundaries are the same as those used by M-b. +

+
+
C-w
+

Kill from the cursor to the previous whitespace. +This is different than +M-DEL because the word boundaries differ. +

+
+
+ +

Here is how to yank the text back into the line. Yanking +means to copy the most-recently-killed text from the kill buffer +into the line at the current cursor position. +

+
+
C-y
+

Yank the most recently killed text back into the buffer at the cursor. +

+
+
M-y
+

Rotate the kill-ring, and yank the new top. +You can only do this if the prior command is C-y or M-y. +

+
+ +
+
+
+ +

1.2.4 Readline Arguments

+ +

You can pass numeric arguments to Readline commands. +Sometimes the +argument acts as a repeat count, other times it is the sign of the +argument that is significant. +If you pass a negative argument to a +command which normally acts in a forward direction, that command will +act in a backward direction. +For example, to kill text back to the +start of the line, you might type ‘M-- C-k’. +

+

The general way to pass numeric arguments to a command is to type meta +digits before the command. +If the first ‘digit’ typed is a minus +sign (‘-’), then the sign of the argument will be negative. +Once you have typed one meta digit to get the argument started, you can +type the remainder of the digits, and then the command. +For example, to give +the C-d command an argument of 10, you could type ‘M-1 0 C-d’, +which will delete the next ten characters on the input line. +

+
+
+
+ +

1.2.5 Searching for Commands in the History

+ +

Readline provides commands for searching through the command history +for lines containing a specified string. +There are two search modes: incremental and non-incremental. +

+

Incremental searches begin before the user has finished typing the +search string. +As each character of the search string is typed, Readline displays +the next entry from the history matching the string typed so far. +An incremental search requires only as many characters as needed to +find the desired history entry. +When using emacs editing mode, type C-r +to search backward in the history for a particular string. +Typing C-s searches forward through the history. +The characters present in the value of the isearch-terminators variable +are used to terminate an incremental search. +If that variable has not been assigned a value, the ESC and +C-j characters terminate an incremental search. +C-g aborts an incremental search and restores the original line. +When the search is terminated, the history entry containing the +search string becomes the current line. +

+

To find other matching entries in the history list, type C-r or +C-s as appropriate. +This searches backward or forward in the history for the next +entry matching the search string typed so far. +Any other key sequence bound to a Readline command terminates +the search and executes that command. +For instance, a RET terminates the search and accepts +the line, thereby executing the command from the history list. +A movement command will terminate the search, make the last line found +the current line, and begin editing. +

+

Readline remembers the last incremental search string. +If two C-rs are typed without any intervening characters defining +a new search string, Readline uses any remembered search string. +

+

Non-incremental searches read the entire search string before starting +to search for matching history entries. +The search string may be typed by the user or be part of the contents of +the current line. +

+
+
+
+
+ +

1.3 Readline Init File

+ + +

Although the Readline library comes with a set of Emacs-like +keybindings installed by default, it is possible to use a different set +of keybindings. +Any user can customize programs that use Readline by putting +commands in an inputrc file, conventionally in their home directory. +The name of this file is taken from the value of the +environment variable INPUTRC. +If that variable is unset, the default is ~/.inputrc. +If that file does not exist or cannot be read, Readline looks for +/etc/inputrc. +

+

When a program that uses the Readline library starts up, Readline reads +the init file and sets any variables and key bindings it contains. +

+

In addition, the C-x C-r command re-reads this init file, thus +incorporating any changes that you might have made to it. +

+ + +
+
+ +

1.3.1 Readline Init File Syntax

+ +

There are only a few basic constructs allowed in the +Readline init file. +Blank lines are ignored. +Lines beginning with a ‘#’ are comments. +Lines beginning with a ‘$’ indicate conditional +constructs (see Conditional Init Constructs). +Other lines denote variable settings and key bindings. +

+
+
Variable Settings
+

You can modify the run-time behavior of Readline by +altering the values of variables in Readline +using the set command within the init file. +The syntax is simple: +

+
+
set variable value
+
+ +

Here, for example, is how to +change from the default Emacs-like key binding to use +vi line editing commands: +

+
+
set editing-mode vi
+
+ +

Variable names and values, where appropriate, are recognized without +regard to case. +Unrecognized variable names are ignored. +

+

Boolean variables (those that can be set to on or off) are set to on if +the value is null or empty, on (case-insensitive), or 1. +Any other value results in the variable being set to off. +

+ +

A great deal of run-time behavior is changeable with the following +variables. +

+ +
+
active-region-start-color
+

A string variable that controls the text color and background when displaying +the text in the active region (see the description of +enable-active-region below). +This string must not take up any physical character positions on the display, +so it should consist only of terminal escape sequences. +It is output to the terminal before displaying the text in the active region. +This variable is reset to the default value whenever the terminal type changes. +The default value is the string that puts the terminal in standout mode, +as obtained from the terminal’s terminfo description. +A sample value might be ‘\e[01;33m’. +

+
+
active-region-end-color
+

A string variable that “undoes” +the effects of active-region-start-color +and restores “normal” +terminal display appearance after displaying text in the active region. +This string must not take up any physical character positions on the display, +so it should consist only of terminal escape sequences. +It is output to the terminal after displaying the text in the active region. +This variable is reset to the default value whenever the terminal type changes. +The default value is the string that restores the terminal from standout mode, +as obtained from the terminal’s terminfo description. +A sample value might be ‘\e[0m’. +

+
+
bell-style
+

Controls what happens when Readline wants to ring the terminal bell. +If set to ‘none’, Readline never rings the bell. +If set to ‘visible’, Readline uses a visible bell if one is available. +If set to ‘audible’ (the default), Readline attempts to ring +the terminal’s bell. +

+
+
bind-tty-special-chars
+

If set to ‘on’ (the default), Readline attempts to bind the control +characters that are +treated specially by the kernel’s terminal driver to their +Readline equivalents. +These override the default Readline bindings described here. +Type ‘stty -a’ at a Bash prompt to see your current terminal settings, +including the special control characters (usually cchars). +

+
+
blink-matching-paren
+

If set to ‘on’, Readline attempts to briefly move the cursor to an +opening parenthesis when a closing parenthesis is inserted. +The default is ‘off’. +

+
+
colored-completion-prefix
+

If set to ‘on’, when listing completions, Readline displays the +common prefix of the set of possible completions using a different color. +The color definitions are taken from the value of the LS_COLORS +environment variable. +If there is a color definition in LS_COLORS for the custom suffix +‘readline-colored-completion-prefix’, Readline uses this color for +the common prefix instead of its default. +The default is ‘off’. +

+
+
colored-stats
+

If set to ‘on’, Readline displays possible completions using different +colors to indicate their file type. +The color definitions are taken from the value of the LS_COLORS +environment variable. +The default is ‘off’. +

+
+
comment-begin
+

The string to insert at the beginning of the line by the +insert-comment command. +The default value is "#". +

+
+
completion-display-width
+

The number of screen columns used to display possible matches +when performing completion. +The value is ignored if it is less than 0 or greater than the terminal +screen width. +A value of 0 causes matches to be displayed one per line. +The default value is -1. +

+
+
completion-ignore-case
+

If set to ‘on’, Readline performs filename matching and completion +in a case-insensitive fashion. +The default value is ‘off’. +

+
+
completion-map-case
+

If set to ‘on’, and completion-ignore-case is enabled, Readline +treats hyphens (‘-’) and underscores (‘_’) as equivalent when +performing case-insensitive filename matching and completion. +The default value is ‘off’. +

+
+
completion-prefix-display-length
+

The maximum +length in characters of the common prefix of a list of possible +completions that is displayed without modification. +When set to a value greater than zero, Readline +replaces common prefixes longer than this value +with an ellipsis when displaying possible completions. +If a completion begins with a period, +and Readline is completing filenames, +it uses three underscores instead of an ellipsis. +

+
+
completion-query-items
+

The number of possible completions that determines when the user is asked +whether the list of possibilities should be displayed. +If the number of possible completions is greater than +or equal to this value, +Readline asks whether or not the user wishes to view them; +otherwise, Readline simply lists the completions. +This variable must be set to an integer value greater than or equal to zero. +A zero value means Readline should never ask; negative +values are treated as zero. +The default limit is 100. +

+
+
convert-meta
+

If set to ‘on’, Readline converts characters it reads +that have the eighth bit set to an ASCII key sequence by +clearing the eighth bit and prefixing an ESC character, +converting them to a meta-prefixed key sequence. +The default value is ‘on’, but Readline sets it to ‘off’ +if the locale contains +characters whose encodings may include bytes with the eighth bit set. +This variable is dependent on the LC_CTYPE locale category, and +may change if the locale changes. +This variable also affects key bindings; +see the description of force-meta-prefix below. +

+
+
disable-completion
+

If set to ‘On’, Readline inhibits word completion. +Completion characters are inserted into the line as if they +had been mapped to self-insert. +The default is ‘off’. +

+
+
echo-control-characters
+

When set to ‘on’, on operating systems that indicate they support it, +Readline echoes a character corresponding to a signal generated from the +keyboard. +The default is ‘on’. +

+
+
editing-mode
+

The editing-mode variable controls the default set of +key bindings. +By default, Readline starts up in emacs editing mode, where +the keystrokes are most similar to Emacs. +This variable can be set to either ‘emacs’ or ‘vi’. +

+
+
emacs-mode-string
+

If the show-mode-in-prompt variable is enabled, +this string is displayed immediately before the last line of the primary +prompt when emacs editing mode is active. +The value is expanded like a +key binding, so the standard set of meta- and control- prefixes and +backslash escape sequences is available. +The ‘\1’ and ‘\2’ escapes begin and end sequences of +non-printing characters, which can be used to embed a terminal control +sequence into the mode string. +The default is ‘@’. +

+
+
enable-active-region
+

point is the current cursor position, and mark refers to a +saved cursor position (see Commands For Moving). +The text between the point and mark is referred to as the region. +When this variable is set to ‘On’, Readline allows certain commands +to designate the region as active. +When the region is active, Readline highlights the text in the region using +the value of the active-region-start-color, which defaults to the +string that enables the terminal’s standout mode. +The active region shows the text inserted by bracketed-paste and any +matching text found by incremental and non-incremental history searches. +The default is ‘On’. +

+
+
enable-bracketed-paste
+

When set to ‘On’, Readline configures the terminal to insert each +paste into the editing buffer as a single string of characters, instead +of treating each character as if it had been read from the keyboard. +This is called putting the terminal into bracketed paste mode; +it prevents Readline from executing any editing commands bound +to key sequences appearing in the pasted text. +The default is ‘On’. +

+
+
enable-keypad
+

When set to ‘on’, Readline tries to enable the application +keypad when it is called. +Some systems need this to enable the arrow keys. +The default is ‘off’. +

+
+
enable-meta-key
+

When set to ‘on’, Readline tries to enable any meta +modifier key the terminal claims to support when it is called. +On many terminals, the Meta key is used to send eight-bit characters; +this variable checks for the terminal capability that indicates the +terminal can enable and disable a mode that sets the eighth bit of a +character (0200) if the Meta key is held down when the character is +typed (a meta character). +The default is ‘on’. +

+
+
expand-tilde
+

If set to ‘on’, Readline attempts tilde expansion when it +attempts word completion. +The default is ‘off’. +

+
+
force-meta-prefix
+

If set to ‘on’, Readline modifies its behavior when binding key +sequences containing \M- or Meta- +(see Key Bindings in Readline Init File Syntax) +by converting a key sequence of the form +\M-C or Meta-C to the two-character sequence +ESC C (adding the meta prefix). +If force-meta-prefix is set to ‘off’ (the default), +Readline uses the value of the convert-meta variable to determine +whether to perform this conversion: +if convert-meta is ‘on’, +Readline performs the conversion described above; +if it is ‘off’, Readline converts C to a meta character by +setting the eighth bit (0200). +The default is ‘off’. +

+
+
history-preserve-point
+

If set to ‘on’, the history code attempts to place the point (the +current cursor position) at the +same location on each history line retrieved with previous-history +or next-history. +The default is ‘off’. +

+
+
history-size
+

Set the maximum number of history entries saved in the history list. +If set to zero, any existing history entries are deleted and no new entries +are saved. +If set to a value less than zero, the number of history entries is not +limited. +By default, the number of history entries is not limited. +If you try to set history-size to a non-numeric value, +the maximum number of history entries will be set to 500. +

+
+
horizontal-scroll-mode
+

Setting this variable to ‘on’ means that the text of the lines +being edited will scroll horizontally on a single screen line when +the lines are longer than the width of the screen, instead of wrapping +onto a new screen line. +This variable is automatically set to ‘on’ for terminals of height 1. +By default, this variable is set to ‘off’. +

+
+
+input-meta
+

If set to ‘on’, Readline enables eight-bit input (that is, it +does not clear the eighth bit in the characters it reads), +regardless of what the terminal claims it can support. +The default value is ‘off’, but Readline sets it to ‘on’ +if the locale contains characters whose encodings may include bytes +with the eighth bit set. +This variable is dependent on the LC_CTYPE locale category, and +its value may change if the locale changes. +The name meta-flag is a synonym for input-meta. +

+
+
isearch-terminators
+

The string of characters that should terminate an incremental search without +subsequently executing the character as a command (see Searching for Commands in the History). +If this variable has not been given a value, the characters ESC and +C-j terminate an incremental search. +

+
+
keymap
+

Sets Readline’s idea of the current keymap for key binding commands. +Built-in keymap names are +emacs, +emacs-standard, +emacs-meta, +emacs-ctlx, +vi, +vi-move, +vi-command, and +vi-insert. +vi is equivalent to vi-command (vi-move is also a +synonym); emacs is equivalent to emacs-standard. +Applications may add additional names. +The default value is emacs; +the value of the editing-mode variable also affects the +default keymap. +

+
+
keyseq-timeout
+

Specifies the duration Readline will wait for a character when +reading an ambiguous key sequence +(one that can form a complete key sequence using the input read so far, +or can take additional input to complete a longer key sequence). +If Readline doesn’t receive any input within the timeout, it uses the +shorter but complete key sequence. +Readline uses this value to determine whether or not input is +available on the current input source (rl_instream by default). +The value is specified in milliseconds, so a value of 1000 means that +Readline will wait one second for additional input. +If this variable is set to a value less than or equal to zero, or to a +non-numeric value, Readline waits until another key is pressed to +decide which key sequence to complete. +The default value is 500. +

+
+
mark-directories
+

If set to ‘on’, completed directory names have a slash appended. +The default is ‘on’. +

+
+
mark-modified-lines
+

When this variable is set to ‘on’, Readline displays an +asterisk (‘*’) at the start of history lines which have been modified. +This variable is ‘off’ by default. +

+
+
mark-symlinked-directories
+

If set to ‘on’, completed names which are symbolic links to directories +have a slash appended, subject to the value of mark-directories. +The default is ‘off’. +

+
+
match-hidden-files
+

This variable, when set to ‘on’, forces Readline to match files whose +names begin with a ‘.’ (hidden files) when performing filename +completion. +If set to ‘off’, the user must include the leading ‘.’ +in the filename to be completed. +This variable is ‘on’ by default. +

+
+
menu-complete-display-prefix
+

If set to ‘on’, menu completion displays the common prefix of the +list of possible completions (which may be empty) before cycling through +the list. +The default is ‘off’. +

+
+
output-meta
+

If set to ‘on’, Readline displays characters with the +eighth bit set directly rather than as a meta-prefixed escape +sequence. +The default is ‘off’, but Readline sets it to ‘on’ +if the locale contains characters whose encodings may include +bytes with the eighth bit set. +This variable is dependent on the LC_CTYPE locale category, and +its value may change if the locale changes. +

+
+
page-completions
+

If set to ‘on’, Readline uses an internal pager resembling +more(1) +to display a screenful of possible completions at a time. +This variable is ‘on’ by default. +

+
+
prefer-visible-bell
+

See bell-style. +

+
+
print-completions-horizontally
+

If set to ‘on’, Readline displays completions with matches +sorted horizontally in alphabetical order, rather than down the screen. +The default is ‘off’. +

+
+
revert-all-at-newline
+

If set to ‘on’, Readline will undo all changes to history lines +before returning when executing accept-line. +By default, +history lines may be modified and retain individual undo lists across +calls to readline(). +The default is ‘off’. +

+
+
search-ignore-case
+

If set to ‘on’, Readline performs incremental and non-incremental +history list searches in a case-insensitive fashion. +The default value is ‘off’. +

+
+
show-all-if-ambiguous
+

This alters the default behavior of the completion functions. +If set to ‘on’, +words which have more than one possible completion cause the +matches to be listed immediately instead of ringing the bell. +The default value is ‘off’. +

+
+
show-all-if-unmodified
+

This alters the default behavior of the completion functions in +a fashion similar to show-all-if-ambiguous. +If set to ‘on’, +words which have more than one possible completion without any +possible partial completion (the possible completions don’t share +a common prefix) cause the matches to be listed immediately instead +of ringing the bell. +The default value is ‘off’. +

+
+
show-mode-in-prompt
+

If set to ‘on’, add a string to the beginning of the prompt +indicating the editing mode: emacs, vi command, or vi insertion. +The mode strings are user-settable (e.g., emacs-mode-string). +The default value is ‘off’. +

+
+
skip-completed-text
+

If set to ‘on’, this alters the default completion behavior when +inserting a single match into the line. +It’s only active when performing completion in the middle of a word. +If enabled, Readline does not insert characters from the completion +that match characters after point in the word being completed, +so portions of the word following the cursor are not duplicated. +For instance, if this is enabled, attempting completion when the cursor +is after the first ‘e’ in ‘Makefile’ will result in +‘Makefile’ rather than ‘Makefilefile’, +assuming there is a single possible completion. +The default value is ‘off’. +

+
+
vi-cmd-mode-string
+

If the show-mode-in-prompt variable is enabled, +this string is displayed immediately before the last line of the primary +prompt when vi editing mode is active and in command mode. +The value is expanded like a key binding, so the standard set of +meta- and control- prefixes and backslash escape sequences is available. +The ‘\1’ and ‘\2’ escapes begin and end sequences of +non-printing characters, which can be used to embed a terminal control +sequence into the mode string. +The default is ‘(cmd)’. +

+
+
vi-ins-mode-string
+

If the show-mode-in-prompt variable is enabled, +this string is displayed immediately before the last line of the primary +prompt when vi editing mode is active and in insertion mode. +The value is expanded like a key binding, so the standard set of +meta- and control- prefixes and backslash escape sequences is available. +The ‘\1’ and ‘\2’ escapes begin and end sequences of +non-printing characters, which can be used to embed a terminal control +sequence into the mode string. +The default is ‘(ins)’. +

+
+
visible-stats
+

If set to ‘on’, a character denoting a file’s type +is appended to the filename when listing possible +completions. +The default is ‘off’. +

+
+
+ +
+
Key Bindings
+

The syntax for controlling key bindings in the init file is simple. +First you need to find the name of the command that you +want to change. +The following sections contain tables of the command +name, the default keybinding, if any, and a short description of what +the command does. +

+

Once you know the name of the command, simply place on a line +in the init file the name of the key +you wish to bind the command to, a colon, and then the name of the +command. +There can be no space between the key name and the colon – that will be +interpreted as part of the key name. +The name of the key can be expressed in different ways, depending on +what you find most comfortable. +

+

In addition to command names, Readline allows keys to be bound +to a string that is inserted when the key is pressed (a macro). +The difference between a macro and a command is that a macro is +enclosed in single or double quotes. +

+ +
+
keyname: function-name or macro
+

keyname is the name of a key spelled out in English. +For example: +

+
Control-u: universal-argument
+Meta-Rubout: backward-kill-word
+Control-o: "> output"
+
+ +

In the example above, C-u is bound to the function +universal-argument, +M-DEL is bound to the function backward-kill-word, and +C-o is bound to run the macro +expressed on the right hand side (that is, to insert the text +‘> output’ into the line). +

+

This key binding syntax recognizes a number of symbolic character names: +DEL, +ESC, +ESCAPE, +LFD, +NEWLINE, +RET, +RETURN, +RUBOUT +(a destructive backspace), +SPACE, +SPC, +and +TAB. +

+
+
"keyseq": function-name or macro
+

keyseq differs from keyname above in that strings +denoting an entire key sequence can be specified, by placing +the key sequence in double quotes. +Some GNU Emacs style key escapes can be used, +as in the following example, but none of the +special character names are recognized. +

+
+
"\C-u": universal-argument
+"\C-x\C-r": re-read-init-file
+"\e[11~": "Function Key 1"
+
+ +

In the above example, C-u is again bound to the function +universal-argument (just as it was in the first example), +‘C-x C-r’ is bound to the function re-read-init-file, +and ‘ESC [ 1 1 ~’ is bound to insert +the text ‘Function Key 1’. +

+
+
+ +

The following GNU Emacs style escape sequences are available when +specifying key sequences: +

+
+
\C-
+

A control prefix. +

+
\M-
+

Adding the meta prefix or converting the following character to a meta +character, as described above under force-meta-prefix +(see Variable Settings in Readline Init File Syntax). +

+
\e
+

An escape character. +

+
\\
+

Backslash. +

+
\"
+

", a double quotation mark. +

+
\'
+

', a single quote or apostrophe. +

+
+ +

In addition to the GNU Emacs style escape sequences, a second +set of backslash escapes is available: +

+
+
\a
+

alert (bell) +

+
\b
+

backspace +

+
\d
+

delete +

+
\f
+

form feed +

+
\n
+

newline +

+
\r
+

carriage return +

+
\t
+

horizontal tab +

+
\v
+

vertical tab +

+
\nnn
+

The eight-bit character whose value is the octal value nnn +(one to three digits). +

+
\xHH
+

The eight-bit character whose value is the hexadecimal value HH +(one or two hex digits). +

+
+ +

When entering the text of a macro, single or double quotes must +be used to indicate a macro definition. +Unquoted text is assumed to be a function name. +The backslash escapes described above are expanded +in the macro body. +Backslash will quote any other character in the macro text, +including ‘"’ and ‘'’. +For example, the following binding will make ‘C-x \’ +insert a single ‘\’ into the line: +

+
"\C-x\\": "\\"
+
+ +
+
+ +
+
+
+ +

1.3.2 Conditional Init Constructs

+ +

Readline implements a facility similar in spirit to the conditional +compilation features of the C preprocessor which allows key +bindings and variable settings to be performed as the result +of tests. +There are four parser directives available. +

+
+
$if
+

The $if construct allows bindings to be made based on the +editing mode, the terminal being used, or the application using +Readline. +The text of the test, after any comparison operator, +extends to the end of the line; +unless otherwise noted, no characters are required to isolate it. +

+
+
mode
+

The mode= form of the $if directive is used to test +whether Readline is in emacs or vi mode. +This may be used in conjunction +with the ‘set keymap’ command, for instance, to set bindings in +the emacs-standard and emacs-ctlx keymaps only if +Readline is starting out in emacs mode. +

+
+
term
+

The term= form may be used to include terminal-specific +key bindings, perhaps to bind the key sequences output by the +terminal’s function keys. +The word on the right side of the +‘=’ +is tested against both the full name of the terminal and the portion +of the terminal name before the first ‘-’. +This allows xterm to match both xterm and +xterm-256color, for instance. +

+
+
version
+

The version test may be used to perform comparisons against +specific Readline versions. +The version expands to the current Readline version. +The set of comparison operators includes +‘=’ (and ‘==’), ‘!=’, ‘<=’, ‘>=’, ‘<’, +and ‘>’. +The version number supplied on the right side of the operator consists +of a major version number, an optional decimal point, and an optional +minor version (e.g., ‘7.1’). +If the minor version is omitted, it +defaults to ‘0’. +The operator may be separated from the string version and +from the version number argument by whitespace. +The following example sets a variable if the Readline version being used +is 7.0 or newer: +

+
$if version >= 7.0
+set show-mode-in-prompt on
+$endif
+
+ +
+
application
+

The application construct is used to include +application-specific settings. +Each program using the Readline +library sets the application name, and you can test for +a particular value. +This could be used to bind key sequences to functions useful for +a specific program. +For instance, the following command adds a +key sequence that quotes the current or previous word in Bash: +

+
$if Bash
+# Quote the current or previous word
+"\C-xq": "\eb\"\ef\""
+$endif
+
+ +
+
variable
+

The variable construct provides simple equality tests for Readline +variables and values. +The permitted comparison operators are ‘=’, ‘==’, and ‘!=’. +The variable name must be separated from the comparison operator by +whitespace; the operator may be separated from the value on the right hand +side by whitespace. +String and boolean variables may be tested. +Boolean variables must be +tested against the values on and off. +The following example is equivalent to the mode=emacs test described +above: +

+
$if editing-mode == emacs
+set show-mode-in-prompt on
+$endif
+
+
+
+ +
+
$else
+

Commands in this branch of the $if directive are executed if +the test fails. +

+
+
$endif
+

This command, as seen in the previous example, terminates an +$if command. +

+
+
$include
+

This directive takes a single filename as an argument and reads commands +and key bindings from that file. +For example, the following directive reads from /etc/inputrc: +

+
$include /etc/inputrc
+
+
+
+ +
+
+
+ +

1.3.3 Sample Init File

+ +

Here is an example of an inputrc file. This illustrates key +binding, variable assignment, and conditional syntax. +

+
+
# This file controls the behavior of line input editing for
+# programs that use the GNU Readline library.  Existing
+# programs include FTP, Bash, and GDB.
+#
+# You can re-read the inputrc file with C-x C-r.
+# Lines beginning with '#' are comments.
+#
+# First, include any system-wide bindings and variable
+# assignments from /etc/Inputrc
+$include /etc/Inputrc
+
+#
+# Set various bindings for emacs mode.
+
+set editing-mode emacs 
+
+$if mode=emacs
+
+Meta-Control-h:	backward-kill-word	Text after the function name is ignored
+
+#
+# Arrow keys in keypad mode
+#
+#"\M-OD":        backward-char
+#"\M-OC":        forward-char
+#"\M-OA":        previous-history
+#"\M-OB":        next-history
+#
+# Arrow keys in ANSI mode
+#
+"\M-[D":        backward-char
+"\M-[C":        forward-char
+"\M-[A":        previous-history
+"\M-[B":        next-history
+#
+# Arrow keys in 8 bit keypad mode
+#
+#"\M-\C-OD":       backward-char
+#"\M-\C-OC":       forward-char
+#"\M-\C-OA":       previous-history
+#"\M-\C-OB":       next-history
+#
+# Arrow keys in 8 bit ANSI mode
+#
+#"\M-\C-[D":       backward-char
+#"\M-\C-[C":       forward-char
+#"\M-\C-[A":       previous-history
+#"\M-\C-[B":       next-history
+
+C-q: quoted-insert
+
+$endif
+
+# An old-style binding.  This happens to be the default.
+TAB: complete
+
+# Macros that are convenient for shell interaction
+$if Bash
+# edit the path
+"\C-xp": "PATH=${PATH}\e\C-e\C-a\ef\C-f"
+# prepare to type a quoted word --
+# insert open and close double quotes
+# and move to just after the open quote
+"\C-x\"": "\"\"\C-b"
+# insert a backslash (testing backslash escapes
+# in sequences and macros)
+"\C-x\\": "\\"
+# Quote the current or previous word
+"\C-xq": "\eb\"\ef\""
+# Add a binding to refresh the line, which is unbound
+"\C-xr": redraw-current-line
+# Edit variable on current line.
+"\M-\C-v": "\C-a\C-k$\C-y\M-\C-e\C-a\C-y="
+$endif
+
+# use a visible bell if one is available
+set bell-style visible
+
+# don't strip characters to 7 bits when reading
+set input-meta on
+
+# allow iso-latin1 characters to be inserted rather
+# than converted to prefix-meta sequences
+set convert-meta off
+
+# display characters with the eighth bit set directly
+# rather than as meta-prefixed characters
+set output-meta on
+
+# if there are 150 or more possible completions for a word,
+# ask whether or not the user wants to see all of them
+set completion-query-items 150
+
+# For FTP
+$if Ftp
+"\C-xg": "get \M-?"
+"\C-xt": "put \M-?"
+"\M-.": yank-last-arg
+$endif
+
+ +
+
+
+
+ +

1.4 Bindable Readline Commands

+ + +

This section describes Readline commands that may be bound to key +sequences. +Command names without an accompanying key sequence are unbound by default. +

+

In the following descriptions, point refers to the current cursor +position, and mark refers to a cursor position saved by the +set-mark command. +The text between the point and mark is referred to as the region. +Readline +has the concept of an active region: +when the region is active, +Readline redisplay highlights the region using the +value of the +active-region-start-color +variable. +The enable-active-region variable turns this on and off. +Several commands set the region to active; those are noted below. +

+ +
+
+ +

1.4.1 Commands For Moving

+
+
beginning-of-line (C-a)
+

Move to the start of the current line. +This may also be bound to the Home key on some keyboards. +

+
+
end-of-line (C-e)
+

Move to the end of the line. +This may also be bound to the End key on some keyboards. +

+
+
forward-char (C-f)
+

Move forward a character. +This may also be bound to the right arrow key on some keyboards. +

+
+
backward-char (C-b)
+

Move back a character. +This may also be bound to the left arrow key on some keyboards. +

+
+
forward-word (M-f)
+

Move forward to the end of the next word. +Words are composed of letters and digits. +

+
+
backward-word (M-b)
+

Move back to the start of the current or previous word. +Words are composed of letters and digits. +

+ +
+
previous-screen-line ()
+

Attempt to move point to the same physical screen column on the previous +physical screen line. +This will not have the desired effect if the current +Readline line does not take up more than one physical line or if point is not +greater than the length of the prompt plus the screen width. +

+
+
next-screen-line ()
+

Attempt to move point to the same physical screen column on the next +physical screen line. +This will not have the desired effect if the current +Readline line does not take up more than one physical line or if the length +of the current Readline line is not greater than the length of the prompt +plus the screen width. +

+
+
clear-display (M-C-l)
+

Clear the screen and, if possible, the terminal’s scrollback buffer, +then redraw the current line, +leaving the current line at the top of the screen. +

+
+
clear-screen (C-l)
+

Clear the screen, +then redraw the current line, +leaving the current line at the top of the screen. +If given a numeric argument, this refreshes the current line +without clearing the screen. +

+
+
redraw-current-line ()
+

Refresh the current line. By default, this is unbound. +

+
+
+ +
+
+
+ +

1.4.2 Commands For Manipulating The History

+ +
+
accept-line (Newline or Return)
+

Accept the line regardless of where the cursor is. +If this line is non-empty, you can add it to the history list using +add_history(). +If this line is a modified history line, then restore the history line +to its original state. +

+
+
previous-history (C-p)
+

Move ‘back’ through the history list, fetching the previous command. +This may also be bound to the up arrow key on some keyboards. +

+
+
next-history (C-n)
+

Move ‘forward’ through the history list, fetching the next command. +This may also be bound to the down arrow key on some keyboards. +

+
+
beginning-of-history (M-<)
+

Move to the first line in the history. +

+
+
end-of-history (M->)
+

Move to the end of the input history, i.e., the line currently +being entered. +

+
+
reverse-search-history (C-r)
+

Search backward starting at the current line and moving ‘up’ through +the history as necessary. +This is an incremental search. +This command sets the region to the matched text and activates the region. +

+
+
forward-search-history (C-s)
+

Search forward starting at the current line and moving ‘down’ through +the history as necessary. +This is an incremental search. +This command sets the region to the matched text and activates the region. +

+
+
non-incremental-reverse-search-history (M-p)
+

Search backward starting at the current line and moving ‘up’ +through the history as necessary using a non-incremental search +for a string supplied by the user. +The search string may match anywhere in a history line. +

+
+
non-incremental-forward-search-history (M-n)
+

Search forward starting at the current line and moving ‘down’ +through the history as necessary using a non-incremental search +for a string supplied by the user. +The search string may match anywhere in a history line. +

+
+
history-search-backward ()
+

Search backward through the history for the string of characters +between the start of the current line and the point. +The search string must match at the beginning of a history line. +This is a non-incremental search. +By default, this command is unbound, but may be bound to the Page Down +key on some keyboards. +

+
+
history-search-forward ()
+

Search forward through the history for the string of characters +between the start of the current line and the point. +The search string must match at the beginning of a history line. +This is a non-incremental search. +By default, this command is unbound, but may be bound to the Page Up +key on some keyboards. +

+
+
history-substring-search-backward ()
+

Search backward through the history for the string of characters +between the start of the current line and the point. +The search string may match anywhere in a history line. +This is a non-incremental search. +By default, this command is unbound. +

+
+
history-substring-search-forward ()
+

Search forward through the history for the string of characters +between the start of the current line and the point. +The search string may match anywhere in a history line. +This is a non-incremental search. +By default, this command is unbound. +

+
+
yank-nth-arg (M-C-y)
+

Insert the first argument to the previous command (usually +the second word on the previous line) at point. +With an argument n, +insert the nth word from the previous command (the words +in the previous command begin with word 0). +A negative argument inserts the nth word from the end of +the previous command. +Once the argument n is computed, +this uses the history expansion facilities to extract the +nth word, as if the +‘!n’ history expansion had been specified. +

+
+
yank-last-arg (M-. or M-_)
+

Insert last argument to the previous command (the last word of the +previous history entry). +With a numeric argument, behave exactly like yank-nth-arg. +Successive calls to yank-last-arg move back through the history +list, inserting the last word (or the word specified by the argument to +the first call) of each line in turn. +Any numeric argument supplied to these successive calls determines +the direction to move through the history. +A negative argument switches the direction through the history +(back or forward). +This uses the history expansion facilities to extract the +last word, as if the +‘!$’ history expansion had been specified. +

+
+
operate-and-get-next (C-o)
+

Accept the current line for return to the calling application as if a +newline had been entered, +and fetch the next line relative to the current line from the history +for editing. +A numeric argument, if supplied, specifies the history entry +to use instead of the current line. +

+
+
fetch-history ()
+

With a numeric argument, fetch that entry from the history list +and make it the current line. +Without an argument, move back to the first entry in the history list. +

+
+
+ +
+
+
+ +

1.4.3 Commands For Changing Text

+ +
+
end-of-file (usually C-d)
+

The character indicating end-of-file as set, for example, by +stty. +If this character is read when there are no characters +on the line, and point is at the beginning of the line, Readline +interprets it as the end of input and returns EOF. +

+
+
delete-char (C-d)
+

Delete the character at point. +If this function is bound to the +same character as the tty EOF character, as C-d +commonly is, see above for the effects. +This may also be bound to the Delete key on some keyboards. +

+
+
backward-delete-char (Rubout)
+

Delete the character behind the cursor. +A numeric argument means +to kill the characters, saving them on the kill ring, +instead of deleting them. +

+
+
forward-backward-delete-char ()
+

Delete the character under the cursor, unless the cursor is at the +end of the line, in which case the character behind the cursor is +deleted. +By default, this is not bound to a key. +

+
+
quoted-insert (C-q or C-v)
+

Add the next character typed to the line verbatim. +This is how to insert key sequences like C-q, for example. +

+
+
tab-insert (M-TAB)
+

Insert a tab character. +

+
+
self-insert (a, b, A, 1, !, …)
+

Insert the character typed. +

+
+
bracketed-paste-begin ()
+

This function is intended to be bound to the "bracketed paste" escape +sequence sent by some terminals, and such a binding is assigned by default. +It allows Readline to insert the pasted text as a single unit without treating +each character as if it had been read from the keyboard. +The characters +are inserted as if each one was bound to self-insert instead of +executing any editing commands. +

+

Bracketed paste sets the region (the characters between point and the mark) +to the inserted text. +It sets the active region. +

+
+
transpose-chars (C-t)
+

Drag the character before the cursor forward over +the character at the cursor, moving the +cursor forward as well. +If the insertion point +is at the end of the line, then this +transposes the last two characters of the line. +Negative arguments have no effect. +

+
+
transpose-words (M-t)
+

Drag the word before point past the word after point, +moving point past that word as well. +If the insertion point is at the end of the line, this transposes +the last two words on the line. +

+ +
+
upcase-word (M-u)
+

Uppercase the current (or following) word. +With a negative argument, +uppercase the previous word, but do not move the cursor. +

+
+
downcase-word (M-l)
+

Lowercase the current (or following) word. +With a negative argument, +lowercase the previous word, but do not move the cursor. +

+
+
capitalize-word (M-c)
+

Capitalize the current (or following) word. +With a negative argument, +capitalize the previous word, but do not move the cursor. +

+
+
overwrite-mode ()
+

Toggle overwrite mode. +With an explicit positive numeric argument, switches to overwrite mode. +With an explicit non-positive numeric argument, switches to insert mode. +This command affects only emacs mode; +vi mode does overwrite differently. +Each call to readline() starts in insert mode. +

+

In overwrite mode, characters bound to self-insert replace +the text at point rather than pushing the text to the right. +Characters bound to backward-delete-char replace the character +before point with a space. +

+

By default, this command is unbound, but may be bound to the Insert +key on some keyboards. +

+
+
+ +
+
+
+ +

1.4.4 Killing And Yanking

+ +
+
kill-line (C-k)
+

Kill the text from point to the end of the current line. +With a negative numeric argument, kill backward from the cursor to the +beginning of the line. +

+
+
backward-kill-line (C-x Rubout)
+

Kill backward from the cursor to the beginning of the current line. +With a negative numeric argument, kill forward from the cursor to the +end of the line. +

+
+
unix-line-discard (C-u)
+

Kill backward from the cursor to the beginning of the current line. +

+
+
kill-whole-line ()
+

Kill all characters on the current line, no matter where point is. +By default, this is unbound. +

+
+
kill-word (M-d)
+

Kill from point to the end of the current word, or if between +words, to the end of the next word. +Word boundaries are the same as forward-word. +

+
+
backward-kill-word (M-DEL)
+

Kill the word behind point. +Word boundaries are the same as backward-word. +

+ +
+
unix-word-rubout (C-w)
+

Kill the word behind point, using white space as a word boundary, +saving the killed text on the kill-ring. +

+
+
unix-filename-rubout ()
+

Kill the word behind point, using white space and the slash character +as the word boundaries, +saving the killed text on the kill-ring. +

+
+
delete-horizontal-space ()
+

Delete all spaces and tabs around point. +By default, this is unbound. +

+
+
kill-region ()
+

Kill the text in the current region. +By default, this command is unbound. +

+
+
copy-region-as-kill ()
+

Copy the text in the region to the kill buffer, so it can be yanked +right away. +By default, this command is unbound. +

+
+
copy-backward-word ()
+

Copy the word before point to the kill buffer. +The word boundaries are the same as backward-word. +By default, this command is unbound. +

+
+
copy-forward-word ()
+

Copy the word following point to the kill buffer. +The word boundaries are the same as forward-word. +By default, this command is unbound. +

+
+
yank (C-y)
+

Yank the top of the kill ring into the buffer at point. +

+
+
yank-pop (M-y)
+

Rotate the kill-ring, and yank the new top. +You can only do this if +the prior command is yank or yank-pop. +

+
+ +
+
+
+ +

1.4.5 Specifying Numeric Arguments

+
+
digit-argument (M-0, M-1, … M--)
+

Add this digit to the argument already accumulating, or start a new +argument. +M-- starts a negative argument. +

+
+
universal-argument ()
+

This is another way to specify an argument. +If this command is followed by one or more digits, optionally with a +leading minus sign, those digits define the argument. +If the command is followed by digits, executing universal-argument +again ends the numeric argument, but is otherwise ignored. +As a special case, if this command is immediately followed by a +character that is neither a digit nor minus sign, the argument count +for the next command is multiplied by four. +The argument count is initially one, so executing this function the +first time makes the argument count four, a second time makes the +argument count sixteen, and so on. +By default, this is not bound to a key. +

+
+ +
+
+
+ +

1.4.6 Letting Readline Type For You

+ +
+
complete (TAB)
+

Attempt to perform completion on the text before point. +The actual completion performed is application-specific. +The default is filename completion. +

+
+
possible-completions (M-?)
+

List the possible completions of the text before point. +When displaying completions, Readline sets the number of columns used +for display to the value of completion-display-width, the value of +the environment variable COLUMNS, or the screen width, in that order. +

+
+
insert-completions (M-*)
+

Insert all completions of the text before point that would have +been generated by possible-completions, +separated by a space. +

+
+
menu-complete ()
+

Similar to complete, but replaces the word to be completed +with a single match from the list of possible completions. +Repeatedly executing menu-complete steps through the list +of possible completions, inserting each match in turn. +At the end of the list of completions, +menu-complete rings the bell +(subject to the setting of bell-style) +and restores the original text. +An argument of n moves n positions forward in the list +of matches; a negative argument moves backward through the list. +This command is intended to be bound to TAB, but is unbound +by default. +

+
+
menu-complete-backward ()
+

Identical to menu-complete, but moves backward through the list +of possible completions, as if menu-complete had been given a +negative argument. +This command is unbound by default. +

+
+
export-completions ()
+

Perform completion on the word before point as described above +and write the list of possible completions to Readline’s output stream +using the following format, writing information on separate lines: +

+
    +
  • the number of matches N; +
  • the word being completed; +
  • S:E, +where S and E are the start and end offsets of the word +in the Readline line buffer; then +
  • each match, one per line +
+ +

If there are no matches, the first line will be “0”, +and this command does not print any output after the S:E. +If there is only a single match, this prints a single line containing it. +If there is more than one match, this prints the common prefix of the +matches, which may be empty, on the first line after the S:E, +then the matches on subsequent lines. +In this case, N will include the first line with the common prefix. +

+

The user or application +should be able to accommodate the possibility of a blank line. +The intent is that the user or application reads N lines after +the line containing S:E to obtain the match list. +This command is unbound by default. +

+
+
delete-char-or-list ()
+

Deletes the character under the cursor if not at the beginning or +end of the line (like delete-char). +At the end of the line, it behaves identically to possible-completions. +This command is unbound by default. +

+
+
+ +
+
+
+ +

1.4.7 Keyboard Macros

+
+
start-kbd-macro (C-x ()
+

Begin saving the characters typed into the current keyboard macro. +

+
+
end-kbd-macro (C-x ))
+

Stop saving the characters typed into the current keyboard macro +and save the definition. +

+
+
call-last-kbd-macro (C-x e)
+

Re-execute the last keyboard macro defined, by making the characters +in the macro appear as if typed at the keyboard. +

+
+
print-last-kbd-macro ()
+

Print the last keyboard macro defined in a format suitable for the +inputrc file. +

+
+
+ +
+
+
+ +

1.4.8 Some Miscellaneous Commands

+
+
re-read-init-file (C-x C-r)
+

Read in the contents of the inputrc file, and incorporate +any bindings or variable assignments found there. +

+
+
abort (C-g)
+

Abort the current editing command and +ring the terminal’s bell (subject to the setting of +bell-style). +

+
+
do-lowercase-version (M-A, M-B, M-x, …)
+

If the metafied character x is upper case, run the command +that is bound to the corresponding metafied lower case character. +The behavior is undefined if x is already lower case. +

+
+
prefix-meta (ESC)
+

Metafy the next character typed. +Typing ‘ESC f’ is equivalent to typing M-f. +

+
+
undo (C-_ or C-x C-u)
+

Incremental undo, separately remembered for each line. +

+
+
revert-line (M-r)
+

Undo all changes made to this line. +This is like executing the undo +command enough times to get back to the initial state. +

+
+
tilde-expand (M-~)
+

Perform tilde expansion on the current word. +

+
+
set-mark (C-@)
+

Set the mark to the point. +If a numeric argument is supplied, set the mark to that position. +

+
+
exchange-point-and-mark (C-x C-x)
+

Swap the point with the mark. +Set the current cursor position to the saved position, +then set the mark to the old cursor position. +

+
+
character-search (C-])
+

Read a character and move point to the next occurrence of that character. +A negative argument searches for previous occurrences. +

+
+
character-search-backward (M-C-])
+

Read a character and move point to the previous occurrence of that character. +A negative argument searches for subsequent occurrences. +

+
+
skip-csi-sequence ()
+

Read enough characters to consume a multi-key sequence such as those +defined for keys like Home and End. +CSI sequences begin with a Control Sequence Indicator (CSI), usually +ESC [. +If this sequence is bound to "\e[", +keys producing CSI sequences have no effect +unless explicitly bound to a Readline command, +instead of inserting stray characters into the editing buffer. +This is unbound by default, but usually bound to +ESC [. +

+
+
insert-comment (M-#)
+

Without a numeric argument, insert the value of the comment-begin +variable at the beginning of the current line. +If a numeric argument is supplied, this command acts as a toggle: if +the characters at the beginning of the line do not match the value +of comment-begin, insert the value; otherwise delete +the characters in comment-begin from the beginning of the line. +In either case, the line is accepted as if a newline had been typed. +

+
+
dump-functions ()
+

Print all of the functions and their key bindings +to the Readline output stream. +If a numeric argument is supplied, +the output is formatted in such a way that it can be made part +of an inputrc file. +This command is unbound by default. +

+
+
dump-variables ()
+

Print all of the settable variables and their values +to the Readline output stream. +If a numeric argument is supplied, +the output is formatted in such a way that it can be made part +of an inputrc file. +This command is unbound by default. +

+
+
dump-macros ()
+

Print all of the Readline key sequences bound to macros and the +strings they output +to the Readline output stream. +If a numeric argument is supplied, +the output is formatted in such a way that it can be made part +of an inputrc file. +This command is unbound by default. +

+
+
execute-named-command (M-x)
+

Read a bindable Readline command name from the input and execute the +function to which it’s bound, as if the key sequence to which it was +bound appeared in the input. +If this function is supplied with a numeric argument, it passes that +argument to the function it executes. +

+ +
+
emacs-editing-mode (C-e)
+

When in vi command mode, this causes a switch to emacs +editing mode. +

+
+
vi-editing-mode (M-C-j)
+

When in emacs editing mode, this causes a switch to vi +editing mode. +

+ +
+
+ +
+
+
+
+ +

1.5 Readline vi Mode

+ +

While the Readline library does not have a full set of vi +editing functions, it does contain enough to allow simple editing +of the line. +The Readline vi mode behaves as specified in the +sh description in the POSIX standard. +

+

In order to switch interactively between emacs and vi +editing modes, use the command M-C-j (bound to emacs-editing-mode +when in vi mode and to vi-editing-mode in emacs mode). +The Readline default is emacs mode. +

+

When you enter a line in vi mode, you are already placed in +‘insertion’ mode, as if you had typed an ‘i’. Pressing ESC +switches you into ‘command’ mode, where you can edit the text of the +line with the standard vi movement keys, move to previous +history lines with ‘k’ and subsequent lines with ‘j’, and +so forth. +

+ + +
+
+
+
+ +

2 Programming with GNU Readline

+ +

This chapter describes the interface between the GNU Readline Library and +other programs. If you are a programmer, and you wish to include the +features found in GNU Readline +such as completion, line editing, and interactive history manipulation +in your own programs, this section is for you. +

+ + +
+
+ +

2.1 Basic Behavior

+ +

Many programs provide a command line interface, such as mail, +ftp, and sh. +For such programs, the default behavior of Readline is sufficient. +This section describes how to use Readline in +the simplest way possible, perhaps to replace calls in your code to +fgets(). +

+ + + +

The function readline() prints a prompt prompt +and then reads and returns a single line of text from the user. +Since it’s possible to enter characters into the line while quoting +them to disable any Readline editing function they might normally have, +this line may include embedded newlines and other special characters. +If prompt is NULL or the empty string, +readline() does not display a prompt. +The line readline() returns is allocated with malloc(); +the caller should free() the line when it has finished with it. +The declaration for readline in ANSI C is +

+
+
char *readline (const char *prompt);
+
+ +

So, one might say +

+
char *line = readline ("Enter a line: ");
+
+

in order to read a line of text from the user. +The line returned has the final newline removed, so only the +text remains. +This means that lines consisting of a newline return the empty string. +

+

If Readline encounters an EOF while reading the line, +and the line is empty at that point, +then readline() returns (char *)NULL. +Otherwise, the line is ended just as if a newline had been typed. +

+

Readline performs some expansion on the prompt before it is +displayed on the screen. +See the description of rl_expand_prompt +(see Redisplay) for additional details, especially if prompt +will contain characters that do not consume physical screen space when +displayed. +

+

If you want the user to be able to get at the line later, (with +C-p for example), you must call add_history() to save the +line away in a history list of such lines. +

+
+
add_history (line);
+
+ +

For full details on the GNU History Library, see the associated manual. +

+

It is preferable to avoid saving empty lines on the history list, since +users rarely have a burning need to reuse a blank line. +Here is a function which usefully replaces the standard gets() library +function, and has the advantage of no static buffer to overflow: +

+
+
/* A static variable for holding the line. */
+static char *line_read = (char *)NULL;
+
+/* Read a string, and return a pointer to it.
+   Returns NULL on EOF. */
+char *
+rl_gets ()
+{
+  /* If the buffer has already been allocated,
+     return the memory to the free pool. */
+  if (line_read)
+    {
+      free (line_read);
+      line_read = (char *)NULL;
+    }
+
+  /* Get a line from the user. */
+  line_read = readline ("");
+
+  /* If the line has any text in it,
+     save it on the history. */
+  if (line_read && *line_read)
+    add_history (line_read);
+
+  return (line_read);
+}
+
+ +

This function gives the user the default behavior of TAB +completion: filename completion. +If you do not want Readline to +complete filenames, you can change the binding of the TAB key +with rl_bind_key(). +

+
+
int rl_bind_key (int key, rl_command_func_t *function);
+
+ +

rl_bind_key() takes two arguments: key is the character that +you want to bind, and function is the address of the function to +call when key is pressed. +Binding TAB to rl_insert() makes TAB insert itself. +rl_bind_key() returns non-zero if key is not a valid +ASCII character code (between 0 and 255). +

+

Thus, to disable the default TAB behavior, the following suffices: +

+
rl_bind_key ('\t', rl_insert);
+
+ +

This code should be executed once at the start of your program; you +might write a function called initialize_readline() which +performs this and other desired initializations, such as installing +custom completers (see Custom Completers). +

+
+
+
+ +

2.2 Custom Functions

+ +

Readline provides many functions for manipulating the text of +the line, but it isn’t possible to anticipate the needs of all +programs. +This section describes the various functions and variables +defined within the Readline library which allow a program to add +customized functionality to Readline. +

+

Before declaring any functions that customize Readline’s behavior, or +using any functionality Readline provides in other code, an +application writer should include the file <readline/readline.h> +in any file that uses Readline’s features. +Since some of the definitions +in readline.h use the stdio library, the program +should include the file <stdio.h> +before readline.h. +

+

readline.h defines a C preprocessor variable that should +be treated as an integer, RL_READLINE_VERSION, which may +be used to conditionally compile application code depending on +the installed Readline version. +The value is a hexadecimal +encoding of the major and minor version numbers of the library, +of the form 0xMMmm. MM is the two-digit major +version number; mm is the two-digit minor version number. +For Readline 4.2, for example, the value of +RL_READLINE_VERSION would be 0x0402. +

+ + +
+
+ +

2.2.1 Readline Typedefs

+ +

For readability, we declare a number of new object types, all pointers +to functions. +

+

The reason for declaring these new types is to make it easier to write +code describing pointers to C functions with appropriately prototyped +arguments and return values. +

+

For instance, say we want to declare a variable func as a pointer +to a function which takes two int arguments and returns an +int (this is the type of all of the Readline bindable functions). +Instead of the classic C declaration +

+

int (*func)(); +

+

or the ANSI-C style declaration +

+

int (*func)(int, int); +

+

we may write +

+

rl_command_func_t *func; +

+

The full list of function pointer types available is +

+
+
typedef int rl_command_func_t (int, int);
+
typedef char *rl_compentry_func_t (const char *, int);
+
typedef char **rl_completion_func_t (const char *, int, int);
+
typedef char *rl_quote_func_t (char *, int, char *);
+
typedef char *rl_dequote_func_t (char *, int);
+
typedef int rl_compignore_func_t (char **);
+
typedef void rl_compdisp_func_t (char **, int, int);
+
typedef void rl_macro_print_func_t (const char *, const char *, int, const char *);
+
typedef int rl_hook_func_t (void);
+
typedef int rl_getc_func_t (FILE *);
+
typedef int rl_linebuf_func_t (char *, int);
+
typedef int rl_intfunc_t (int);
+
#define rl_ivoidfunc_t rl_hook_func_t
+
typedef int rl_icpfunc_t (char *);
+
typedef int rl_icppfunc_t (char **);
+
typedef void rl_voidfunc_t (void);
+
typedef void rl_vintfunc_t (int);
+
typedef void rl_vcpfunc_t (char *);
+
typedef void rl_vcppfunc_t (char **);
+
+ +

The rltypedefs.h file has more documentation for these types. +

+
+
+
+ +

2.2.2 Writing a New Function

+ +

In order to write new functions for Readline, you need to know the +calling conventions for keyboard-invoked functions, and the names of the +variables that describe the current state of the line read so far. +

+

The calling sequence for a command foo looks like +

+
+
int foo (int count, int key)
+
+ +

where count is the numeric argument (or 1 if defaulted) and +key is the key that invoked this function. +

+

It is completely up to the function as to what should be done with the +numeric argument. +Some functions use it as a repeat count, some +as a flag, and others to choose alternate behavior (refreshing the current +line as opposed to refreshing the screen, for example). +Some choose to ignore it. +In general, if a +function uses the numeric argument as a repeat count, it should be able +to do something useful with both negative and positive arguments. +At the very least, it should be aware that it can be passed a +negative argument. +

+

A command function should return 0 if its action completes successfully, +and a value greater than zero if some error occurs. +All of the builtin Readline bindable command functions +obey this convention. +

+
+
+
+
+ +

2.3 Readline Variables

+ +

These variables are available to function writers. +

+
+
Variable: char * rl_line_buffer
+

This is the line gathered so far. +You are welcome to modify the contents of the line, +but see Allowing Undoing. +The function rl_extend_line_buffer will increase +the memory allocated to rl_line_buffer. +

+ +
+
Variable: int rl_point
+

The offset of the current cursor position in rl_line_buffer +(the point). +

+ +
+
Variable: int rl_end
+

The number of characters present in rl_line_buffer. +When rl_point is at the end of the line, +rl_point and rl_end are equal. +

+ +
+
Variable: int rl_mark
+

The mark (saved position) in the current line. +If set, the mark and point define a region. +Some Readline commands set the mark as part of operating; +users can also set the mark explicitly. +

+ +
+
Variable: int rl_done
+

Setting this to a non-zero value causes Readline to return the current +line immediately. +Readline will set this variable when it has read a key sequence bound +to accept-line and is about to return the line to the caller. +

+ +
+
Variable: int rl_eof_found
+

Readline will set this variable when it has read an EOF character +(e.g., the stty ‘EOF’ character) on an empty line +or has encountered a read error or EOF and +is about to return a NULL line to the caller. +

+ +
+
Variable: int rl_num_chars_to_read
+

Setting this to a positive value before calling readline() causes +Readline to return after accepting that many characters, rather +than reading up to a character bound to accept-line. +

+ +
+
Variable: int rl_pending_input
+

Setting this to a value makes it the next keystroke read. +This is a way to stuff a single character into the input stream. +

+ +
+
Variable: int rl_dispatching
+

Set to a non-zero value if a function is being called from a key binding; +zero otherwise. +Application functions can test this to discover whether +they were called directly or by Readline’s dispatching mechanism. +

+ +
+
Variable: int rl_erase_empty_line
+

Setting this to a non-zero value causes Readline to completely erase +the current line, including any prompt, any time a newline is typed as +the only character on an otherwise-empty line. +This moves the cursor to the beginning of the newly-blank line. +

+ +
+
Variable: char * rl_prompt
+

The prompt Readline uses. +This is set from the argument to +readline(), and should not be assigned to directly. +The rl_set_prompt() function (see Redisplay) may +be used to modify the prompt string after calling readline(). +Readline performs some prompt expansions and analyzes the prompt for +line breaks, so rl_set_prompt() is preferred. +

+ +
+
Variable: char * rl_display_prompt
+

The string displayed as the prompt. +This is usually identical to +rl_prompt, but may be changed temporarily by functions that +use the prompt string as a message area, such as incremental search. +

+ +
+
Variable: int rl_already_prompted
+

If an application wishes to display the prompt itself, rather than have +Readline do it the first time readline() is called, it should set +this variable to a non-zero value after displaying the prompt. +The prompt must also be passed as the argument to readline() so +the redisplay functions can update the display properly. +The calling application is responsible for managing the value; Readline +never sets it. +

+ +
+
Variable: const char * rl_library_version
+

The version number of this revision of the Readline library, as a string +(e.g., "4.2"). +

+ +
+
Variable: int rl_readline_version
+

An integer encoding the current version of the library. +The encoding is of the form 0xMMmm, +where MM is the two-digit major version number, +and mm is the two-digit minor version number. +For example, for Readline-4.2, rl_readline_version would have the +value 0x0402. +

+ +
+
Variable: int rl_gnu_readline_p
+

Always set to 1, denoting that this is GNU Readline rather than some +emulation. +

+ +
+
Variable: const char * rl_terminal_name
+

The terminal type, used for initialization. +If not set by the application, +Readline sets this to the value of the TERM environment variable +the first time it is called. +Readline uses this to look up the terminal capabilities it needs in +the terminfo database. +

+ +
+
Variable: const char * rl_readline_name
+

This variable is set to a unique name by each application using Readline. +The value allows conditional parsing of the inputrc file +(see Conditional Init Constructs). +

+ +
+
Variable: FILE * rl_instream
+

The stdio stream from which Readline reads input. +If NULL, Readline defaults to stdin. +

+ +
+
Variable: FILE * rl_outstream
+

The stdio stream to which Readline performs output. +If NULL, Readline defaults to stdout. +

+ +
+
Variable: int rl_prefer_env_winsize
+

If non-zero, Readline gives values found in the LINES and +COLUMNS environment variables greater precedence than values fetched +from the kernel when computing the screen dimensions. +

+ +
+
Variable: rl_command_func_t * rl_last_func
+

The address of the last command function Readline executed. +This may be used to test whether or not a function is being executed +twice in succession, for example. +

+ +
+
Variable: rl_hook_func_t * rl_startup_hook
+

If non-zero, this is the address of a function to call just +before Readline prints the first prompt. +

+ +
+
Variable: rl_hook_func_t * rl_pre_input_hook
+

If non-zero, this is the address of a function to call after +the first prompt has been printed and just before Readline +starts reading input characters. +

+ +
+
Variable: rl_hook_func_t * rl_event_hook
+

If non-zero, this is the address of a function to call periodically +when Readline is waiting for terminal input. +By default, this will be called at most ten times a second if there +is no keyboard input. +

+ +
+
Variable: rl_getc_func_t * rl_getc_function
+

If non-zero, Readline will call indirectly through this pointer +to get a character from the input stream. +By default, it is set to rl_getc, the Readline character +input function (see Character Input). +In general, an application that sets rl_getc_function should consider +setting rl_input_available_hook as well. +

+ +
+
Variable: rl_hook_func_t * rl_signal_event_hook
+

If non-zero, this is the address of a function to call if a read system +call is interrupted by a signal when Readline is reading terminal input. +

+ +
+
Variable: rl_hook_func_t * rl_timeout_event_hook
+

If non-zero, this is the address of a function to call if Readline times +out while reading input. +

+ +
+
Variable: rl_hook_func_t * rl_input_available_hook
+

If non-zero, Readline will use this function’s return value when it needs +to determine whether or not there is available input on the current input +source. +The default hook checks rl_instream; if an application is using a +different input source, it should set the hook appropriately. +Readline queries for available input when implementing intra-key-sequence +timeouts during input and incremental searches. +This function must return zero if there is no input available, and non-zero +if input is available. +This may use an application-specific timeout before returning a value; +Readline uses the value passed to rl_set_keyboard_input_timeout() +or the value of the user-settable keyseq-timeout variable. +This is designed for use by applications using Readline’s callback interface +(see Alternate Interface), which may not use the traditional +read(2) and file descriptor interface, or other applications using +a different input mechanism. +If an application uses an input mechanism or hook that can potentially exceed +the value of keyseq-timeout, it should increase the timeout or set +this hook appropriately even when not using the callback interface. +In general, an application that sets rl_getc_function should consider +setting rl_input_available_hook as well. +

+ +
+
Variable: rl_voidfunc_t * rl_redisplay_function
+

Readline will call indirectly through this pointer +to update the display with the current contents of the editing buffer. +By default, it is set to rl_redisplay, the default Readline +redisplay function (see Redisplay). +

+ +
+
Variable: rl_vintfunc_t * rl_prep_term_function
+

If non-zero, Readline will call indirectly through this pointer +to initialize the terminal. +The function takes a single argument, an +int flag that says whether or not to use eight-bit characters. +By default, this is set to rl_prep_terminal +(see Terminal Management). +

+ +
+
Variable: rl_voidfunc_t * rl_deprep_term_function
+

If non-zero, Readline will call indirectly through this pointer +to reset the terminal. +This function should undo the effects of rl_prep_term_function. +By default, this is set to rl_deprep_terminal +(see Terminal Management). +

+ +
+
Variable: void rl_macro_display_hook
+

If set, this points to a function that rl_macro_dumper will call to +display a key sequence bound to a macro. +It is called with the key sequence, the "untranslated" macro value (i.e., +with backslash escapes included, as when passed to rl_macro_bind), +the readable argument passed to rl_macro_dumper, and any +prefix to display before the key sequence. +

+ +
+
Variable: Keymap rl_executing_keymap
+

This variable is set to the keymap (see Selecting a Keymap) in which the +currently executing Readline function was found. +

+ +
+
Variable: Keymap rl_binding_keymap
+

This variable is set to the keymap (see Selecting a Keymap) in which the +last key binding occurred. +

+ +
+
Variable: char * rl_executing_macro
+

This variable is set to the text of any currently-executing macro. +

+ +
+
Variable: int rl_executing_key
+

The key that caused the dispatch to the currently-executing Readline function. +

+ +
+
Variable: char * rl_executing_keyseq
+

The full key sequence that caused the dispatch to the currently-executing +Readline function. +

+ +
+
Variable: int rl_key_sequence_length
+

The number of characters in rl_executing_keyseq. +

+ +
+
Variable: int rl_readline_state
+

A variable with bit values that encapsulate the current Readline state. +A bit is set with the RL_SETSTATE macro, and unset with the +RL_UNSETSTATE macro. +Use the RL_ISSTATE macro to test whether a particular state +bit is set. +Current state bits include: +

+
+
RL_STATE_NONE
+

Readline has not yet been called, nor has it begun to initialize. +

+
RL_STATE_INITIALIZING
+

Readline is initializing its internal data structures. +

+
RL_STATE_INITIALIZED
+

Readline has completed its initialization. +

+
RL_STATE_TERMPREPPED
+

Readline has modified the terminal modes to do its own input and redisplay. +

+
RL_STATE_READCMD
+

Readline is reading a command from the keyboard. +

+
RL_STATE_METANEXT
+

Readline is reading more input after reading the meta-prefix character. +

+
RL_STATE_DISPATCHING
+

Readline is dispatching to a command. +

+
RL_STATE_MOREINPUT
+

Readline is reading more input while executing an editing command. +

+
RL_STATE_ISEARCH
+

Readline is performing an incremental history search. +

+
RL_STATE_NSEARCH
+

Readline is performing a non-incremental history search. +

+
RL_STATE_SEARCH
+

Readline is searching backward or forward through the history for a string. +

+
RL_STATE_NUMERICARG
+

Readline is reading a numeric argument. +

+
RL_STATE_MACROINPUT
+

Readline is currently getting its input from a previously-defined keyboard +macro. +

+
RL_STATE_MACRODEF
+

Readline is currently reading characters defining a keyboard macro. +

+
RL_STATE_OVERWRITE
+

Readline is in overwrite mode. +

+
RL_STATE_COMPLETING
+

Readline is performing word completion. +

+
RL_STATE_SIGHANDLER
+

Readline is currently executing the Readline signal handler. +

+
RL_STATE_UNDOING
+

Readline is performing an undo. +

+
RL_STATE_INPUTPENDING
+

Readline has input pending due to a call to rl_execute_next(). +

+
RL_STATE_TTYCSAVED
+

Readline has saved the values of the terminal’s special characters. +

+
RL_STATE_CALLBACK
+

Readline is currently using the alternate (callback) interface +(see Alternate Interface). +

+
RL_STATE_VIMOTION
+

Readline is reading the argument to a vi-mode "motion" command. +

+
RL_STATE_MULTIKEY
+

Readline is reading a multiple-keystroke command. +

+
RL_STATE_VICMDONCE
+

Readline has entered vi command (movement) mode at least one time during +the current call to readline(). +

+
RL_STATE_DONE
+

Readline has read a key sequence bound to accept-line +and is about to return the line to the caller. +

+
RL_STATE_TIMEOUT
+

Readline has timed out (it did not receive a line or specified number of +characters before the timeout duration specified by rl_set_timeout +elapsed) and is returning that status to the caller. +

+
RL_STATE_EOF
+

Readline has read an EOF character (e.g., the stty ‘EOF’ character) +or encountered a read error or EOF +and is about to return a NULL line to the caller. +

+
+ +
+ +
+
Variable: int rl_explicit_arg
+

Set to a non-zero value if an explicit numeric argument was specified by +the user. +It is only valid in a bindable command function. +

+ +
+
Variable: int rl_numeric_arg
+

Set to the value of any numeric argument explicitly specified by the user +before executing the current Readline function. +It is only valid in a bindable command function. +

+ +
+
Variable: int rl_editing_mode
+

Set to a value denoting Readline’s current editing mode. +A value of 1 means Readline is currently in emacs mode; +0 means that vi mode is active. +This determines the current keymap and key bindings. +

+ +
+
+
+ +

2.4 Readline Convenience Functions

+ + + +
+
+ +

2.4.1 Naming a Function

+ +

Readline has a descriptive +string name for every function a user can bind to a key sequence, +so users can dynamically change the bindings associated with key +sequences while using Readline, +using the descriptive name when referring to the function. +Thus, in an init file, one might find +

+
+
Meta-Rubout:	backward-kill-word
+
+ +

This binds the keystroke Meta-Rubout to the function +descriptively named backward-kill-word. +As the programmer, you +should bind the functions you write to descriptive names as well. +Readline provides a function for doing that: +

+
+
Function: int rl_add_defun (const char *name, rl_command_func_t *function, int key)
+

Add name to the list of named functions. +Make function be the function that gets called by key sequences +that bind to name. +If key is not -1, then bind it to +function using rl_bind_key(). +

+ +

Using this function alone is sufficient for most applications. +It is the recommended way to add a few functions to the default +functions that Readline has built in. +If you need to do something other than adding a function to Readline, +you may need to use the underlying functions described below. +

+
+
+
+ +

2.4.2 Selecting a Keymap

+ +

Key bindings take place on a keymap. +The keymap is the association between the keys that the user types and +the functions that get run. +You can make your own keymaps, copy existing keymaps, and tell +Readline which keymap to use. +

+
+
Function: Keymap rl_make_bare_keymap (void)
+

Returns a new, empty keymap. +The space for the keymap is allocated with +malloc(); the caller should free it by calling +rl_free_keymap() when done. +

+ +
+
Function: Keymap rl_copy_keymap (Keymap map)
+

Return a new keymap which is a copy of map. +

+ +
+
Function: Keymap rl_make_keymap (void)
+

Return a new keymap with the printing characters bound to rl_insert, +the lowercase Meta characters bound to run their equivalents, and +the Meta digits bound to produce numeric arguments. +

+ +
+
Function: void rl_discard_keymap (Keymap keymap)
+

Free the storage associated with the data in keymap. +The caller should free keymap. +

+ +
+
Function: void rl_free_keymap (Keymap keymap)
+

Free all storage associated with keymap. +This calls rl_discard_keymap to free subordinate +keymaps and macros. +

+ +
+
Function: int rl_empty_keymap (Keymap keymap)
+

Return non-zero if there are no keys bound to functions in keymap; +zero if there are any keys bound. +

+ +

Readline has several internal keymaps. +These functions allow you to change which keymap is active. +This is one way to switch editing modes, for example. +

+
+
Function: Keymap rl_get_keymap (void)
+

Returns the currently active keymap. +

+ +
+
Function: void rl_set_keymap (Keymap keymap)
+

Makes keymap the currently active keymap. +

+ +
+
Function: Keymap rl_get_keymap_by_name (const char *name)
+

Return the keymap matching name. +name is one which would be supplied in a +set keymap inputrc line (see Readline Init File). +

+ +
+
Function: char * rl_get_keymap_name (Keymap keymap)
+

Return the name matching keymap. +name is one which would be supplied in a +set keymap inputrc line (see Readline Init File). +

+ +
+
Function: int rl_set_keymap_name (const char *name, Keymap keymap)
+

Set the name of keymap. +This name will then be "registered" and +available for use in a set keymap inputrc directive +see Readline Init File). +The name may not be one of Readline’s builtin keymap names; +you may not add a different name for one of Readline’s builtin keymaps. +You may replace the name associated with a given keymap by calling this +function more than once with the same keymap argument. +You may associate a registered name with a new keymap by calling this +function more than once with the same name argument. +There is no way to remove a named keymap once the name has been +registered. +Readline will make a copy of name. +The return value is greater than zero unless name is one of +Readline’s builtin keymap names or keymap is one of Readline’s +builtin keymaps. +

+ +
+
+
+ +

2.4.3 Binding Keys

+ +

Key sequences are associated with functions through the keymap. +Readline has several internal keymaps: emacs_standard_keymap, +emacs_meta_keymap, emacs_ctlx_keymap, +vi_movement_keymap, and vi_insertion_keymap. +emacs_standard_keymap is the default, and the examples in +this manual assume that. +

+

Since readline() installs a set of default key bindings the first +time it is called, there is always the danger that a custom binding +installed before the first call to readline() will be overridden. +An alternate mechanism that can avoid this +is to install custom key bindings in an +initialization function assigned to the rl_startup_hook variable +(see Readline Variables). +

+

These functions manage key bindings. +

+
+
Function: int rl_bind_key (int key, rl_command_func_t *function)
+

Binds key to function in the currently active keymap. +Returns non-zero in the case of an invalid key. +

+ +
+
Function: int rl_bind_key_in_map (int key, rl_command_func_t *function, Keymap map)
+

Bind key to function in map. +Returns non-zero in the case of an invalid key. +

+ +
+
Function: int rl_bind_key_if_unbound (int key, rl_command_func_t *function)
+

Binds key to function if it is not already bound in the +currently active keymap. +Returns non-zero in the case of an invalid key or if key is +already bound. +

+ +
+
Function: int rl_bind_key_if_unbound_in_map (int key, rl_command_func_t *function, Keymap map)
+

Binds key to function if it is not already bound in map. +Returns non-zero in the case of an invalid key or if key is +already bound. +

+ +
+
Function: int rl_unbind_key (int key)
+

Bind key to the null function in the currently active keymap. +This is not the same as binding it to self-insert. +Returns non-zero in case of error. +

+ +
+
Function: int rl_unbind_key_in_map (int key, Keymap map)
+

Bind key to the null function in map. +This is not the same as binding it to self-insert. +Returns non-zero in case of error. +

+ +
+
Function: int rl_unbind_function_in_map (rl_command_func_t *function, Keymap map)
+

Unbind all keys that execute function in map. +

+ +
+
Function: int rl_unbind_command_in_map (const char *command, Keymap map)
+

Unbind all keys that are bound to command in map. +

+ +
+
Function: int rl_bind_keyseq (const char *keyseq, rl_command_func_t *function)
+

Bind the key sequence represented by the string keyseq to the function +function, beginning in the current keymap. +This makes new keymaps as necessary. +The return value is non-zero if keyseq is invalid. +

+ +
+
Function: int rl_bind_keyseq_in_map (const char *keyseq, rl_command_func_t *function, Keymap map)
+

Bind the key sequence represented by the string keyseq to the function +function in map. +This makes new keymaps as necessary. +Initial bindings are performed in map. +The return value is non-zero if keyseq is invalid. +

+ +
+
Function: int rl_set_key (const char *keyseq, rl_command_func_t *function, Keymap map)
+

Equivalent to rl_bind_keyseq_in_map. +

+ +
+
Function: int rl_bind_keyseq_if_unbound (const char *keyseq, rl_command_func_t *function)
+

Binds keyseq to function if it is not already bound in the +currently active keymap. +Returns non-zero in the case of an invalid keyseq or if keyseq is +already bound. +

+ +
+
Function: int rl_bind_keyseq_if_unbound_in_map (const char *keyseq, rl_command_func_t *function, Keymap map)
+

Binds keyseq to function if it is not already bound in map. +Returns non-zero in the case of an invalid keyseq or if keyseq is +already bound. +

+ +
+
Function: int rl_generic_bind (int type, const char *keyseq, char *data, Keymap map)
+

Bind the key sequence represented by the string keyseq to the arbitrary +pointer data. +type says what kind of data is pointed to by data; this can be +a function (ISFUNC), +a macro (ISMACR), +or a keymap (ISKMAP). +This makes new keymaps as necessary. +The initial keymap in which to do bindings is map. +Returns non-zero in the case of an invalid keyseq, zero otherwise. +

+ +
+
Function: int rl_parse_and_bind (char *line)
+

Parse line as if it had been read from the inputrc file and +perform any key bindings and variable assignments found +(see Readline Init File). +

+ +
+
Function: int rl_read_init_file (const char *filename)
+

Read keybindings and variable assignments from filename +(see Readline Init File). +

+ +
+
+
+ +

2.4.4 Associating Function Names and Bindings

+ +

These functions allow you to find out what keys invoke named functions +and the functions invoked by a particular key sequence. +You may also associate a new function name with an arbitrary function. +

+
+
Function: rl_command_func_t * rl_named_function (const char *name)
+

Return the function with name name. +name is a descriptive name users might use in a key binding. +

+ +
+
Function: rl_command_func_t * rl_function_of_keyseq (const char *keyseq, Keymap map, int *type)
+

Return the function invoked by keyseq in keymap map. +If map is NULL, this uses the current keymap. +If type is not NULL, this returns the type of the object +in the int variable it points to +(one of ISFUNC, ISKMAP, or ISMACR). +It takes a "translated" key sequence and should not be used +if the key sequence can include NUL. +

+ +
+
Function: rl_command_func_t * rl_function_of_keyseq_len (const char *keyseq, size_t len, Keymap map, int *type)
+

Return the function invoked by keyseq of length len +in keymap map. +Equivalent to rl_function_of_keyseq with the addition +of the len parameter. +It takes a "translated" key sequence and should be used +if the key sequence can include NUL. +

+ +
+
Function: int rl_trim_arg_from_keyseq (const char *keyseq, size_t len, Keymap map)
+

If there is a numeric argument at the beginning of keyseq, possibly +including digits, return the index of the first character in keyseq +following the numeric argument. +This can be used to skip over the numeric argument (which is available as +rl_numeric_arg) while traversing the key sequence that invoked the +current command. +

+ +
+
Function: char ** rl_invoking_keyseqs (rl_command_func_t *function)
+

Return an array of strings representing the key sequences used to +invoke function in the current keymap. +

+ +
+
Function: char ** rl_invoking_keyseqs_in_map (rl_command_func_t *function, Keymap map)
+

Return an array of strings representing the key sequences used to +invoke function in the keymap map. +

+ +
+
Function: void rl_print_keybinding (const char *name, Keymap map, int readable)
+

Print key sequences bound to Readline function name name in +keymap map. +If map is NULL, this uses the current keymap. +If readable is non-zero, +the list is formatted in such a way that it can be made part of an +inputrc file and re-read to recreate the key binding. +

+ +
+
Function: void rl_function_dumper (int readable)
+

Print the Readline function names and the key sequences currently +bound to them to rl_outstream. +If readable is non-zero, +the list is formatted in such a way that it can be made part of an +inputrc file and re-read. +

+ +
+
Function: void rl_list_funmap_names (void)
+

Print the names of all bindable Readline functions to rl_outstream. +

+ +
+
Function: const char ** rl_funmap_names (void)
+

Return a NULL terminated array of known function names. +The array is sorted. +The array itself is allocated, but not the strings inside. +You should free the array, but not the pointers, using free +or rl_free when you are done. +

+ +
+
Function: int rl_add_funmap_entry (const char *name, rl_command_func_t *function)
+

Add name to the list of bindable Readline command names, and make +function the function to be called when name is invoked. +This returns the index of the newly-added name in the array of +function names. +

+ +
+
+
+ +

2.4.5 Allowing Undoing

+ +

Supporting the undo command is a painless thing, and makes your +functions much more useful. +It is certainly easier to try something if you know you can undo it. +

+

If your function simply inserts text once, or deletes text once, +and uses rl_insert_text() or rl_delete_text() to do it, +then Readline does the undoing for you automatically. +

+

If you do multiple insertions or multiple deletions, or any combination +of these operations, you should group them together into one operation. +This is done with rl_begin_undo_group() and +rl_end_undo_group(). +

+

The types of events Readline can undo are: +

+
+
enum undo_code { UNDO_DELETE, UNDO_INSERT, UNDO_BEGIN, UNDO_END }; 
+
+ +

Notice that UNDO_DELETE means to insert some text, and +UNDO_INSERT means to delete some text. +That is, the undo code tells what to undo, not how to undo it. +UNDO_BEGIN and UNDO_END are tags +added by rl_begin_undo_group() and rl_end_undo_group(); +they are how Readline delimits groups of commands that should be +undone together. +

+
+
Function: int rl_begin_undo_group (void)
+

Begins saving undo information in a group construct. +The undo information usually comes from calls to rl_insert_text() +and rl_delete_text(), but could be the result of calls to +rl_add_undo(). +

+ +
+
Function: int rl_end_undo_group (void)
+

Closes the current undo group started with rl_begin_undo_group(). +There should be one call to rl_end_undo_group() +for each call to rl_begin_undo_group(). +

+ +
+
Function: void rl_add_undo (enum undo_code what, int start, int end, char *text)
+

Remember how to undo an event (according to what). +The affected text runs from start to end, +and encompasses text. +

+ +
+
Function: void rl_free_undo_list (void)
+

Free the existing undo list. +

+ +
+
Function: int rl_do_undo (void)
+

Undo the first thing on the undo list. +Returns 0 if there was nothing to undo, +non-zero if something was undone. +

+ +

Finally, if you neither insert nor delete text, but directly modify the +existing text (e.g., change its case), call rl_modifying() +once, just before you modify the text. +You must supply the indices of the text range that you are going to modify. +Readline will create an undo group for you. +

+
+
Function: int rl_modifying (int start, int end)
+

Tell Readline to save the text between start and end as a +single undo unit. +It is assumed that you will subsequently modify that text. +

+ +
+
+
+ +

2.4.6 Redisplay

+ +
+
Function: void rl_redisplay (void)
+

Change what’s displayed on the screen to reflect the current contents +of rl_line_buffer. +

+ +
+
Function: int rl_forced_update_display (void)
+

Force the line to be updated and redisplayed, whether or not +Readline thinks the screen display is correct. +

+ +
+
Function: int rl_on_new_line (void)
+

Tell the update functions that we have moved onto a new (empty) line, +usually after outputting a newline. +

+ +
+
Function: int rl_on_new_line_with_prompt (void)
+

Tell the update functions that we have moved onto a new line, with +rl_prompt already displayed. +This could be used by applications that want to output the prompt string +themselves, but still need Readline to know the prompt string length for +redisplay. +It should be used after setting rl_already_prompted. +

+ +
+
Function: int rl_clear_visible_line (void)
+

Clear the screen lines corresponding to the current line’s contents. +

+ +
+
Function: int rl_reset_line_state (void)
+

Reset the display state to a clean state and redisplay the current line +starting on a new line. +

+ +
+
Function: int rl_crlf (void)
+

Move the cursor to the start of the next screen line. +

+ +
+
Function: int rl_show_char (int c)
+

Display character c on rl_outstream. +If Readline has not been set to display meta characters directly, this +will convert meta characters to a meta-prefixed key sequence. +This is intended for use by applications which wish to do their own +redisplay. +

+ +
+
Function: int rl_message (const char *, …)
+

The arguments are a format string as would be supplied to printf, +possibly containing conversion specifications such as ‘%d’, and +any additional arguments necessary to satisfy the conversion specifications. +The resulting string is displayed in the echo area. +The echo area is also used to display numeric arguments and search strings. +You should call rl_save_prompt to save the prompt information +before calling this function. +

+ +
+
Function: int rl_clear_message (void)
+

Clear the message in the echo area. +If the prompt was saved with a call to +rl_save_prompt before the last call to rl_message, +you must call rl_restore_prompt before calling this function. +

+ +
+
Function: void rl_save_prompt (void)
+

Save the local Readline prompt display state in preparation for +displaying a new message in the message area with rl_message(). +

+ +
+
Function: void rl_restore_prompt (void)
+

Restore the local Readline prompt display state saved by the most +recent call to rl_save_prompt. +If you called rl_save_prompt to save the prompt before a call +to rl_message, you should call this function before the +corresponding call to rl_clear_message. +

+ +
+
Function: int rl_expand_prompt (char *prompt)
+

Expand any special character sequences in prompt and set up the +local Readline prompt redisplay variables. +This function is called by readline(). +It may also be called to +expand the primary prompt if the application uses the +rl_on_new_line_with_prompt() function or +rl_already_prompted variable. +It returns the number of visible characters on the last line of the +(possibly multi-line) prompt. +Applications may indicate that the prompt contains characters that take +up no physical screen space when displayed by bracketing a sequence of +such characters with the special markers RL_PROMPT_START_IGNORE +and RL_PROMPT_END_IGNORE (declared in readline.h as +‘\001’ and ‘\002’, respectively). +This may be used to embed terminal-specific escape sequences in prompts. +If you don’t use these indicators, redisplay will likely produce screen +contents that don’t match the line buffer. +

+ +
+
Function: int rl_set_prompt (const char *prompt)
+

Make Readline use prompt for subsequent redisplay. +This calls rl_expand_prompt() to expand the prompt +and sets rl_prompt to the result. +

+ +
+
+
+ +

2.4.7 Modifying Text

+ +
+
Function: int rl_insert_text (const char *text)
+

Insert text into the line at the current cursor position. +Returns the number of characters inserted. +

+ +
+
Function: int rl_delete_text (int start, int end)
+

Delete the text between start and end in the current line. +Returns the number of characters deleted. +

+ +
+
Function: char * rl_copy_text (int start, int end)
+

Return a copy of the text between start and end in +the current line. +

+ +
+
Function: int rl_kill_text (int start, int end)
+

Copy the text between start and end in the current line +to the kill ring, appending or prepending to the last kill if the +last command was a kill command. +This deletes the text from the line. +If start is less than end, the text is appended, +otherwise it is prepended. +If the last command was not a kill, this uses a new kill ring slot. +

+ +
+
Function: void rl_replace_line (const char *text, int clear_undo)
+

Replace the contents of rl_line_buffer with text. +This preserves the point and mark, if possible. +If clear_undo is non-zero, this clears the undo list associated +with the current line. +

+ +
+
Function: int rl_push_macro_input (char *macro)
+

Insert macro into the line, as if it had been invoked +by a key bound to a macro. +Not especially useful; use rl_insert_text() instead. +

+ +
+
+
+ +

2.4.8 Character Input

+ +
+
Function: int rl_read_key (void)
+

Return the next character available from Readline’s current input stream. +This handles input inserted into +the input stream via rl_pending_input (see Readline Variables) +and rl_stuff_char(), macros, and characters read from the keyboard. +While waiting for input, this function will call any function assigned to +the rl_event_hook variable. +

+ +
+
Function: int rl_getc (FILE *stream)
+

Return the next character available from stream, which is assumed to +be the keyboard. +

+ +
+
Function: int rl_stuff_char (int c)
+

Insert c into the Readline input stream. +It will be "read" before Readline attempts to read characters +from the terminal with rl_read_key(). +Applications can push back up to 512 characters. +rl_stuff_char returns 1 if the character was successfully inserted; +0 otherwise. +

+ +
+
Function: int rl_execute_next (int c)
+

Make c be the next command to be executed when rl_read_key() +is called. +This sets rl_pending_input. +

+ +
+
Function: int rl_clear_pending_input (void)
+

Unset rl_pending_input, effectively negating the effect of any +previous call to rl_execute_next(). +This works only if the pending input has not already been read +with rl_read_key(). +

+ +
+
Function: int rl_set_keyboard_input_timeout (int u)
+

While waiting for keyboard input in rl_read_key(), Readline will +wait for u microseconds for input before calling any function +assigned to rl_event_hook. +u must be greater than or equal +to zero (a zero-length timeout is equivalent to a poll). +The default waiting period is one-tenth of a second. +Returns the old timeout value. +

+ +
+
Function: int rl_set_timeout (unsigned int secs, unsigned int usecs)
+

Set a timeout for subsequent calls to readline(). +If Readline does not read a complete line, or the number of characters +specified by rl_num_chars_to_read, +before the duration specified by secs (in seconds) +and usecs (microseconds), it returns and sets +RL_STATE_TIMEOUT in rl_readline_state. +Passing 0 for secs and usecs cancels any previously set +timeout; the convenience macro rl_clear_timeout() is shorthand +for this. +Returns 0 if the timeout is set successfully. +

+ +
+
Function: int rl_timeout_remaining (unsigned int *secs, unsigned int *usecs)
+

Return the number of seconds and microseconds remaining in the current +timeout duration in *secs and *usecs, respectively. +Both *secs and *usecs must be non-NULL to return any values. +The return value is -1 on error or when there is no timeout set, +0 when the timeout has expired (leaving *secs and *usecs +unchanged), +and 1 if the timeout has not expired. +If either of secs and usecs is NULL, +the return value indicates whether the timeout has expired. +

+ +
+
+
+ +

2.4.9 Terminal Management

+ +
+
Function: void rl_prep_terminal (int meta_flag)
+

Modify the terminal settings for Readline’s use, so readline() +can read a single character at a time from the keyboard +and perform redisplay. +The meta_flag argument should be non-zero if Readline should +read eight-bit input. +

+ +
+
Function: void rl_deprep_terminal (void)
+

Undo the effects of rl_prep_terminal(), leaving the terminal in +the state in which it was before the most recent call to +rl_prep_terminal(). +

+ +
+
Function: void rl_tty_set_default_bindings (Keymap kmap)
+

Read the operating system’s terminal editing characters (as would be +displayed by stty) to their Readline equivalents. +The bindings are performed in kmap. +

+ +
+
Function: void rl_tty_unset_default_bindings (Keymap kmap)
+

Reset the bindings manipulated by rl_tty_set_default_bindings so +that the terminal editing characters are bound to rl_insert. +The bindings are performed in kmap. +

+ +
+
Function: int rl_tty_set_echoing (int value)
+

Set Readline’s idea of whether or not it is +echoing output to its output stream (rl_outstream). +If value is 0, +Readline does not display output to rl_outstream; any other +value enables output. +The initial value is set when Readline initializes the terminal settings. +This function returns the previous value. +

+ +
+
Function: int rl_reset_terminal (const char *terminal_name)
+

Reinitialize Readline’s idea of the terminal settings using +terminal_name as the terminal type (e.g., xterm). +If terminal_name is NULL, Readline uses the value of the +TERM environment variable. +

+ +
+
+
+ +

2.4.10 Utility Functions

+ +
+
Function: int rl_save_state (struct readline_state *sp)
+

Save a snapshot of Readline’s internal state to sp. +The contents of the readline_state structure are +documented in readline.h. +The caller is responsible for allocating the structure. +

+ +
+
Function: int rl_restore_state (struct readline_state *sp)
+

Restore Readline’s internal state to that stored in sp, +which must have been saved by a call to rl_save_state. +The contents of the readline_state structure are documented in +readline.h. +The caller is responsible for freeing the structure. +

+ +
+
Function: void rl_free (void *mem)
+

Deallocate the memory pointed to by mem. +mem must have been allocated by malloc. +

+ +
+
Function: void rl_extend_line_buffer (int len)
+

Ensure that rl_line_buffer has enough space to hold len +characters, reallocating it if necessary. +

+ +
+
Function: int rl_initialize (void)
+

Initialize or re-initialize Readline’s internal state. +It’s not strictly necessary to call this; +readline() calls it before reading any input. +

+ +
+
Function: int rl_ding (void)
+

Ring the terminal bell, obeying the setting of bell-style. +

+ +
+
Function: int rl_alphabetic (int c)
+

Return 1 if c is an alphabetic character. +

+ +
+
Function: void rl_display_match_list (char **matches, int len, int max)
+

A convenience function for displaying a list of strings in +columnar format on Readline’s output stream. +matches is the list of strings, in argv format, +such as a list of completion matches. +len is the number of strings in matches, and max +is the length of the longest string in matches. +This function uses the setting of print-completions-horizontally +to select how the matches are displayed (see Readline Init File Syntax). +When displaying completions, this function sets the number of columns used +for display to the value of completion-display-width, the value of +the environment variable COLUMNS, or the screen width, in that order. +

+ +

The following are implemented as macros, defined in chardefs.h. +Applications should refrain from using them. +

+
+
Function: int _rl_uppercase_p (int c)
+

Return 1 if c is an uppercase alphabetic character. +

+ +
+
Function: int _rl_lowercase_p (int c)
+

Return 1 if c is a lowercase alphabetic character. +

+ +
+
Function: int _rl_digit_p (int c)
+

Return 1 if c is a numeric character. +

+ +
+
Function: int _rl_to_upper (int c)
+

If c is a lowercase alphabetic character, return the corresponding +uppercase character. +

+ +
+
Function: int _rl_to_lower (int c)
+

If c is an uppercase alphabetic character, return the corresponding +lowercase character. +

+ +
+
Function: int _rl_digit_value (int c)
+

If c is a number, return the value it represents. +

+ +
+
+
+ +

2.4.11 Miscellaneous Functions

+ +
+
Function: int rl_macro_bind (const char *keyseq, const char *macro, Keymap map)
+

Bind the key sequence keyseq to invoke the macro macro. +The binding is performed in map. +When keyseq is invoked, the macro will be inserted into the line. +This function is deprecated; use rl_generic_bind instead. +

+ +
+
Function: void rl_macro_dumper (int readable)
+

Print the key sequences bound to macros and their values, using +the current keymap, to rl_outstream. +If the application has assigned a value to rl_macro_display_hook, +rl_macro_dumper calls it instead of printing anything. +If readable is greater than zero, the list is formatted in such a way +that it can be made part of an inputrc file and re-read. +

+ +
+
Function: int rl_variable_bind (const char *variable, const char *value)
+

Make the Readline variable variable have value. +This behaves as if the Readline command +‘set variable value’ had been executed in an inputrc +file (see Readline Init File Syntax) +or by rl_parse_and_bind. +

+ +
+
Function: char * rl_variable_value (const char *variable)
+

Return a string representing the value of the Readline variable variable. +For boolean variables, this string is either ‘on’ or ‘off’. +

+ +
+
Function: void rl_variable_dumper (int readable)
+

Print the Readline variable names and their current values +to rl_outstream. +If readable is non-zero, the list is formatted in such a way +that it can be made part of an inputrc file and re-read. +

+ +
+ +

Set the time interval (in microseconds) that Readline waits when showing +a balancing character when blink-matching-paren has been enabled. +

+ +
+
Function: char * rl_get_termcap (const char *cap)
+

Retrieve the string value of the termcap capability cap. +Readline fetches the termcap entry for the current terminal name and +uses those capabilities to move around the screen line and perform other +terminal-specific operations, like erasing a line. +Readline does not fetch or use all of a terminal’s capabilities, +and this function will return +values for only those capabilities Readline fetches. +

+ +
+
Function: void rl_reparse_colors (void)
+

Read or re-read color definitions from LS_COLORS. +

+ +
+
Function: void rl_clear_history (void)
+

Clear the history list by deleting all of the entries, in the same manner +as the History library’s clear_history() function. +This differs from clear_history because it frees private data +Readline saves in the history list. +

+ +
+
Function: void rl_activate_mark (void)
+

Enable an active region. +When this is enabled, the text between point and mark (the region) is +displayed using the color specified by the value of the +active-region-start-color variable (a face). +The default face is the terminal’s standout mode. +This is called by various Readline functions that set the mark and insert +text, and is available for applications to call. +

+ +
+
Function: void rl_deactivate_mark (void)
+

Turn off the active region. +

+ +
+
Function: void rl_keep_mark_active (void)
+

Indicate that the mark should remain active when the current Readline +function completes and after redisplay occurs. +In most cases, the mark remains active for only the duration of a single +bindable Readline function. +

+ +
+
Function: int rl_mark_active_p (void)
+

Return a non-zero value if the mark is currently active; zero otherwise. +

+ +
+
+
+ +

2.4.12 Alternate Interface

+ +

For applications that need more granular control than +plain readline() provides, there is +an alternate interface. +Some applications need to interleave keyboard I/O with file, device, +or window system I/O, typically by using a main loop to select() +on various file descriptors. +To accommodate this use case, Readline can +also be invoked as a ‘callback’ function from an event loop. +There are functions available to make this easy. +

+
+
Function: void rl_callback_handler_install (const char *prompt, rl_vcpfunc_t *line_handler)
+

Set up the terminal for Readline I/O and display the initial +expanded value of prompt. +Save the value of line_handler to +use as a handler function to call when a complete line of input has been +entered. +The handler function receives the text of the line as an argument. +As with readline(), the handler function should free the +line when it it finished with it. +

+ +
+
Function: void rl_callback_read_char (void)
+

Whenever an application determines that keyboard input is available, it +should call rl_callback_read_char(), which will read the next +character from the current input source. +If that character completes the line, rl_callback_read_char will +invoke the line_handler function installed by +rl_callback_handler_install to process the line. +Before calling the line_handler function, Readline resets +the terminal settings to the values they had before calling +rl_callback_handler_install. +If the line_handler function returns, +and the line handler remains installed, +Readline modifies the terminal settings for its use again. +EOF is indicated by calling line_handler with a +NULL line. +

+ +
+
Function: void rl_callback_sigcleanup (void)
+

Clean up any internal state the callback interface uses to maintain state +between calls to rl_callback_read_char (e.g., the state of any active +incremental searches). +This is intended to be used by applications that +wish to perform their own signal handling; +Readline’s internal signal handler calls this when appropriate. +

+ +
+
Function: void rl_callback_handler_remove (void)
+

Restore the terminal to its initial state and remove the line handler. +You may call this function from within a callback as well as independently. +If the line_handler installed by rl_callback_handler_install +does not exit the program, your program should call +either this function or the function referred +to by the value of rl_deprep_term_function +before the program exits to reset the terminal settings. +

+ +
+
+
+ +

2.4.13 A Readline Example

+ +

Here is a function which changes lowercase characters to their uppercase +equivalents, and uppercase characters to lowercase. +If this function was bound to ‘M-c’, then typing ‘M-c’ would +change the case of the character under point. +Typing ‘M-1 0 M-c’ would change the case +of the following 10 characters, leaving the cursor on +the last character changed. +

+
+
/* Invert the case of the COUNT following characters. */
+int
+invert_case_line (count, key)
+     int count, key;
+{
+  int start, end, i;
+
+  start = rl_point;
+
+  if (rl_point >= rl_end)
+    return (0);
+
+  /* Find the end of the range to modify. */
+  end = start + count;
+
+  /* Force it to be within range. */
+  if (end > rl_end)
+    end = rl_end;
+  else if (end < 0)
+    end = 0;
+
+  if (start == end)
+    return (0);
+
+  /* For positive arguments, put point after the last changed character. For
+     negative arguments, put point before the last changed character. */
+  rl_point = end;
+
+  /* Swap start and end if we are moving backwards */
+  if (start > end)
+    {
+      int temp = start;
+      start = end;
+      end = temp;
+    }
+
+  /* Tell readline that we are modifying the line,
+     so it will save the undo information. */
+  rl_modifying (start, end);
+
+  for (i = start; i != end; i++)
+    {
+      if (_rl_uppercase_p (rl_line_buffer[i]))
+        rl_line_buffer[i] = _rl_to_lower (rl_line_buffer[i]);
+      else if (_rl_lowercase_p (rl_line_buffer[i]))
+        rl_line_buffer[i] = _rl_to_upper (rl_line_buffer[i]);
+    }
+
+  return (0);
+}
+
+ +
+
+
+ +

2.4.14 Alternate Interface Example

+ +

Here is a complete program that illustrates Readline’s alternate interface. +It reads lines from the terminal and displays them, providing the +standard history and TAB completion functions. +It understands the EOF character or "exit" to exit the program. +

+
+
/* Standard include files. stdio.h is required. */
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
+/* Used for select(2) */
+#include <sys/types.h>
+#include <sys/select.h>
+
+#include <signal.h>
+
+#include <errno.h>
+#include <stdio.h>
+
+#include <locale.h>
+
+/* Standard readline include files. */
+#include <readline/readline.h>
+#include <readline/history.h>
+
+#if !defined (errno)
+extern int errno;
+#endif
+
+static void cb_linehandler (char *);
+static void sighandler (int);
+
+int running;
+int sigwinch_received;
+const char *prompt = "rltest$ ";
+
+/* Handle SIGWINCH and window size changes when readline is not active and
+   reading a character. */
+static void
+sighandler (int sig)
+{
+  sigwinch_received = 1;
+}
+
+/* Callback function called for each line when accept-line executed, EOF
+   seen, or EOF character read.  This sets a flag and returns; it could
+   also call exit(3). */
+static void
+cb_linehandler (char *line)
+{
+  /* Can use ^D (stty eof) or `exit' to exit. */
+  if (line == NULL || strcmp (line, "exit") == 0)
+    {
+      if (line == 0)
+        printf ("\n");
+      printf ("exit\n");
+      /* This function needs to be called to reset the terminal settings,
+         and calling it from the line handler keeps one extra prompt from
+         being displayed. */
+      rl_callback_handler_remove ();
+
+      running = 0;
+    }
+  else
+    {
+      if (*line)
+        add_history (line);
+      printf ("input line: %s\n", line);
+      free (line);
+    }
+}
+
+int
+main (int c, char **v)
+{
+  fd_set fds;
+  int r;
+
+  /* Set the default locale values according to environment variables. */
+  setlocale (LC_ALL, "");
+
+  /* Handle window size changes when readline is not active and reading
+     characters. */
+  signal (SIGWINCH, sighandler);
+
+  /* Install the line handler. */
+  rl_callback_handler_install (prompt, cb_linehandler);
+
+  /* Enter a simple event loop.  This waits until something is available
+     to read on readline's input stream (defaults to standard input) and
+     calls the builtin character read callback to read it.  It does not
+     have to modify the user's terminal settings. */
+  running = 1;
+  while (running)
+    {
+      FD_ZERO (&fds);
+      FD_SET (fileno (rl_instream), &fds);
+
+      r = select (FD_SETSIZE, &fds, NULL, NULL, NULL);
+      if (r < 0 && errno != EINTR)
+        {
+          perror ("rltest: select");
+          rl_callback_handler_remove ();
+          break;
+        }
+      if (sigwinch_received)
+	{
+	  rl_resize_terminal ();
+	  sigwinch_received = 0;
+	}
+      if (r < 0)
+	continue;     
+
+      if (FD_ISSET (fileno (rl_instream), &fds))
+        rl_callback_read_char ();
+    }
+
+  printf ("rltest: Event loop has exited\n");
+  return 0;
+}
+
+ +
+
+
+
+ +

2.5 Readline Signal Handling

+ +

Signals are asynchronous events sent to a process by the Unix kernel, +sometimes on behalf of another process. +They are intended to indicate exceptional events, +like a user pressing the terminal’s interrupt key, +or a network connection being broken. +There is a class of signals that can +be sent to the process currently reading input from the keyboard. +Since Readline changes the terminal attributes when it is called, it needs +to perform special processing when such a signal is received in order to +restore the terminal to a sane state, or provide applications using +Readline with functions to do so manually. +

+

Readline contains an internal signal handler that is installed for a +number of signals (SIGINT, SIGQUIT, SIGTERM, +SIGHUP, +SIGALRM, SIGTSTP, SIGTTIN, and SIGTTOU). +When Readline receives one of these signals, the signal handler +will reset the terminal attributes to those that were in effect before +readline() was called, reset the signal handling to what it was +before readline() was called, and resend the signal to the calling +application. +If and when the calling application’s signal handler returns, Readline +will reinitialize the terminal and continue to accept input. +When a SIGINT is received, the Readline signal handler performs +some additional work, which will cause any partially-entered line to be +aborted (see the description of rl_free_line_state() below). +

+

There is an additional Readline signal handler, for SIGWINCH, which +the kernel sends to a process whenever the terminal’s size changes (for +example, if a user resizes an xterm). +The Readline SIGWINCH handler updates +Readline’s internal screen size information, and then calls any +SIGWINCH signal handler the calling application has installed. +Readline calls the application’s SIGWINCH signal handler without +resetting the terminal to its original state. +If the application’s signal +handler does more than update its idea of the terminal size and return +(for example, a longjmp back to a main processing loop), +it must call rl_cleanup_after_signal() (described below), +to restore the terminal state. +

+

When an application is using the callback interface +(see Alternate Interface), Readline installs signal handlers only for +the duration of the call to rl_callback_read_char. +Applications using the callback interface should be prepared +to clean up Readline’s state if they wish to handle the signal +before the line handler completes and restores the terminal state. +

+

If an application using the callback interface wishes to have Readline +install its signal handlers at the time the application calls +rl_callback_handler_install and remove them only when a complete +line of input has been read, it should set the +rl_persistent_signal_handlers variable to a non-zero value. +This allows an application to defer all of the handling of the signals +Readline catches to Readline. +Applications should use this variable with care; it can result in Readline +catching signals and not acting on them (or allowing the application to react +to them) until the application calls rl_callback_read_char. +This can result in an application becoming less responsive to keyboard +signals like SIGINT. +If an application does not want or need to perform any signal handling, or +does not need to do any processing +between calls to rl_callback_read_char, +setting this variable may be appropriate. +

+

Readline provides two variables that allow application writers to +control whether or not it will catch certain signals and act on them +when they are received. +It is important that applications change the +values of these variables only when calling readline(), +not in a signal handler, so Readline’s internal signal state +is not corrupted. +

+
+
Variable: int rl_catch_signals
+

If this variable is non-zero, Readline will install signal handlers for +SIGINT, SIGQUIT, SIGTERM, SIGHUP, SIGALRM, +SIGTSTP, SIGTTIN, and SIGTTOU. +

+

The default value of rl_catch_signals is 1. +

+ +
+
Variable: int rl_catch_sigwinch
+

If this variable is set to a non-zero value, +Readline will install a signal handler for SIGWINCH. +

+

The default value of rl_catch_sigwinch is 1. +

+ +
+
Variable: int rl_persistent_signal_handlers
+

If an application using the callback interface wishes Readline’s signal +handlers to be installed and active during the set of calls to +rl_callback_read_char that constitutes an entire single line, +it should set this variable to a non-zero value. +

+

The default value of rl_persistent_signal_handlers is 0. +

+ +
+
Variable: int rl_change_environment
+

If this variable is set to a non-zero value, +and Readline is handling SIGWINCH, Readline will modify the +LINES and COLUMNS environment variables upon receipt of a +SIGWINCH. +

+

The default value of rl_change_environment is 1. +

+ +

If an application does not wish to have Readline catch any signals, or +to handle signals other than those Readline catches (SIGHUP, +for example), +Readline provides convenience functions to do the necessary terminal +and internal state cleanup upon receipt of a signal. +

+
+
Function: int rl_pending_signal (void)
+

Return the signal number of the most recent signal Readline received but +has not yet handled, or 0 if there is no pending signal. +

+ +
+
Function: void rl_cleanup_after_signal (void)
+

This function will reset the state of the terminal to what it was before +readline() was called, and remove the Readline signal handlers for +all signals, depending on the values of rl_catch_signals and +rl_catch_sigwinch. +

+ +
+
Function: void rl_free_line_state (void)
+

This will free any partial state associated with the current input line +(undo information, any partial history entry, any partially-entered +keyboard macro, and any partially-entered numeric argument). +This should be called before rl_cleanup_after_signal(). +The Readline signal handler for SIGINT calls this to abort +the current input line. +

+ +
+
Function: void rl_reset_after_signal (void)
+

This will reinitialize the terminal and reinstall any Readline signal +handlers, depending on the values of rl_catch_signals and +rl_catch_sigwinch. +

+ +

If an application wants to force Readline to handle any signals that +have arrived while it has been executing, rl_check_signals() +will call Readline’s internal signal handler if there are any pending +signals. +This is primarily intended for those applications that use +a custom rl_getc_function (see Readline Variables) and wish +to handle signals received while waiting for input. +

+
+
Function: void rl_check_signals (void)
+

If there are any pending signals, call Readline’s internal signal +handling functions to process them. +rl_pending_signal() can be used independently +to determine whether or not there are any pending signals. +

+ +

If an application does not wish Readline to catch SIGWINCH, +it may call rl_resize_terminal() or rl_set_screen_size() +to force Readline to update its idea of the terminal size when it receives +a SIGWINCH. +

+
+
Function: void rl_echo_signal_char (int sig)
+

If an application wishes to install its own signal handlers, but still +have Readline display characters that generate signals, calling this +function with sig set to SIGINT, SIGQUIT, or +SIGTSTP will display the character generating that signal. +

+ +
+
Function: void rl_resize_terminal (void)
+

Update Readline’s internal screen size by reading values from the kernel. +

+ +
+
Function: void rl_set_screen_size (int rows, int cols)
+

Set Readline’s idea of the terminal size to rows rows and +cols columns. +If either rows or columns is less than or equal to 0, +Readline doesn’t change that terminal dimension. +This is intended to tell Readline the physical dimensions of the terminal, +and is used internally to calculate the maximum number of characters that +may appear on a single line and on the screen. +

+ +

If an application does not want to install a SIGWINCH handler, but +is still interested in the screen dimensions, it may query Readline’s idea +of the screen size. +

+
+
Function: void rl_get_screen_size (int *rows, int *cols)
+

Return Readline’s idea of the terminal’s size in the +variables pointed to by the arguments. +

+ +
+
Function: void rl_reset_screen_size (void)
+

Cause Readline to reobtain the screen size and recalculate its dimensions. +

+ +

The following functions install and remove Readline’s signal handlers. +

+
+
Function: int rl_set_signals (void)
+

Install Readline’s signal handler for SIGINT, SIGQUIT, +SIGTERM, SIGHUP, SIGALRM, SIGTSTP, SIGTTIN, +SIGTTOU, and SIGWINCH, depending on the values of +rl_catch_signals and rl_catch_sigwinch. +

+ +
+
Function: int rl_clear_signals (void)
+

Remove all of the Readline signal handlers installed by +rl_set_signals(). +

+ +
+
+
+ +

2.6 Custom Completers

+ + +

Typically, a program that reads commands from the user has a way of +disambiguating commands and data. +If your program is one of these, then +it can provide completion for commands, data, or both. +The following sections describe how your program and Readline +cooperate to provide this service. +

+ + +
+
+ +

2.6.1 How Completing Works

+ +

In order to complete some text, the full list of possible completions +must be available. +That is, it is not possible to accurately +expand a partial word without knowing all of the possible words +which make sense in that context. +The Readline library provides +the user interface to completion, and two of the most common +completion functions: filename and username. +For completing other types +of text, you must write your own completion function. +This section +describes exactly what such functions must do, and provides an example. +

+

There are three major functions used to perform completion: +

+
    +
  1. The user-interface function rl_complete(). +This function is called with the same arguments as other bindable +Readline functions: count and invoking_key. +It isolates the word to be completed and calls +rl_completion_matches() to generate a list of possible completions. +It then either lists the possible completions, inserts the possible +completions, or actually performs the +completion, depending on which behavior is desired. + +
  2. The internal function rl_completion_matches() uses an +application-supplied generator function to generate the list of +possible matches, and then returns the array of these matches. +The caller should place the address of its generator function in +rl_completion_entry_function. + +
  3. The generator function is called repeatedly from +rl_completion_matches(), returning a string each time. +The arguments to the generator function are text and state. +text is the partial word to be completed. +state is zero the first time the function is called, +allowing the generator to perform any necessary initialization, +and a positive integer for each subsequent call. +The generator function returns +(char *)NULL to inform rl_completion_matches() that there are +no more possibilities left. +Usually the generator function computes the +list of possible completions when state is zero, and returns them +one at a time on subsequent calls. +Each string the generator function +returns as a match must be allocated with malloc(); Readline +frees the strings when it has finished with them. +Such a generator function is referred to as an +application-specific completion function. + +
+ +
+
Function: int rl_complete (int ignore, int invoking_key)
+

Complete the word at or before point. +You have supplied the function that does the initial simple matching +selection algorithm (see rl_completion_matches()). +The default is to do filename completion. +

+ +
+
Variable: rl_compentry_func_t * rl_completion_entry_function
+

This is a pointer to the generator function for +rl_completion_matches(). +If the value of rl_completion_entry_function is +NULL then Readline uses the default filename generator +function, rl_filename_completion_function(). +An application-specific completion function is a function whose +address is assigned to rl_completion_entry_function and whose +return values are used to generate possible completions. +

+ +
+
+
+ +

2.6.2 Completion Functions

+ +

Here is the complete list of callable completion functions present in +Readline. +

+
+
Function: int rl_complete_internal (int what_to_do)
+

Complete the word at or before point. +what_to_do says what to do with the completion. +A value of ‘?’ means list the possible completions. +‘TAB’ means do standard completion. +‘*’ means insert all of the possible completions. +‘!’ means to display all of the possible completions, +if there is more than one, as well as performing partial completion. +‘@’ is similar to ‘!’, but does not list possible completions +if the possible completions share a common prefix. +

+ +
+
Function: int rl_complete (int ignore, int invoking_key)
+

Complete the word at or before point. +You have supplied the function that does the initial simple +matching selection algorithm (see rl_completion_matches() and +rl_completion_entry_function). +The default is to do filename completion. +This calls rl_complete_internal() with an +argument depending on invoking_key. +

+ +
+
Function: int rl_possible_completions (int count, int invoking_key)
+

List the possible completions. +See description of rl_complete(). +This calls rl_complete_internal() with an argument of ‘?’. +

+ +
+
Function: int rl_insert_completions (int count, int invoking_key)
+

Insert the list of possible completions into the line, deleting the +partially-completed word. +See description of rl_complete(). +This calls rl_complete_internal() with an argument of ‘*’. +

+ +
+
Function: int rl_completion_mode (rl_command_func_t *cfunc)
+

Returns the appropriate value to pass to rl_complete_internal() +depending on whether cfunc was called twice in succession and +the values of the show-all-if-ambiguous and +show-all-if-unmodified variables. +Application-specific completion functions may use this function to present +the same interface as rl_complete(). +

+ +
+
Function: char ** rl_completion_matches (const char *text, rl_compentry_func_t *entry_func)
+

Returns an array of strings which is a list of completions for text. +If there are no completions, returns NULL. +The first entry in the returned array is the substitution for text. +The remaining entries are the possible completions. +The array is terminated with a NULL pointer. +

+

entry_func is a function of two args, and returns a char *. +The first argument is text. +The second is a state argument; +it is zero on the first call, and non-zero on subsequent calls. +entry_func returns a NULL pointer to the caller +when there are no more matches. +

+ +
+
Function: char * rl_filename_completion_function (const char *text, int state)
+

A generator function for filename completion in the general case. +text is a partial filename. +The Bash source is a useful reference for writing application-specific +completion functions (the Bash completion functions call this and other +Readline functions). +

+ +
+
Function: char * rl_username_completion_function (const char *text, int state)
+

A completion generator for usernames. +text contains a partial username preceded by a +random character (usually ‘~’). +As with all completion generators, +state is zero on the first call and non-zero for subsequent calls. +

+ +
+
+
+ +

2.6.3 Completion Variables

+ +
+
Variable: rl_compentry_func_t * rl_completion_entry_function
+

A pointer to the generator function for rl_completion_matches(). +NULL means to use rl_filename_completion_function(), +the default filename completer. +

+ +
+
Variable: rl_completion_func_t * rl_attempted_completion_function
+

A pointer to an alternative function to create matches. +The function is called with text, start, and end. +start and end are indices in rl_line_buffer defining +the boundaries of text, which is a character string. +If this function exists and returns NULL, or if this variable is +set to NULL, then rl_complete() will call the value of +rl_completion_entry_function to generate matches, otherwise +completion will use the array of strings this function returns. +If this function sets the rl_attempted_completion_over +variable to a non-zero value, Readline will not perform its default +completion even if this function returns no matches. +

+ +
+
Variable: rl_quote_func_t * rl_filename_quoting_function
+

A pointer to a function that will quote a filename in an +application-specific fashion. +Readline calls this function during filename completion +if one of the characters in rl_filename_quote_characters +appears in a completed filename. +The function is called with +text, match_type, and quote_pointer. +The text is the filename to be quoted. +The match_type is either SINGLE_MATCH, +if there is only one completion match, or MULT_MATCH. +Some functions use this to decide whether or not to +insert a closing quote character. +The quote_pointer is a pointer +to any opening quote character the user typed. +Some functions choose to reset this character if they decide to quote +the filename in a different style. +It’s preferable to preserve the user’s quoting as much as possible – +it’s less disruptive. +

+ +
+
Variable: rl_dequote_func_t * rl_filename_dequoting_function
+

A pointer to a function that will remove application-specific quoting +characters from a filename before attempting completion, +so those characters do not interfere with matching the text against +names in the filesystem. +It is called with text, the text of the word +to be dequoted, and quote_char, which is the quoting character +that delimits the filename (usually ‘'’ or ‘"’). +If quote_char is zero, the filename was not in a quoted string. +

+ +
+
Variable: rl_linebuf_func_t * rl_char_is_quoted_p
+

A pointer to a function to call that determines whether or not a specific +character in the line buffer is quoted, according to whatever quoting +mechanism the application uses. +The function is called with two arguments: +text, the text of the line, +and index, the index of the character in the line. +It is used to decide whether a character found in +rl_completer_word_break_characters should be +used to break words for the completer. +

+ +
+
Variable: rl_compignore_func_t * rl_ignore_some_completions_function
+

Readline calls this function, if defined, when filename +completion is done, after all the matching names have been generated. +It is passed a NULL terminated array of matches. +The first element (matches[0]) is the maximal substring +common to all matches. +This function can re-arrange the list of matches as required, but +must free each element it deletes from the array. +

+ +
+
Variable: rl_icppfunc_t * rl_directory_completion_hook
+

This function, if defined, is allowed to modify the directory portion +of filenames during completion. +It could be used to expand symbolic links or shell variables in pathnames. +It is called with the address of a string (the current directory name) as an +argument, and may modify that string. +If the function replaces the string with a new string, it +should free the old value. +Any modified directory name should have a trailing slash. +The modified value will be used as part of the completion, replacing +the directory portion of the pathname the user typed. +At the least, even if no other expansion is performed, this function should +remove any quote characters from the directory name, because its result will +be passed directly to opendir(). +

+

The directory completion hook returns an integer that should be non-zero if +the function modifies its directory argument. +The function should not modify the directory argument if it returns 0. +

+ +
+
Variable: rl_icppfunc_t * rl_directory_rewrite_hook;
+

If non-zero, this is the address of a function to call when completing +a directory name. +This function takes the address of the directory name +to be modified as an argument. +Unlike rl_directory_completion_hook, +it only modifies the directory name used in opendir(), +not what Readline displays when it prints or inserts +the possible completions. +Readline calls this before rl_directory_completion_hook. +At the least, even if no other expansion is performed, this function should +remove any quote characters from the directory name, because its result will +be passed directly to opendir(). +

+

The directory rewrite hook returns an integer that should be non-zero if +the function modifies its directory argument. +The function should not modify the directory argument if it returns 0. +

+ +
+
Variable: rl_icppfunc_t * rl_filename_stat_hook
+

If non-zero, this is the address of a function for the completer to +call before deciding which character to append to a completed name. +This function modifies its filename name argument, and Readline passes +the modified value to stat() +to determine the file’s type and characteristics. +This function does not need to remove quote characters from the filename. +

+

The stat hook returns an integer that should be non-zero if +the function modifies its directory argument. +The function should not modify the directory argument if it returns 0. +

+ +
+
Variable: rl_dequote_func_t * rl_filename_rewrite_hook
+

If non-zero, this is the address of a function +for Readline to call when reading +directory entries from the filesystem for completion and comparing +them to the filename portion of the partial word being completed. +It modifies the filesystem entries, +as opposed to rl_completion_rewrite_hook, +which modifies the word being completed. +The function takes two arguments: +fname, the filename to be converted, +and fnlen, its length in bytes. +It must either return its first argument (if no conversion takes place) +or the converted filename in newly-allocated memory. +The function should perform any necessary application or system-specific +conversion on the filename, such as converting between character sets +or converting from a filesystem format to a character input format. +Readline compares the converted form against the word to be completed, +and, if it matches, adds it to the list of matches. +Readline will free the allocated string. +

+ +
+
Variable: rl_dequote_func_t * rl_completion_rewrite_hook
+

If non-zero, this is the address of a function +for Readline to call before +comparing the filename portion of a word to be completed with directory +entries from the filesystem. +It modifies the word being completed, +as opposed to rl_filename_rewrite_hook, +which modifies filesystem entries. +The function takes two arguments: +fname, the word to be converted, +after any rl_filename_dequoting_function has been applied, +and fnlen, its length in bytes. +It must either return its first argument (if no conversion takes place) +or the converted filename in newly-allocated memory. +The function should perform any necessary application or system-specific +conversion on the filename, such as converting between character sets or +converting from a character input format to some other format. +Readline compares the converted form against directory entries, after +their potential modification by rl_filename_rewrite_hook, +and adds any matches to the list of matches. +Readline will free the allocated string. +

+ +
+
Variable: rl_compdisp_func_t * rl_completion_display_matches_hook
+

If non-zero, then this is the address of a function to call when +completing a word would normally display the list of possible matches. +Readline calls this function instead of displaying the list itself. +It takes three arguments: +(char **matches, int num_matches, int max_length) +where matches is the array of matching strings, +num_matches is the number of strings in that array, and +max_length is the length of the longest string in that array. +Readline provides a convenience function, rl_display_match_list, +that takes care of doing the display to Readline’s output stream. +You may call that function from this hook. +

+ +
+
Variable: const char * rl_basic_word_break_characters
+

The basic list of characters that signal a break between words for the +completer routine. +The default value of this variable is the characters +which break words for completion in Bash: +" \t\n\"\\'`@$><=;|&{(". +

+ +
+
Variable: const char * rl_basic_quote_characters
+

A list of quote characters which can cause a word break. +The default value includes single and double quotes. +

+ +
+
Variable: const char * rl_completer_word_break_characters
+

The list of characters that signal a break between words for +rl_complete_internal(). +These characters determine how Readline decides what to complete. +The default list is the value of +rl_basic_word_break_characters. +

+ +
+
Variable: rl_cpvfunc_t * rl_completion_word_break_hook
+

If non-zero, this is the address of a function to call when Readline is +deciding where to separate words for word completion. +It should return a character string like +rl_completer_word_break_characters to be +used to perform the current completion. +The function may choose to set +rl_completer_word_break_characters itself. +If the function returns NULL, Readline uses +rl_completer_word_break_characters. +

+ +
+
Variable: const char * rl_completer_quote_characters
+

A list of characters which can be used to quote a substring of the line. +Completion occurs on the entire substring, and within the substring, +rl_completer_word_break_characters are treated as any other character, +unless they also appear within this list. +

+ +
+
Variable: const char * rl_filename_quote_characters
+

A list of characters that cause Readline to quote a filename +when they appear in a completed filename. +The default is the null string. +

+ +
+
Variable: const char * rl_special_prefixes
+

The list of characters that are word break characters, but should be +left in text when it is passed to the completion function. +Programs can use this to help determine what kind of completing to do. +For instance, Bash sets this variable to "$@" so that it can complete +shell variables and hostnames. +

+ +
+
Variable: int rl_completion_query_items
+

This determines the maximum number of items +that possible-completions will display unconditionally. +If there are more possible completions than this, +Readline asks the user for confirmation before displaying them. +The default value is 100. +A negative value +indicates that Readline should never ask for confirmation. +

+ +
+
Variable: int rl_completion_append_character
+

When a single completion alternative matches at the end of the command +line, Readline appends this character to the inserted completion text. +The default is a space character (‘ ’). +Setting this to the null +character (‘\0’) prevents anything being appended automatically. +This can be changed in application-specific completion functions to +provide the “most sensible word separator character” according to +an application-specific command line syntax specification. +It is set to the default before calling any application-specific completion +function, and may only be changed within such a function. +

+ +
+
Variable: int rl_completion_suppress_append
+

If non-zero, Readline will not append the +rl_completion_append_character to +matches at the end of the command line, as described above. +It is set to 0 before calling any application-specific completion function, +and may only be changed within such a function. +

+ +
+
Variable: int rl_completion_suppress_quote
+

If non-zero, Readline does not append a matching quote character when +performing completion on a quoted string. +It is set to 0 before calling any application-specific completion function, +and may only be changed within such a function. +

+ +
+
Variable: int rl_completion_found_quote
+

When Readline is completing quoted text, it sets this variable +to a non-zero value if the word being completed contains or is delimited +by any quoting characters, including backslashes. +This is set before calling any application-specific completion function. +

+ +
+
Variable: int rl_completion_quote_character
+

When Readline is completing quoted text, as delimited by one of the +characters in rl_completer_quote_characters, it sets this variable +to the quoting character it found. +This is set before calling any application-specific completion function. +

+ +
+ +

If non-zero, Readline appends a slash to completed filenames that are +symbolic links to directory names, subject to the value of the +user-settable mark-directories variable. +This variable exists so that application-specific completion functions +can override the user’s global preference (set via the +mark-symlinked-directories Readline variable) if appropriate. +This variable is set to the user’s preference before calling any +application-specific completion function, +so unless that function modifies the value, +Readline will honor the user’s preferences. +

+ +
+
Variable: int rl_ignore_completion_duplicates
+

If non-zero, then Readline removes duplicates in the set of possible +completions. +The default is 1. +

+ +
+
Variable: int rl_filename_completion_desired
+

A non-zero value means that Readline should treat the results of the +matches as filenames. +This is always zero when completion is attempted, +and can only be changed +within an application-specific completion function. +If it is set to a +non-zero value by such a function, Readline +appends a slash to directory names +and attempts to quote completed filenames if they contain any +characters in rl_filename_quote_characters and +rl_filename_quoting_desired is set to a non-zero value. +

+ +
+
Variable: int rl_filename_quoting_desired
+

A non-zero value means that Readline should quote the results of the +matches using double quotes (or an application-specific quoting mechanism) +if the completed filename contains any characters in +rl_filename_quote_chars. +This is always non-zero when completion is attempted, +and can only be changed within an +application-specific completion function. +The quoting is performed via a call to the function pointed to +by rl_filename_quoting_function. +

+ +
+
Variable: int rl_full_quoting_desired
+

A non-zero value means that Readline should apply filename-style quoting, +including any application-specified quoting mechanism, +to all completion matches even if it is not otherwise treating the +matches as filenames. +This is always zero when completion is attempted, +and can only be changed within an +application-specific completion function. +The quoting is performed via a call to the function pointed to +by rl_filename_quoting_function. +

+ +
+
Variable: int rl_attempted_completion_over
+

If an application-specific completion function assigned to +rl_attempted_completion_function sets this variable to a non-zero +value, Readline will not perform its default filename completion even +if the application’s completion function returns no matches. +It should be set only by an application’s completion function. +

+ +
+
Variable: int rl_sort_completion_matches
+

If an application sets this variable to 0, Readline will not sort the +list of completions (which implies that it cannot remove any duplicate +completions). +The default value is 1, which means that Readline will +sort the completions and, depending on the value of +rl_ignore_completion_duplicates, will attempt to remove +duplicate matches. +

+ +
+
Variable: int rl_completion_type
+

Set to a character describing the type of completion Readline is currently +attempting; see the description of rl_complete_internal() +(see Completion Functions) for the list of characters. +This is set to the appropriate value before calling +any application-specific completion function, +so these functions can present +the same interface as rl_complete(). +

+ +
+
Variable: int rl_completion_invoking_key
+

Set to the final character in the key sequence that invoked one of the +completion functions that call rl_complete_internal(). +This is set to the appropriate value before calling +any application-specific completion function. +

+ +
+
Variable: int rl_inhibit_completion
+

If this variable is non-zero, Readline does not perform completion, +even if a key binding indicates it should. +The completion character +is inserted as if it were bound to self-insert. +

+ +
+
+
+ +

2.6.4 A Short Completion Example

+ +

Here is a small application demonstrating the use of the GNU Readline +library. +It is called fileman, and the source code resides in +examples/fileman.c. +This sample application provides +command name completion, line editing features, +and access to the history list. +

+
+
/* fileman.c -- A tiny application which demonstrates how to use the
+   GNU Readline library.  This application interactively allows users
+   to manipulate files and their modes. */
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include <sys/types.h>
+#ifdef HAVE_SYS_FILE_H
+#  include <sys/file.h>
+#endif
+#include <sys/stat.h>
+
+#ifdef HAVE_UNISTD_H
+#  include <unistd.h>
+#endif
+
+#include <fcntl.h>
+#include <stdio.h>
+#include <errno.h>
+#include <locale.h>
+
+#if defined (HAVE_STRING_H)
+#  include <string.h>
+#else /* !HAVE_STRING_H */
+#  include <strings.h>
+#endif /* !HAVE_STRING_H */
+
+#ifdef HAVE_STDLIB_H
+#  include <stdlib.h>
+#endif
+
+#include <time.h>
+
+#include <readline/readline.h>
+#include <readline/history.h>
+
+extern char *xmalloc PARAMS((size_t));
+
+/* The names of functions that actually do the manipulation. */
+int com_list PARAMS((char *));
+int com_view PARAMS((char *));
+int com_rename PARAMS((char *));
+int com_stat PARAMS((char *));
+int com_pwd PARAMS((char *));
+int com_delete PARAMS((char *));
+int com_help PARAMS((char *));
+int com_cd PARAMS((char *));
+int com_quit PARAMS((char *));
+
+/* A structure which contains information on the commands this program
+   can understand. */
+
+typedef struct {
+  char *name;			/* User printable name of the function. */
+  rl_icpfunc_t *func;		/* Function to call to do the job. */
+  char *doc;			/* Documentation for this function.  */
+} COMMAND;
+
+COMMAND commands[] = {
+  { "cd", com_cd, "Change to directory DIR" },
+  { "delete", com_delete, "Delete FILE" },
+  { "help", com_help, "Display this text" },
+  { "?", com_help, "Synonym for `help'" },
+  { "list", com_list, "List files in DIR" },
+  { "ls", com_list, "Synonym for `list'" },
+  { "pwd", com_pwd, "Print the current working directory" },
+  { "quit", com_quit, "Quit using Fileman" },
+  { "rename", com_rename, "Rename FILE to NEWNAME" },
+  { "stat", com_stat, "Print out statistics on FILE" },
+  { "view", com_view, "View the contents of FILE" },
+  { (char *)NULL, (rl_icpfunc_t *)NULL, (char *)NULL }
+};
+
+/* Forward declarations. */
+char *stripwhite (char *);
+COMMAND *find_command (char *);
+
+/* The name of this program, as taken from argv[0]. */
+char *progname;
+
+/* When non-zero, this global means the user is done using this program. */
+int done;
+
+char *
+dupstr (char *s)
+{
+  char *r;
+
+  r = xmalloc (strlen (s) + 1);
+  strcpy (r, s);
+  return (r);
+}
+
+int
+main (int argc, char **argv)
+{
+  char *line, *s;
+
+  setlocale (LC_ALL, "");
+
+  progname = argv[0];
+
+  initialize_readline ();	/* Bind our completer. */
+
+  /* Loop reading and executing lines until the user quits. */
+  for ( ; done == 0; )
+    {
+      line = readline ("FileMan: ");
+
+      if (!line)
+        break;
+
+      /* Remove leading and trailing whitespace from the line.
+         Then, if there is anything left, add it to the history list
+         and execute it. */
+      s = stripwhite (line);
+
+      if (*s)
+        {
+          add_history (s);
+          execute_line (s);
+        }
+
+      free (line);
+    }
+  exit (0);
+}
+
+/* Execute a command line. */
+int
+execute_line (char *line)
+{
+  register int i;
+  COMMAND *command;
+  char *word;
+
+  /* Isolate the command word. */
+  i = 0;
+  while (line[i] && whitespace (line[i]))
+    i++;
+  word = line + i;
+
+  while (line[i] && !whitespace (line[i]))
+    i++;
+
+  if (line[i])
+    line[i++] = '\0';
+
+  command = find_command (word);
+
+  if (!command)
+    {
+      fprintf (stderr, "%s: No such command for FileMan.\n", word);
+      return (-1);
+    }
+
+  /* Get argument to command, if any. */
+  while (whitespace (line[i]))
+    i++;
+
+  word = line + i;
+
+  /* Call the function. */
+  return ((*(command->func)) (word));
+}
+
+/* Look up NAME as the name of a command, and return a pointer to that
+   command.  Return a NULL pointer if NAME isn't a command name. */
+COMMAND *
+find_command (char *name)
+{
+  register int i;
+
+  for (i = 0; commands[i].name; i++)
+    if (strcmp (name, commands[i].name) == 0)
+      return (&commands[i]);
+
+  return ((COMMAND *)NULL);
+}
+
+/* Strip whitespace from the start and end of STRING.  Return a pointer
+   into STRING. */
+char *
+stripwhite (char *string)
+{
+  register char *s, *t;
+
+  for (s = string; whitespace (*s); s++)
+    ;
+    
+  if (*s == 0)
+    return (s);
+
+  t = s + strlen (s) - 1;
+  while (t > s && whitespace (*t))
+    t--;
+  *++t = '\0';
+
+  return s;
+}
+
+/* **************************************************************** */
+/*                                                                  */
+/*                  Interface to Readline Completion                */
+/*                                                                  */
+/* **************************************************************** */
+
+char *command_generator (const char *, int);
+char **fileman_completion (const char *, int, int);
+
+/* Tell the GNU Readline library how to complete.  We want to try to complete
+   on command names if this is the first word in the line, or on filenames
+   if not. */
+void
+initialize_readline (void)
+{
+  /* Allow conditional parsing of the ~/.inputrc file. */
+  rl_readline_name = "FileMan";
+
+  /* Tell the completer that we want a crack first. */
+  rl_attempted_completion_function = fileman_completion;
+}
+
+/* Attempt to complete on the contents of TEXT.  START and END bound the
+   region of rl_line_buffer that contains the word to complete.  TEXT is
+   the word to complete.  We can use the entire contents of rl_line_buffer
+   in case we want to do some simple parsing.  Return the array of matches,
+   or NULL if there aren't any. */
+char **
+fileman_completion (const char *text, int start, int end)
+{
+  char **matches;
+
+  matches = (char **)NULL;
+
+  /* If this word is at the start of the line, then it is a command
+     to complete.  Otherwise it is the name of a file in the current
+     directory. */
+  if (start == 0)
+    matches = rl_completion_matches (text, command_generator);
+
+  return (matches);
+}
+
+/* Generator function for command completion.  STATE lets us know whether
+   to start from scratch; without any state (i.e. STATE == 0), then we
+   start at the top of the list. */
+char *
+command_generator (const char *text, int state)
+{
+  static int list_index, len;
+  char *name;
+
+  /* If this is a new word to complete, initialize now.  This includes
+     saving the length of TEXT for efficiency, and initializing the index
+     variable to 0. */
+  if (!state)
+    {
+      list_index = 0;
+      len = strlen (text);
+    }
+
+  /* Return the next name which partially matches from the command list. */
+  while (name = commands[list_index].name)
+    {
+      list_index++;
+
+      if (strncmp (name, text, len) == 0)
+        return (dupstr(name));
+    }
+
+  /* If no names matched, then return NULL. */
+  return ((char *)NULL);
+}
+
+/* **************************************************************** */
+/*                                                                  */
+/*                       FileMan Commands                           */
+/*                                                                  */
+/* **************************************************************** */
+
+/* String to pass to system ().  This is for the LIST, VIEW and RENAME
+   commands. */
+static char syscom[1024];
+
+/* List the file(s) named in arg. */
+int
+com_list (char *arg)
+{
+  if (!arg)
+    arg = "";
+
+  snprintf (syscom, sizeof (syscom), "ls -FClg %s", arg);
+  return (system (syscom));
+}
+
+int
+com_view (char *arg)
+{
+  if (!valid_argument ("view", arg))
+    return 1;
+
+#if defined (__MSDOS__)
+  /* more.com doesn't grok slashes in pathnames */
+  snprintf (syscom, sizeof (syscom), "less %s", arg);
+#else
+  snprintf (syscom, sizeof (syscom), "more %s", arg);
+#endif
+  return (system (syscom));
+}
+
+int
+com_rename (char *arg)
+{
+  too_dangerous ("rename");
+  return (1);
+}
+
+int
+com_stat (char *arg)
+{
+  struct stat finfo;
+
+  if (!valid_argument ("stat", arg))
+    return (1);
+
+  if (stat (arg, &finfo) == -1)
+    {
+      perror (arg);
+      return (1);
+    }
+
+  printf ("Statistics for `%s':\n", arg);
+
+  printf ("%s has %d link%s, and is %d byte%s in length.\n",
+	  arg,
+          finfo.st_nlink,
+          (finfo.st_nlink == 1) ? "" : "s",
+          finfo.st_size,
+          (finfo.st_size == 1) ? "" : "s");
+  printf ("Inode Last Change at: %s", ctime (&finfo.st_ctime));
+  printf ("      Last access at: %s", ctime (&finfo.st_atime));
+  printf ("    Last modified at: %s", ctime (&finfo.st_mtime));
+  return (0);
+}
+
+int
+com_delete (char *arg)
+{
+  too_dangerous ("delete");
+  return (1);
+}
+
+/* Print out help for ARG, or for all of the commands if ARG is
+   not present. */
+int
+com_help (char *arg)
+{
+  register int i;
+  int printed = 0;
+
+  for (i = 0; commands[i].name; i++)
+    {
+      if (!*arg || (strcmp (arg, commands[i].name) == 0))
+        {
+          printf ("%s\t\t%s.\n", commands[i].name, commands[i].doc);
+          printed++;
+        }
+    }
+
+  if (!printed)
+    {
+      printf ("No commands match `%s'.  Possibilities are:\n", arg);
+
+      for (i = 0; commands[i].name; i++)
+        {
+          /* Print in six columns. */
+          if (printed == 6)
+            {
+              printed = 0;
+              printf ("\n");
+            }
+
+          printf ("%s\t", commands[i].name);
+          printed++;
+        }
+
+      if (printed)
+        printf ("\n");
+    }
+  return (0);
+}
+
+/* Change to the directory ARG. */
+int
+com_cd (char *arg)
+{
+  if (chdir (arg) == -1)
+    {
+      perror (arg);
+      return 1;
+    }
+
+  com_pwd ("");
+  return (0);
+}
+
+/* Print out the current working directory. */
+int
+com_pwd (char *ignore)
+{
+  char dir[1024], *s;
+
+  s = getcwd (dir, sizeof(dir) - 1);
+  if (s == 0)
+    {
+      printf ("Error getting pwd: %s\n", dir);
+      return 1;
+    }
+
+  printf ("Current directory is %s\n", dir);
+  return 0;
+}
+
+/* The user wishes to quit using this program.  Just set DONE non-zero. */
+int
+com_quit (char *arg)
+{
+  done = 1;
+  return (0);
+}
+
+/* Function which tells you that you can't do this. */
+void
+too_dangerous (char *caller)
+{
+  fprintf (stderr,
+           "%s: Too dangerous for me to distribute.  Write it yourself.\n",
+           caller);
+}
+
+/* Return non-zero if ARG is a valid argument for CALLER, else print
+   an error message and return zero. */
+int
+valid_argument (char *caller, char *arg)
+{
+  if (!arg || !*arg)
+    {
+      fprintf (stderr, "%s: Argument required.\n", caller);
+      return (0);
+    }
+
+  return (1);
+}
+
+ +
+
+
+
+
+ +

Appendix A GNU Free Documentation License

+ +
Version 1.3, 3 November 2008 +
+ +
+
Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
+http://fsf.org/
+
+Everyone is permitted to copy and distribute verbatim copies
+of this license document, but changing it is not allowed.
+
+ +
    +
  1. PREAMBLE + +

    The purpose of this License is to make a manual, textbook, or other +functional and useful document free in the sense of freedom: to +assure everyone the effective freedom to copy and redistribute it, +with or without modifying it, either commercially or noncommercially. +Secondarily, this License preserves for the author and publisher a way +to get credit for their work, while not being considered responsible +for modifications made by others. +

    +

    This License is a kind of “copyleft”, which means that derivative +works of the document must themselves be free in the same sense. It +complements the GNU General Public License, which is a copyleft +license designed for free software. +

    +

    We have designed this License in order to use it for manuals for free +software, because free software needs free documentation: a free +program should come with manuals providing the same freedoms that the +software does. But this License is not limited to software manuals; +it can be used for any textual work, regardless of subject matter or +whether it is published as a printed book. We recommend this License +principally for works whose purpose is instruction or reference. +

    +
  2. APPLICABILITY AND DEFINITIONS + +

    This License applies to any manual or other work, in any medium, that +contains a notice placed by the copyright holder saying it can be +distributed under the terms of this License. Such a notice grants a +world-wide, royalty-free license, unlimited in duration, to use that +work under the conditions stated herein. The “Document”, below, +refers to any such manual or work. Any member of the public is a +licensee, and is addressed as “you”. You accept the license if you +copy, modify or distribute the work in a way requiring permission +under copyright law. +

    +

    A “Modified Version” of the Document means any work containing the +Document or a portion of it, either copied verbatim, or with +modifications and/or translated into another language. +

    +

    A “Secondary Section” is a named appendix or a front-matter section +of the Document that deals exclusively with the relationship of the +publishers or authors of the Document to the Document’s overall +subject (or to related matters) and contains nothing that could fall +directly within that overall subject. (Thus, if the Document is in +part a textbook of mathematics, a Secondary Section may not explain +any mathematics.) The relationship could be a matter of historical +connection with the subject or with related matters, or of legal, +commercial, philosophical, ethical or political position regarding +them. +

    +

    The “Invariant Sections” are certain Secondary Sections whose titles +are designated, as being those of Invariant Sections, in the notice +that says that the Document is released under this License. If a +section does not fit the above definition of Secondary then it is not +allowed to be designated as Invariant. The Document may contain zero +Invariant Sections. If the Document does not identify any Invariant +Sections then there are none. +

    +

    The “Cover Texts” are certain short passages of text that are listed, +as Front-Cover Texts or Back-Cover Texts, in the notice that says that +the Document is released under this License. A Front-Cover Text may +be at most 5 words, and a Back-Cover Text may be at most 25 words. +

    +

    A “Transparent” copy of the Document means a machine-readable copy, +represented in a format whose specification is available to the +general public, that is suitable for revising the document +straightforwardly with generic text editors or (for images composed of +pixels) generic paint programs or (for drawings) some widely available +drawing editor, and that is suitable for input to text formatters or +for automatic translation to a variety of formats suitable for input +to text formatters. A copy made in an otherwise Transparent file +format whose markup, or absence of markup, has been arranged to thwart +or discourage subsequent modification by readers is not Transparent. +An image format is not Transparent if used for any substantial amount +of text. A copy that is not “Transparent” is called “Opaque”. +

    +

    Examples of suitable formats for Transparent copies include plain +ASCII without markup, Texinfo input format, LaTeX input +format, SGML or XML using a publicly available +DTD, and standard-conforming simple HTML, +PostScript or PDF designed for human modification. Examples +of transparent image formats include PNG, XCF and +JPG. Opaque formats include proprietary formats that can be +read and edited only by proprietary word processors, SGML or +XML for which the DTD and/or processing tools are +not generally available, and the machine-generated HTML, +PostScript or PDF produced by some word processors for +output purposes only. +

    +

    The “Title Page” means, for a printed book, the title page itself, +plus such following pages as are needed to hold, legibly, the material +this License requires to appear in the title page. For works in +formats which do not have any title page as such, “Title Page” means +the text near the most prominent appearance of the work’s title, +preceding the beginning of the body of the text. +

    +

    The “publisher” means any person or entity that distributes copies +of the Document to the public. +

    +

    A section “Entitled XYZ” means a named subunit of the Document whose +title either is precisely XYZ or contains XYZ in parentheses following +text that translates XYZ in another language. (Here XYZ stands for a +specific section name mentioned below, such as “Acknowledgements”, +“Dedications”, “Endorsements”, or “History”.) To “Preserve the Title” +of such a section when you modify the Document means that it remains a +section “Entitled XYZ” according to this definition. +

    +

    The Document may include Warranty Disclaimers next to the notice which +states that this License applies to the Document. These Warranty +Disclaimers are considered to be included by reference in this +License, but only as regards disclaiming warranties: any other +implication that these Warranty Disclaimers may have is void and has +no effect on the meaning of this License. +

    +
  3. VERBATIM COPYING + +

    You may copy and distribute the Document in any medium, either +commercially or noncommercially, provided that this License, the +copyright notices, and the license notice saying this License applies +to the Document are reproduced in all copies, and that you add no other +conditions whatsoever to those of this License. You may not use +technical measures to obstruct or control the reading or further +copying of the copies you make or distribute. However, you may accept +compensation in exchange for copies. If you distribute a large enough +number of copies you must also follow the conditions in section 3. +

    +

    You may also lend copies, under the same conditions stated above, and +you may publicly display copies. +

    +
  4. COPYING IN QUANTITY + +

    If you publish printed copies (or copies in media that commonly have +printed covers) of the Document, numbering more than 100, and the +Document’s license notice requires Cover Texts, you must enclose the +copies in covers that carry, clearly and legibly, all these Cover +Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on +the back cover. Both covers must also clearly and legibly identify +you as the publisher of these copies. The front cover must present +the full title with all words of the title equally prominent and +visible. You may add other material on the covers in addition. +Copying with changes limited to the covers, as long as they preserve +the title of the Document and satisfy these conditions, can be treated +as verbatim copying in other respects. +

    +

    If the required texts for either cover are too voluminous to fit +legibly, you should put the first ones listed (as many as fit +reasonably) on the actual cover, and continue the rest onto adjacent +pages. +

    +

    If you publish or distribute Opaque copies of the Document numbering +more than 100, you must either include a machine-readable Transparent +copy along with each Opaque copy, or state in or with each Opaque copy +a computer-network location from which the general network-using +public has access to download using public-standard network protocols +a complete Transparent copy of the Document, free of added material. +If you use the latter option, you must take reasonably prudent steps, +when you begin distribution of Opaque copies in quantity, to ensure +that this Transparent copy will remain thus accessible at the stated +location until at least one year after the last time you distribute an +Opaque copy (directly or through your agents or retailers) of that +edition to the public. +

    +

    It is requested, but not required, that you contact the authors of the +Document well before redistributing any large number of copies, to give +them a chance to provide you with an updated version of the Document. +

    +
  5. MODIFICATIONS + +

    You may copy and distribute a Modified Version of the Document under +the conditions of sections 2 and 3 above, provided that you release +the Modified Version under precisely this License, with the Modified +Version filling the role of the Document, thus licensing distribution +and modification of the Modified Version to whoever possesses a copy +of it. In addition, you must do these things in the Modified Version: +

    +
      +
    1. Use in the Title Page (and on the covers, if any) a title distinct +from that of the Document, and from those of previous versions +(which should, if there were any, be listed in the History section +of the Document). You may use the same title as a previous version +if the original publisher of that version gives permission. + +
    2. List on the Title Page, as authors, one or more persons or entities +responsible for authorship of the modifications in the Modified +Version, together with at least five of the principal authors of the +Document (all of its principal authors, if it has fewer than five), +unless they release you from this requirement. + +
    3. State on the Title page the name of the publisher of the +Modified Version, as the publisher. + +
    4. Preserve all the copyright notices of the Document. + +
    5. Add an appropriate copyright notice for your modifications +adjacent to the other copyright notices. + +
    6. Include, immediately after the copyright notices, a license notice +giving the public permission to use the Modified Version under the +terms of this License, in the form shown in the Addendum below. + +
    7. Preserve in that license notice the full lists of Invariant Sections +and required Cover Texts given in the Document’s license notice. + +
    8. Include an unaltered copy of this License. + +
    9. Preserve the section Entitled “History”, Preserve its Title, and add +to it an item stating at least the title, year, new authors, and +publisher of the Modified Version as given on the Title Page. If +there is no section Entitled “History” in the Document, create one +stating the title, year, authors, and publisher of the Document as +given on its Title Page, then add an item describing the Modified +Version as stated in the previous sentence. + +
    10. Preserve the network location, if any, given in the Document for +public access to a Transparent copy of the Document, and likewise +the network locations given in the Document for previous versions +it was based on. These may be placed in the “History” section. +You may omit a network location for a work that was published at +least four years before the Document itself, or if the original +publisher of the version it refers to gives permission. + +
    11. For any section Entitled “Acknowledgements” or “Dedications”, Preserve +the Title of the section, and preserve in the section all the +substance and tone of each of the contributor acknowledgements and/or +dedications given therein. + +
    12. Preserve all the Invariant Sections of the Document, +unaltered in their text and in their titles. Section numbers +or the equivalent are not considered part of the section titles. + +
    13. Delete any section Entitled “Endorsements”. Such a section +may not be included in the Modified Version. + +
    14. Do not retitle any existing section to be Entitled “Endorsements” or +to conflict in title with any Invariant Section. + +
    15. Preserve any Warranty Disclaimers. +
    + +

    If the Modified Version includes new front-matter sections or +appendices that qualify as Secondary Sections and contain no material +copied from the Document, you may at your option designate some or all +of these sections as invariant. To do this, add their titles to the +list of Invariant Sections in the Modified Version’s license notice. +These titles must be distinct from any other section titles. +

    +

    You may add a section Entitled “Endorsements”, provided it contains +nothing but endorsements of your Modified Version by various +parties—for example, statements of peer review or that the text has +been approved by an organization as the authoritative definition of a +standard. +

    +

    You may add a passage of up to five words as a Front-Cover Text, and a +passage of up to 25 words as a Back-Cover Text, to the end of the list +of Cover Texts in the Modified Version. Only one passage of +Front-Cover Text and one of Back-Cover Text may be added by (or +through arrangements made by) any one entity. If the Document already +includes a cover text for the same cover, previously added by you or +by arrangement made by the same entity you are acting on behalf of, +you may not add another; but you may replace the old one, on explicit +permission from the previous publisher that added the old one. +

    +

    The author(s) and publisher(s) of the Document do not by this License +give permission to use their names for publicity for or to assert or +imply endorsement of any Modified Version. +

    +
  6. COMBINING DOCUMENTS + +

    You may combine the Document with other documents released under this +License, under the terms defined in section 4 above for modified +versions, provided that you include in the combination all of the +Invariant Sections of all of the original documents, unmodified, and +list them all as Invariant Sections of your combined work in its +license notice, and that you preserve all their Warranty Disclaimers. +

    +

    The combined work need only contain one copy of this License, and +multiple identical Invariant Sections may be replaced with a single +copy. If there are multiple Invariant Sections with the same name but +different contents, make the title of each such section unique by +adding at the end of it, in parentheses, the name of the original +author or publisher of that section if known, or else a unique number. +Make the same adjustment to the section titles in the list of +Invariant Sections in the license notice of the combined work. +

    +

    In the combination, you must combine any sections Entitled “History” +in the various original documents, forming one section Entitled +“History”; likewise combine any sections Entitled “Acknowledgements”, +and any sections Entitled “Dedications”. You must delete all +sections Entitled “Endorsements.” +

    +
  7. COLLECTIONS OF DOCUMENTS + +

    You may make a collection consisting of the Document and other documents +released under this License, and replace the individual copies of this +License in the various documents with a single copy that is included in +the collection, provided that you follow the rules of this License for +verbatim copying of each of the documents in all other respects. +

    +

    You may extract a single document from such a collection, and distribute +it individually under this License, provided you insert a copy of this +License into the extracted document, and follow this License in all +other respects regarding verbatim copying of that document. +

    +
  8. AGGREGATION WITH INDEPENDENT WORKS + +

    A compilation of the Document or its derivatives with other separate +and independent documents or works, in or on a volume of a storage or +distribution medium, is called an “aggregate” if the copyright +resulting from the compilation is not used to limit the legal rights +of the compilation’s users beyond what the individual works permit. +When the Document is included in an aggregate, this License does not +apply to the other works in the aggregate which are not themselves +derivative works of the Document. +

    +

    If the Cover Text requirement of section 3 is applicable to these +copies of the Document, then if the Document is less than one half of +the entire aggregate, the Document’s Cover Texts may be placed on +covers that bracket the Document within the aggregate, or the +electronic equivalent of covers if the Document is in electronic form. +Otherwise they must appear on printed covers that bracket the whole +aggregate. +

    +
  9. TRANSLATION + +

    Translation is considered a kind of modification, so you may +distribute translations of the Document under the terms of section 4. +Replacing Invariant Sections with translations requires special +permission from their copyright holders, but you may include +translations of some or all Invariant Sections in addition to the +original versions of these Invariant Sections. You may include a +translation of this License, and all the license notices in the +Document, and any Warranty Disclaimers, provided that you also include +the original English version of this License and the original versions +of those notices and disclaimers. In case of a disagreement between +the translation and the original version of this License or a notice +or disclaimer, the original version will prevail. +

    +

    If a section in the Document is Entitled “Acknowledgements”, +“Dedications”, or “History”, the requirement (section 4) to Preserve +its Title (section 1) will typically require changing the actual +title. +

    +
  10. TERMINATION + +

    You may not copy, modify, sublicense, or distribute the Document +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense, or distribute it is void, and +will automatically terminate your rights under this License. +

    +

    However, if you cease all violation of this License, then your license +from a particular copyright holder is reinstated (a) provisionally, +unless and until the copyright holder explicitly and finally +terminates your license, and (b) permanently, if the copyright holder +fails to notify you of the violation by some reasonable means prior to +60 days after the cessation. +

    +

    Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. +

    +

    Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, receipt of a copy of some or all of the same material does +not give you any rights to use it. +

    +
  11. FUTURE REVISIONS OF THIS LICENSE + +

    The Free Software Foundation may publish new, revised versions +of the GNU Free Documentation License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. See +http://www.gnu.org/copyleft/. +

    +

    Each version of the License is given a distinguishing version number. +If the Document specifies that a particular numbered version of this +License “or any later version” applies to it, you have the option of +following the terms and conditions either of that specified version or +of any later version that has been published (not as a draft) by the +Free Software Foundation. If the Document does not specify a version +number of this License, you may choose any version ever published (not +as a draft) by the Free Software Foundation. If the Document +specifies that a proxy can decide which future versions of this +License can be used, that proxy’s public statement of acceptance of a +version permanently authorizes you to choose that version for the +Document. +

    +
  12. RELICENSING + +

    “Massive Multiauthor Collaboration Site” (or “MMC Site”) means any +World Wide Web server that publishes copyrightable works and also +provides prominent facilities for anybody to edit those works. A +public wiki that anybody can edit is an example of such a server. A +“Massive Multiauthor Collaboration” (or “MMC”) contained in the +site means any set of copyrightable works thus published on the MMC +site. +

    +

    “CC-BY-SA” means the Creative Commons Attribution-Share Alike 3.0 +license published by Creative Commons Corporation, a not-for-profit +corporation with a principal place of business in San Francisco, +California, as well as future copyleft versions of that license +published by that same organization. +

    +

    “Incorporate” means to publish or republish a Document, in whole or +in part, as part of another Document. +

    +

    An MMC is “eligible for relicensing” if it is licensed under this +License, and if all works that were first published under this License +somewhere other than this MMC, and subsequently incorporated in whole +or in part into the MMC, (1) had no cover texts or invariant sections, +and (2) were thus incorporated prior to November 1, 2008. +

    +

    The operator of an MMC Site may republish an MMC contained in the site +under CC-BY-SA on the same site at any time before August 1, 2009, +provided the MMC is eligible for relicensing. +

    +
+ +

ADDENDUM: How to use this License for your documents

+ +

To use this License in a document you have written, include a copy of +the License in the document and put the following copyright and +license notices just after the title page: +

+
+
  Copyright (C)  year  your name.
+  Permission is granted to copy, distribute and/or modify this document
+  under the terms of the GNU Free Documentation License, Version 1.3
+  or any later version published by the Free Software Foundation;
+  with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
+  Texts.  A copy of the license is included in the section entitled ``GNU
+  Free Documentation License''.
+
+ +

If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, +replace the “with…Texts.” line with this: +

+
+
    with the Invariant Sections being list their titles, with
+    the Front-Cover Texts being list, and with the Back-Cover Texts
+    being list.
+
+ +

If you have Invariant Sections without Cover Texts, or some other +combination of the three, merge those two alternatives to suit the +situation. +

+

If your document contains nontrivial examples of program code, we +recommend releasing these examples in parallel under your choice of +free software license, such as the GNU General Public License, +to permit their use in free software. +

+ + +
+
+ +
+ +

Function and Variable Index

+
+
Jump to:   _ +   +
+A +   +B +   +C +   +D +   +E +   +F +   +H +   +I +   +K +   +M +   +N +   +O +   +P +   +Q +   +R +   +S +   +T +   +U +   +V +   +Y +   +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Index EntrySection

_
_rl_digit_pUtility Functions
_rl_digit_valueUtility Functions
_rl_lowercase_pUtility Functions
_rl_to_lowerUtility Functions
_rl_to_upperUtility Functions
_rl_uppercase_pUtility Functions

A
abort (C-g)Miscellaneous Commands
accept-line (Newline or Return)Commands For History
active-region-end-colorReadline Init File Syntax
active-region-start-colorReadline Init File Syntax

B
backward-char (C-b)Commands For Moving
backward-delete-char (Rubout)Commands For Text
backward-kill-line (C-x Rubout)Commands For Killing
backward-kill-word (M-DEL)Commands For Killing
backward-word (M-b)Commands For Moving
beginning-of-history (M-<)Commands For History
beginning-of-line (C-a)Commands For Moving
bell-styleReadline Init File Syntax
bind-tty-special-charsReadline Init File Syntax
blink-matching-parenReadline Init File Syntax
bracketed-paste-begin ()Commands For Text

C
call-last-kbd-macro (C-x e)Keyboard Macros
capitalize-word (M-c)Commands For Text
character-search (C-])Miscellaneous Commands
character-search-backward (M-C-])Miscellaneous Commands
clear-display (M-C-l)Commands For Moving
clear-screen (C-l)Commands For Moving
colored-completion-prefixReadline Init File Syntax
colored-statsReadline Init File Syntax
comment-beginReadline Init File Syntax
complete (TAB)Commands For Completion
completion-display-widthReadline Init File Syntax
completion-ignore-caseReadline Init File Syntax
completion-map-caseReadline Init File Syntax
completion-prefix-display-lengthReadline Init File Syntax
completion-query-itemsReadline Init File Syntax
convert-metaReadline Init File Syntax
copy-backward-word ()Commands For Killing
copy-forward-word ()Commands For Killing
copy-region-as-kill ()Commands For Killing

D
delete-char (C-d)Commands For Text
delete-char-or-list ()Commands For Completion
delete-horizontal-space ()Commands For Killing
digit-argument (M-0, M-1, … M--)Numeric Arguments
disable-completionReadline Init File Syntax
do-lowercase-version (M-A, M-B, M-x, …)Miscellaneous Commands
downcase-word (M-l)Commands For Text
dump-functions ()Miscellaneous Commands
dump-macros ()Miscellaneous Commands
dump-variables ()Miscellaneous Commands

E
echo-control-charactersReadline Init File Syntax
editing-modeReadline Init File Syntax
emacs-editing-mode (C-e)Miscellaneous Commands
emacs-mode-stringReadline Init File Syntax
enable-active-region TheReadline Init File Syntax
enable-bracketed-pasteReadline Init File Syntax
enable-keypadReadline Init File Syntax
enable-meta-keyReadline Init File Syntax
end-kbd-macro (C-x ))Keyboard Macros
end-of-file (usually C-d)Commands For Text
end-of-history (M->)Commands For History
end-of-line (C-e)Commands For Moving
exchange-point-and-mark (C-x C-x)Miscellaneous Commands
execute-named-command (M-x)Miscellaneous Commands
expand-tildeReadline Init File Syntax
export-completions ()Commands For Completion

F
fetch-history ()Commands For History
force-meta-prefixReadline Init File Syntax
forward-backward-delete-char ()Commands For Text
forward-char (C-f)Commands For Moving
forward-search-history (C-s)Commands For History
forward-word (M-f)Commands For Moving

H
history-preserve-pointReadline Init File Syntax
history-search-backward ()Commands For History
history-search-forward ()Commands For History
history-sizeReadline Init File Syntax
history-substring-search-backward ()Commands For History
history-substring-search-forward ()Commands For History
horizontal-scroll-modeReadline Init File Syntax

I
input-metaReadline Init File Syntax
insert-comment (M-#)Miscellaneous Commands
insert-completions (M-*)Commands For Completion
isearch-terminatorsReadline Init File Syntax

K
keymapReadline Init File Syntax
kill-line (C-k)Commands For Killing
kill-region ()Commands For Killing
kill-whole-line ()Commands For Killing
kill-word (M-d)Commands For Killing

M
mark-modified-linesReadline Init File Syntax
mark-symlinked-directoriesReadline Init File Syntax
match-hidden-filesReadline Init File Syntax
menu-complete ()Commands For Completion
menu-complete-backward ()Commands For Completion
menu-complete-display-prefixReadline Init File Syntax
meta-flagReadline Init File Syntax

N
next-history (C-n)Commands For History
next-screen-line ()Commands For Moving
non-incremental-forward-search-history (M-n)Commands For History
non-incremental-reverse-search-history (M-p)Commands For History

O
operate-and-get-next (C-o)Commands For History
output-metaReadline Init File Syntax
overwrite-mode ()Commands For Text

P
page-completionsReadline Init File Syntax
possible-completions (M-?)Commands For Completion
prefix-meta (ESC)Miscellaneous Commands
previous-history (C-p)Commands For History
previous-screen-line ()Commands For Moving
print-last-kbd-macro ()Keyboard Macros

Q
quoted-insert (C-q or C-v)Commands For Text

R
re-read-init-file (C-x C-r)Miscellaneous Commands
readlineBasic Behavior
redraw-current-line ()Commands For Moving
reverse-search-history (C-r)Commands For History
revert-all-at-newlineReadline Init File Syntax
revert-line (M-r)Miscellaneous Commands
rl_activate_markMiscellaneous Functions
rl_add_defunFunction Naming
rl_add_funmap_entryAssociating Function Names and Bindings
rl_add_undoAllowing Undoing
rl_alphabeticUtility Functions
rl_already_promptedReadline Variables
rl_attempted_completion_functionCompletion Variables
rl_attempted_completion_overCompletion Variables
rl_basic_quote_charactersCompletion Variables
rl_basic_word_break_charactersCompletion Variables
rl_begin_undo_groupAllowing Undoing
rl_bind_keyBinding Keys
rl_bind_key_if_unboundBinding Keys
rl_bind_key_if_unbound_in_mapBinding Keys
rl_bind_key_in_mapBinding Keys
rl_bind_keyseqBinding Keys
rl_bind_keyseq_if_unboundBinding Keys
rl_bind_keyseq_if_unbound_in_mapBinding Keys
rl_bind_keyseq_in_mapBinding Keys
rl_binding_keymapReadline Variables
rl_callback_handler_installAlternate Interface
rl_callback_handler_removeAlternate Interface
rl_callback_read_charAlternate Interface
rl_callback_sigcleanupAlternate Interface
rl_catch_signalsReadline Signal Handling
rl_catch_sigwinchReadline Signal Handling
rl_change_environmentReadline Signal Handling
rl_char_is_quoted_pCompletion Variables
rl_check_signalsReadline Signal Handling
rl_cleanup_after_signalReadline Signal Handling
rl_clear_historyMiscellaneous Functions
rl_clear_messageRedisplay
rl_clear_pending_inputCharacter Input
rl_clear_signalsReadline Signal Handling
rl_clear_visible_lineRedisplay
rl_completeHow Completing Works
rl_completeCompletion Functions
rl_complete_internalCompletion Functions
rl_completer_quote_charactersCompletion Variables
rl_completer_word_break_charactersCompletion Variables
rl_completion_append_characterCompletion Variables
rl_completion_display_matches_hookCompletion Variables
rl_completion_entry_functionHow Completing Works
rl_completion_entry_functionCompletion Variables
rl_completion_found_quoteCompletion Variables
rl_completion_invoking_keyCompletion Variables
rl_completion_mark_symlink_dirsCompletion Variables
rl_completion_matchesCompletion Functions
rl_completion_modeCompletion Functions
rl_completion_query_itemsCompletion Variables
rl_completion_quote_characterCompletion Variables
rl_completion_rewrite_hookCompletion Variables
rl_completion_suppress_appendCompletion Variables
rl_completion_suppress_quoteCompletion Variables
rl_completion_typeCompletion Variables
rl_completion_word_break_hookCompletion Variables
rl_copy_keymapKeymaps
rl_copy_textModifying Text
rl_crlfRedisplay
rl_deactivate_markMiscellaneous Functions
rl_delete_textModifying Text
rl_deprep_term_functionReadline Variables
rl_deprep_terminalTerminal Management
rl_dingUtility Functions
rl_directory_completion_hookCompletion Variables
rl_directory_rewrite_hook;Completion Variables
rl_discard_keymapKeymaps
rl_dispatchingReadline Variables
rl_display_match_listUtility Functions
rl_display_promptReadline Variables
rl_do_undoAllowing Undoing
rl_doneReadline Variables
rl_echo_signal_charReadline Signal Handling
rl_editing_modeReadline Variables
rl_empty_keymapKeymaps
rl_endReadline Variables
rl_end_undo_groupAllowing Undoing
rl_eof_foundReadline Variables
rl_erase_empty_lineReadline Variables
rl_event_hookReadline Variables
rl_execute_nextCharacter Input
rl_executing_keyReadline Variables
rl_executing_keymapReadline Variables
rl_executing_keyseqReadline Variables
rl_executing_macroReadline Variables
rl_expand_promptRedisplay
rl_explicit_argReadline Variables
rl_extend_line_bufferUtility Functions
rl_filename_completion_desiredCompletion Variables
rl_filename_completion_functionCompletion Functions
rl_filename_dequoting_functionCompletion Variables
rl_filename_quote_charactersCompletion Variables
rl_filename_quoting_desiredCompletion Variables
rl_filename_quoting_functionCompletion Variables
rl_filename_rewrite_hookCompletion Variables
rl_filename_stat_hookCompletion Variables
rl_forced_update_displayRedisplay
rl_freeUtility Functions
rl_free_keymapKeymaps
rl_free_line_stateReadline Signal Handling
rl_free_undo_listAllowing Undoing
rl_full_quoting_desiredCompletion Variables
rl_function_dumperAssociating Function Names and Bindings
rl_function_of_keyseqAssociating Function Names and Bindings
rl_function_of_keyseq_lenAssociating Function Names and Bindings
rl_funmap_namesAssociating Function Names and Bindings
rl_generic_bindBinding Keys
rl_get_keymapKeymaps
rl_get_keymap_by_nameKeymaps
rl_get_keymap_nameKeymaps
rl_get_screen_sizeReadline Signal Handling
rl_get_termcapMiscellaneous Functions
rl_getcCharacter Input
rl_getc_functionReadline Variables
rl_gnu_readline_pReadline Variables
rl_ignore_completion_duplicatesCompletion Variables
rl_ignore_some_completions_functionCompletion Variables
rl_inhibit_completionCompletion Variables
rl_initializeUtility Functions
rl_input_available_hookReadline Variables
rl_insert_completionsCompletion Functions
rl_insert_textModifying Text
rl_instreamReadline Variables
rl_invoking_keyseqsAssociating Function Names and Bindings
rl_invoking_keyseqs_in_mapAssociating Function Names and Bindings
rl_keep_mark_activeMiscellaneous Functions
rl_key_sequence_lengthReadline Variables
rl_kill_textModifying Text
rl_last_funcReadline Variables
rl_library_versionReadline Variables
rl_line_bufferReadline Variables
rl_list_funmap_namesAssociating Function Names and Bindings
rl_macro_bindMiscellaneous Functions
rl_macro_display_hookReadline Variables
rl_macro_dumperMiscellaneous Functions
rl_make_bare_keymapKeymaps
rl_make_keymapKeymaps
rl_markReadline Variables
rl_mark_active_pMiscellaneous Functions
rl_messageRedisplay
rl_modifyingAllowing Undoing
rl_named_functionAssociating Function Names and Bindings
rl_num_chars_to_readReadline Variables
rl_numeric_argReadline Variables
rl_on_new_lineRedisplay
rl_on_new_line_with_promptRedisplay
rl_outstreamReadline Variables
rl_parse_and_bindBinding Keys
rl_pending_inputReadline Variables
rl_pending_signalReadline Signal Handling
rl_persistent_signal_handlersReadline Signal Handling
rl_pointReadline Variables
rl_possible_completionsCompletion Functions
rl_pre_input_hookReadline Variables
rl_prefer_env_winsizeReadline Variables
rl_prep_term_functionReadline Variables
rl_prep_terminalTerminal Management
rl_print_keybindingAssociating Function Names and Bindings
rl_promptReadline Variables
rl_push_macro_inputModifying Text
rl_read_init_fileBinding Keys
rl_read_keyCharacter Input
rl_readline_nameReadline Variables
rl_readline_stateReadline Variables
rl_readline_versionReadline Variables
rl_redisplayRedisplay
rl_redisplay_functionReadline Variables
rl_reparse_colorsMiscellaneous Functions
rl_replace_lineModifying Text
rl_reset_after_signalReadline Signal Handling
rl_reset_line_stateRedisplay
rl_reset_screen_sizeReadline Signal Handling
rl_reset_terminalTerminal Management
rl_resize_terminalReadline Signal Handling
rl_restore_promptRedisplay
rl_restore_stateUtility Functions
rl_save_promptRedisplay
rl_save_stateUtility Functions
rl_set_keyBinding Keys
rl_set_keyboard_input_timeoutCharacter Input
rl_set_keymapKeymaps
rl_set_keymap_nameKeymaps
rl_set_paren_blink_timeoutMiscellaneous Functions
rl_set_promptRedisplay
rl_set_screen_sizeReadline Signal Handling
rl_set_signalsReadline Signal Handling
rl_set_timeoutCharacter Input
rl_show_charRedisplay
rl_signal_event_hookReadline Variables
rl_sort_completion_matchesCompletion Variables
rl_special_prefixesCompletion Variables
rl_startup_hookReadline Variables
rl_stuff_charCharacter Input
rl_terminal_nameReadline Variables
rl_timeout_event_hookReadline Variables
rl_timeout_remainingCharacter Input
rl_trim_arg_from_keyseqAssociating Function Names and Bindings
rl_tty_set_default_bindingsTerminal Management
rl_tty_set_echoingTerminal Management
rl_tty_unset_default_bindingsTerminal Management
rl_unbind_command_in_mapBinding Keys
rl_unbind_function_in_mapBinding Keys
rl_unbind_keyBinding Keys
rl_unbind_key_in_mapBinding Keys
rl_username_completion_functionCompletion Functions
rl_variable_bindMiscellaneous Functions
rl_variable_dumperMiscellaneous Functions
rl_variable_valueMiscellaneous Functions

S
search-ignore-caseReadline Init File Syntax
self-insert (a, b, A, 1, !, …)Commands For Text
set-mark (C-@)Miscellaneous Commands
show-all-if-ambiguousReadline Init File Syntax
show-all-if-unmodifiedReadline Init File Syntax
show-mode-in-promptReadline Init File Syntax
skip-completed-textReadline Init File Syntax
skip-csi-sequence ()Miscellaneous Commands
start-kbd-macro (C-x ()Keyboard Macros

T
tab-insert (M-TAB)Commands For Text
tilde-expand (M-~)Miscellaneous Commands
transpose-chars (C-t)Commands For Text
transpose-words (M-t)Commands For Text

U
undo (C-_ or C-x C-u)Miscellaneous Commands
universal-argument ()Numeric Arguments
unix-filename-rubout ()Commands For Killing
unix-line-discard (C-u)Commands For Killing
unix-word-rubout (C-w)Commands For Killing
upcase-word (M-u)Commands For Text

V
vi-cmd-mode-stringReadline Init File Syntax
vi-editing-mode (M-C-j)Miscellaneous Commands
vi-ins-mode-stringReadline Init File Syntax
visible-statsReadline Init File Syntax

Y
yank (C-y)Commands For Killing
yank-last-arg (M-. or M-_)Commands For History
yank-nth-arg (M-C-y)Commands For History
yank-pop (M-y)Commands For Killing

+ +
+ +
+
+ + + + + diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/rluserman.html b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/rluserman.html new file mode 100644 index 0000000000000000000000000000000000000000..b79efb467d131d6b0559eca95f5339a7e58b092d --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/doc/readline/rluserman.html @@ -0,0 +1,2708 @@ + + + + + + +GNU Readline Library + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +

GNU Readline Library

+ +

This document describes the end user interface of the GNU Readline Library, +a utility which aids in the consistency of user interface across discrete +programs which provide a command line interface. +The Readline home page is http://www.gnu.org/software/readline/. +

+ + + + + + +
+
+ +

1 Command Line Editing

+ +

This chapter describes the basic features of the GNU +command line editing interface. +

+ + +
+
+ +

1.1 Introduction to Line Editing

+ +

The following paragraphs use Emacs style to +describe the notation used to represent keystrokes. +

+

The text C-k is read as ‘Control-K’ and describes the character +produced when the k key is pressed while the Control key +is depressed. +

+

The text M-k is read as ‘Meta-K’ and describes the character +produced when the Meta key (if you have one) is depressed, and the k +key is pressed (a meta character), then both are released. +The Meta key is labeled ALT or Option on many keyboards. +On keyboards with two keys labeled ALT (usually to either side of +the space bar), the ALT on the left side is generally set to +work as a Meta key. +One of the ALT keys may also be configured +as some other modifier, such as a +Compose key for typing accented characters. +

+

On some keyboards, the Meta key modifier produces characters with +the eighth bit (0200) set. +You can use the enable-meta-key variable +to control whether or not it does this, if the keyboard allows it. +On many others, the terminal or terminal emulator converts the metafied +key to a key sequence beginning with ESC as described in the +next paragraph. +

+

If you do not have a Meta or ALT key, or another key working as +a Meta key, you can generally achieve the latter effect by typing ESC +first, and then typing k. +The ESC character is known as the meta prefix). +

+

Either process is known as metafying the k key. +

+

If your Meta key produces a key sequence with the ESC meta prefix, +you can make M-key key bindings you specify +(see Key Bindings in Readline Init File Syntax) +do the same thing by setting the force-meta-prefix variable. +

+

The text M-C-k is read as ‘Meta-Control-k’ and describes the +character produced by metafying C-k. +

+

In addition, several keys have their own names. +Specifically, +DEL, ESC, LFD, SPC, RET, and TAB all +stand for themselves when seen in this text, or in an init file +(see Readline Init File). +If your keyboard lacks a LFD key, typing C-j will +output the appropriate character. +The RET key may be labeled Return or Enter on +some keyboards. +

+
+
+
+ +

1.2 Readline Interaction

+ + +

Often during an interactive session you type in a long line of text, +only to notice that the first word on the line is misspelled. +The Readline library gives you a set of commands for manipulating the text +as you type it in, allowing you to just fix your typo, and not forcing +you to retype the majority of the line. +Using these editing commands, +you move the cursor to the place that needs correction, and delete or +insert the text of the corrections. +Then, when you are satisfied with the line, you simply press RET. +You do not have to be at the +end of the line to press RET; the entire line is accepted +regardless of the location of the cursor within the line. +

+ + +
+
+ +

1.2.1 Readline Bare Essentials

+ + + + +

In order to enter characters into the line, simply type them. +The typed +character appears where the cursor was, and then the cursor moves one +space to the right. +If you mistype a character, you can use your +erase character to back up and delete the mistyped character. +

+

Sometimes you may mistype a character, and +not notice the error until you have typed several other characters. +In that case, you can type C-b to move the cursor to the left, +and then correct your mistake. +Afterwards, you can move the cursor to the right with C-f. +

+

When you add text in the middle of a line, you will notice that characters +to the right of the cursor are ‘pushed over’ to make room for the text +that you have inserted. +Likewise, when you delete text behind the cursor, +characters to the right of the cursor are ‘pulled back’ to fill in the +blank space created by the removal of the text. +These are the bare +essentials for editing the text of an input line: +

+
+
C-b
+

Move back one character. +

+
C-f
+

Move forward one character. +

+
DEL or Backspace
+

Delete the character to the left of the cursor. +

+
C-d
+

Delete the character underneath the cursor. +

+
Printing characters
+

Insert the character into the line at the cursor. +

+
C-_ or C-x C-u
+

Undo the last editing command. +You can undo all the way back to an empty line. +

+
+ +

Depending on your configuration, the Backspace key might be set to +delete the character to the left of the cursor and the DEL key set +to delete the character underneath the cursor, like C-d, rather +than the character to the left of the cursor. +

+
+
+
+ +

1.2.2 Readline Movement Commands

+ +

The above table describes the most basic keystrokes that you need +in order to do editing of the input line. +For your convenience, many other commands are available in +addition to C-b, C-f, C-d, and DEL. +Here are some commands for moving more rapidly within the line. +

+
+
C-a
+

Move to the start of the line. +

+
C-e
+

Move to the end of the line. +

+
M-f
+

Move forward a word, where a word is composed of letters and digits. +

+
M-b
+

Move backward a word. +

+
C-l
+

Clear the screen, reprinting the current line at the top. +

+
+ +

Notice how C-f moves forward a character, while M-f moves +forward a word. +It is a loose convention that control keystrokes +operate on characters while meta keystrokes operate on words. +

+
+
+
+ +

1.2.3 Readline Killing Commands

+ + + + +

Killing text means to delete the text from the line, but to save +it away for later use, usually by yanking (re-inserting) +it back into the line. +(‘Cut’ and ‘paste’ are more recent jargon for ‘kill’ and ‘yank’.) +

+

If the description for a command says that it ‘kills’ text, then you can +be sure that you can get the text back in a different (or the same) +place later. +

+

When you use a kill command, the text is saved in a kill-ring. +Any number of consecutive kills save all of the killed text together, so +that when you yank it back, you get it all. +The kill ring is not line specific; the text that you killed on a previously +typed line is available to be yanked back later, when you are typing +another line. + +

+

Here is the list of commands for killing text. +

+
+
C-k
+

Kill the text from the current cursor position to the end of the line. +

+
+
M-d
+

Kill from the cursor to the end of the current word, or, if between +words, to the end of the next word. +Word boundaries are the same as those used by M-f. +

+
+
M-DEL
+

Kill from the cursor to the start of the current word, or, if between +words, to the start of the previous word. +Word boundaries are the same as those used by M-b. +

+
+
C-w
+

Kill from the cursor to the previous whitespace. +This is different than +M-DEL because the word boundaries differ. +

+
+
+ +

Here is how to yank the text back into the line. Yanking +means to copy the most-recently-killed text from the kill buffer +into the line at the current cursor position. +

+
+
C-y
+

Yank the most recently killed text back into the buffer at the cursor. +

+
+
M-y
+

Rotate the kill-ring, and yank the new top. +You can only do this if the prior command is C-y or M-y. +

+
+ +
+
+
+ +

1.2.4 Readline Arguments

+ +

You can pass numeric arguments to Readline commands. +Sometimes the +argument acts as a repeat count, other times it is the sign of the +argument that is significant. +If you pass a negative argument to a +command which normally acts in a forward direction, that command will +act in a backward direction. +For example, to kill text back to the +start of the line, you might type ‘M-- C-k’. +

+

The general way to pass numeric arguments to a command is to type meta +digits before the command. +If the first ‘digit’ typed is a minus +sign (‘-’), then the sign of the argument will be negative. +Once you have typed one meta digit to get the argument started, you can +type the remainder of the digits, and then the command. +For example, to give +the C-d command an argument of 10, you could type ‘M-1 0 C-d’, +which will delete the next ten characters on the input line. +

+
+
+
+ +

1.2.5 Searching for Commands in the History

+ +

Readline provides commands for searching through the command history +for lines containing a specified string. +There are two search modes: incremental and non-incremental. +

+

Incremental searches begin before the user has finished typing the +search string. +As each character of the search string is typed, Readline displays +the next entry from the history matching the string typed so far. +An incremental search requires only as many characters as needed to +find the desired history entry. +When using emacs editing mode, type C-r +to search backward in the history for a particular string. +Typing C-s searches forward through the history. +The characters present in the value of the isearch-terminators variable +are used to terminate an incremental search. +If that variable has not been assigned a value, the ESC and +C-j characters terminate an incremental search. +C-g aborts an incremental search and restores the original line. +When the search is terminated, the history entry containing the +search string becomes the current line. +

+

To find other matching entries in the history list, type C-r or +C-s as appropriate. +This searches backward or forward in the history for the next +entry matching the search string typed so far. +Any other key sequence bound to a Readline command terminates +the search and executes that command. +For instance, a RET terminates the search and accepts +the line, thereby executing the command from the history list. +A movement command will terminate the search, make the last line found +the current line, and begin editing. +

+

Readline remembers the last incremental search string. +If two C-rs are typed without any intervening characters defining +a new search string, Readline uses any remembered search string. +

+

Non-incremental searches read the entire search string before starting +to search for matching history entries. +The search string may be typed by the user or be part of the contents of +the current line. +

+
+
+
+
+ +

1.3 Readline Init File

+ + +

Although the Readline library comes with a set of Emacs-like +keybindings installed by default, it is possible to use a different set +of keybindings. +Any user can customize programs that use Readline by putting +commands in an inputrc file, conventionally in their home directory. +The name of this file is taken from the value of the +environment variable INPUTRC. +If that variable is unset, the default is ~/.inputrc. +If that file does not exist or cannot be read, Readline looks for +/etc/inputrc. +

+

When a program that uses the Readline library starts up, Readline reads +the init file and sets any variables and key bindings it contains. +

+

In addition, the C-x C-r command re-reads this init file, thus +incorporating any changes that you might have made to it. +

+ + +
+
+ +

1.3.1 Readline Init File Syntax

+ +

There are only a few basic constructs allowed in the +Readline init file. +Blank lines are ignored. +Lines beginning with a ‘#’ are comments. +Lines beginning with a ‘$’ indicate conditional +constructs (see Conditional Init Constructs). +Other lines denote variable settings and key bindings. +

+
+
Variable Settings
+

You can modify the run-time behavior of Readline by +altering the values of variables in Readline +using the set command within the init file. +The syntax is simple: +

+
+
set variable value
+
+ +

Here, for example, is how to +change from the default Emacs-like key binding to use +vi line editing commands: +

+
+
set editing-mode vi
+
+ +

Variable names and values, where appropriate, are recognized without +regard to case. +Unrecognized variable names are ignored. +

+

Boolean variables (those that can be set to on or off) are set to on if +the value is null or empty, on (case-insensitive), or 1. +Any other value results in the variable being set to off. +

+ +

A great deal of run-time behavior is changeable with the following +variables. +

+ +
+
active-region-start-color
+

A string variable that controls the text color and background when displaying +the text in the active region (see the description of +enable-active-region below). +This string must not take up any physical character positions on the display, +so it should consist only of terminal escape sequences. +It is output to the terminal before displaying the text in the active region. +This variable is reset to the default value whenever the terminal type changes. +The default value is the string that puts the terminal in standout mode, +as obtained from the terminal’s terminfo description. +A sample value might be ‘\e[01;33m’. +

+
+
active-region-end-color
+

A string variable that “undoes” +the effects of active-region-start-color +and restores “normal” +terminal display appearance after displaying text in the active region. +This string must not take up any physical character positions on the display, +so it should consist only of terminal escape sequences. +It is output to the terminal after displaying the text in the active region. +This variable is reset to the default value whenever the terminal type changes. +The default value is the string that restores the terminal from standout mode, +as obtained from the terminal’s terminfo description. +A sample value might be ‘\e[0m’. +

+
+
bell-style
+

Controls what happens when Readline wants to ring the terminal bell. +If set to ‘none’, Readline never rings the bell. +If set to ‘visible’, Readline uses a visible bell if one is available. +If set to ‘audible’ (the default), Readline attempts to ring +the terminal’s bell. +

+
+
bind-tty-special-chars
+

If set to ‘on’ (the default), Readline attempts to bind the control +characters that are +treated specially by the kernel’s terminal driver to their +Readline equivalents. +These override the default Readline bindings described here. +Type ‘stty -a’ at a Bash prompt to see your current terminal settings, +including the special control characters (usually cchars). +

+
+
blink-matching-paren
+

If set to ‘on’, Readline attempts to briefly move the cursor to an +opening parenthesis when a closing parenthesis is inserted. +The default is ‘off’. +

+
+
colored-completion-prefix
+

If set to ‘on’, when listing completions, Readline displays the +common prefix of the set of possible completions using a different color. +The color definitions are taken from the value of the LS_COLORS +environment variable. +If there is a color definition in LS_COLORS for the custom suffix +‘readline-colored-completion-prefix’, Readline uses this color for +the common prefix instead of its default. +The default is ‘off’. +

+
+
colored-stats
+

If set to ‘on’, Readline displays possible completions using different +colors to indicate their file type. +The color definitions are taken from the value of the LS_COLORS +environment variable. +The default is ‘off’. +

+
+
comment-begin
+

The string to insert at the beginning of the line by the +insert-comment command. +The default value is "#". +

+
+
completion-display-width
+

The number of screen columns used to display possible matches +when performing completion. +The value is ignored if it is less than 0 or greater than the terminal +screen width. +A value of 0 causes matches to be displayed one per line. +The default value is -1. +

+
+
completion-ignore-case
+

If set to ‘on’, Readline performs filename matching and completion +in a case-insensitive fashion. +The default value is ‘off’. +

+
+
completion-map-case
+

If set to ‘on’, and completion-ignore-case is enabled, Readline +treats hyphens (‘-’) and underscores (‘_’) as equivalent when +performing case-insensitive filename matching and completion. +The default value is ‘off’. +

+
+
completion-prefix-display-length
+

The maximum +length in characters of the common prefix of a list of possible +completions that is displayed without modification. +When set to a value greater than zero, Readline +replaces common prefixes longer than this value +with an ellipsis when displaying possible completions. +If a completion begins with a period, +and Readline is completing filenames, +it uses three underscores instead of an ellipsis. +

+
+
completion-query-items
+

The number of possible completions that determines when the user is asked +whether the list of possibilities should be displayed. +If the number of possible completions is greater than +or equal to this value, +Readline asks whether or not the user wishes to view them; +otherwise, Readline simply lists the completions. +This variable must be set to an integer value greater than or equal to zero. +A zero value means Readline should never ask; negative +values are treated as zero. +The default limit is 100. +

+
+
convert-meta
+

If set to ‘on’, Readline converts characters it reads +that have the eighth bit set to an ASCII key sequence by +clearing the eighth bit and prefixing an ESC character, +converting them to a meta-prefixed key sequence. +The default value is ‘on’, but Readline sets it to ‘off’ +if the locale contains +characters whose encodings may include bytes with the eighth bit set. +This variable is dependent on the LC_CTYPE locale category, and +may change if the locale changes. +This variable also affects key bindings; +see the description of force-meta-prefix below. +

+
+
disable-completion
+

If set to ‘On’, Readline inhibits word completion. +Completion characters are inserted into the line as if they +had been mapped to self-insert. +The default is ‘off’. +

+
+
echo-control-characters
+

When set to ‘on’, on operating systems that indicate they support it, +Readline echoes a character corresponding to a signal generated from the +keyboard. +The default is ‘on’. +

+
+
editing-mode
+

The editing-mode variable controls the default set of +key bindings. +By default, Readline starts up in emacs editing mode, where +the keystrokes are most similar to Emacs. +This variable can be set to either ‘emacs’ or ‘vi’. +

+
+
emacs-mode-string
+

If the show-mode-in-prompt variable is enabled, +this string is displayed immediately before the last line of the primary +prompt when emacs editing mode is active. +The value is expanded like a +key binding, so the standard set of meta- and control- prefixes and +backslash escape sequences is available. +The ‘\1’ and ‘\2’ escapes begin and end sequences of +non-printing characters, which can be used to embed a terminal control +sequence into the mode string. +The default is ‘@’. +

+
+
enable-active-region
+

point is the current cursor position, and mark refers to a +saved cursor position (see Commands For Moving). +The text between the point and mark is referred to as the region. +When this variable is set to ‘On’, Readline allows certain commands +to designate the region as active. +When the region is active, Readline highlights the text in the region using +the value of the active-region-start-color, which defaults to the +string that enables the terminal’s standout mode. +The active region shows the text inserted by bracketed-paste and any +matching text found by incremental and non-incremental history searches. +The default is ‘On’. +

+
+
enable-bracketed-paste
+

When set to ‘On’, Readline configures the terminal to insert each +paste into the editing buffer as a single string of characters, instead +of treating each character as if it had been read from the keyboard. +This is called putting the terminal into bracketed paste mode; +it prevents Readline from executing any editing commands bound +to key sequences appearing in the pasted text. +The default is ‘On’. +

+
+
enable-keypad
+

When set to ‘on’, Readline tries to enable the application +keypad when it is called. +Some systems need this to enable the arrow keys. +The default is ‘off’. +

+
+
enable-meta-key
+

When set to ‘on’, Readline tries to enable any meta +modifier key the terminal claims to support when it is called. +On many terminals, the Meta key is used to send eight-bit characters; +this variable checks for the terminal capability that indicates the +terminal can enable and disable a mode that sets the eighth bit of a +character (0200) if the Meta key is held down when the character is +typed (a meta character). +The default is ‘on’. +

+
+
expand-tilde
+

If set to ‘on’, Readline attempts tilde expansion when it +attempts word completion. +The default is ‘off’. +

+
+
force-meta-prefix
+

If set to ‘on’, Readline modifies its behavior when binding key +sequences containing \M- or Meta- +(see Key Bindings in Readline Init File Syntax) +by converting a key sequence of the form +\M-C or Meta-C to the two-character sequence +ESC C (adding the meta prefix). +If force-meta-prefix is set to ‘off’ (the default), +Readline uses the value of the convert-meta variable to determine +whether to perform this conversion: +if convert-meta is ‘on’, +Readline performs the conversion described above; +if it is ‘off’, Readline converts C to a meta character by +setting the eighth bit (0200). +The default is ‘off’. +

+
+
history-preserve-point
+

If set to ‘on’, the history code attempts to place the point (the +current cursor position) at the +same location on each history line retrieved with previous-history +or next-history. +The default is ‘off’. +

+
+
history-size
+

Set the maximum number of history entries saved in the history list. +If set to zero, any existing history entries are deleted and no new entries +are saved. +If set to a value less than zero, the number of history entries is not +limited. +By default, the number of history entries is not limited. +If you try to set history-size to a non-numeric value, +the maximum number of history entries will be set to 500. +

+
+
horizontal-scroll-mode
+

Setting this variable to ‘on’ means that the text of the lines +being edited will scroll horizontally on a single screen line when +the lines are longer than the width of the screen, instead of wrapping +onto a new screen line. +This variable is automatically set to ‘on’ for terminals of height 1. +By default, this variable is set to ‘off’. +

+
+
+input-meta
+

If set to ‘on’, Readline enables eight-bit input (that is, it +does not clear the eighth bit in the characters it reads), +regardless of what the terminal claims it can support. +The default value is ‘off’, but Readline sets it to ‘on’ +if the locale contains characters whose encodings may include bytes +with the eighth bit set. +This variable is dependent on the LC_CTYPE locale category, and +its value may change if the locale changes. +The name meta-flag is a synonym for input-meta. +

+
+
isearch-terminators
+

The string of characters that should terminate an incremental search without +subsequently executing the character as a command (see Searching for Commands in the History). +If this variable has not been given a value, the characters ESC and +C-j terminate an incremental search. +

+
+
keymap
+

Sets Readline’s idea of the current keymap for key binding commands. +Built-in keymap names are +emacs, +emacs-standard, +emacs-meta, +emacs-ctlx, +vi, +vi-move, +vi-command, and +vi-insert. +vi is equivalent to vi-command (vi-move is also a +synonym); emacs is equivalent to emacs-standard. +Applications may add additional names. +The default value is emacs; +the value of the editing-mode variable also affects the +default keymap. +

+
+
keyseq-timeout
+

Specifies the duration Readline will wait for a character when +reading an ambiguous key sequence +(one that can form a complete key sequence using the input read so far, +or can take additional input to complete a longer key sequence). +If Readline doesn’t receive any input within the timeout, it uses the +shorter but complete key sequence. +Readline uses this value to determine whether or not input is +available on the current input source (rl_instream by default). +The value is specified in milliseconds, so a value of 1000 means that +Readline will wait one second for additional input. +If this variable is set to a value less than or equal to zero, or to a +non-numeric value, Readline waits until another key is pressed to +decide which key sequence to complete. +The default value is 500. +

+
+
mark-directories
+

If set to ‘on’, completed directory names have a slash appended. +The default is ‘on’. +

+
+
mark-modified-lines
+

When this variable is set to ‘on’, Readline displays an +asterisk (‘*’) at the start of history lines which have been modified. +This variable is ‘off’ by default. +

+
+
mark-symlinked-directories
+

If set to ‘on’, completed names which are symbolic links to directories +have a slash appended, subject to the value of mark-directories. +The default is ‘off’. +

+
+
match-hidden-files
+

This variable, when set to ‘on’, forces Readline to match files whose +names begin with a ‘.’ (hidden files) when performing filename +completion. +If set to ‘off’, the user must include the leading ‘.’ +in the filename to be completed. +This variable is ‘on’ by default. +

+
+
menu-complete-display-prefix
+

If set to ‘on’, menu completion displays the common prefix of the +list of possible completions (which may be empty) before cycling through +the list. +The default is ‘off’. +

+
+
output-meta
+

If set to ‘on’, Readline displays characters with the +eighth bit set directly rather than as a meta-prefixed escape +sequence. +The default is ‘off’, but Readline sets it to ‘on’ +if the locale contains characters whose encodings may include +bytes with the eighth bit set. +This variable is dependent on the LC_CTYPE locale category, and +its value may change if the locale changes. +

+
+
page-completions
+

If set to ‘on’, Readline uses an internal pager resembling +more(1) +to display a screenful of possible completions at a time. +This variable is ‘on’ by default. +

+
+
prefer-visible-bell
+

See bell-style. +

+
+
print-completions-horizontally
+

If set to ‘on’, Readline displays completions with matches +sorted horizontally in alphabetical order, rather than down the screen. +The default is ‘off’. +

+
+
revert-all-at-newline
+

If set to ‘on’, Readline will undo all changes to history lines +before returning when executing accept-line. +By default, +history lines may be modified and retain individual undo lists across +calls to readline(). +The default is ‘off’. +

+
+
search-ignore-case
+

If set to ‘on’, Readline performs incremental and non-incremental +history list searches in a case-insensitive fashion. +The default value is ‘off’. +

+
+
show-all-if-ambiguous
+

This alters the default behavior of the completion functions. +If set to ‘on’, +words which have more than one possible completion cause the +matches to be listed immediately instead of ringing the bell. +The default value is ‘off’. +

+
+
show-all-if-unmodified
+

This alters the default behavior of the completion functions in +a fashion similar to show-all-if-ambiguous. +If set to ‘on’, +words which have more than one possible completion without any +possible partial completion (the possible completions don’t share +a common prefix) cause the matches to be listed immediately instead +of ringing the bell. +The default value is ‘off’. +

+
+
show-mode-in-prompt
+

If set to ‘on’, add a string to the beginning of the prompt +indicating the editing mode: emacs, vi command, or vi insertion. +The mode strings are user-settable (e.g., emacs-mode-string). +The default value is ‘off’. +

+
+
skip-completed-text
+

If set to ‘on’, this alters the default completion behavior when +inserting a single match into the line. +It’s only active when performing completion in the middle of a word. +If enabled, Readline does not insert characters from the completion +that match characters after point in the word being completed, +so portions of the word following the cursor are not duplicated. +For instance, if this is enabled, attempting completion when the cursor +is after the first ‘e’ in ‘Makefile’ will result in +‘Makefile’ rather than ‘Makefilefile’, +assuming there is a single possible completion. +The default value is ‘off’. +

+
+
vi-cmd-mode-string
+

If the show-mode-in-prompt variable is enabled, +this string is displayed immediately before the last line of the primary +prompt when vi editing mode is active and in command mode. +The value is expanded like a key binding, so the standard set of +meta- and control- prefixes and backslash escape sequences is available. +The ‘\1’ and ‘\2’ escapes begin and end sequences of +non-printing characters, which can be used to embed a terminal control +sequence into the mode string. +The default is ‘(cmd)’. +

+
+
vi-ins-mode-string
+

If the show-mode-in-prompt variable is enabled, +this string is displayed immediately before the last line of the primary +prompt when vi editing mode is active and in insertion mode. +The value is expanded like a key binding, so the standard set of +meta- and control- prefixes and backslash escape sequences is available. +The ‘\1’ and ‘\2’ escapes begin and end sequences of +non-printing characters, which can be used to embed a terminal control +sequence into the mode string. +The default is ‘(ins)’. +

+
+
visible-stats
+

If set to ‘on’, a character denoting a file’s type +is appended to the filename when listing possible +completions. +The default is ‘off’. +

+
+
+ +
+
Key Bindings
+

The syntax for controlling key bindings in the init file is simple. +First you need to find the name of the command that you +want to change. +The following sections contain tables of the command +name, the default keybinding, if any, and a short description of what +the command does. +

+

Once you know the name of the command, simply place on a line +in the init file the name of the key +you wish to bind the command to, a colon, and then the name of the +command. +There can be no space between the key name and the colon – that will be +interpreted as part of the key name. +The name of the key can be expressed in different ways, depending on +what you find most comfortable. +

+

In addition to command names, Readline allows keys to be bound +to a string that is inserted when the key is pressed (a macro). +The difference between a macro and a command is that a macro is +enclosed in single or double quotes. +

+ +
+
keyname: function-name or macro
+

keyname is the name of a key spelled out in English. +For example: +

+
Control-u: universal-argument
+Meta-Rubout: backward-kill-word
+Control-o: "> output"
+
+ +

In the example above, C-u is bound to the function +universal-argument, +M-DEL is bound to the function backward-kill-word, and +C-o is bound to run the macro +expressed on the right hand side (that is, to insert the text +‘> output’ into the line). +

+

This key binding syntax recognizes a number of symbolic character names: +DEL, +ESC, +ESCAPE, +LFD, +NEWLINE, +RET, +RETURN, +RUBOUT +(a destructive backspace), +SPACE, +SPC, +and +TAB. +

+
+
"keyseq": function-name or macro
+

keyseq differs from keyname above in that strings +denoting an entire key sequence can be specified, by placing +the key sequence in double quotes. +Some GNU Emacs style key escapes can be used, +as in the following example, but none of the +special character names are recognized. +

+
+
"\C-u": universal-argument
+"\C-x\C-r": re-read-init-file
+"\e[11~": "Function Key 1"
+
+ +

In the above example, C-u is again bound to the function +universal-argument (just as it was in the first example), +‘C-x C-r’ is bound to the function re-read-init-file, +and ‘ESC [ 1 1 ~’ is bound to insert +the text ‘Function Key 1’. +

+
+
+ +

The following GNU Emacs style escape sequences are available when +specifying key sequences: +

+
+
\C-
+

A control prefix. +

+
\M-
+

Adding the meta prefix or converting the following character to a meta +character, as described above under force-meta-prefix +(see Variable Settings in Readline Init File Syntax). +

+
\e
+

An escape character. +

+
\\
+

Backslash. +

+
\"
+

", a double quotation mark. +

+
\'
+

', a single quote or apostrophe. +

+
+ +

In addition to the GNU Emacs style escape sequences, a second +set of backslash escapes is available: +

+
+
\a
+

alert (bell) +

+
\b
+

backspace +

+
\d
+

delete +

+
\f
+

form feed +

+
\n
+

newline +

+
\r
+

carriage return +

+
\t
+

horizontal tab +

+
\v
+

vertical tab +

+
\nnn
+

The eight-bit character whose value is the octal value nnn +(one to three digits). +

+
\xHH
+

The eight-bit character whose value is the hexadecimal value HH +(one or two hex digits). +

+
+ +

When entering the text of a macro, single or double quotes must +be used to indicate a macro definition. +Unquoted text is assumed to be a function name. +The backslash escapes described above are expanded +in the macro body. +Backslash will quote any other character in the macro text, +including ‘"’ and ‘'’. +For example, the following binding will make ‘C-x \’ +insert a single ‘\’ into the line: +

+
"\C-x\\": "\\"
+
+ +
+
+ +
+
+
+ +

1.3.2 Conditional Init Constructs

+ +

Readline implements a facility similar in spirit to the conditional +compilation features of the C preprocessor which allows key +bindings and variable settings to be performed as the result +of tests. +There are four parser directives available. +

+
+
$if
+

The $if construct allows bindings to be made based on the +editing mode, the terminal being used, or the application using +Readline. +The text of the test, after any comparison operator, +extends to the end of the line; +unless otherwise noted, no characters are required to isolate it. +

+
+
mode
+

The mode= form of the $if directive is used to test +whether Readline is in emacs or vi mode. +This may be used in conjunction +with the ‘set keymap’ command, for instance, to set bindings in +the emacs-standard and emacs-ctlx keymaps only if +Readline is starting out in emacs mode. +

+
+
term
+

The term= form may be used to include terminal-specific +key bindings, perhaps to bind the key sequences output by the +terminal’s function keys. +The word on the right side of the +‘=’ +is tested against both the full name of the terminal and the portion +of the terminal name before the first ‘-’. +This allows xterm to match both xterm and +xterm-256color, for instance. +

+
+
version
+

The version test may be used to perform comparisons against +specific Readline versions. +The version expands to the current Readline version. +The set of comparison operators includes +‘=’ (and ‘==’), ‘!=’, ‘<=’, ‘>=’, ‘<’, +and ‘>’. +The version number supplied on the right side of the operator consists +of a major version number, an optional decimal point, and an optional +minor version (e.g., ‘7.1’). +If the minor version is omitted, it +defaults to ‘0’. +The operator may be separated from the string version and +from the version number argument by whitespace. +The following example sets a variable if the Readline version being used +is 7.0 or newer: +

+
$if version >= 7.0
+set show-mode-in-prompt on
+$endif
+
+ +
+
application
+

The application construct is used to include +application-specific settings. +Each program using the Readline +library sets the application name, and you can test for +a particular value. +This could be used to bind key sequences to functions useful for +a specific program. +For instance, the following command adds a +key sequence that quotes the current or previous word in Bash: +

+
$if Bash
+# Quote the current or previous word
+"\C-xq": "\eb\"\ef\""
+$endif
+
+ +
+
variable
+

The variable construct provides simple equality tests for Readline +variables and values. +The permitted comparison operators are ‘=’, ‘==’, and ‘!=’. +The variable name must be separated from the comparison operator by +whitespace; the operator may be separated from the value on the right hand +side by whitespace. +String and boolean variables may be tested. +Boolean variables must be +tested against the values on and off. +The following example is equivalent to the mode=emacs test described +above: +

+
$if editing-mode == emacs
+set show-mode-in-prompt on
+$endif
+
+
+
+ +
+
$else
+

Commands in this branch of the $if directive are executed if +the test fails. +

+
+
$endif
+

This command, as seen in the previous example, terminates an +$if command. +

+
+
$include
+

This directive takes a single filename as an argument and reads commands +and key bindings from that file. +For example, the following directive reads from /etc/inputrc: +

+
$include /etc/inputrc
+
+
+
+ +
+
+
+ +

1.3.3 Sample Init File

+ +

Here is an example of an inputrc file. This illustrates key +binding, variable assignment, and conditional syntax. +

+
+
# This file controls the behavior of line input editing for
+# programs that use the GNU Readline library.  Existing
+# programs include FTP, Bash, and GDB.
+#
+# You can re-read the inputrc file with C-x C-r.
+# Lines beginning with '#' are comments.
+#
+# First, include any system-wide bindings and variable
+# assignments from /etc/Inputrc
+$include /etc/Inputrc
+
+#
+# Set various bindings for emacs mode.
+
+set editing-mode emacs 
+
+$if mode=emacs
+
+Meta-Control-h:	backward-kill-word	Text after the function name is ignored
+
+#
+# Arrow keys in keypad mode
+#
+#"\M-OD":        backward-char
+#"\M-OC":        forward-char
+#"\M-OA":        previous-history
+#"\M-OB":        next-history
+#
+# Arrow keys in ANSI mode
+#
+"\M-[D":        backward-char
+"\M-[C":        forward-char
+"\M-[A":        previous-history
+"\M-[B":        next-history
+#
+# Arrow keys in 8 bit keypad mode
+#
+#"\M-\C-OD":       backward-char
+#"\M-\C-OC":       forward-char
+#"\M-\C-OA":       previous-history
+#"\M-\C-OB":       next-history
+#
+# Arrow keys in 8 bit ANSI mode
+#
+#"\M-\C-[D":       backward-char
+#"\M-\C-[C":       forward-char
+#"\M-\C-[A":       previous-history
+#"\M-\C-[B":       next-history
+
+C-q: quoted-insert
+
+$endif
+
+# An old-style binding.  This happens to be the default.
+TAB: complete
+
+# Macros that are convenient for shell interaction
+$if Bash
+# edit the path
+"\C-xp": "PATH=${PATH}\e\C-e\C-a\ef\C-f"
+# prepare to type a quoted word --
+# insert open and close double quotes
+# and move to just after the open quote
+"\C-x\"": "\"\"\C-b"
+# insert a backslash (testing backslash escapes
+# in sequences and macros)
+"\C-x\\": "\\"
+# Quote the current or previous word
+"\C-xq": "\eb\"\ef\""
+# Add a binding to refresh the line, which is unbound
+"\C-xr": redraw-current-line
+# Edit variable on current line.
+"\M-\C-v": "\C-a\C-k$\C-y\M-\C-e\C-a\C-y="
+$endif
+
+# use a visible bell if one is available
+set bell-style visible
+
+# don't strip characters to 7 bits when reading
+set input-meta on
+
+# allow iso-latin1 characters to be inserted rather
+# than converted to prefix-meta sequences
+set convert-meta off
+
+# display characters with the eighth bit set directly
+# rather than as meta-prefixed characters
+set output-meta on
+
+# if there are 150 or more possible completions for a word,
+# ask whether or not the user wants to see all of them
+set completion-query-items 150
+
+# For FTP
+$if Ftp
+"\C-xg": "get \M-?"
+"\C-xt": "put \M-?"
+"\M-.": yank-last-arg
+$endif
+
+ +
+
+
+
+ +

1.4 Bindable Readline Commands

+ + +

This section describes Readline commands that may be bound to key +sequences. +Command names without an accompanying key sequence are unbound by default. +

+

In the following descriptions, point refers to the current cursor +position, and mark refers to a cursor position saved by the +set-mark command. +The text between the point and mark is referred to as the region. +Readline +has the concept of an active region: +when the region is active, +Readline redisplay highlights the region using the +value of the +active-region-start-color +variable. +The enable-active-region variable turns this on and off. +Several commands set the region to active; those are noted below. +

+ +
+
+ +

1.4.1 Commands For Moving

+
+
beginning-of-line (C-a)
+

Move to the start of the current line. +This may also be bound to the Home key on some keyboards. +

+
+
end-of-line (C-e)
+

Move to the end of the line. +This may also be bound to the End key on some keyboards. +

+
+
forward-char (C-f)
+

Move forward a character. +This may also be bound to the right arrow key on some keyboards. +

+
+
backward-char (C-b)
+

Move back a character. +This may also be bound to the left arrow key on some keyboards. +

+
+
forward-word (M-f)
+

Move forward to the end of the next word. +Words are composed of letters and digits. +

+
+
backward-word (M-b)
+

Move back to the start of the current or previous word. +Words are composed of letters and digits. +

+ +
+
previous-screen-line ()
+

Attempt to move point to the same physical screen column on the previous +physical screen line. +This will not have the desired effect if the current +Readline line does not take up more than one physical line or if point is not +greater than the length of the prompt plus the screen width. +

+
+
next-screen-line ()
+

Attempt to move point to the same physical screen column on the next +physical screen line. +This will not have the desired effect if the current +Readline line does not take up more than one physical line or if the length +of the current Readline line is not greater than the length of the prompt +plus the screen width. +

+
+
clear-display (M-C-l)
+

Clear the screen and, if possible, the terminal’s scrollback buffer, +then redraw the current line, +leaving the current line at the top of the screen. +

+
+
clear-screen (C-l)
+

Clear the screen, +then redraw the current line, +leaving the current line at the top of the screen. +If given a numeric argument, this refreshes the current line +without clearing the screen. +

+
+
redraw-current-line ()
+

Refresh the current line. By default, this is unbound. +

+
+
+ +
+
+
+ +

1.4.2 Commands For Manipulating The History

+ +
+
accept-line (Newline or Return)
+

Accept the line regardless of where the cursor is. +If this line is non-empty, you can add it to the history list using +add_history(). +If this line is a modified history line, then restore the history line +to its original state. +

+
+
previous-history (C-p)
+

Move ‘back’ through the history list, fetching the previous command. +This may also be bound to the up arrow key on some keyboards. +

+
+
next-history (C-n)
+

Move ‘forward’ through the history list, fetching the next command. +This may also be bound to the down arrow key on some keyboards. +

+
+
beginning-of-history (M-<)
+

Move to the first line in the history. +

+
+
end-of-history (M->)
+

Move to the end of the input history, i.e., the line currently +being entered. +

+
+
reverse-search-history (C-r)
+

Search backward starting at the current line and moving ‘up’ through +the history as necessary. +This is an incremental search. +This command sets the region to the matched text and activates the region. +

+
+
forward-search-history (C-s)
+

Search forward starting at the current line and moving ‘down’ through +the history as necessary. +This is an incremental search. +This command sets the region to the matched text and activates the region. +

+
+
non-incremental-reverse-search-history (M-p)
+

Search backward starting at the current line and moving ‘up’ +through the history as necessary using a non-incremental search +for a string supplied by the user. +The search string may match anywhere in a history line. +

+
+
non-incremental-forward-search-history (M-n)
+

Search forward starting at the current line and moving ‘down’ +through the history as necessary using a non-incremental search +for a string supplied by the user. +The search string may match anywhere in a history line. +

+
+
history-search-backward ()
+

Search backward through the history for the string of characters +between the start of the current line and the point. +The search string must match at the beginning of a history line. +This is a non-incremental search. +By default, this command is unbound, but may be bound to the Page Down +key on some keyboards. +

+
+
history-search-forward ()
+

Search forward through the history for the string of characters +between the start of the current line and the point. +The search string must match at the beginning of a history line. +This is a non-incremental search. +By default, this command is unbound, but may be bound to the Page Up +key on some keyboards. +

+
+
history-substring-search-backward ()
+

Search backward through the history for the string of characters +between the start of the current line and the point. +The search string may match anywhere in a history line. +This is a non-incremental search. +By default, this command is unbound. +

+
+
history-substring-search-forward ()
+

Search forward through the history for the string of characters +between the start of the current line and the point. +The search string may match anywhere in a history line. +This is a non-incremental search. +By default, this command is unbound. +

+
+
yank-nth-arg (M-C-y)
+

Insert the first argument to the previous command (usually +the second word on the previous line) at point. +With an argument n, +insert the nth word from the previous command (the words +in the previous command begin with word 0). +A negative argument inserts the nth word from the end of +the previous command. +Once the argument n is computed, +this uses the history expansion facilities to extract the +nth word, as if the +‘!n’ history expansion had been specified. +

+
+
yank-last-arg (M-. or M-_)
+

Insert last argument to the previous command (the last word of the +previous history entry). +With a numeric argument, behave exactly like yank-nth-arg. +Successive calls to yank-last-arg move back through the history +list, inserting the last word (or the word specified by the argument to +the first call) of each line in turn. +Any numeric argument supplied to these successive calls determines +the direction to move through the history. +A negative argument switches the direction through the history +(back or forward). +This uses the history expansion facilities to extract the +last word, as if the +‘!$’ history expansion had been specified. +

+
+
operate-and-get-next (C-o)
+

Accept the current line for return to the calling application as if a +newline had been entered, +and fetch the next line relative to the current line from the history +for editing. +A numeric argument, if supplied, specifies the history entry +to use instead of the current line. +

+
+
fetch-history ()
+

With a numeric argument, fetch that entry from the history list +and make it the current line. +Without an argument, move back to the first entry in the history list. +

+
+
+ +
+
+
+ +

1.4.3 Commands For Changing Text

+ +
+
end-of-file (usually C-d)
+

The character indicating end-of-file as set, for example, by +stty. +If this character is read when there are no characters +on the line, and point is at the beginning of the line, Readline +interprets it as the end of input and returns EOF. +

+
+
delete-char (C-d)
+

Delete the character at point. +If this function is bound to the +same character as the tty EOF character, as C-d +commonly is, see above for the effects. +This may also be bound to the Delete key on some keyboards. +

+
+
backward-delete-char (Rubout)
+

Delete the character behind the cursor. +A numeric argument means +to kill the characters, saving them on the kill ring, +instead of deleting them. +

+
+
forward-backward-delete-char ()
+

Delete the character under the cursor, unless the cursor is at the +end of the line, in which case the character behind the cursor is +deleted. +By default, this is not bound to a key. +

+
+
quoted-insert (C-q or C-v)
+

Add the next character typed to the line verbatim. +This is how to insert key sequences like C-q, for example. +

+
+
tab-insert (M-TAB)
+

Insert a tab character. +

+
+
self-insert (a, b, A, 1, !, …)
+

Insert the character typed. +

+
+
bracketed-paste-begin ()
+

This function is intended to be bound to the "bracketed paste" escape +sequence sent by some terminals, and such a binding is assigned by default. +It allows Readline to insert the pasted text as a single unit without treating +each character as if it had been read from the keyboard. +The characters +are inserted as if each one was bound to self-insert instead of +executing any editing commands. +

+

Bracketed paste sets the region (the characters between point and the mark) +to the inserted text. +It sets the active region. +

+
+
transpose-chars (C-t)
+

Drag the character before the cursor forward over +the character at the cursor, moving the +cursor forward as well. +If the insertion point +is at the end of the line, then this +transposes the last two characters of the line. +Negative arguments have no effect. +

+
+
transpose-words (M-t)
+

Drag the word before point past the word after point, +moving point past that word as well. +If the insertion point is at the end of the line, this transposes +the last two words on the line. +

+ +
+
upcase-word (M-u)
+

Uppercase the current (or following) word. +With a negative argument, +uppercase the previous word, but do not move the cursor. +

+
+
downcase-word (M-l)
+

Lowercase the current (or following) word. +With a negative argument, +lowercase the previous word, but do not move the cursor. +

+
+
capitalize-word (M-c)
+

Capitalize the current (or following) word. +With a negative argument, +capitalize the previous word, but do not move the cursor. +

+
+
overwrite-mode ()
+

Toggle overwrite mode. +With an explicit positive numeric argument, switches to overwrite mode. +With an explicit non-positive numeric argument, switches to insert mode. +This command affects only emacs mode; +vi mode does overwrite differently. +Each call to readline() starts in insert mode. +

+

In overwrite mode, characters bound to self-insert replace +the text at point rather than pushing the text to the right. +Characters bound to backward-delete-char replace the character +before point with a space. +

+

By default, this command is unbound, but may be bound to the Insert +key on some keyboards. +

+
+
+ +
+
+
+ +

1.4.4 Killing And Yanking

+ +
+
kill-line (C-k)
+

Kill the text from point to the end of the current line. +With a negative numeric argument, kill backward from the cursor to the +beginning of the line. +

+
+
backward-kill-line (C-x Rubout)
+

Kill backward from the cursor to the beginning of the current line. +With a negative numeric argument, kill forward from the cursor to the +end of the line. +

+
+
unix-line-discard (C-u)
+

Kill backward from the cursor to the beginning of the current line. +

+
+
kill-whole-line ()
+

Kill all characters on the current line, no matter where point is. +By default, this is unbound. +

+
+
kill-word (M-d)
+

Kill from point to the end of the current word, or if between +words, to the end of the next word. +Word boundaries are the same as forward-word. +

+
+
backward-kill-word (M-DEL)
+

Kill the word behind point. +Word boundaries are the same as backward-word. +

+ +
+
unix-word-rubout (C-w)
+

Kill the word behind point, using white space as a word boundary, +saving the killed text on the kill-ring. +

+
+
unix-filename-rubout ()
+

Kill the word behind point, using white space and the slash character +as the word boundaries, +saving the killed text on the kill-ring. +

+
+
delete-horizontal-space ()
+

Delete all spaces and tabs around point. +By default, this is unbound. +

+
+
kill-region ()
+

Kill the text in the current region. +By default, this command is unbound. +

+
+
copy-region-as-kill ()
+

Copy the text in the region to the kill buffer, so it can be yanked +right away. +By default, this command is unbound. +

+
+
copy-backward-word ()
+

Copy the word before point to the kill buffer. +The word boundaries are the same as backward-word. +By default, this command is unbound. +

+
+
copy-forward-word ()
+

Copy the word following point to the kill buffer. +The word boundaries are the same as forward-word. +By default, this command is unbound. +

+
+
yank (C-y)
+

Yank the top of the kill ring into the buffer at point. +

+
+
yank-pop (M-y)
+

Rotate the kill-ring, and yank the new top. +You can only do this if +the prior command is yank or yank-pop. +

+
+ +
+
+
+ +

1.4.5 Specifying Numeric Arguments

+
+
digit-argument (M-0, M-1, … M--)
+

Add this digit to the argument already accumulating, or start a new +argument. +M-- starts a negative argument. +

+
+
universal-argument ()
+

This is another way to specify an argument. +If this command is followed by one or more digits, optionally with a +leading minus sign, those digits define the argument. +If the command is followed by digits, executing universal-argument +again ends the numeric argument, but is otherwise ignored. +As a special case, if this command is immediately followed by a +character that is neither a digit nor minus sign, the argument count +for the next command is multiplied by four. +The argument count is initially one, so executing this function the +first time makes the argument count four, a second time makes the +argument count sixteen, and so on. +By default, this is not bound to a key. +

+
+ +
+
+
+ +

1.4.6 Letting Readline Type For You

+ +
+
complete (TAB)
+

Attempt to perform completion on the text before point. +The actual completion performed is application-specific. +The default is filename completion. +

+
+
possible-completions (M-?)
+

List the possible completions of the text before point. +When displaying completions, Readline sets the number of columns used +for display to the value of completion-display-width, the value of +the environment variable COLUMNS, or the screen width, in that order. +

+
+
insert-completions (M-*)
+

Insert all completions of the text before point that would have +been generated by possible-completions, +separated by a space. +

+
+
menu-complete ()
+

Similar to complete, but replaces the word to be completed +with a single match from the list of possible completions. +Repeatedly executing menu-complete steps through the list +of possible completions, inserting each match in turn. +At the end of the list of completions, +menu-complete rings the bell +(subject to the setting of bell-style) +and restores the original text. +An argument of n moves n positions forward in the list +of matches; a negative argument moves backward through the list. +This command is intended to be bound to TAB, but is unbound +by default. +

+
+
menu-complete-backward ()
+

Identical to menu-complete, but moves backward through the list +of possible completions, as if menu-complete had been given a +negative argument. +This command is unbound by default. +

+
+
export-completions ()
+

Perform completion on the word before point as described above +and write the list of possible completions to Readline’s output stream +using the following format, writing information on separate lines: +

+
    +
  • the number of matches N; +
  • the word being completed; +
  • S:E, +where S and E are the start and end offsets of the word +in the Readline line buffer; then +
  • each match, one per line +
+ +

If there are no matches, the first line will be “0”, +and this command does not print any output after the S:E. +If there is only a single match, this prints a single line containing it. +If there is more than one match, this prints the common prefix of the +matches, which may be empty, on the first line after the S:E, +then the matches on subsequent lines. +In this case, N will include the first line with the common prefix. +

+

The user or application +should be able to accommodate the possibility of a blank line. +The intent is that the user or application reads N lines after +the line containing S:E to obtain the match list. +This command is unbound by default. +

+
+
delete-char-or-list ()
+

Deletes the character under the cursor if not at the beginning or +end of the line (like delete-char). +At the end of the line, it behaves identically to possible-completions. +This command is unbound by default. +

+
+
+ +
+
+
+ +

1.4.7 Keyboard Macros

+
+
start-kbd-macro (C-x ()
+

Begin saving the characters typed into the current keyboard macro. +

+
+
end-kbd-macro (C-x ))
+

Stop saving the characters typed into the current keyboard macro +and save the definition. +

+
+
call-last-kbd-macro (C-x e)
+

Re-execute the last keyboard macro defined, by making the characters +in the macro appear as if typed at the keyboard. +

+
+
print-last-kbd-macro ()
+

Print the last keyboard macro defined in a format suitable for the +inputrc file. +

+
+
+ +
+
+
+ +

1.4.8 Some Miscellaneous Commands

+
+
re-read-init-file (C-x C-r)
+

Read in the contents of the inputrc file, and incorporate +any bindings or variable assignments found there. +

+
+
abort (C-g)
+

Abort the current editing command and +ring the terminal’s bell (subject to the setting of +bell-style). +

+
+
do-lowercase-version (M-A, M-B, M-x, …)
+

If the metafied character x is upper case, run the command +that is bound to the corresponding metafied lower case character. +The behavior is undefined if x is already lower case. +

+
+
prefix-meta (ESC)
+

Metafy the next character typed. +Typing ‘ESC f’ is equivalent to typing M-f. +

+
+
undo (C-_ or C-x C-u)
+

Incremental undo, separately remembered for each line. +

+
+
revert-line (M-r)
+

Undo all changes made to this line. +This is like executing the undo +command enough times to get back to the initial state. +

+
+
tilde-expand (M-~)
+

Perform tilde expansion on the current word. +

+
+
set-mark (C-@)
+

Set the mark to the point. +If a numeric argument is supplied, set the mark to that position. +

+
+
exchange-point-and-mark (C-x C-x)
+

Swap the point with the mark. +Set the current cursor position to the saved position, +then set the mark to the old cursor position. +

+
+
character-search (C-])
+

Read a character and move point to the next occurrence of that character. +A negative argument searches for previous occurrences. +

+
+
character-search-backward (M-C-])
+

Read a character and move point to the previous occurrence of that character. +A negative argument searches for subsequent occurrences. +

+
+
skip-csi-sequence ()
+

Read enough characters to consume a multi-key sequence such as those +defined for keys like Home and End. +CSI sequences begin with a Control Sequence Indicator (CSI), usually +ESC [. +If this sequence is bound to "\e[", +keys producing CSI sequences have no effect +unless explicitly bound to a Readline command, +instead of inserting stray characters into the editing buffer. +This is unbound by default, but usually bound to +ESC [. +

+
+
insert-comment (M-#)
+

Without a numeric argument, insert the value of the comment-begin +variable at the beginning of the current line. +If a numeric argument is supplied, this command acts as a toggle: if +the characters at the beginning of the line do not match the value +of comment-begin, insert the value; otherwise delete +the characters in comment-begin from the beginning of the line. +In either case, the line is accepted as if a newline had been typed. +

+
+
dump-functions ()
+

Print all of the functions and their key bindings +to the Readline output stream. +If a numeric argument is supplied, +the output is formatted in such a way that it can be made part +of an inputrc file. +This command is unbound by default. +

+
+
dump-variables ()
+

Print all of the settable variables and their values +to the Readline output stream. +If a numeric argument is supplied, +the output is formatted in such a way that it can be made part +of an inputrc file. +This command is unbound by default. +

+
+
dump-macros ()
+

Print all of the Readline key sequences bound to macros and the +strings they output +to the Readline output stream. +If a numeric argument is supplied, +the output is formatted in such a way that it can be made part +of an inputrc file. +This command is unbound by default. +

+
+
execute-named-command (M-x)
+

Read a bindable Readline command name from the input and execute the +function to which it’s bound, as if the key sequence to which it was +bound appeared in the input. +If this function is supplied with a numeric argument, it passes that +argument to the function it executes. +

+ +
+
emacs-editing-mode (C-e)
+

When in vi command mode, this causes a switch to emacs +editing mode. +

+
+
vi-editing-mode (M-C-j)
+

When in emacs editing mode, this causes a switch to vi +editing mode. +

+ +
+
+ +
+
+
+
+ +

1.5 Readline vi Mode

+ +

While the Readline library does not have a full set of vi +editing functions, it does contain enough to allow simple editing +of the line. +The Readline vi mode behaves as specified in the +sh description in the POSIX standard. +

+

In order to switch interactively between emacs and vi +editing modes, use the command M-C-j (bound to emacs-editing-mode +when in vi mode and to vi-editing-mode in emacs mode). +The Readline default is emacs mode. +

+

When you enter a line in vi mode, you are already placed in +‘insertion’ mode, as if you had typed an ‘i’. Pressing ESC +switches you into ‘command’ mode, where you can edit the text of the +line with the standard vi movement keys, move to previous +history lines with ‘k’ and subsequent lines with ‘j’, and +so forth. +

+ +
+
+
+
+ +

Appendix A GNU Free Documentation License

+ +
Version 1.3, 3 November 2008 +
+ +
+
Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
+http://fsf.org/
+
+Everyone is permitted to copy and distribute verbatim copies
+of this license document, but changing it is not allowed.
+
+ +
    +
  1. PREAMBLE + +

    The purpose of this License is to make a manual, textbook, or other +functional and useful document free in the sense of freedom: to +assure everyone the effective freedom to copy and redistribute it, +with or without modifying it, either commercially or noncommercially. +Secondarily, this License preserves for the author and publisher a way +to get credit for their work, while not being considered responsible +for modifications made by others. +

    +

    This License is a kind of “copyleft”, which means that derivative +works of the document must themselves be free in the same sense. It +complements the GNU General Public License, which is a copyleft +license designed for free software. +

    +

    We have designed this License in order to use it for manuals for free +software, because free software needs free documentation: a free +program should come with manuals providing the same freedoms that the +software does. But this License is not limited to software manuals; +it can be used for any textual work, regardless of subject matter or +whether it is published as a printed book. We recommend this License +principally for works whose purpose is instruction or reference. +

    +
  2. APPLICABILITY AND DEFINITIONS + +

    This License applies to any manual or other work, in any medium, that +contains a notice placed by the copyright holder saying it can be +distributed under the terms of this License. Such a notice grants a +world-wide, royalty-free license, unlimited in duration, to use that +work under the conditions stated herein. The “Document”, below, +refers to any such manual or work. Any member of the public is a +licensee, and is addressed as “you”. You accept the license if you +copy, modify or distribute the work in a way requiring permission +under copyright law. +

    +

    A “Modified Version” of the Document means any work containing the +Document or a portion of it, either copied verbatim, or with +modifications and/or translated into another language. +

    +

    A “Secondary Section” is a named appendix or a front-matter section +of the Document that deals exclusively with the relationship of the +publishers or authors of the Document to the Document’s overall +subject (or to related matters) and contains nothing that could fall +directly within that overall subject. (Thus, if the Document is in +part a textbook of mathematics, a Secondary Section may not explain +any mathematics.) The relationship could be a matter of historical +connection with the subject or with related matters, or of legal, +commercial, philosophical, ethical or political position regarding +them. +

    +

    The “Invariant Sections” are certain Secondary Sections whose titles +are designated, as being those of Invariant Sections, in the notice +that says that the Document is released under this License. If a +section does not fit the above definition of Secondary then it is not +allowed to be designated as Invariant. The Document may contain zero +Invariant Sections. If the Document does not identify any Invariant +Sections then there are none. +

    +

    The “Cover Texts” are certain short passages of text that are listed, +as Front-Cover Texts or Back-Cover Texts, in the notice that says that +the Document is released under this License. A Front-Cover Text may +be at most 5 words, and a Back-Cover Text may be at most 25 words. +

    +

    A “Transparent” copy of the Document means a machine-readable copy, +represented in a format whose specification is available to the +general public, that is suitable for revising the document +straightforwardly with generic text editors or (for images composed of +pixels) generic paint programs or (for drawings) some widely available +drawing editor, and that is suitable for input to text formatters or +for automatic translation to a variety of formats suitable for input +to text formatters. A copy made in an otherwise Transparent file +format whose markup, or absence of markup, has been arranged to thwart +or discourage subsequent modification by readers is not Transparent. +An image format is not Transparent if used for any substantial amount +of text. A copy that is not “Transparent” is called “Opaque”. +

    +

    Examples of suitable formats for Transparent copies include plain +ASCII without markup, Texinfo input format, LaTeX input +format, SGML or XML using a publicly available +DTD, and standard-conforming simple HTML, +PostScript or PDF designed for human modification. Examples +of transparent image formats include PNG, XCF and +JPG. Opaque formats include proprietary formats that can be +read and edited only by proprietary word processors, SGML or +XML for which the DTD and/or processing tools are +not generally available, and the machine-generated HTML, +PostScript or PDF produced by some word processors for +output purposes only. +

    +

    The “Title Page” means, for a printed book, the title page itself, +plus such following pages as are needed to hold, legibly, the material +this License requires to appear in the title page. For works in +formats which do not have any title page as such, “Title Page” means +the text near the most prominent appearance of the work’s title, +preceding the beginning of the body of the text. +

    +

    The “publisher” means any person or entity that distributes copies +of the Document to the public. +

    +

    A section “Entitled XYZ” means a named subunit of the Document whose +title either is precisely XYZ or contains XYZ in parentheses following +text that translates XYZ in another language. (Here XYZ stands for a +specific section name mentioned below, such as “Acknowledgements”, +“Dedications”, “Endorsements”, or “History”.) To “Preserve the Title” +of such a section when you modify the Document means that it remains a +section “Entitled XYZ” according to this definition. +

    +

    The Document may include Warranty Disclaimers next to the notice which +states that this License applies to the Document. These Warranty +Disclaimers are considered to be included by reference in this +License, but only as regards disclaiming warranties: any other +implication that these Warranty Disclaimers may have is void and has +no effect on the meaning of this License. +

    +
  3. VERBATIM COPYING + +

    You may copy and distribute the Document in any medium, either +commercially or noncommercially, provided that this License, the +copyright notices, and the license notice saying this License applies +to the Document are reproduced in all copies, and that you add no other +conditions whatsoever to those of this License. You may not use +technical measures to obstruct or control the reading or further +copying of the copies you make or distribute. However, you may accept +compensation in exchange for copies. If you distribute a large enough +number of copies you must also follow the conditions in section 3. +

    +

    You may also lend copies, under the same conditions stated above, and +you may publicly display copies. +

    +
  4. COPYING IN QUANTITY + +

    If you publish printed copies (or copies in media that commonly have +printed covers) of the Document, numbering more than 100, and the +Document’s license notice requires Cover Texts, you must enclose the +copies in covers that carry, clearly and legibly, all these Cover +Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on +the back cover. Both covers must also clearly and legibly identify +you as the publisher of these copies. The front cover must present +the full title with all words of the title equally prominent and +visible. You may add other material on the covers in addition. +Copying with changes limited to the covers, as long as they preserve +the title of the Document and satisfy these conditions, can be treated +as verbatim copying in other respects. +

    +

    If the required texts for either cover are too voluminous to fit +legibly, you should put the first ones listed (as many as fit +reasonably) on the actual cover, and continue the rest onto adjacent +pages. +

    +

    If you publish or distribute Opaque copies of the Document numbering +more than 100, you must either include a machine-readable Transparent +copy along with each Opaque copy, or state in or with each Opaque copy +a computer-network location from which the general network-using +public has access to download using public-standard network protocols +a complete Transparent copy of the Document, free of added material. +If you use the latter option, you must take reasonably prudent steps, +when you begin distribution of Opaque copies in quantity, to ensure +that this Transparent copy will remain thus accessible at the stated +location until at least one year after the last time you distribute an +Opaque copy (directly or through your agents or retailers) of that +edition to the public. +

    +

    It is requested, but not required, that you contact the authors of the +Document well before redistributing any large number of copies, to give +them a chance to provide you with an updated version of the Document. +

    +
  5. MODIFICATIONS + +

    You may copy and distribute a Modified Version of the Document under +the conditions of sections 2 and 3 above, provided that you release +the Modified Version under precisely this License, with the Modified +Version filling the role of the Document, thus licensing distribution +and modification of the Modified Version to whoever possesses a copy +of it. In addition, you must do these things in the Modified Version: +

    +
      +
    1. Use in the Title Page (and on the covers, if any) a title distinct +from that of the Document, and from those of previous versions +(which should, if there were any, be listed in the History section +of the Document). You may use the same title as a previous version +if the original publisher of that version gives permission. + +
    2. List on the Title Page, as authors, one or more persons or entities +responsible for authorship of the modifications in the Modified +Version, together with at least five of the principal authors of the +Document (all of its principal authors, if it has fewer than five), +unless they release you from this requirement. + +
    3. State on the Title page the name of the publisher of the +Modified Version, as the publisher. + +
    4. Preserve all the copyright notices of the Document. + +
    5. Add an appropriate copyright notice for your modifications +adjacent to the other copyright notices. + +
    6. Include, immediately after the copyright notices, a license notice +giving the public permission to use the Modified Version under the +terms of this License, in the form shown in the Addendum below. + +
    7. Preserve in that license notice the full lists of Invariant Sections +and required Cover Texts given in the Document’s license notice. + +
    8. Include an unaltered copy of this License. + +
    9. Preserve the section Entitled “History”, Preserve its Title, and add +to it an item stating at least the title, year, new authors, and +publisher of the Modified Version as given on the Title Page. If +there is no section Entitled “History” in the Document, create one +stating the title, year, authors, and publisher of the Document as +given on its Title Page, then add an item describing the Modified +Version as stated in the previous sentence. + +
    10. Preserve the network location, if any, given in the Document for +public access to a Transparent copy of the Document, and likewise +the network locations given in the Document for previous versions +it was based on. These may be placed in the “History” section. +You may omit a network location for a work that was published at +least four years before the Document itself, or if the original +publisher of the version it refers to gives permission. + +
    11. For any section Entitled “Acknowledgements” or “Dedications”, Preserve +the Title of the section, and preserve in the section all the +substance and tone of each of the contributor acknowledgements and/or +dedications given therein. + +
    12. Preserve all the Invariant Sections of the Document, +unaltered in their text and in their titles. Section numbers +or the equivalent are not considered part of the section titles. + +
    13. Delete any section Entitled “Endorsements”. Such a section +may not be included in the Modified Version. + +
    14. Do not retitle any existing section to be Entitled “Endorsements” or +to conflict in title with any Invariant Section. + +
    15. Preserve any Warranty Disclaimers. +
    + +

    If the Modified Version includes new front-matter sections or +appendices that qualify as Secondary Sections and contain no material +copied from the Document, you may at your option designate some or all +of these sections as invariant. To do this, add their titles to the +list of Invariant Sections in the Modified Version’s license notice. +These titles must be distinct from any other section titles. +

    +

    You may add a section Entitled “Endorsements”, provided it contains +nothing but endorsements of your Modified Version by various +parties—for example, statements of peer review or that the text has +been approved by an organization as the authoritative definition of a +standard. +

    +

    You may add a passage of up to five words as a Front-Cover Text, and a +passage of up to 25 words as a Back-Cover Text, to the end of the list +of Cover Texts in the Modified Version. Only one passage of +Front-Cover Text and one of Back-Cover Text may be added by (or +through arrangements made by) any one entity. If the Document already +includes a cover text for the same cover, previously added by you or +by arrangement made by the same entity you are acting on behalf of, +you may not add another; but you may replace the old one, on explicit +permission from the previous publisher that added the old one. +

    +

    The author(s) and publisher(s) of the Document do not by this License +give permission to use their names for publicity for or to assert or +imply endorsement of any Modified Version. +

    +
  6. COMBINING DOCUMENTS + +

    You may combine the Document with other documents released under this +License, under the terms defined in section 4 above for modified +versions, provided that you include in the combination all of the +Invariant Sections of all of the original documents, unmodified, and +list them all as Invariant Sections of your combined work in its +license notice, and that you preserve all their Warranty Disclaimers. +

    +

    The combined work need only contain one copy of this License, and +multiple identical Invariant Sections may be replaced with a single +copy. If there are multiple Invariant Sections with the same name but +different contents, make the title of each such section unique by +adding at the end of it, in parentheses, the name of the original +author or publisher of that section if known, or else a unique number. +Make the same adjustment to the section titles in the list of +Invariant Sections in the license notice of the combined work. +

    +

    In the combination, you must combine any sections Entitled “History” +in the various original documents, forming one section Entitled +“History”; likewise combine any sections Entitled “Acknowledgements”, +and any sections Entitled “Dedications”. You must delete all +sections Entitled “Endorsements.” +

    +
  7. COLLECTIONS OF DOCUMENTS + +

    You may make a collection consisting of the Document and other documents +released under this License, and replace the individual copies of this +License in the various documents with a single copy that is included in +the collection, provided that you follow the rules of this License for +verbatim copying of each of the documents in all other respects. +

    +

    You may extract a single document from such a collection, and distribute +it individually under this License, provided you insert a copy of this +License into the extracted document, and follow this License in all +other respects regarding verbatim copying of that document. +

    +
  8. AGGREGATION WITH INDEPENDENT WORKS + +

    A compilation of the Document or its derivatives with other separate +and independent documents or works, in or on a volume of a storage or +distribution medium, is called an “aggregate” if the copyright +resulting from the compilation is not used to limit the legal rights +of the compilation’s users beyond what the individual works permit. +When the Document is included in an aggregate, this License does not +apply to the other works in the aggregate which are not themselves +derivative works of the Document. +

    +

    If the Cover Text requirement of section 3 is applicable to these +copies of the Document, then if the Document is less than one half of +the entire aggregate, the Document’s Cover Texts may be placed on +covers that bracket the Document within the aggregate, or the +electronic equivalent of covers if the Document is in electronic form. +Otherwise they must appear on printed covers that bracket the whole +aggregate. +

    +
  9. TRANSLATION + +

    Translation is considered a kind of modification, so you may +distribute translations of the Document under the terms of section 4. +Replacing Invariant Sections with translations requires special +permission from their copyright holders, but you may include +translations of some or all Invariant Sections in addition to the +original versions of these Invariant Sections. You may include a +translation of this License, and all the license notices in the +Document, and any Warranty Disclaimers, provided that you also include +the original English version of this License and the original versions +of those notices and disclaimers. In case of a disagreement between +the translation and the original version of this License or a notice +or disclaimer, the original version will prevail. +

    +

    If a section in the Document is Entitled “Acknowledgements”, +“Dedications”, or “History”, the requirement (section 4) to Preserve +its Title (section 1) will typically require changing the actual +title. +

    +
  10. TERMINATION + +

    You may not copy, modify, sublicense, or distribute the Document +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense, or distribute it is void, and +will automatically terminate your rights under this License. +

    +

    However, if you cease all violation of this License, then your license +from a particular copyright holder is reinstated (a) provisionally, +unless and until the copyright holder explicitly and finally +terminates your license, and (b) permanently, if the copyright holder +fails to notify you of the violation by some reasonable means prior to +60 days after the cessation. +

    +

    Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. +

    +

    Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, receipt of a copy of some or all of the same material does +not give you any rights to use it. +

    +
  11. FUTURE REVISIONS OF THIS LICENSE + +

    The Free Software Foundation may publish new, revised versions +of the GNU Free Documentation License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. See +http://www.gnu.org/copyleft/. +

    +

    Each version of the License is given a distinguishing version number. +If the Document specifies that a particular numbered version of this +License “or any later version” applies to it, you have the option of +following the terms and conditions either of that specified version or +of any later version that has been published (not as a draft) by the +Free Software Foundation. If the Document does not specify a version +number of this License, you may choose any version ever published (not +as a draft) by the Free Software Foundation. If the Document +specifies that a proxy can decide which future versions of this +License can be used, that proxy’s public statement of acceptance of a +version permanently authorizes you to choose that version for the +Document. +

    +
  12. RELICENSING + +

    “Massive Multiauthor Collaboration Site” (or “MMC Site”) means any +World Wide Web server that publishes copyrightable works and also +provides prominent facilities for anybody to edit those works. A +public wiki that anybody can edit is an example of such a server. A +“Massive Multiauthor Collaboration” (or “MMC”) contained in the +site means any set of copyrightable works thus published on the MMC +site. +

    +

    “CC-BY-SA” means the Creative Commons Attribution-Share Alike 3.0 +license published by Creative Commons Corporation, a not-for-profit +corporation with a principal place of business in San Francisco, +California, as well as future copyleft versions of that license +published by that same organization. +

    +

    “Incorporate” means to publish or republish a Document, in whole or +in part, as part of another Document. +

    +

    An MMC is “eligible for relicensing” if it is licensed under this +License, and if all works that were first published under this License +somewhere other than this MMC, and subsequently incorporated in whole +or in part into the MMC, (1) had no cover texts or invariant sections, +and (2) were thus incorporated prior to November 1, 2008. +

    +

    The operator of an MMC Site may republish an MMC contained in the site +under CC-BY-SA on the same site at any time before August 1, 2009, +provided the MMC is eligible for relicensing. +

    +
+ +

ADDENDUM: How to use this License for your documents

+ +

To use this License in a document you have written, include a copy of +the License in the document and put the following copyright and +license notices just after the title page: +

+
+
  Copyright (C)  year  your name.
+  Permission is granted to copy, distribute and/or modify this document
+  under the terms of the GNU Free Documentation License, Version 1.3
+  or any later version published by the Free Software Foundation;
+  with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
+  Texts.  A copy of the license is included in the section entitled ``GNU
+  Free Documentation License''.
+
+ +

If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, +replace the “with…Texts.” line with this: +

+
+
    with the Invariant Sections being list their titles, with
+    the Front-Cover Texts being list, and with the Back-Cover Texts
+    being list.
+
+ +

If you have Invariant Sections without Cover Texts, or some other +combination of the three, merge those two alternatives to suit the +situation. +

+

If your document contains nontrivial examples of program code, we +recommend releasing these examples in parallel under your choice of +free software license, such as the GNU General Public License, +to permit their use in free software. +

+ + +
+
+ + + + + diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/info/history.info b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/info/history.info new file mode 100644 index 0000000000000000000000000000000000000000..3663d06b53c9f4ad6a5b91d04c038198274acef4 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/info/history.info @@ -0,0 +1,1461 @@ +This is history.info, produced by makeinfo version 7.1 from +history.texi. + +This document describes the GNU History library (version 8.3, 30 +December 2024), a programming tool that provides a consistent user +interface for recalling lines of previously typed input. + + Copyright © 1988-2025 Free Software Foundation, Inc. + + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free Documentation License, + Version 1.3 or any later version published by the Free Software + Foundation; with no Invariant Sections, no Front-Cover Texts, and + no Back-Cover Texts. A copy of the license is included in the + section entitled "GNU Free Documentation License". + +INFO-DIR-SECTION Libraries +START-INFO-DIR-ENTRY +* History: (history). The GNU history library API. +END-INFO-DIR-ENTRY + + +File: history.info, Node: Top, Next: Using History Interactively, Up: (dir) + +GNU History Library +******************* + +This document describes the GNU History library, a programming tool that +provides a consistent user interface for recalling lines of previously +typed input. + +* Menu: + +* Using History Interactively:: GNU History User's Manual. +* Programming with GNU History:: GNU History Programmer's Manual. +* GNU Free Documentation License:: License for copying this manual. +* Concept Index:: Index of concepts described in this manual. +* Function and Variable Index:: Index of externally visible functions + and variables. + + +File: history.info, Node: Using History Interactively, Next: Programming with GNU History, Prev: Top, Up: Top + +1 Using History Interactively +***************************** + +This chapter describes how to use the GNU History Library interactively, +from a user's standpoint. It should be considered a user's guide. For +information on using the GNU History Library in your own programs, *note +Programming with GNU History::. + +* Menu: + +* History Interaction:: What it feels like using History as a user. + + +File: history.info, Node: History Interaction, Up: Using History Interactively + +1.1 History Expansion +===================== + +The History library provides a history expansion feature that is similar +to the history expansion provided by ‘csh’ (also referred to as history +substitution where appropriate). This section describes the syntax used +to manipulate the history information. + + History expansions introduce words from the history list into the +input stream, making it easy to repeat commands, insert the arguments to +a previous command into the current input line, or fix errors in +previous commands quickly. + + History expansion takes place in two parts. The first is to +determine which entry from the history list should be used during +substitution. The second is to select portions of that entry to include +into the current one. + + The entry selected from the history is called the “event”, and the +portions of that entry that are acted upon are “words”. Various +“modifiers” are available to manipulate the selected words. The entry +is split into words in the same fashion that Bash does when reading +input, so that several words surrounded by quotes are considered one +word. The “event designator” selects the event, the optional “word +designator” selects words from the event, and various optional +“modifiers” are available to manipulate the selected words. + + History expansions are introduced by the appearance of the history +expansion character, which is ‘!’ by default. History expansions may +appear anywhere in the input, but do not nest. + + History expansion implements shell-like quoting conventions: a +backslash can be used to remove the special handling for the next +character; single quotes enclose verbatim sequences of characters, and +can be used to inhibit history expansion; and characters enclosed within +double quotes may be subject to history expansion, since backslash can +escape the history expansion character, but single quotes may not, since +they are not treated specially within double quotes. + + There is a special abbreviation for substitution, active when the +QUICK SUBSTITUTION character (default ‘^’) is the first character on the +line. It selects the previous history list entry, using an event +designator equivalent to ‘!!’, and substitutes one string for another in +that entry. It is described below (*note Event Designators::). This is +the only history expansion that does not begin with the history +expansion character. + +* Menu: + +* Event Designators:: How to specify which history line to use. +* Word Designators:: Specifying which words are of interest. +* Modifiers:: Modifying the results of substitution. + + +File: history.info, Node: Event Designators, Next: Word Designators, Up: History Interaction + +1.1.1 Event Designators +----------------------- + +An event designator is a reference to an entry in the history list. The +event designator consists of the portion of the word beginning with the +history expansion character, and ending with the word designator if one +is present, or the end of the word. Unless the reference is absolute, +events are relative to the current position in the history list. + +‘!’ + Start a history substitution, except when followed by a space, tab, + the end of the line, or ‘=’. + +‘!N’ + Refer to history list entry N. + +‘!-N’ + Refer to the history entry minus N. + +‘!!’ + Refer to the previous entry. This is a synonym for ‘!-1’. + +‘!STRING’ + Refer to the most recent command preceding the current position in + the history list starting with STRING. + +‘!?STRING[?]’ + Refer to the most recent command preceding the current position in + the history list containing STRING. The trailing ‘?’ may be + omitted if the STRING is followed immediately by a newline. If + STRING is missing, this uses the string from the most recent + search; it is an error if there is no previous search string. + +‘^STRING1^STRING2^’ + Quick Substitution. Repeat the last command, replacing STRING1 + with STRING2. Equivalent to ‘!!:s^STRING1^STRING2^’. + +‘!#’ + The entire command line typed so far. + + +File: history.info, Node: Word Designators, Next: Modifiers, Prev: Event Designators, Up: History Interaction + +1.1.2 Word Designators +---------------------- + +Word designators are used to select desired words from the event. They +are optional; if the word designator isn't supplied, the history +expansion uses the entire event. A ‘:’ separates the event +specification from the word designator. It may be omitted if the word +designator begins with a ‘^’, ‘$’, ‘*’, ‘-’, or ‘%’. Words are numbered +from the beginning of the line, with the first word being denoted by 0 +(zero). That first word is usually the command word, and the arguments +begin with the second word. Words are inserted into the current line +separated by single spaces. + + For example, + +‘!!’ + designates the preceding command. When you type this, the + preceding command is repeated in toto. + +‘!!:$’ + designates the last word of the preceding command. This may be + shortened to ‘!$’. + +‘!fi:2’ + designates the second argument of the most recent command starting + with the letters ‘fi’. + + Here are the word designators: + +‘0 (zero)’ + The ‘0’th word. For the shell, and many other, applications, this + is the command word. + +‘N’ + The Nth word. + +‘^’ + The first argument: word 1. + +‘$’ + The last word. This is usually the last argument, but expands to + the zeroth word if there is only one word in the line. + +‘%’ + The first word matched by the most recent ‘?STRING?’ search, if the + search string begins with a character that is part of a word. By + default, searches begin at the end of each line and proceed to the + beginning, so the first word matched is the one closest to the end + of the line. + +‘X-Y’ + A range of words; ‘-Y’ abbreviates ‘0-Y’. + +‘*’ + All of the words, except the ‘0’th. This is a synonym for ‘1-$’. + It is not an error to use ‘*’ if there is just one word in the + event; it expands to the empty string in that case. + +‘X*’ + Abbreviates ‘X-$’. + +‘X-’ + Abbreviates ‘X-$’ like ‘X*’, but omits the last word. If ‘x’ is + missing, it defaults to 0. + + If a word designator is supplied without an event specification, the +previous command is used as the event, equivalent to ‘!!’. + + +File: history.info, Node: Modifiers, Prev: Word Designators, Up: History Interaction + +1.1.3 Modifiers +--------------- + +After the optional word designator, you can add a sequence of one or +more of the following modifiers, each preceded by a ‘:’. These modify, +or edit, the word or words selected from the history event. + +‘h’ + Remove a trailing filename component, leaving only the head. + +‘t’ + Remove all leading filename components, leaving the tail. + +‘r’ + Remove a trailing suffix of the form ‘.SUFFIX’, leaving the + basename. + +‘e’ + Remove all but the trailing suffix. + +‘p’ + Print the new command but do not execute it. + +‘s/OLD/NEW/’ + Substitute NEW for the first occurrence of OLD in the event line. + Any character may be used as the delimiter in place of ‘/’. The + delimiter may be quoted in OLD and NEW with a single backslash. If + ‘&’ appears in NEW, it is replaced with OLD. A single backslash + quotes the ‘&’ in OLD and NEW. If OLD is null, it is set to the + last OLD substituted, or, if no previous history substitutions took + place, the last STRING in a !?STRING‘[?]’ search. If NEW is null, + each matching OLD is deleted. The final delimiter is optional if + it is the last character on the input line. + +‘&’ + Repeat the previous substitution. + +‘g’ +‘a’ + Cause changes to be applied over the entire event line. This is + used in conjunction with ‘s’, as in ‘gs/OLD/NEW/’, or with ‘&’. + +‘G’ + Apply the following ‘s’ or ‘&’ modifier once to each word in the + event. + + +File: history.info, Node: Programming with GNU History, Next: GNU Free Documentation License, Prev: Using History Interactively, Up: Top + +2 Programming with GNU History +****************************** + +This chapter describes how to interface programs that you write with the +GNU History Library. It should be considered a technical guide. For +information on the interactive use of GNU History, *note Using History +Interactively::. + +* Menu: + +* Introduction to History:: What is the GNU History library for? +* History Storage:: How information is stored. +* History Functions:: Functions that you can use. +* History Variables:: Variables that control behavior. +* History Programming Example:: Example of using the GNU History Library. + + +File: history.info, Node: Introduction to History, Next: History Storage, Up: Programming with GNU History + +2.1 Introduction to History +=========================== + +Many programs read input from the user a line at a time. The GNU +History library is able to keep track of those lines, associate +arbitrary data with each line, and utilize information from previous +lines when composing new ones. + + A programmer using the History library can use functions to save +commands on a history list, associate arbitrary data with history list +entries, remove entries from the list, search through the list for a +line containing an arbitrary text string, reference any entry in the +list directly, and read and write the history list from and to a file. +In addition, a history “expansion” function is available which provides +for a consistent user interface across different programs. + + Someone using programs written with the History library has the +benefit of a consistent user interface with a set of well-known commands +for manipulating the text of previous lines and using that text in new +commands. The basic history manipulation commands are similar to the +history substitution provided by ‘csh’. + + The programmer can also use the Readline library, which includes some +history manipulation by default, and has the added advantage of command +line editing. + + Before declaring any functions using any functionality the History +library provides in other code, an application writer should include the +file ‘’ in any file that uses the History library's +features. It supplies declarations for all of the library's public +functions and variables, and declares all of the public data structures. + + +File: history.info, Node: History Storage, Next: History Functions, Prev: Introduction to History, Up: Programming with GNU History + +2.2 History Storage +=================== + +The history list is an array of history entries. A history entry is +declared as follows: + + typedef void *histdata_t; + + typedef struct _hist_entry { + char *line; + char *timestamp; + histdata_t data; + } HIST_ENTRY; + + The history list itself might therefore be declared as + + HIST_ENTRY **the_history_list; + + The state of the History library is encapsulated into a single +structure: + + /* + * A structure used to pass around the current state of the history. + */ + typedef struct _hist_state { + HIST_ENTRY **entries; /* Pointer to the entries themselves. */ + int offset; /* The location pointer within this array. */ + int length; /* Number of elements within this array. */ + int size; /* Number of slots allocated to this array. */ + int flags; + } HISTORY_STATE; + + If the flags member includes ‘HS_STIFLED’, the history has been +stifled (limited to a maximum number of entries). + + +File: history.info, Node: History Functions, Next: History Variables, Prev: History Storage, Up: Programming with GNU History + +2.3 History Functions +===================== + +This section describes the calling sequence for the various functions +exported by the GNU History library. + +* Menu: + +* Initializing History and State Management:: Functions to call when you + want to use history in a + program. +* History List Management:: Functions used to manage the list + of history entries. +* Information About the History List:: Functions returning information about + the history list. +* Moving Around the History List:: Functions used to change the position + in the history list. +* Searching the History List:: Functions to search the history list + for entries containing a string. +* Managing the History File:: Functions that read and write a file + containing the history list. +* History Expansion:: Functions to perform csh-like history + expansion. + + +File: history.info, Node: Initializing History and State Management, Next: History List Management, Up: History Functions + +2.3.1 Initializing History and State Management +----------------------------------------------- + +This section describes functions used to initialize and manage the state +of the History library when you want to use the history functions in +your program. + + -- Function: void using_history (void) + Begin a session that will use the history functions. This + initializes the interactive variables. + + -- Function: HISTORY_STATE * history_get_history_state (void) + Return a structure describing the current state of the input + history. + + -- Function: void history_set_history_state (HISTORY_STATE *state) + Set the state of the history list according to STATE. + + +File: history.info, Node: History List Management, Next: Information About the History List, Prev: Initializing History and State Management, Up: History Functions + +2.3.2 History List Management +----------------------------- + +These functions manage individual entries on the history list, or set +parameters managing the list itself. + + -- Function: void add_history (const char *string) + Add STRING to the end of the history list, and set the associated + data field (if any) to ‘NULL’. If the maximum number of history + entries has been set using ‘stifle_history()’, and the new number + of history entries would exceed that maximum, this removes the + oldest history entry. + + -- Function: void add_history_time (const char *string) + Change the time stamp associated with the most recent history entry + to STRING. + + -- Function: HIST_ENTRY * remove_history (int which) + Remove the history entry at offset WHICH from the history list. + This returns the removed element so you can free the line, data, + and containing structure. Since the data is private to your + application, the History library doesn't know how to free it, if + necessary. + + -- Function: histdata_t free_history_entry (HIST_ENTRY *histent) + Free the history entry HISTENT and any history library private data + associated with it. Returns the application-specific data so the + caller can dispose of it. + + -- Function: HIST_ENTRY * replace_history_entry (int which, const char + *line, histdata_t data) + Make the history entry at offset WHICH have LINE and DATA. This + returns the old entry so the caller can dispose of any + application-specific data. In the case of an invalid WHICH, this + returns ‘NULL’. + + -- Function: void clear_history (void) + Clear the history list by deleting all the entries. + + -- Function: void stifle_history (int max) + Stifle the history list, remembering only the last MAX entries. + The history list will contain only MAX entries at a time. + + -- Function: int unstifle_history (void) + Stop stifling the history. This returns the previously-set maximum + number of history entries (as set by ‘stifle_history()’). The + value is positive if the history was stifled, negative if it + wasn't. + + -- Function: int history_is_stifled (void) + Returns non-zero if the history is stifled, zero if it is not. + + +File: history.info, Node: Information About the History List, Next: Moving Around the History List, Prev: History List Management, Up: History Functions + +2.3.3 Information About the History List +---------------------------------------- + +These functions return information about the entire history list or +individual list entries. + + -- Function: HIST_ENTRY ** history_list (void) + Return a ‘NULL’ terminated array of ‘HIST_ENTRY *’ which is the + current input history. Element 0 of this list is the beginning of + time. Return ‘NULL’ if there is no history. + + -- Function: int where_history (void) + Return the offset of the current history entry. + + -- Function: HIST_ENTRY * current_history (void) + Return the history entry at the current position, as determined by + ‘where_history()’. If there is no entry there, return ‘NULL’. + + -- Function: HIST_ENTRY * history_get (int offset) + Return the history entry at position OFFSET. The range of valid + values of OFFSET starts at ‘history_base’ and ends at + HISTORY_LENGTH - 1 (*note History Variables::). If there is no + entry there, or if OFFSET is outside the valid range, return + ‘NULL’. + + -- Function: time_t history_get_time (HIST_ENTRY *entry) + Return the time stamp associated with the history entry ENTRY. If + the timestamp is missing or invalid, return 0. + + -- Function: int history_total_bytes (void) + Return the number of bytes that the primary history entries are + using. This function returns the sum of the lengths of all the + lines in the history. + + +File: history.info, Node: Moving Around the History List, Next: Searching the History List, Prev: Information About the History List, Up: History Functions + +2.3.4 Moving Around the History List +------------------------------------ + +These functions allow the current index into the history list to be set +or changed. + + -- Function: int history_set_pos (int pos) + Set the current history offset to POS, an absolute index into the + list. Returns 1 on success, 0 if POS is less than zero or greater + than the number of history entries. + + -- Function: HIST_ENTRY * previous_history (void) + Back up the current history offset to the previous history entry, + and return a pointer to that entry. If there is no previous entry, + return ‘NULL’. + + -- Function: HIST_ENTRY * next_history (void) + If the current history offset refers to a valid history entry, + increment the current history offset. If the possibly-incremented + history offset refers to a valid history entry, return a pointer to + that entry; otherwise, return ‘NULL’. + + +File: history.info, Node: Searching the History List, Next: Managing the History File, Prev: Moving Around the History List, Up: History Functions + +2.3.5 Searching the History List +-------------------------------- + +These functions search the history list for entries containing a +specific string. Searching may be performed both forward and backward +from the current history position. The search may be “anchored”, +meaning that the string must match at the beginning of a history entry. + + -- Function: int history_search (const char *string, int direction) + Search the history for STRING, starting at the current history + offset. If DIRECTION is less than 0, then the search is through + previous entries, otherwise through subsequent entries. If STRING + is found, then the current history index is set to that history + entry, and ‘history_search’ returns the offset in the line of the + entry where STRING was found. Otherwise, nothing is changed, and + this returns -1. + + -- Function: int history_search_prefix (const char *string, int + direction) + Search the history for STRING, starting at the current history + offset. The search is anchored: matching history entries must + begin with STRING. If DIRECTION is less than 0, then the search is + through previous entries, otherwise through subsequent entries. If + STRING is found, then the current history index is set to that + entry, and the return value is 0. Otherwise, nothing is changed, + and this returns -1. + + -- Function: int history_search_pos (const char *string, int direction, + int pos) + Search for STRING in the history list, starting at POS, an absolute + index into the list. If DIRECTION is negative, the search proceeds + backward from POS, otherwise forward. Returns the index in the + history list of the history element where STRING was found, or -1 + otherwise. + + +File: history.info, Node: Managing the History File, Next: History Expansion, Prev: Searching the History List, Up: History Functions + +2.3.6 Managing the History File +------------------------------- + +The History library can read the history from and write it to a file. +This section documents the functions for managing a history file. + + -- Function: int read_history (const char *filename) + Add the contents of FILENAME to the history list, one entry at a + time. If FILENAME is ‘NULL’, this reads from ‘~/.history’, if it + exists. This attempts to determine whether the history file + includes timestamp information, and assigns timestamps to the + history entries it reads if so. Returns 0 if successful, or + ‘errno’ if not. + + -- Function: int read_history_range (const char *filename, int from, + int to) + Read a range of lines from FILENAME, adding them to the history + list. Start reading at line FROM and end at TO. If FROM is zero, + start at the beginning. If TO is less than FROM, this reads until + the end of the file. This attempts to determine whether the + history file includes timestamp information, and assigns timestamps + to the history entries it reads if so. If FILENAME is ‘NULL’, this + reads from ‘~/.history’, if it exists. Returns 0 if successful, or + ‘errno’ if not. + + -- Function: int write_history (const char *filename) + Write the current history to FILENAME, overwriting FILENAME if + necessary. This writes timestamp information if the + ‘history_write_timestamps’ variable is set to a non-zero value. If + FILENAME is ‘NULL’, then write the history list to ‘~/.history’. + Returns 0 on success, or ‘errno’ on a read or write error. + + -- Function: int append_history (int nelements, const char *filename) + Append the last NELEMENTS of the history list to FILENAME. This + writes timestamp information if the ‘history_write_timestamps’ + variable is set to a non-zero value. If FILENAME is ‘NULL’, then + append to ‘~/.history’. Returns 0 on success, or ‘errno’ on a read + or write error. + + -- Function: int history_truncate_file (const char *filename, int + nlines) + Truncate the history file FILENAME, leaving only the last NLINES + lines. If FILENAME is ‘NULL’, this truncates ‘~/.history’. + Returns 0 on success, or ‘errno’ on failure. + + +File: history.info, Node: History Expansion, Prev: Managing the History File, Up: History Functions + +2.3.7 History Expansion +----------------------- + +These functions implement history expansion. + + -- Function: int history_expand (const char *string, char **output) + Expand STRING, placing the result into OUTPUT, a pointer to a + string (*note History Interaction::). Returns: + ‘0’ + If no expansions took place (or, if the only change in the + text was the removal of escape characters preceding the + history expansion character); + ‘1’ + if expansions did take place; + ‘-1’ + if there was an error in expansion; + ‘2’ + if the returned line should be displayed, but not executed, as + with the ‘:p’ modifier (*note Modifiers::). + + If an error occurred during expansion, then OUTPUT contains a + descriptive error message. + + -- Function: char * get_history_event (const char *string, int *cindex, + int qchar) + Returns the text of the history event beginning at STRING + + *CINDEX. Modifies *CINDEX to point to after the event specifier. + At function entry, CINDEX points to the index into STRING where the + history event specification begins. QCHAR is a character that is + allowed to end the event specification in addition to the "normal" + terminating characters. + + -- Function: char ** history_tokenize (const char *string) + Return an array of tokens parsed out of STRING, much as the shell + might. The tokens are split on the characters in the + HISTORY_WORD_DELIMITERS variable, and shell quoting conventions are + obeyed as described below. + + -- Function: char * history_arg_extract (int first, int last, const + char *string) + Extract a string segment consisting of the FIRST through LAST + arguments present in STRING. This splits STRING into arguments + using ‘history_tokenize’. + + +File: history.info, Node: History Variables, Next: History Programming Example, Prev: History Functions, Up: Programming with GNU History + +2.4 History Variables +===================== + +This section describes the externally-visible variables exported by the +GNU History Library. + + -- Variable: int history_base + The logical offset of the first entry in the history list. + + -- Variable: int history_length + The number of entries currently stored in the history list. + + -- Variable: int history_max_entries + The maximum number of history entries. This must be changed using + ‘stifle_history()’. + + -- Variable: int history_write_timestamps + If non-zero, timestamps are written to the history file, so they + can be preserved between sessions. The default value is 0, meaning + that timestamps are not saved. + + The current timestamp format uses the value of HISTORY_COMMENT_CHAR + to delimit timestamp entries in the history file. If that variable + does not have a value (the default), the history library will not + write timestamps. + + -- Variable: char history_expansion_char + The character that introduces a history event. The default is ‘!’. + Setting this to 0 inhibits history expansion. + + -- Variable: char history_subst_char + The character that invokes word substitution if found at the start + of a line. The default is ‘^’. + + -- Variable: char history_comment_char + During tokenization, if this character appears as the first + character of a word, then it and all subsequent characters up to a + newline are ignored, suppressing history expansion for the + remainder of the line. This is disabled by default. + + -- Variable: char * history_word_delimiters + The characters that separate tokens for ‘history_tokenize()’. The + default value is ‘" \t\n()<>;&|"’. + + -- Variable: char * history_search_delimiter_chars + The list of additional characters which can delimit a history + search string, in addition to space, TAB, ‘:’ and ‘?’ in the case + of a substring search. The default is empty. + + -- Variable: char * history_no_expand_chars + The list of characters which inhibit history expansion if found + immediately following HISTORY_EXPANSION_CHAR. The default is + space, tab, newline, carriage return, and ‘=’. + + -- Variable: int history_quotes_inhibit_expansion + If non-zero, the history expansion code implements shell-like + quoting: single-quoted words are not scanned for the history + expansion character or the history comment character, and + double-quoted words may have history expansion performed, since + single quotes are not special within double quotes. The default + value is 0. + + -- Variable: int history_quoting_state + An application may set this variable to indicate that the current + line being expanded is subject to existing quoting. If set to ‘'’, + history expansion assumes that the line is single-quoted and + inhibit expansion until it reads an unquoted closing single quote; + if set to ‘"’, history expansion assumes the line is double quoted + until it reads an unquoted closing double quote. If set to 0, the + default, history expansion assumes the line is not quoted and + treats quote characters within the line as described above. This + is only effective if HISTORY_QUOTES_INHIBIT_EXPANSION is set. This + is intended for use by applications like Bash which allow quoted + strings to span multiple lines. + + -- Variable: rl_linebuf_func_t * history_inhibit_expansion_function + This should be set to the address of a function that takes two + arguments: a ‘char *’ (STRING) and an ‘int’ index into that string + (I). It should return a non-zero value if the history expansion + starting at STRING[I] should not be performed; zero if the + expansion should be done. It is intended for use by applications + like Bash that use the history expansion character for additional + purposes. By default, this variable is set to ‘NULL’. + + +File: history.info, Node: History Programming Example, Prev: History Variables, Up: Programming with GNU History + +2.5 History Programming Example +=============================== + +The following program demonstrates simple use of the GNU History +Library. + + #include + #include + + int + main (int argc, char **argv) + { + char line[1024], *t; + int len, done = 0; + + line[0] = 0; + + using_history (); + while (!done) + { + printf ("history$ "); + fflush (stdout); + t = fgets (line, sizeof (line) - 1, stdin); + if (t && *t) + { + len = strlen (t); + if (t[len - 1] == '\n') + t[len - 1] = '\0'; + } + + if (!t) + strcpy (line, "quit"); + + if (line[0]) + { + char *expansion; + int result; + + result = history_expand (line, &expansion); + if (result) + fprintf (stderr, "%s\n", expansion); + + if (result < 0 || result == 2) + { + free (expansion); + continue; + } + + add_history (expansion); + strncpy (line, expansion, sizeof (line) - 1); + free (expansion); + } + + if (strcmp (line, "quit") == 0) + done = 1; + else if (strcmp (line, "save") == 0) + write_history ("history_file"); + else if (strcmp (line, "read") == 0) + read_history ("history_file"); + else if (strcmp (line, "list") == 0) + { + register HIST_ENTRY **the_list; + register int i; + + the_list = history_list (); + if (the_list) + for (i = 0; the_list[i]; i++) + printf ("%d: %s\n", i + history_base, the_list[i]->line); + } + else if (strncmp (line, "delete", 6) == 0) + { + int which; + if ((sscanf (line + 6, "%d", &which)) == 1) + { + HIST_ENTRY *entry = remove_history (which); + if (!entry) + fprintf (stderr, "No such entry %d\n", which); + else + { + free (entry->line); + free (entry); + } + } + else + { + fprintf (stderr, "non-numeric arg given to `delete'\n"); + } + } + } + } + + +File: history.info, Node: GNU Free Documentation License, Next: Concept Index, Prev: Programming with GNU History, Up: Top + +Appendix A GNU Free Documentation License +***************************************** + + Version 1.3, 3 November 2008 + + Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc. + + + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + 0. PREAMBLE + + The purpose of this License is to make a manual, textbook, or other + functional and useful document “free” in the sense of freedom: to + assure everyone the effective freedom to copy and redistribute it, + with or without modifying it, either commercially or + noncommercially. Secondarily, this License preserves for the + author and publisher a way to get credit for their work, while not + being considered responsible for modifications made by others. + + This License is a kind of "copyleft", which means that derivative + works of the document must themselves be free in the same sense. + It complements the GNU General Public License, which is a copyleft + license designed for free software. + + We have designed this License in order to use it for manuals for + free software, because free software needs free documentation: a + free program should come with manuals providing the same freedoms + that the software does. But this License is not limited to + software manuals; it can be used for any textual work, regardless + of subject matter or whether it is published as a printed book. We + recommend this License principally for works whose purpose is + instruction or reference. + + 1. APPLICABILITY AND DEFINITIONS + + This License applies to any manual or other work, in any medium, + that contains a notice placed by the copyright holder saying it can + be distributed under the terms of this License. Such a notice + grants a world-wide, royalty-free license, unlimited in duration, + to use that work under the conditions stated herein. The + "Document", below, refers to any such manual or work. Any member + of the public is a licensee, and is addressed as "you". You accept + the license if you copy, modify or distribute the work in a way + requiring permission under copyright law. + + A "Modified Version" of the Document means any work containing the + Document or a portion of it, either copied verbatim, or with + modifications and/or translated into another language. + + A "Secondary Section" is a named appendix or a front-matter section + of the Document that deals exclusively with the relationship of the + publishers or authors of the Document to the Document's overall + subject (or to related matters) and contains nothing that could + fall directly within that overall subject. (Thus, if the Document + is in part a textbook of mathematics, a Secondary Section may not + explain any mathematics.) The relationship could be a matter of + historical connection with the subject or with related matters, or + of legal, commercial, philosophical, ethical or political position + regarding them. + + The "Invariant Sections" are certain Secondary Sections whose + titles are designated, as being those of Invariant Sections, in the + notice that says that the Document is released under this License. + If a section does not fit the above definition of Secondary then it + is not allowed to be designated as Invariant. The Document may + contain zero Invariant Sections. If the Document does not identify + any Invariant Sections then there are none. + + The "Cover Texts" are certain short passages of text that are + listed, as Front-Cover Texts or Back-Cover Texts, in the notice + that says that the Document is released under this License. A + Front-Cover Text may be at most 5 words, and a Back-Cover Text may + be at most 25 words. + + A "Transparent" copy of the Document means a machine-readable copy, + represented in a format whose specification is available to the + general public, that is suitable for revising the document + straightforwardly with generic text editors or (for images composed + of pixels) generic paint programs or (for drawings) some widely + available drawing editor, and that is suitable for input to text + formatters or for automatic translation to a variety of formats + suitable for input to text formatters. A copy made in an otherwise + Transparent file format whose markup, or absence of markup, has + been arranged to thwart or discourage subsequent modification by + readers is not Transparent. An image format is not Transparent if + used for any substantial amount of text. A copy that is not + "Transparent" is called "Opaque". + + Examples of suitable formats for Transparent copies include plain + ASCII without markup, Texinfo input format, LaTeX input format, + SGML or XML using a publicly available DTD, and standard-conforming + simple HTML, PostScript or PDF designed for human modification. + Examples of transparent image formats include PNG, XCF and JPG. + Opaque formats include proprietary formats that can be read and + edited only by proprietary word processors, SGML or XML for which + the DTD and/or processing tools are not generally available, and + the machine-generated HTML, PostScript or PDF produced by some word + processors for output purposes only. + + The "Title Page" means, for a printed book, the title page itself, + plus such following pages as are needed to hold, legibly, the + material this License requires to appear in the title page. For + works in formats which do not have any title page as such, "Title + Page" means the text near the most prominent appearance of the + work's title, preceding the beginning of the body of the text. + + The "publisher" means any person or entity that distributes copies + of the Document to the public. + + A section "Entitled XYZ" means a named subunit of the Document + whose title either is precisely XYZ or contains XYZ in parentheses + following text that translates XYZ in another language. (Here XYZ + stands for a specific section name mentioned below, such as + "Acknowledgements", "Dedications", "Endorsements", or "History".) + To "Preserve the Title" of such a section when you modify the + Document means that it remains a section "Entitled XYZ" according + to this definition. + + The Document may include Warranty Disclaimers next to the notice + which states that this License applies to the Document. These + Warranty Disclaimers are considered to be included by reference in + this License, but only as regards disclaiming warranties: any other + implication that these Warranty Disclaimers may have is void and + has no effect on the meaning of this License. + + 2. VERBATIM COPYING + + You may copy and distribute the Document in any medium, either + commercially or noncommercially, provided that this License, the + copyright notices, and the license notice saying this License + applies to the Document are reproduced in all copies, and that you + add no other conditions whatsoever to those of this License. You + may not use technical measures to obstruct or control the reading + or further copying of the copies you make or distribute. However, + you may accept compensation in exchange for copies. If you + distribute a large enough number of copies you must also follow the + conditions in section 3. + + You may also lend copies, under the same conditions stated above, + and you may publicly display copies. + + 3. COPYING IN QUANTITY + + If you publish printed copies (or copies in media that commonly + have printed covers) of the Document, numbering more than 100, and + the Document's license notice requires Cover Texts, you must + enclose the copies in covers that carry, clearly and legibly, all + these Cover Texts: Front-Cover Texts on the front cover, and + Back-Cover Texts on the back cover. Both covers must also clearly + and legibly identify you as the publisher of these copies. The + front cover must present the full title with all words of the title + equally prominent and visible. You may add other material on the + covers in addition. Copying with changes limited to the covers, as + long as they preserve the title of the Document and satisfy these + conditions, can be treated as verbatim copying in other respects. + + If the required texts for either cover are too voluminous to fit + legibly, you should put the first ones listed (as many as fit + reasonably) on the actual cover, and continue the rest onto + adjacent pages. + + If you publish or distribute Opaque copies of the Document + numbering more than 100, you must either include a machine-readable + Transparent copy along with each Opaque copy, or state in or with + each Opaque copy a computer-network location from which the general + network-using public has access to download using public-standard + network protocols a complete Transparent copy of the Document, free + of added material. If you use the latter option, you must take + reasonably prudent steps, when you begin distribution of Opaque + copies in quantity, to ensure that this Transparent copy will + remain thus accessible at the stated location until at least one + year after the last time you distribute an Opaque copy (directly or + through your agents or retailers) of that edition to the public. + + It is requested, but not required, that you contact the authors of + the Document well before redistributing any large number of copies, + to give them a chance to provide you with an updated version of the + Document. + + 4. MODIFICATIONS + + You may copy and distribute a Modified Version of the Document + under the conditions of sections 2 and 3 above, provided that you + release the Modified Version under precisely this License, with the + Modified Version filling the role of the Document, thus licensing + distribution and modification of the Modified Version to whoever + possesses a copy of it. In addition, you must do these things in + the Modified Version: + + A. Use in the Title Page (and on the covers, if any) a title + distinct from that of the Document, and from those of previous + versions (which should, if there were any, be listed in the + History section of the Document). You may use the same title + as a previous version if the original publisher of that + version gives permission. + + B. List on the Title Page, as authors, one or more persons or + entities responsible for authorship of the modifications in + the Modified Version, together with at least five of the + principal authors of the Document (all of its principal + authors, if it has fewer than five), unless they release you + from this requirement. + + C. State on the Title page the name of the publisher of the + Modified Version, as the publisher. + + D. Preserve all the copyright notices of the Document. + + E. Add an appropriate copyright notice for your modifications + adjacent to the other copyright notices. + + F. Include, immediately after the copyright notices, a license + notice giving the public permission to use the Modified + Version under the terms of this License, in the form shown in + the Addendum below. + + G. Preserve in that license notice the full lists of Invariant + Sections and required Cover Texts given in the Document's + license notice. + + H. Include an unaltered copy of this License. + + I. Preserve the section Entitled "History", Preserve its Title, + and add to it an item stating at least the title, year, new + authors, and publisher of the Modified Version as given on the + Title Page. If there is no section Entitled "History" in the + Document, create one stating the title, year, authors, and + publisher of the Document as given on its Title Page, then add + an item describing the Modified Version as stated in the + previous sentence. + + J. Preserve the network location, if any, given in the Document + for public access to a Transparent copy of the Document, and + likewise the network locations given in the Document for + previous versions it was based on. These may be placed in the + "History" section. You may omit a network location for a work + that was published at least four years before the Document + itself, or if the original publisher of the version it refers + to gives permission. + + K. For any section Entitled "Acknowledgements" or "Dedications", + Preserve the Title of the section, and preserve in the section + all the substance and tone of each of the contributor + acknowledgements and/or dedications given therein. + + L. Preserve all the Invariant Sections of the Document, unaltered + in their text and in their titles. Section numbers or the + equivalent are not considered part of the section titles. + + M. Delete any section Entitled "Endorsements". Such a section + may not be included in the Modified Version. + + N. Do not retitle any existing section to be Entitled + "Endorsements" or to conflict in title with any Invariant + Section. + + O. Preserve any Warranty Disclaimers. + + If the Modified Version includes new front-matter sections or + appendices that qualify as Secondary Sections and contain no + material copied from the Document, you may at your option designate + some or all of these sections as invariant. To do this, add their + titles to the list of Invariant Sections in the Modified Version's + license notice. These titles must be distinct from any other + section titles. + + You may add a section Entitled "Endorsements", provided it contains + nothing but endorsements of your Modified Version by various + parties--for example, statements of peer review or that the text + has been approved by an organization as the authoritative + definition of a standard. + + You may add a passage of up to five words as a Front-Cover Text, + and a passage of up to 25 words as a Back-Cover Text, to the end of + the list of Cover Texts in the Modified Version. Only one passage + of Front-Cover Text and one of Back-Cover Text may be added by (or + through arrangements made by) any one entity. If the Document + already includes a cover text for the same cover, previously added + by you or by arrangement made by the same entity you are acting on + behalf of, you may not add another; but you may replace the old + one, on explicit permission from the previous publisher that added + the old one. + + The author(s) and publisher(s) of the Document do not by this + License give permission to use their names for publicity for or to + assert or imply endorsement of any Modified Version. + + 5. COMBINING DOCUMENTS + + You may combine the Document with other documents released under + this License, under the terms defined in section 4 above for + modified versions, provided that you include in the combination all + of the Invariant Sections of all of the original documents, + unmodified, and list them all as Invariant Sections of your + combined work in its license notice, and that you preserve all + their Warranty Disclaimers. + + The combined work need only contain one copy of this License, and + multiple identical Invariant Sections may be replaced with a single + copy. If there are multiple Invariant Sections with the same name + but different contents, make the title of each such section unique + by adding at the end of it, in parentheses, the name of the + original author or publisher of that section if known, or else a + unique number. Make the same adjustment to the section titles in + the list of Invariant Sections in the license notice of the + combined work. + + In the combination, you must combine any sections Entitled + "History" in the various original documents, forming one section + Entitled "History"; likewise combine any sections Entitled + "Acknowledgements", and any sections Entitled "Dedications". You + must delete all sections Entitled "Endorsements." + + 6. COLLECTIONS OF DOCUMENTS + + You may make a collection consisting of the Document and other + documents released under this License, and replace the individual + copies of this License in the various documents with a single copy + that is included in the collection, provided that you follow the + rules of this License for verbatim copying of each of the documents + in all other respects. + + You may extract a single document from such a collection, and + distribute it individually under this License, provided you insert + a copy of this License into the extracted document, and follow this + License in all other respects regarding verbatim copying of that + document. + + 7. AGGREGATION WITH INDEPENDENT WORKS + + A compilation of the Document or its derivatives with other + separate and independent documents or works, in or on a volume of a + storage or distribution medium, is called an "aggregate" if the + copyright resulting from the compilation is not used to limit the + legal rights of the compilation's users beyond what the individual + works permit. When the Document is included in an aggregate, this + License does not apply to the other works in the aggregate which + are not themselves derivative works of the Document. + + If the Cover Text requirement of section 3 is applicable to these + copies of the Document, then if the Document is less than one half + of the entire aggregate, the Document's Cover Texts may be placed + on covers that bracket the Document within the aggregate, or the + electronic equivalent of covers if the Document is in electronic + form. Otherwise they must appear on printed covers that bracket + the whole aggregate. + + 8. TRANSLATION + + Translation is considered a kind of modification, so you may + distribute translations of the Document under the terms of section + 4. Replacing Invariant Sections with translations requires special + permission from their copyright holders, but you may include + translations of some or all Invariant Sections in addition to the + original versions of these Invariant Sections. You may include a + translation of this License, and all the license notices in the + Document, and any Warranty Disclaimers, provided that you also + include the original English version of this License and the + original versions of those notices and disclaimers. In case of a + disagreement between the translation and the original version of + this License or a notice or disclaimer, the original version will + prevail. + + If a section in the Document is Entitled "Acknowledgements", + "Dedications", or "History", the requirement (section 4) to + Preserve its Title (section 1) will typically require changing the + actual title. + + 9. TERMINATION + + You may not copy, modify, sublicense, or distribute the Document + except as expressly provided under this License. Any attempt + otherwise to copy, modify, sublicense, or distribute it is void, + and will automatically terminate your rights under this License. + + However, if you cease all violation of this License, then your + license from a particular copyright holder is reinstated (a) + provisionally, unless and until the copyright holder explicitly and + finally terminates your license, and (b) permanently, if the + copyright holder fails to notify you of the violation by some + reasonable means prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is + reinstated permanently if the copyright holder notifies you of the + violation by some reasonable means, this is the first time you have + received notice of violation of this License (for any work) from + that copyright holder, and you cure the violation prior to 30 days + after your receipt of the notice. + + Termination of your rights under this section does not terminate + the licenses of parties who have received copies or rights from you + under this License. If your rights have been terminated and not + permanently reinstated, receipt of a copy of some or all of the + same material does not give you any rights to use it. + + 10. FUTURE REVISIONS OF THIS LICENSE + + The Free Software Foundation may publish new, revised versions of + the GNU Free Documentation License from time to time. Such new + versions will be similar in spirit to the present version, but may + differ in detail to address new problems or concerns. See + . + + Each version of the License is given a distinguishing version + number. If the Document specifies that a particular numbered + version of this License "or any later version" applies to it, you + have the option of following the terms and conditions either of + that specified version or of any later version that has been + published (not as a draft) by the Free Software Foundation. If the + Document does not specify a version number of this License, you may + choose any version ever published (not as a draft) by the Free + Software Foundation. If the Document specifies that a proxy can + decide which future versions of this License can be used, that + proxy's public statement of acceptance of a version permanently + authorizes you to choose that version for the Document. + + 11. RELICENSING + + "Massive Multiauthor Collaboration Site" (or "MMC Site") means any + World Wide Web server that publishes copyrightable works and also + provides prominent facilities for anybody to edit those works. A + public wiki that anybody can edit is an example of such a server. + A "Massive Multiauthor Collaboration" (or "MMC") contained in the + site means any set of copyrightable works thus published on the MMC + site. + + "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0 + license published by Creative Commons Corporation, a not-for-profit + corporation with a principal place of business in San Francisco, + California, as well as future copyleft versions of that license + published by that same organization. + + "Incorporate" means to publish or republish a Document, in whole or + in part, as part of another Document. + + An MMC is "eligible for relicensing" if it is licensed under this + License, and if all works that were first published under this + License somewhere other than this MMC, and subsequently + incorporated in whole or in part into the MMC, (1) had no cover + texts or invariant sections, and (2) were thus incorporated prior + to November 1, 2008. + + The operator of an MMC Site may republish an MMC contained in the + site under CC-BY-SA on the same site at any time before August 1, + 2009, provided the MMC is eligible for relicensing. + +ADDENDUM: How to use this License for your documents +==================================================== + +To use this License in a document you have written, include a copy of +the License in the document and put the following copyright and license +notices just after the title page: + + Copyright (C) YEAR YOUR NAME. + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.3 + or any later version published by the Free Software Foundation; + with no Invariant Sections, no Front-Cover Texts, and no Back-Cover + Texts. A copy of the license is included in the section entitled ``GNU + Free Documentation License''. + + If you have Invariant Sections, Front-Cover Texts and Back-Cover +Texts, replace the "with...Texts." line with this: + + with the Invariant Sections being LIST THEIR TITLES, with + the Front-Cover Texts being LIST, and with the Back-Cover Texts + being LIST. + + If you have Invariant Sections without Cover Texts, or some other +combination of the three, merge those two alternatives to suit the +situation. + + If your document contains nontrivial examples of program code, we +recommend releasing these examples in parallel under your choice of free +software license, such as the GNU General Public License, to permit +their use in free software. + + +File: history.info, Node: Concept Index, Next: Function and Variable Index, Prev: GNU Free Documentation License, Up: Top + +Appendix B Concept Index +************************ + +[index] +* Menu: + +* anchored search: Searching the History List. + (line 10) +* event designators: Event Designators. (line 6) +* history events: Event Designators. (line 10) +* history expansion: History Interaction. (line 6) +* History Searching: Searching the History List. + (line 6) + + +File: history.info, Node: Function and Variable Index, Prev: Concept Index, Up: Top + +Appendix C Function and Variable Index +************************************** + +[index] +* Menu: + +* add_history: History List Management. + (line 9) +* add_history_time: History List Management. + (line 16) +* append_history: Managing the History File. + (line 35) +* clear_history: History List Management. + (line 39) +* current_history: Information About the History List. + (line 17) +* free_history_entry: History List Management. + (line 27) +* get_history_event: History Expansion. (line 26) +* history_arg_extract: History Expansion. (line 41) +* history_base: History Variables. (line 9) +* history_comment_char: History Variables. (line 37) +* history_expand: History Expansion. (line 8) +* history_expansion_char: History Variables. (line 29) +* history_get: Information About the History List. + (line 21) +* history_get_history_state: Initializing History and State Management. + (line 14) +* history_get_time: Information About the History List. + (line 28) +* history_inhibit_expansion_function: History Variables. (line 78) +* history_is_stifled: History List Management. + (line 52) +* history_length: History Variables. (line 12) +* history_list: Information About the History List. + (line 9) +* history_max_entries: History Variables. (line 15) +* history_no_expand_chars: History Variables. (line 52) +* history_quotes_inhibit_expansion: History Variables. (line 57) +* history_quoting_state: History Variables. (line 65) +* history_search: Searching the History List. + (line 11) +* history_search_delimiter_chars: History Variables. (line 47) +* history_search_pos: Searching the History List. + (line 30) +* history_search_prefix: Searching the History List. + (line 20) +* history_set_history_state: Initializing History and State Management. + (line 18) +* history_set_pos: Moving Around the History List. + (line 9) +* history_subst_char: History Variables. (line 33) +* history_tokenize: History Expansion. (line 35) +* history_total_bytes: Information About the History List. + (line 32) +* history_truncate_file: Managing the History File. + (line 42) +* history_word_delimiters: History Variables. (line 43) +* history_write_timestamps: History Variables. (line 19) +* next_history: Moving Around the History List. + (line 19) +* previous_history: Moving Around the History List. + (line 14) +* read_history: Managing the History File. + (line 9) +* read_history_range: Managing the History File. + (line 17) +* remove_history: History List Management. + (line 20) +* replace_history_entry: History List Management. + (line 32) +* stifle_history: History List Management. + (line 42) +* unstifle_history: History List Management. + (line 46) +* using_history: Initializing History and State Management. + (line 10) +* where_history: Information About the History List. + (line 14) +* write_history: Managing the History File. + (line 28) + + + +Tag Table: +Node: Top848 +Node: Using History Interactively1493 +Node: History Interaction2001 +Node: Event Designators4715 +Node: Word Designators6217 +Node: Modifiers8612 +Node: Programming with GNU History10259 +Node: Introduction to History11002 +Node: History Storage12734 +Node: History Functions13914 +Node: Initializing History and State Management14903 +Node: History List Management15706 +Node: Information About the History List18137 +Node: Moving Around the History List19750 +Node: Searching the History List20830 +Node: Managing the History File22776 +Node: History Expansion25246 +Node: History Variables27219 +Node: History Programming Example31334 +Node: GNU Free Documentation License33988 +Node: Concept Index59163 +Node: Function and Variable Index59868 + +End Tag Table + + +Local Variables: +coding: utf-8 +End: diff --git a/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/info/readline.info b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/info/readline.info new file mode 100644 index 0000000000000000000000000000000000000000..33b4b45ea6ee6bb08b0b90e0e640aed166150c06 --- /dev/null +++ b/data/miniconda3/pkgs/readline-8.3-hc2a1206_0/share/info/readline.info @@ -0,0 +1,5506 @@ +This is readline.info, produced by makeinfo version 7.1 from rlman.texi. + +This manual describes the GNU Readline Library (version 8.3, 30 December +2024), a library which aids in the consistency of user interface across +discrete programs which provide a command line interface. + + Copyright © 1988-2025 Free Software Foundation, Inc. + + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free Documentation License, + Version 1.3 or any later version published by the Free Software + Foundation; with no Invariant Sections, no Front-Cover Texts, and + no Back-Cover Texts. A copy of the license is included in the + section entitled "GNU Free Documentation License". + +INFO-DIR-SECTION Libraries +START-INFO-DIR-ENTRY +* Readline: (readline). The GNU readline library API. +END-INFO-DIR-ENTRY + + +File: readline.info, Node: Top, Next: Command Line Editing, Up: (dir) + +GNU Readline Library +******************** + +This document describes the GNU Readline Library, a utility which aids +in the consistency of user interface across discrete programs which +provide a command line interface. The Readline home page is +. + +* Menu: + +* Command Line Editing:: GNU Readline User's Manual. +* Programming with GNU Readline:: GNU Readline Programmer's Manual. +* GNU Free Documentation License:: License for copying this manual. +* Concept Index:: Index of concepts described in this manual. +* Function and Variable Index:: Index of externally visible functions + and variables. + + +File: readline.info, Node: Command Line Editing, Next: Programming with GNU Readline, Prev: Top, Up: Top + +1 Command Line Editing +********************** + +This chapter describes the basic features of the GNU command line +editing interface. + +* Menu: + +* Introduction and Notation:: Notation used in this text. +* Readline Interaction:: The minimum set of commands for editing a line. +* Readline Init File:: Customizing Readline from a user's view. +* Bindable Readline Commands:: A description of most of the Readline commands + available for binding +* Readline vi Mode:: A short description of how to make Readline + behave like the vi editor. + + +File: readline.info, Node: Introduction and Notation, Next: Readline Interaction, Up: Command Line Editing + +1.1 Introduction to Line Editing +================================ + +The following paragraphs use Emacs style to describe the notation used +to represent keystrokes. + + The text ‘C-k’ is read as 'Control-K' and describes the character +produced when the key is pressed while the Control key is depressed. + + The text ‘M-k’ is read as 'Meta-K' and describes the character +produced when the Meta key (if you have one) is depressed, and the +key is pressed (a “meta character”), then both are released. The Meta +key is labeled or