diff --git a/data/miniconda3/bin/activate b/data/miniconda3/bin/activate new file mode 100644 index 0000000000000000000000000000000000000000..3220fdec847df2bee159496b06672cd83eb60b07 --- /dev/null +++ b/data/miniconda3/bin/activate @@ -0,0 +1,6 @@ +#!/bin/sh +_CONDA_ROOT="/home/zangyihe/miniconda3" +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +\. "$_CONDA_ROOT/etc/profile.d/conda.sh" || return $? +conda activate "$@" diff --git a/data/miniconda3/bin/acyclic b/data/miniconda3/bin/acyclic new file mode 100644 index 0000000000000000000000000000000000000000..40b78b4980c103f24d90865f347e379626788be1 Binary files /dev/null and b/data/miniconda3/bin/acyclic differ diff --git a/data/miniconda3/bin/adig b/data/miniconda3/bin/adig new file mode 100644 index 0000000000000000000000000000000000000000..da077d9aaa994e0627e695243d0e8a5da1235ac8 Binary files /dev/null and b/data/miniconda3/bin/adig differ diff --git a/data/miniconda3/bin/ahost b/data/miniconda3/bin/ahost new file mode 100644 index 0000000000000000000000000000000000000000..f2a180d88065da15834ac0303a2a1e654a1fa50f Binary files /dev/null and b/data/miniconda3/bin/ahost differ diff --git a/data/miniconda3/bin/bdftogd b/data/miniconda3/bin/bdftogd new file mode 100644 index 0000000000000000000000000000000000000000..a9500039301435fabef8f1a5234ca739585894b1 --- /dev/null +++ b/data/miniconda3/bin/bdftogd @@ -0,0 +1,204 @@ +#!/usr/bin/perl -w + +# +# Simple convertor from bdf to gd font format. +# +# Author: Jan Pazdziora, adelton@fi.muni.cz, http://www.fi.muni.cz/~adelton/ +# at Faculty of Informatics, Masaryk University in Brno, Czech Republic. +# +# Example of use: +# fstobdf -s fontserverhost:7100 -fn 8x16 | ./bdftogd FontLarge gdfontl +# + +use strict; + +my $VERSION = '0.60'; +my $now = localtime; + +if (@ARGV != 2) + { die "usage: bdftogd fontname filename, eg. bdftogd FontLarge gdfontl\n"; } + +my $gdname = shift; +$gdname = 'gd' . $gdname unless $gdname =~ /^gd/i; + +my $filename = shift; +$filename = 'gd' . $filename unless $filename =~ /^gd/i; + +if (-f "$filename.c") { die "File $filename.c already exists, won't overwrite\n"; } +if (-f "$filename.h") { die "File $filename.h already exists, won't overwrite\n"; } + +my ($width, $height); +my (@data, @left, @bottom); +my ($globalleft, $globaltop); + +my ($minchar, $maxchar); + +my ($copyright, $fontdef); + +my $currentchar; +my $gobitmap = 0; + + +while (<>) + { + chomp; + s/\r$//; + my ($tag, $value) = split / /, $_, 2; + die "Font is not fixed width\n" + if $tag eq 'SPACING' and not $value =~ /[CM]/i; + + $currentchar = $value if $tag eq 'ENCODING'; + $minchar = $currentchar if not defined $minchar + or $currentchar < $minchar; + $maxchar = $currentchar if not defined $maxchar + or $currentchar > $maxchar; + + if ($tag eq 'ENDCHAR') + { + $gobitmap = 0; + my $bottom = $globaltop - $bottom[$currentchar]; + + + if ($bottom > 0) + { $data[$currentchar] = substr $data[$currentchar], 0, length($data[$currentchar]) - $bottom * $width; } + else + { $data[$currentchar] .= '0' x (-$bottom * $width); } + } + + if ($tag eq 'FONTBOUNDINGBOX') + { + my ($tag, $wid, $hei, $left, $top) = split / /; + if (defined $top) + { + $globalleft = $left; + $globaltop = $top; + $height = $hei; + $width = $wid; + } + } + if ($tag eq 'FONT' and not defined $fontdef) + { $fontdef = $value; } + if ($tag eq 'COPYRIGHT' and not defined $copyright) + { $copyright = $value; } + + if ($tag eq 'BBX') + { + my ($tag, $wid, $hei, $left, $bottom) = split / /; + if (defined $bottom) + { + $left[$currentchar] = $left; + $bottom[$currentchar] = $bottom; + } + } + + if ($gobitmap) + { + my $value = pack 'H*', $_; + my $bits = unpack 'B*', $value; + $bits = ('0' x $left[$currentchar]) . $bits; + $bits .= '0' x ($width - length $bits); + $bits = substr $bits, 0, $width; + $data[$currentchar] .= $bits; + } + + if ($tag eq 'BITMAP') + { + $gobitmap = 1; + $data[$currentchar] = ''; + } + } + +my $info = <<"EOF"; +/* + This is a header file for gd font, generated using + bdftogd version $VERSION by Jan Pazdziora, adelton\@fi.muni.cz + from bdf font + $fontdef + at $now. +EOF + +if (defined $copyright) + { + $info .= <<"EOF"; + The original bdf was holding following copyright: + $copyright + */ +EOF + } +else + { + $info .= <<"EOF"; + No copyright info was found in the original bdf. + */ +EOF + } + +open FILEC, "> $filename.c" or die "Error writing $filename.c: $!\n"; +open FILEH, "> $filename.h" or die "Error writing $filename.h: $!\n"; +print FILEC <<"EOF"; + +$info + +#include "$filename.h" + +char ${gdname}Data[] = { +EOF + +$minchar = 0 unless defined $minchar; +$maxchar = 255 unless defined $maxchar; +for (my $i = $minchar; $i <= $maxchar; $i++) + { + $data[$i] = '' unless defined $data[$i]; + $data[$i] = '0' x ($width * $height - length $data[$i]) . $data[$i]; + + print FILEC "/* Char $i */\n"; + for my $line (0 .. $height - 1) + { print FILEC join ',', split(//, substr($data[$i], $line * $width, $width)), "\n"; } + + print FILEC "\n"; + + next; + + for my $line (0 .. $height - 1) + { print substr($data[$i], $line * $width, $width), "\n"; } + } + +my $capdef = "\U_${filename}_H_"; + +print FILEC <<"EOF"; + +}; + +gdFont ${gdname}Rep = { + @{[ $maxchar - $minchar + 1]}, + $minchar, + $width, + $height, + ${gdname}Data +}; + +gdFontPtr ${gdname} = &${gdname}Rep; + +/* This file has not been truncated. */ + +EOF + + +close FILEC; + +print FILEH <<"EOF"; + +#ifndef $capdef +#define $capdef 1 + +$info + +#include "gd.h" + +extern gdFontPtr $gdname; + +#endif + +EOF + +1; diff --git a/data/miniconda3/bin/bzcmp b/data/miniconda3/bin/bzcmp new file mode 100644 index 0000000000000000000000000000000000000000..bd96c27c39871d6802675b182f7cf4481bec96ca --- /dev/null +++ b/data/miniconda3/bin/bzcmp @@ -0,0 +1,76 @@ +#!/bin/sh +# sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh + +# Bzcmp/diff wrapped for bzip2, +# adapted from zdiff by Philippe Troin for Debian GNU/Linux. + +# Bzcmp and bzdiff are used to invoke the cmp or the diff pro- +# gram on compressed files. All options specified are passed +# directly to cmp or diff. If only 1 file is specified, then +# the files compared are file1 and an uncompressed file1.gz. +# If two files are specified, then they are uncompressed (if +# necessary) and fed to cmp or diff. The exit status from cmp +# or diff is preserved. + +PATH="/usr/bin:/bin:$PATH"; export PATH +prog=`echo $0 | sed 's|.*/||'` +case "$prog" in + *cmp) comp=${CMP-cmp} ;; + *) comp=${DIFF-diff} ;; +esac + +OPTIONS= +FILES= +for ARG +do + case "$ARG" in + -*) OPTIONS="$OPTIONS $ARG";; + *) if test -f "$ARG"; then + FILES="$FILES $ARG" + else + echo "${prog}: $ARG not found or not a regular file" + exit 1 + fi ;; + esac +done +if test -z "$FILES"; then + echo "Usage: $prog [${comp}_options] file [file]" + exit 1 +fi +set $FILES +if test $# -eq 1; then + FILE=`echo "$1" | sed 's/.bz2$//'` + bzip2 -cd "$FILE.bz2" | $comp $OPTIONS - "$FILE" + STAT="$?" + +elif test $# -eq 2; then + case "$1" in + *.bz2) + case "$2" in + *.bz2) + F=`echo "$2" | sed 's|.*/||;s|.bz2$||'` + tmp=`mktemp "${TMPDIR:-/tmp}"/bzdiff.XXXXXXXXXX` || { + echo 'cannot create a temporary file' >&2 + exit 1 + } + bzip2 -cdfq "$2" > "$tmp" + bzip2 -cdfq "$1" | $comp $OPTIONS - "$tmp" + STAT="$?" + /bin/rm -f "$tmp";; + + *) bzip2 -cdfq "$1" | $comp $OPTIONS - "$2" + STAT="$?";; + esac;; + *) case "$2" in + *.bz2) + bzip2 -cdfq "$2" | $comp $OPTIONS "$1" - + STAT="$?";; + *) $comp $OPTIONS "$1" "$2" + STAT="$?";; + esac;; + esac +else + echo "Usage: $prog [${comp}_options] file [file]" + exit 1 +fi +exit "$STAT" diff --git a/data/miniconda3/bin/bzdiff b/data/miniconda3/bin/bzdiff new file mode 100644 index 0000000000000000000000000000000000000000..bd96c27c39871d6802675b182f7cf4481bec96ca --- /dev/null +++ b/data/miniconda3/bin/bzdiff @@ -0,0 +1,76 @@ +#!/bin/sh +# sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh + +# Bzcmp/diff wrapped for bzip2, +# adapted from zdiff by Philippe Troin for Debian GNU/Linux. + +# Bzcmp and bzdiff are used to invoke the cmp or the diff pro- +# gram on compressed files. All options specified are passed +# directly to cmp or diff. If only 1 file is specified, then +# the files compared are file1 and an uncompressed file1.gz. +# If two files are specified, then they are uncompressed (if +# necessary) and fed to cmp or diff. The exit status from cmp +# or diff is preserved. + +PATH="/usr/bin:/bin:$PATH"; export PATH +prog=`echo $0 | sed 's|.*/||'` +case "$prog" in + *cmp) comp=${CMP-cmp} ;; + *) comp=${DIFF-diff} ;; +esac + +OPTIONS= +FILES= +for ARG +do + case "$ARG" in + -*) OPTIONS="$OPTIONS $ARG";; + *) if test -f "$ARG"; then + FILES="$FILES $ARG" + else + echo "${prog}: $ARG not found or not a regular file" + exit 1 + fi ;; + esac +done +if test -z "$FILES"; then + echo "Usage: $prog [${comp}_options] file [file]" + exit 1 +fi +set $FILES +if test $# -eq 1; then + FILE=`echo "$1" | sed 's/.bz2$//'` + bzip2 -cd "$FILE.bz2" | $comp $OPTIONS - "$FILE" + STAT="$?" + +elif test $# -eq 2; then + case "$1" in + *.bz2) + case "$2" in + *.bz2) + F=`echo "$2" | sed 's|.*/||;s|.bz2$||'` + tmp=`mktemp "${TMPDIR:-/tmp}"/bzdiff.XXXXXXXXXX` || { + echo 'cannot create a temporary file' >&2 + exit 1 + } + bzip2 -cdfq "$2" > "$tmp" + bzip2 -cdfq "$1" | $comp $OPTIONS - "$tmp" + STAT="$?" + /bin/rm -f "$tmp";; + + *) bzip2 -cdfq "$1" | $comp $OPTIONS - "$2" + STAT="$?";; + esac;; + *) case "$2" in + *.bz2) + bzip2 -cdfq "$2" | $comp $OPTIONS "$1" - + STAT="$?";; + *) $comp $OPTIONS "$1" "$2" + STAT="$?";; + esac;; + esac +else + echo "Usage: $prog [${comp}_options] file [file]" + exit 1 +fi +exit "$STAT" diff --git a/data/miniconda3/bin/cairo-trace b/data/miniconda3/bin/cairo-trace new file mode 100644 index 0000000000000000000000000000000000000000..81102249707d793fc9c75d97c26055225feaa0a1 --- /dev/null +++ b/data/miniconda3/bin/cairo-trace @@ -0,0 +1,136 @@ +#!/bin/sh + +prefix=/home/zangyihe/miniconda3 +exec_prefix=/home/zangyihe/miniconda3 + +nofile= +flush= +nocallers= +nomarkdirty= +compress= + +usage() { +cat << EOF +usage: cairo-trace [--no-file] command +cairo-trace will generate a log of all calls made by command to +cairo. This log will be stored in a file in the local directory +called command.pid.trace. +Whatever else happens is driven by its argument: + --flush - Flush the output trace after every call. + --no-file - Disable the creation of an output file. Outputs to the + terminal instead. + --no-callers - Do not lookup the caller address/symbol/line whilst tracing. + --mark-dirty - Record image data for cairo_mark_dirty() [default] + --no-mark-dirty - Do not record image data for cairo_mark_dirty() + --compress - Compress the output with LZMA + --profile - Combine --no-callers and --no-mark-dirty and --compress + +Environment variables understood by cairo-trace: + CAIRO_TRACE_FLUSH - flush the output after every function call. + CAIRO_TRACE_LINE_INFO - emit line information for most function calls. +EOF +exit +} + +skip=1 +while test $skip -eq 1; do + skip=0 + case $1 in + --flush) + skip=1 + flush=1 + ;; + --no-file) + skip=1 + nofile=1 + ;; + --no-callers) + skip=1 + nocallers=1 + ;; + --mark-dirty) + skip=1 + nomarkdirty= + ;; + --no-mark-dirty) + skip=1 + nomarkdirty=1 + ;; + --compress) + skip=1 + compress=1 + nofile=1 + ;; + --profile) + skip=1 + compress=1 + nomarkdirty=1 + nocallers=1 + nofile=1 + ;; + --version) + echo "cairo-trace, version 1.18.4." + exit + ;; + --help) + usage + ;; + esac + if test $skip -eq 1; then + shift + fi +done + +if test $# -eq 0; then + usage +fi + +CAIRO_TRACE_PROG_NAME="$1" +export CAIRO_TRACE_PROG_NAME + +if test "x$CAIRO_TRACE_SO" = "x"; then + CAIRO_TRACE_SO="" + for lib in /home/zangyihe/miniconda3/lib/cairo/libcairo-trace.4 /home/zangyihe/miniconda3/lib/cairo/libcairo-trace.4* /home/zangyihe/miniconda3/lib/cairo/libcairo-trace.*.4 ; do + if test -h "$lib" -o -f "$lib"; then + CAIRO_TRACE_SO="$lib" + break + fi + done +fi +if test "x$CAIRO_TRACE_SO" = "x"; then + echo "Could not find the cairo-trace shared library in /home/zangyihe/miniconda3/lib/cairo/." >&2 + echo "Set the CAIRO_TRACE_SO environment variable to the full path of the library." >&2 + exit 15 +fi + +LD_PRELOAD="$CAIRO_TRACE_SO" +DYLD_INSERT_LIBRARIES="$CAIRO_TRACE_SO" +DYLD_FORCE_FLAT_NAMESPACE=1 +export LD_PRELOAD +export DYLD_INSERT_LIBRARIES +export DYLD_FORCE_FLAT_NAMESPACE + +if test -n "$nocallers"; then + CAIRO_TRACE_LINE_INFO=0 + export CAIRO_TRACE_LINE_INFO +fi + +if test -n "$nomarkdirty"; then + CAIRO_TRACE_MARK_DIRTY=0 + export CAIRO_TRACE_MARK_DIRTY +fi + +if test -n "$flush"; then + CAIRO_TRACE_FLUSH=1 + export CAIRO_TRACE_FLUSH +fi + +if test -z "$nofile"; then + CAIRO_TRACE_OUTDIR=`pwd` "$@" +elif test -n "$compress"; then + name=`basename $1` + echo Generating compressed trace file $name.$$.lzma + CAIRO_TRACE_FD=3 "$@" 3>&1 >/dev/null | lzma -cz9 > $name.$$.lzma +else + CAIRO_TRACE_FD=3 "$@" 3>&1 >/dev/null +fi diff --git a/data/miniconda3/bin/ccomps b/data/miniconda3/bin/ccomps new file mode 100644 index 0000000000000000000000000000000000000000..31535779eba0b49cc79a6e635a1200d4f46a3041 Binary files /dev/null and b/data/miniconda3/bin/ccomps differ diff --git a/data/miniconda3/bin/circo b/data/miniconda3/bin/circo new file mode 100644 index 0000000000000000000000000000000000000000..1808665a51587601856f037018955b60b18356da Binary files /dev/null and b/data/miniconda3/bin/circo differ diff --git a/data/miniconda3/bin/convert b/data/miniconda3/bin/convert new file mode 100644 index 0000000000000000000000000000000000000000..c26809249cc7f09b1c44be53dba07425238b44cd Binary files /dev/null and b/data/miniconda3/bin/convert differ diff --git a/data/miniconda3/bin/cph b/data/miniconda3/bin/cph new file mode 100644 index 0000000000000000000000000000000000000000..1fab9b8ec6aa3a934caa736777b1368cea299481 --- /dev/null +++ b/data/miniconda3/bin/cph @@ -0,0 +1,11 @@ +#!/home/zangyihe/miniconda3/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from conda_package_handling.cli import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/data/miniconda3/bin/dbus-cleanup-sockets b/data/miniconda3/bin/dbus-cleanup-sockets new file mode 100644 index 0000000000000000000000000000000000000000..26cd29aafa29ecc102ead08df0ce66466694d704 Binary files /dev/null and b/data/miniconda3/bin/dbus-cleanup-sockets differ diff --git a/data/miniconda3/bin/dot2gxl b/data/miniconda3/bin/dot2gxl new file mode 100644 index 0000000000000000000000000000000000000000..57d94b9600af431ed0efa62423efafce0497c7ed Binary files /dev/null and b/data/miniconda3/bin/dot2gxl differ diff --git a/data/miniconda3/bin/f2py b/data/miniconda3/bin/f2py new file mode 100644 index 0000000000000000000000000000000000000000..fa0b87d4ca8b852d744d8de7cd82466f9989f86d --- /dev/null +++ b/data/miniconda3/bin/f2py @@ -0,0 +1,7 @@ +#!/home/zangyihe/miniconda3/bin/python3.13 +import sys +from numpy.f2py.f2py2e import main +if __name__ == '__main__': + if sys.argv[0].endswith('.exe'): + sys.argv[0] = sys.argv[0][:-4] + sys.exit(main()) diff --git a/data/miniconda3/bin/fc-cache b/data/miniconda3/bin/fc-cache new file mode 100644 index 0000000000000000000000000000000000000000..f70e595ec9932c17b3ba8bd58f0857aff24c5d96 Binary files /dev/null and b/data/miniconda3/bin/fc-cache differ diff --git a/data/miniconda3/bin/fc-list b/data/miniconda3/bin/fc-list new file mode 100644 index 0000000000000000000000000000000000000000..5a39a963b77dfffe960713ca69d391f8d2f31567 Binary files /dev/null and b/data/miniconda3/bin/fc-list differ diff --git a/data/miniconda3/bin/fc-scan b/data/miniconda3/bin/fc-scan new file mode 100644 index 0000000000000000000000000000000000000000..aaccc3c17490ae0362b1af46bd8b86a1f950b1cb Binary files /dev/null and b/data/miniconda3/bin/fc-scan differ diff --git a/data/miniconda3/bin/fonttools b/data/miniconda3/bin/fonttools new file mode 100644 index 0000000000000000000000000000000000000000..c4854d58b01d9b2346d76404562378c4bb285ecd --- /dev/null +++ b/data/miniconda3/bin/fonttools @@ -0,0 +1,7 @@ +#!/home/zangyihe/miniconda3/bin/python3.13 +import sys +from fontTools.__main__ import main +if __name__ == '__main__': + if sys.argv[0].endswith('.exe'): + sys.argv[0] = sys.argv[0][:-4] + sys.exit(main()) diff --git a/data/miniconda3/bin/fribidi b/data/miniconda3/bin/fribidi new file mode 100644 index 0000000000000000000000000000000000000000..8c60c91d79bfb812c86a7a4ac3161dba695d9119 Binary files /dev/null and b/data/miniconda3/bin/fribidi differ diff --git a/data/miniconda3/bin/gd2togif b/data/miniconda3/bin/gd2togif new file mode 100644 index 0000000000000000000000000000000000000000..c67bd7dce636076304584c7f82544049b6e9ec8a Binary files /dev/null and b/data/miniconda3/bin/gd2togif differ diff --git a/data/miniconda3/bin/gdtopng b/data/miniconda3/bin/gdtopng new file mode 100644 index 0000000000000000000000000000000000000000..24dd0a54d1a0ed0c6c4995645b526923be1e95f3 Binary files /dev/null and b/data/miniconda3/bin/gdtopng differ diff --git a/data/miniconda3/bin/gettext.sh b/data/miniconda3/bin/gettext.sh new file mode 100644 index 0000000000000000000000000000000000000000..342ca471d77a4b43f7f08cfcf28a5cd5636b0749 --- /dev/null +++ b/data/miniconda3/bin/gettext.sh @@ -0,0 +1,135 @@ +#! /bin/sh +# +# Copyright (C) 2003, 2005-2007, 2011, 2018-2020 Free Software Foundation, Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program. If not, see . +# + +# Find a way to echo strings without interpreting backslash. +if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then + echo='echo' +else + if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then + echo='printf %s\n' + else + echo_func () { + cat < +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law." + echo "Written by" "Bruno Haible" + } + if test $# = 1; then + case "$1" in + --help | --hel | --he | --h ) + func_usage; exit 0 ;; + --version | --versio | --versi | --vers | --ver | --ve | --v ) + func_version; exit 0 ;; + esac + fi + func_usage 1>&2 + exit 1 + ;; + esac +fi + +# eval_gettext MSGID +# looks up the translation of MSGID and substitutes shell variables in the +# result. +eval_gettext () { + gettext "$1" | (export PATH `envsubst --variables "$1"`; envsubst "$1") +} + +# eval_ngettext MSGID MSGID-PLURAL COUNT +# looks up the translation of MSGID / MSGID-PLURAL for COUNT and substitutes +# shell variables in the result. +eval_ngettext () { + ngettext "$1" "$2" "$3" | (export PATH `envsubst --variables "$1 $2"`; envsubst "$1 $2") +} + +# eval_pgettext MSGCTXT MSGID +# looks up the translation of MSGID in the context MSGCTXT and substitutes +# shell variables in the result. +eval_pgettext () { + gettext --context="$1" "$2" | (export PATH `envsubst --variables "$2"`; envsubst "$2") +} + +# eval_npgettext MSGCTXT MSGID MSGID-PLURAL COUNT +# looks up the translation of MSGID / MSGID-PLURAL for COUNT in the context +# MSGCTXT and substitutes shell variables in the result. +eval_npgettext () { + ngettext --context="$1" "$2" "$3" "$4" | (export PATH `envsubst --variables "$2 $3"`; envsubst "$2 $3") +} + +# Note: This use of envsubst is much safer than using the shell built-in 'eval' +# would be. +# 1) The security problem with Chinese translations that happen to use a +# character such as \xe0\x60 is avoided. +# 2) The security problem with malevolent translators who put in command lists +# like "$(...)" or "`...`" is avoided. +# 3) The translations can only refer to shell variables that are already +# mentioned in MSGID or MSGID-PLURAL. +# +# Note: "export PATH" above is a dummy; this is for the case when +# `envsubst --variables ...` returns nothing. +# +# Note: In eval_ngettext above, "$1 $2" means a string whose variables set is +# the union of the variables set of "$1" and "$2". +# +# Note: The minimal use of backquote above ensures that trailing newlines are +# not dropped, not from the gettext invocation and not from the value of any +# shell variable. +# +# Note: Field splitting on the `envsubst --variables ...` result is desired, +# since envsubst outputs the variables, separated by newlines. Pathname +# wildcard expansion or tilde expansion has no effect here, since the words +# output by "envsubst --variables ..." consist solely of alphanumeric +# characters and underscore. diff --git a/data/miniconda3/bin/gif2webp b/data/miniconda3/bin/gif2webp new file mode 100644 index 0000000000000000000000000000000000000000..9c1088e03b2d1f7b85d9a3998356c36b32a868a7 Binary files /dev/null and b/data/miniconda3/bin/gif2webp differ diff --git a/data/miniconda3/bin/gifclrmp b/data/miniconda3/bin/gifclrmp new file mode 100644 index 0000000000000000000000000000000000000000..0b0e482b96bfc9aa47f57e1f0e81bf07e59c865a Binary files /dev/null and b/data/miniconda3/bin/gifclrmp differ diff --git a/data/miniconda3/bin/gtscheck b/data/miniconda3/bin/gtscheck new file mode 100644 index 0000000000000000000000000000000000000000..698c2427b176ef89949b0e4217317fb3c7a34793 Binary files /dev/null and b/data/miniconda3/bin/gtscheck differ diff --git a/data/miniconda3/bin/gvpack b/data/miniconda3/bin/gvpack new file mode 100644 index 0000000000000000000000000000000000000000..8ef19fc30d6a9a581ecf9af52cae758c3a167c57 Binary files /dev/null and b/data/miniconda3/bin/gvpack differ diff --git a/data/miniconda3/bin/gvpr b/data/miniconda3/bin/gvpr new file mode 100644 index 0000000000000000000000000000000000000000..781acdcb06ece076240e901fb113ff1568010d85 Binary files /dev/null and b/data/miniconda3/bin/gvpr differ diff --git a/data/miniconda3/bin/hb-subset b/data/miniconda3/bin/hb-subset new file mode 100644 index 0000000000000000000000000000000000000000..f96147af0c57ff75174c031e8d60f6c862bdd545 Binary files /dev/null and b/data/miniconda3/bin/hb-subset differ diff --git a/data/miniconda3/bin/icu-config b/data/miniconda3/bin/icu-config new file mode 100644 index 0000000000000000000000000000000000000000..74a48593f74bcb619b754d3e0cff04c1e0cd289a --- /dev/null +++ b/data/miniconda3/bin/icu-config @@ -0,0 +1,771 @@ +#!/bin/sh +## -*-sh-*- +#set -x +# BEGIN of icu-config-top +# Copyright (C) 2016 and later: Unicode, Inc. and others. +# License & terms of use: http://www.unicode.org/copyright.html +#****************************************************************************** +# Copyright (C) 1999-2013, International Business Machines +# Corporation and others. All Rights Reserved. +#****************************************************************************** +# This script is designed to aid configuration of ICU. +# rpath links a library search path right into the binaries. +# +# Note: it's preferred to use the .pc files rather than icu-config. +# + +### END of icu-config-top + +## Zero out prefix. +execprefix= +prefix= + + +loaddefs() +{ + +# Following from icu/icu4c/source/config/Makefile.inc +# Copyright (C) 2016 and later: Unicode, Inc. and others. +# License & terms of use: http://www.unicode.org/copyright.html +## -*-makefile-*- +#****************************************************************************** +# Copyright (C) 1999-2014, International Business Machines +# Corporation and others. All Rights Reserved. +#****************************************************************************** +# This Makefile.inc is designed to be included into projects which make use +# of the ICU. + +# CONTENTS OF THIS FILE +# 1). Base configuration information and linkage +# 2). Variables giving access to ICU tools +# 3). Host information +# 4). Compiler flags and settings +# 5). Data Packaging directives +# 6). Include of platform make fragment (mh-* file) + +################################################################## +# +# *1* base configuration information and linkage +# +################################################################## +# The PREFIX is the base of where ICU is installed. +# Inside this directory you should find bin, lib, include/unicode, +# etc. If ICU is not installed in this directory, you must change the +# following line. There should exist ${prefix}/include/unicode/utypes.h +# for example. +default_prefix="/home/zangyihe/miniconda3" +if [ "x${prefix}" = "x" ]; then prefix="$default_prefix"; fi +exec_prefix="${prefix}" +libdir="${exec_prefix}/lib" +libexecdir="${exec_prefix}/libexec" +bindir="${exec_prefix}/bin" +datarootdir="${prefix}/share" +datadir="${datarootdir}" +sbindir="${exec_prefix}/sbin" + +# about the ICU version +VERSION="73.1" +UNICODE_VERSION="15.0" + +# The prefix for ICU libraries, normally 'icu' +ICUPREFIX="icu" +PACKAGE="icu" +LIBICU="lib${ICUPREFIX}" + +# Static library prefix and file extension +STATIC_PREFIX="s" +LIBSICU="lib${STATIC_PREFIX}${ICUPREFIX}" +A="a" + +# Suffix at the end of libraries. Usually empty. +ICULIBSUFFIX="" +# ICULIBSUFFIX_VERSION is non-empty if it is to contain a library +# version. For example, if it is 21, it means libraries are named +# libicuuc21.so for example. + +# rpath links a library search path right into the binaries. +## mh-files MUST NOT override RPATHLDFLAGS unless they provide +## equivalent '#SH#' lines for icu-config fixup +default_ENABLE_RPATH="NO" +if [ "x${ENABLE_RPATH}" = "x" ]; then ENABLE_RPATH="$default_ENABLE_RPATH"; fi +RPATHLDFLAGS="${LD_RPATH}${LD_RPATH_PRE}${libdir}" + +# icu-config version of above 'if': +case "x$ENABLE_RPATH" in +x[yY]*) + ENABLE_RPATH=YES + RPATHLDFLAGS="${LD_RPATH}${LD_RPATH_PRE}${libdir}" + ;; + +x[nN]*) + ENABLE_RPATH=NO + RPATHLDFLAGS="" + ;; + +x) + ENABLE_RPATH=NO + RPATHLDFLAGS="" + ;; + +*) + echo $0: Unknown --enable-rpath value ${ENABLE_RPATH} 1>&2 + exit 3 + ;; +esac + +# Name flexibility for the library naming scheme. Any modifications should +# be made in the mh- file for the specific platform. +DATA_STUBNAME="data" +COMMON_STUBNAME="uc" +I18N_STUBNAME="i18n" +LAYOUTEX_STUBNAME="lx" +IO_STUBNAME="io" +TOOLUTIL_STUBNAME="tu" +CTESTFW_STUBNAME="test" + + +### To link your application with ICU: +# 1. use LDFLAGS, CFLAGS, etc from above +# 2. link with ${ICULIBS} +# 3. optionally, add one or more of: +# - ${ICULIBS_I18N} - i18n library, formatting, etc. +# - ${ICULIBS_ICUIO} - ICU stdio equivalent library + +ICULIBS_COMMON="-l${ICUPREFIX}uc${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}" +ICULIBS_DATA="-l${ICUPREFIX}${DATA_STUBNAME}${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}" +ICULIBS_I18N="-l${ICUPREFIX}${I18N_STUBNAME}${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}" +ICULIBS_TOOLUTIL="-l${ICUPREFIX}tu${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}" +ICULIBS_CTESTFW="-l${ICUPREFIX}ctestfw${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}" +ICULIBS_ICUIO="-l${ICUPREFIX}io${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}" +ICULIBS_OBSOLETE="-l${ICUPREFIX}obsolete${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}" +ICULIBS_LAYOUTEX="-l${ICUPREFIX}lx${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}" +ICULIBS_BASE="-L${libdir}" + +# for icu-config to test with +ICULIBS_COMMON_LIB_NAME="${LIBICU}${COMMON_STUBNAME}${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}.${SO}" +ICULIBS_COMMON_LIB_NAME_A="${LIBICU}${COMMON_STUBNAME}${ICULIBSUFFIX}.${A}" + +# ICULIBS is the set of libraries your application should link +# with usually. Many applications will want to add ${ICULIBS_I18N} as well. +ICULIBS="${ICULIBS_BASE} ${ICULIBS_I18N} ${ICULIBS_COMMON} ${ICULIBS_DATA} " + +# Proper echo newline handling is needed in icu-config +ECHO_N="-n" +ECHO_C="" +# Not currently being used but good to have for proper tab handling +ECHO_T="" + +################################################################## +# +# *2* access to ICU tools +# +################################################################## +# Environment variable to set a runtime search path +# (Overridden when necessary in -mh files) +LDLIBRARYPATH_ENVVAR="LD_LIBRARY_PATH" + +# Versioned target for a shared library +## FINAL_SO_TARGET = ${SO_TARGET}.${SO_TARGET_VERSION} +## MIDDLE_SO_TARGET = ${SO_TARGET}.${SO_TARGET_VERSION_MAJOR} + +# Access to important ICU tools. +# Use as follows: ${INVOKE} ${GENRB} arguments .. +INVOKE="${LDLIBRARYPATH_ENVVAR}=${libdir}:$$${LDLIBRARYPATH_ENVVAR} ${LEAK_CHECKER}" +GENCCODE="${sbindir}/genccode" +ICUPKG="${sbindir}/icupkg" +GENCMN="${sbindir}/gencmn" +GENRB="${bindir}/genrb" +PKGDATA="${bindir}/pkgdata" + +# moved here because of dependencies +pkgdatadir="${datadir}/${PACKAGE}${ICULIBSUFFIX}/${VERSION}" +pkglibdir="${libdir}/${PACKAGE}${ICULIBSUFFIX}/${VERSION}" + +################################################################## +# +# *3* Information about the host +# +################################################################## + +# Information about the host that 'configure' was run on. +host="x86_64-conda-linux-gnu" +host_alias="x86_64-conda-linux-gnu" +host_cpu="x86_64" +host_vendor="conda" +host_os="linux-gnu" +# Our platform canonical name (as determined by configure) +# this is a #define value (i.e. U_XXXX or XXXX) +platform="U_LINUX" + +################################################################## +# +# *4* compiler flags and misc. options +# +################################################################## +AR="/croot/icu_1692293016303/_build_env/bin/x86_64-conda-linux-gnu-ar" +# initial tab keeps it out of the shell version. +ARFLAGS=" ${ARFLAGS}" +CC="/croot/icu_1692293016303/_build_env/bin/x86_64-conda-linux-gnu-cc" +CPP="/croot/icu_1692293016303/_build_env/bin/x86_64-conda-linux-gnu-cpp" +CFLAGS="" +CPPFLAGS="-I${prefix}/include" +CXXFLAGS="" +CXX="/croot/icu_1692293016303/_build_env/bin/x86_64-conda-linux-gnu-c++" +DEFAULT_MODE="dll" +DEFS="-DPACKAGE_NAME=\"ICU\" -DPACKAGE_TARNAME=\"International\ Components\ for\ Unicode\" -DPACKAGE_VERSION=\"73.1\" -DPACKAGE_STRING=\"ICU\ 73.1\" -DPACKAGE_BUGREPORT=\"http://icu-project.org/bugs\" -DPACKAGE_URL=\"http://icu-project.org\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=8 -DHAVE_LIBM=1 -DHAVE_ELF_H=1 -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_LIBPTHREAD=1 -DHAVE_INTTYPES_H=1 -DHAVE_DIRENT_H=1 -DHAVE_WCHAR_H=1 -DSIZEOF_WCHAR_T=4 " +# use a consistent INSTALL +INSTALL="${SHELL} ${pkgdatadir}/install-sh -c" +INSTALL_DATA="${INSTALL} -m 644" +INSTALL_PROGRAM="${INSTALL}" +INSTALL_SCRIPT="${INSTALL}" +LDFLAGS="${RPATHLDFLAGS}" +LIBS="-lpthread -ldl -lm " +LIB_M="" +LIB_VERSION="73.1" +LIB_VERSION_MAJOR="73" +MKINSTALLDIRS="${SHELL} ${pkgdatadir}/mkinstalldirs" +RANLIB="/croot/icu_1692293016303/_build_env/bin/x86_64-conda-linux-gnu-ranlib" +RMV="rm -rf" +SHELL="/bin/sh" +SHLIB_c="${CC} ${DEFS} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -shared" +SHLIB_cc="${CXX} ${DEFS} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} -shared" +U_IS_BIG_ENDIAN="0" +includedir="${prefix}/include" +infodir="${datarootdir}/info" +localstatedir="${prefix}/var" +mandir="${datarootdir}/man" +oldincludedir="/usr/include" +program_transform_name="s,x,x," +sharedstatedir="${prefix}/com" +sysconfdir="${prefix}/etc" +INSTALL_L="${INSTALL_DATA}" + +# for derivative builds - don't bother with VERBOSE/NONVERBOSE SILENT_COMPILE + +################################################################## +# +# *5* packaging options and directories +# +################################################################## + +# The basename of the ICU data file (i.e. icudt21b ) +ICUDATA_CHAR="l" +ICUDATA_NAME="icudt73l" + +# Defaults for pkgdata's mode and directories +# The default data dir changes depending on what packaging mode +# is being used +if [ "x$PKGDATA_MODE" = "x" ]; +then +PKGDATA_MODE="dll" +fi + +case "$PKGDATA_MODE" in +common) +ICUDATA_DIR="${pkgdatadir}" +ICUPKGDATA_DIR="${ICUDATA_DIR}" +;; +dll) +ICUDATA_DIR="${pkgdatadir}" +ICUPKGDATA_DIR="${libdir}" +;; +*) +ICUDATA_DIR="${pkgdatadir}" +ICUPKGDATA_DIR="${ICUDATA_DIR}" +;; + +esac + +GENCCODE_ASSEMBLY="-a gcc" + +################################################################## +# +# *6* Inclusion of platform make fragment (mh-* file) +# +################################################################## +# The mh- file ("make fragment") for the platform is included here. +# It may override the above settings. +# It is put last so that the mh-file can override anything. +# The selfcheck is just a sanity check that this makefile is +# parseable. The mh fragment is only included if this does not occur. + +# Following from mh-linux +## -*-makefile-*- +## Copyright (C) 2016 and later: Unicode, Inc. and others. +## License & terms of use: http://www.unicode.org/copyright.html +## Linux-specific setup +## Copyright (c) 1999-2013, International Business Machines Corporation and +## others. All Rights Reserved. + +## Commands to generate dependency files +GEN_DEPS_c="${CC} -E -MM ${DEFS} ${CPPFLAGS}" +GEN_DEPS_cc="${CXX} -E -MM ${DEFS} ${CPPFLAGS} ${CXXFLAGS}" + +## Flags for position independent code +SHAREDLIBCFLAGS="-fPIC" +SHAREDLIBCXXFLAGS="-fPIC" +SHAREDLIBCPPFLAGS="-DPIC" + +## Additional flags when building libraries and with threads +THREADSCPPFLAGS="-D_REENTRANT" +LIBCPPFLAGS="" + +## Compiler switch to embed a runtime search path +LD_RPATH="-Wl,-zorigin,-rpath,\$\$ORIGIN " +LD_RPATH_PRE="-Wl,-rpath," + +## These are the library specific LDFLAGS +LDFLAGSICUDT="-nodefaultlibs -nostdlib" + +## Compiler switch to embed a library name +# The initial tab in the next line is to prevent icu-config from reading it. +# We can't depend on MIDDLE_SO_TARGET being set. +LD_SONAME= + +## Shared library options +LD_SOOPTIONS="-Wl,-Bsymbolic" + +## Shared object suffix +SO="so" +## Non-shared intermediate object suffix +STATIC_O="ao" + +## Compilation rules + +## Dependency rules + +## Versioned libraries rules + +## Bind internal references + +# LDflags that pkgdata will use +BIR_LDFLAGS="-Wl,-Bsymbolic" + +# Dependencies [i.e. map files] for the final library +BIR_DEPS="" + +## Remove shared library 's' +STATIC_PREFIX_WHEN_USED="" +STATIC_PREFIX="" + +## End Linux-specific setup + +## -*-sh-*- +## BEGIN of icu-config-bottom. +## Copyright (C) 2016 and later: Unicode, Inc. and others. +## License & terms of use: http://www.unicode.org/copyright.html +## Copyright (c) 2002-2013, International Business Machines Corporation and +## others. All Rights Reserved. + +# For MinGW do we want the common DLL to go into the bin location? +if [ "$MINGW_MOVEDLLSTOBINDIR" = "YES" ]; then + ICUUC_FILE="${bindir}/${ICULIBS_COMMON_LIB_NAME}" +else + ICUUC_FILE="${libdir}/${ICULIBS_COMMON_LIB_NAME}" +fi + +ICUUC_FILE_A="${libdir}/${ICULIBS_COMMON_LIB_NAME_A}" + +# echo ENABLE RPATH $ENABLE_RPATH and RPATHLDFLAGS=${RPATH_LDFLAGS} +if [ "x$PKGDATA_MODE" = "x" ]; then + PKGDATA_MODE=dll +fi + +} + +## The actual code of icu-config goes here. + +ME=`basename "$0"` + +allflags() +{ + echo " --noverify Don't verify that ICU is actually installed." + echo " --bindir Print binary directory path (bin)" + echo " --cc Print C compiler used [CC]" + echo " --cflags Print C compiler flags [CFLAGS]" + echo " --cflags-dynamic Print additional C flags for" + echo " building shared libraries." + echo " --cppflags Print C Preprocessor flags [CPPFLAGS]" + echo " --cppflags-dynamic Print additional C Preprocessor flags for" + echo " building shared libraries." + echo " --cppflags-searchpath Print only -I include directives (-Iinclude)" + echo " --cxx Print C++ compiler used [CXX]" + echo " --cxxflags Print C++ compiler flags [CXXFLAGS]" + echo " --cxxflags-dynamic Print additional C++ flags for" + echo " building shared libraries." + echo " --detect-prefix Attempt to detect prefix based on PATH" + echo " --exec-prefix Print prefix for executables (/bin)" + echo " --exists Return with 0 status if ICU exists else fail" + echo " --help, -?, --usage Print this message" + echo " --icudata Print shortname of ICU data file (icudt21l)" + echo " --icudata-install-dir Print path to install data to - use as --install option to pkgdata(1)" + echo " --icudata-mode Print default ICU pkgdata mode (dll) - use as --mode option to pkgdata(1)." + echo " --icudatadir Print path to packaged archive data. Can set as [ICU_DATA]" + echo " --invoke Print commands to invoke an ICU program" + echo " --invoke= Print commands to invoke an ICU program named (ex: genrb)" + echo " --ldflags Print -L search path and -l libraries to link with ICU [LDFLAGS]. This is for the data, uc (common), and i18n libraries only. " + echo " --ldflags-libsonly Same as --ldflags, but only the -l directives" + echo " --ldflags-searchpath Print only -L (search path) directive" + echo " --ldflags-system Print only system libs ICU links with (-lpthread, -lm)" + echo " --ldflags-icuio Print ICU icuio link directive. Use in addition to --ldflags " + echo " --ldflags-obsolete Print ICU obsolete link directive. Use in addition to --ldflags. (requires icuapps/obsolete to be built and installed.) " + echo " --mandir Print manpage (man) path" + echo " --prefix Print PREFIX to icu install (/usr/local)" + echo " --prefix=XXX Set prefix to XXX for remainder of command" + echo " --sbindir Print system binary path (sbin) " + echo " --shared-datadir Print shared data (share) path. This is NOT the ICU data dir." + echo " --shlib-c Print the command to compile and build C shared libraries with ICU" + echo " --shlib-cc Print the command to compile and build C++ shared libraries with ICU" + echo " --sysconfdir Print system config (etc) path" + echo " --unicode-version Print version of Unicode data used in ICU ($UNICODE_VERSION)" + echo " --version Print ICU version ($VERSION)" + echo " --incfile Print path to Makefile.inc" + echo " --incpkgdatafile Print path to pkgdata.inc (for -O option of pkgdata)" + echo " --install Print path to install-sh" + echo " --mkinstalldirs Print path to mkinstalldirs" +} + +## Print the normal usage message +shortusage() +{ + echo "usage: ${ME} " `allflags | cut -c-25 | sed -e 's%.*%[ & ]%'` +} + + +usage() +{ + echo "${ME}: icu-config: ICU configuration helper script" + echo + echo "The most commonly used options will be --cflags, --cxxflags, --cppflags, and --ldflags." + echo 'Example (in make): CPFLAGS=$(shell icu-config --cppflags)' + echo ' LDFLAGS=$(shell icu-config --ldflags)' + echo " (etc).." + echo + echo "Usage:" + allflags + + echo + echo " [Brackets] show MAKE variable equivalents, (parenthesis) show example output" + echo + echo "Copyright (c) 2002-2013, International Business Machines Corporation and others. All Rights Reserved." + echo + echo "NOTE: Please consider using the pkg-config (.pc) files instead of icu-config." + echo " See: " +} + +## Check the sanity of current variables +sanity() +{ + if [ ! -f "${ICUUC_FILE}" -a ! -f "${ICUUC_FILE_A}" ] && [ ${IGNORE_ICUUC_FILE_CHECK} = "no" ] && [ ${SANITY} = "sane" ]; + then + echo "### $ME: Can't find ${ICUUC_FILE} - ICU prefix is wrong." 1>&2 + echo "### Try the --prefix= option " 1>&2 + echo "### or --detect-prefix" 1>&2 + echo "### (If you want to disable this check, use the --noverify option)" 1>&2 + echo "### $ME: Exitting." 1>&2 + exit 2 + fi +} + +## Main starts here. + +if [ $# -lt 1 ]; then + shortusage + exit 1 +fi + +# For certain options (e.g. --detect-prefix) don't check for icuuc library file. + +IGNORE_ICUUC_FILE_CHECK="no"; + +SANITY="sane" + +case "$1" in +--noverify) + SANITY="nosanity" + shift + ;; +esac + +case "$1" in +*prefix*) + IGNORE_ICUUC_FILE_CHECK="yes" + ;; +esac + +# Load our variables from autoconf +# ALWAYS load twice because of dependencies +loaddefs +loaddefs + +if [ $# -gt 0 -a $1 = "--selfcheck" ]; +then + echo "passed" + exit + # EXIT for self check +fi + +sanity + +while [ $# -gt 0 ]; +do + arg="$1" + var=`echo $arg | sed -e 's/^[^=]*=//'` +# echo "### processing $arg" 1>&2 + case "$arg" in + + # undocumented. + --debug) + set -x + ;; + + --noverify) + echo "### $ME: Error: --noverify must be the first argument." 1>&2 + exit 1 + ;; + + --so) + echo $SO + ;; + + --bindir) + echo $bindir + ;; + + --libdir) + echo $libdir + ;; + + --exists) + sanity + ;; + + --sbindir) + echo $sbindir + ;; + + --mkinstalldirs) + echo ${MKINSTALLDIRS} + ;; + + --install) + echo ${INSTALL} + ;; + + --invoke=*) + QUOT="\"" + CMD="${var}" + + # If it's not a locally executable command (1st choice) then + # search for it in the ICU directories. + if [ ! -x ${CMD} ]; then + if [ -x ${bindir}/${var} ]; then + CMD="${bindir}/${var}" + fi + if [ -x ${sbindir}/${var} ]; then + CMD="${sbindir}/${var}" + fi + fi + + echo "env ${QUOT}${LDLIBRARYPATH_ENVVAR}=${libdir}:"'${'"${LDLIBRARYPATH_ENVVAR}"'}'${QUOT} ${CMD} + ;; + + --invoke) + QUOT="\"" + echo "env ${QUOT}${LDLIBRARYPATH_ENVVAR}=${libdir}:"'${'"${LDLIBRARYPATH_ENVVAR}"'}'${QUOT} + ;; + + --cflags) + echo $ECHO_N "${CFLAGS} ${ECHO_C}" + ;; + + --cc) + echo $ECHO_N "${CC} ${ECHO_C}" + ;; + + --cxx) + echo $ECHO_N "${CXX} ${ECHO_C}" + ;; + + --cxxflags) + echo $ECHO_N "${CXXFLAGS} ${ECHO_C}" + ;; + + --cppflags) + # Don't echo the -I. - it's unneeded. + echo $ECHO_N "${CPPFLAGS} ${ECHO_C}" | sed -e 's/-I. //' + ;; + + --cppflags-searchpath) + echo $ECHO_N "-I${prefix}/include ${ECHO_C}" + ;; + + --cppflags-dynamic) + echo $ECHO_N "${SHAREDLIBCPPFLAGS} ${ECHO_C}" + ;; + + --cxxflags-dynamic) + echo $ECHO_N "${SHAREDLIBCXXFLAGS} ${ECHO_C}" + ;; + + --cflags-dynamic) + echo $ECHO_N "${SHAREDLIBCFLAGS} ${ECHO_C}" + ;; + + --ldflags-system) + echo $ECHO_N "${LIBS} ${ECHO_C}" + ;; + + --ldflags) + echo $ECHO_N "${LDFLAGS} ${ICULIBS} ${ECHO_C}" +# $RPATH_LDFLAGS + ;; + + --ldflags-libsonly) + echo $ECHO_N "${ICULIBS_I18N} ${ICULIBS_COMMON} ${ICULIBS_DATA} ${ECHO_C}" + ;; + + --ldflags-icuio) + echo $ECHO_N " ${ICULIBS_ICUIO} ${ECHO_C}" + ;; + + --ldflags-obsolete) + echo $ECHO_N "${ICULIBS_OBSOLETE} ${ECHO_C}" + ;; + + --ldflags-toolutil) + echo $ECHO_N " ${ICULIBS_TOOLUTIL} ${ECHO_C}" + ;; + + --ldflags-layout) + echo ${ME}: ERROR: the old layout engine has been removed. use HarfBuzz. + exit 1 + ;; + + --ldflags-searchpath) + echo $ECHO_N "-L${libdir} ${ECHO_C}" + ;; + + --detect-prefix) + HERE=`echo $0 | sed -e "s/$ME//g"` + if [ -f "${HERE}/../lib/${ICULIBS_COMMON_LIB_NAME}" -o -f "${HERE}/../lib/${ICULIBS_COMMON_LIB_NAME_A}" ]; then + prefix="${HERE}/.." + echo "## Using --prefix=${prefix}" 1>&2 + fi + loaddefs + loaddefs + ;; + + --exec-prefix) + echo $exec_prefix + ;; + + --prefix) + echo $prefix + ;; + + --prefix=*) + prefix=$var + loaddefs + loaddefs + ;; + + --sysconfdir) + echo $sysconfdir + ;; + + --mandir) + echo $mandir + ;; + + --shared-datadir) + echo $ECHO_N "${datadir} ${ECHO_C}" + ;; + + --incfile) + echo $ECHO_N "${pkglibdir}/Makefile.inc ${ECHO_C}" + ;; + + --incpkgdatafile) + echo $ECHO_N "${pkglibdir}/pkgdata.inc ${ECHO_C}" + ;; + + --icudata) + echo $ECHO_N "${ICUDATA_NAME} ${ECHO_C}" + ;; + + --icudata-mode) + echo $ECHO_N "${PKGDATA_MODE} ${ECHO_C}" + ;; + + --icudata-install-dir) + echo $ECHO_N "${ICUPKGDATA_DIR} ${ECHO_C}" + ;; + + --icudatadir) + echo $ECHO_N "${ICUDATA_DIR} ${ECHO_C}" + ;; + + --shlib-c) + echo $ECHO_N "${SHLIB_c} ${ECHO_C}" + ;; + + --shlib-cc) + echo $ECHO_N "${SHLIB_cc} ${ECHO_C}" + ;; + + --version) + echo $ECHO_N $VERSION + ;; + + --unicode-version) + echo $ECHO_N $UNICODE_VERSION + ;; + + --host) + echo $host + exit 0 + ;; + + --help) + usage + exit 0 + ;; + + --usage) + usage + exit 0 + ;; + +# --enable-rpath=*) +# ENABLE_RPATH=$var +# loaddefs +# ;; + + -?) + usage + exit 0 + ;; + + *) + echo ${ME}: ERROR Unknown Option $arg 1>&2 + echo 1>&2 + shortusage 1>&2 + echo "### $ME: Exitting." 1>&2 + exit 1; + ;; + esac + shift + + # Reset the ignore icuuc file check flag + if [ $IGNORE_ICUUC_FILE_CHECK = "yes" ]; then + IGNORE_ICUUC_FILE_CHECK="no" + sanity + fi +done +echo +# Check once before we quit (will check last used prefix) +sanity +## END of icu-config-bottom + +exit 0 diff --git a/data/miniconda3/bin/icuinfo b/data/miniconda3/bin/icuinfo new file mode 100644 index 0000000000000000000000000000000000000000..da9f50404fc8b7374e957d1ffc3c26b9c8967e9a Binary files /dev/null and b/data/miniconda3/bin/icuinfo differ diff --git a/data/miniconda3/bin/idn2 b/data/miniconda3/bin/idn2 new file mode 100644 index 0000000000000000000000000000000000000000..187cb866b8a032b955b84dff848639afc89d721f Binary files /dev/null and b/data/miniconda3/bin/idn2 differ diff --git a/data/miniconda3/bin/jpegtran b/data/miniconda3/bin/jpegtran new file mode 100644 index 0000000000000000000000000000000000000000..c0876be028af684f73e889f5a8221c942a511290 Binary files /dev/null and b/data/miniconda3/bin/jpegtran differ diff --git a/data/miniconda3/bin/json_pp b/data/miniconda3/bin/json_pp new file mode 100644 index 0000000000000000000000000000000000000000..ef2ce45579c7feeff4ff0dd4e2fe199771366f58 --- /dev/null +++ b/data/miniconda3/bin/json_pp @@ -0,0 +1,240 @@ +#!/home/zangyihe/miniconda3/bin/perl + eval 'exec /home/zangyihe/miniconda3/bin/perl -S $0 ${1+"$@"}' + if $running_under_some_shell; +#!/usr/bin/perl + +BEGIN { pop @INC if $INC[-1] eq '.' } +use strict; +use Getopt::Long; +use Encode (); + +use JSON::PP (); + +# imported from JSON-XS/bin/json_xs + +my %allow_json_opt = map { $_ => 1 } qw( + ascii latin1 utf8 pretty indent space_before space_after relaxed canonical allow_nonref + allow_singlequote allow_barekey allow_bignum loose escape_slash indent_length +); + + +GetOptions( + 'v' => \( my $opt_verbose ), + 'f=s' => \( my $opt_from = 'json' ), + 't=s' => \( my $opt_to = 'json' ), + 'json_opt=s' => \( my $json_opt = 'pretty' ), + 'V' => \( my $version ), +) or die "Usage: $0 [-V] [-f from_format] [-t to_format] [-json_opt options_to_json1[,options_to_json2[,...]]]\n"; + + +if ( $version ) { + print "$JSON::PP::VERSION\n"; + exit; +} + + +$json_opt = '' if $json_opt eq '-'; + +my %json_opt; +for my $opt (split /,/, $json_opt) { + my ($key, $value) = split /=/, $opt, 2; + $value = 1 unless defined $value; + die "'$_' is not a valid json option" unless $allow_json_opt{$key}; + $json_opt{$key} = $value; +} + +my %F = ( + 'json' => sub { + my $json = JSON::PP->new; + my $enc = + /^\x00\x00\x00/s ? "utf-32be" + : /^\x00.\x00/s ? "utf-16be" + : /^.\x00\x00\x00/s ? "utf-32le" + : /^.\x00.\x00/s ? "utf-16le" + : "utf-8"; + for my $key (keys %json_opt) { + next if $key eq 'utf8'; + $json->$key($json_opt{$key}); + } + $json->decode( Encode::decode($enc, $_) ); + }, + 'eval' => sub { + my $v = eval "no strict;\n#line 1 \"input\"\n$_"; + die "$@" if $@; + return $v; + }, +); + + +my %T = ( + 'null' => sub { "" }, + 'json' => sub { + my $json = JSON::PP->new->utf8; + for my $key (keys %json_opt) { + $json->$key($json_opt{$key}); + } + $json->canonical if $json_opt{pretty}; + $json->encode( $_ ); + }, + 'dumper' => sub { + require Data::Dumper; + local $Data::Dumper::Terse = 1; + local $Data::Dumper::Indent = 1; + local $Data::Dumper::Useqq = 1; + local $Data::Dumper::Quotekeys = 0; + local $Data::Dumper::Sortkeys = 1; + Data::Dumper::Dumper($_) + }, +); + + + +$F{$opt_from} + or die "$opt_from: not a valid fromformat\n"; + +$T{$opt_to} + or die "$opt_from: not a valid toformat\n"; + +{ + local $/; + binmode STDIN; + $_ = ; +} + +$_ = $F{$opt_from}->(); +$_ = $T{$opt_to}->(); + +print $_; + + +__END__ + +=pod + +=encoding utf8 + +=head1 NAME + +json_pp - JSON::PP command utility + +=head1 SYNOPSIS + + json_pp [-v] [-f from_format] [-t to_format] [-json_opt options_to_json1[,options_to_json2[,...]]] + +=head1 DESCRIPTION + +json_pp converts between some input and output formats (one of them is JSON). +This program was copied from L and modified. + +The default input format is json and the default output format is json with pretty option. + +=head1 OPTIONS + +=head2 -f + + -f from_format + +Reads a data in the given format from STDIN. + +Format types: + +=over + +=item json + +as JSON + +=item eval + +as Perl code + +=back + +=head2 -t + +Writes a data in the given format to STDOUT. + +=over + +=item null + +no action. + +=item json + +as JSON + +=item dumper + +as Data::Dumper + +=back + +=head2 -json_opt + +options to JSON::PP + +Acceptable options are: + + ascii latin1 utf8 pretty indent space_before space_after relaxed canonical allow_nonref + allow_singlequote allow_barekey allow_bignum loose escape_slash indent_length + +Multiple options must be separated by commas: + + Right: -json_opt pretty,canonical + + Wrong: -json_opt pretty -json_opt canonical + +=head2 -v + +Verbose option, but currently no action in fact. + +=head2 -V + +Prints version and exits. + + +=head1 EXAMPLES + + $ perl -e'print q|{"foo":"あい","bar":1234567890000000000000000}|' |\ + json_pp -f json -t dumper -json_opt pretty,utf8,allow_bignum + + $VAR1 = { + 'bar' => bless( { + 'value' => [ + '0000000', + '0000000', + '5678900', + '1234' + ], + 'sign' => '+' + }, 'Math::BigInt' ), + 'foo' => "\x{3042}\x{3044}" + }; + + $ perl -e'print q|{"foo":"あい","bar":1234567890000000000000000}|' |\ + json_pp -f json -t dumper -json_opt pretty + + $VAR1 = { + 'bar' => '1234567890000000000000000', + 'foo' => "\x{e3}\x{81}\x{82}\x{e3}\x{81}\x{84}" + }; + +=head1 SEE ALSO + +L, L + +=head1 AUTHOR + +Makamaka Hannyaharamitu, Emakamaka[at]cpan.orgE + + +=head1 COPYRIGHT AND LICENSE + +Copyright 2010 by Makamaka Hannyaharamitu + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut + diff --git a/data/miniconda3/bin/libdeflate-gunzip b/data/miniconda3/bin/libdeflate-gunzip new file mode 100644 index 0000000000000000000000000000000000000000..bbd789ce3686e4b454279c4f640e8aefde981701 Binary files /dev/null and b/data/miniconda3/bin/libdeflate-gunzip differ diff --git a/data/miniconda3/bin/lzcmp b/data/miniconda3/bin/lzcmp new file mode 100644 index 0000000000000000000000000000000000000000..92f84cdc529e1735e2340da23eaf7735cd8cb63f --- /dev/null +++ b/data/miniconda3/bin/lzcmp @@ -0,0 +1,220 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0-or-later + +# Copyright (C) 1998, 2002, 2006, 2007 Free Software Foundation +# Copyright (C) 1993 Jean-loup Gailly + +# Modified for XZ Utils by Andrew Dudman and Lasse Collin. + +# 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 2 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. + + +#SET_PATH - This line is a placeholder to ease patching this script. + +# Instead of unsetting XZ_OPT, just make sure that xz will use file format +# autodetection. This way memory usage limit and thread limit can be +# specified via XZ_OPT. With gzip, bzip2, and lzop it's OK to just unset the +# environment variables. +xz='xz --format=auto' +unset GZIP BZIP BZIP2 LZOP + +case ${0##*/} in + *cmp*) prog=xzcmp; cmp=${CMP:-cmp};; + *) prog=xzdiff; cmp=${DIFF:-diff};; +esac + +version="$prog (XZ Utils) 5.6.4" + +usage="Usage: ${0##*/} [OPTION]... FILE1 [FILE2] +Compare FILE1 to FILE2, using their uncompressed contents if they are +compressed. If FILE2 is omitted, then the files compared are FILE1 and +FILE1 from which the compression format suffix has been stripped. + +Do comparisons like '$cmp' does. OPTIONs are the same as for '$cmp'. + +Report bugs to ." + +# sed script to escape all ' for the shell, and then (to handle trailing +# newlines correctly) turn trailing X on last line into '. +escape=' + s/'\''/'\''\\'\'''\''/g + $s/X$/'\''/ +' + +while :; do + case $1 in + --h*) printf '%s\n' "$usage" || exit 2; exit;; + --v*) printf '%s\n' "$version" || exit 2; exit;; + --) shift; break;; + -*\'*) cmp="$cmp '"`printf '%sX\n' "$1" | sed "$escape"`;; + -?*) cmp="$cmp '$1'";; + *) break;; + esac + shift +done +cmp="$cmp --" + +for file; do + test "X$file" = X- || <"$file" || exit 2 +done + +# xz needs -qQ to ignore warnings like unsupported check type. +xz1="$xz -qQ" +xz2="$xz -qQ" +xz_status=0 +exec 3>&1 + +if test $# -eq 1; then + case $1 in + *[-.]xz | *[-.]lzma | *[-.]lz | *.t[lx]z) + ;; + *[-.]bz2 | *.tbz | *.tbz2) + xz1=bzip2;; + *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) + xz1=gzip;; + *[-.]lzo | *.tzo) + xz1=lzop;; + *[-.]zst | *.tzst) + xz1='zstd -q';; + *[-.]lz4) + xz1=lz4;; + *) + printf '%s\n' "$0: $1: Unknown compressed file name suffix" >&2 + exit 2;; + esac + case $1 in + *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *[-.]lzo | *[-.]zst | *[-.]lz4) + FILE=`expr "X$1" : 'X\(.*\)[-.][abglmostxzZ24]*$'`;; + *.t[abglx]z) + FILE=`expr "X$1" : 'X\(.*[-.]t\)[abglx]z$'`ar;; + *.tbz2) + FILE=`expr "X$1" : 'X\(.*[-.]t\)bz2$'`ar;; + *.tzo) + FILE=`expr "X$1" : 'X\(.*[-.]t\)zo$'`ar;; + *.tzst) + FILE=`expr "X$1" : 'X\(.*[-.]t\)zst$'`ar;; + esac + xz_status=$( + exec 4>&1 + ($xz1 -cd -- "$1" 4>&-; echo $? >&4) 3>&- | eval "$cmp" - '"$FILE"' >&3 + ) +elif test $# -eq 2; then + case $1 in + *[-.]bz2 | *.tbz | *.tbz2) xz1=bzip2;; + *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) xz1=gzip;; + *[-.]lzo | *.tzo) xz1=lzop;; + *[-.]zst | *.tzst) xz1='zstd -q';; + *[-.]lz4) xz1=lz4;; + esac + case $2 in + *[-.]bz2 | *.tbz | *.tbz2) xz2=bzip2;; + *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) xz2=gzip;; + *[-.]lzo | *.tzo) xz2=lzop;; + *[-.]zst | *.tzst) xz2='zstd -q';; + *[-.]lz4) xz2=lz4;; + esac + case $1 in + *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | *[-.]lz4 | -) + case "$2" in + *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | *[-.]lz4 | -) + if test "$1$2" = --; then + xz_status=$( + exec 4>&1 + ($xz1 -cdf - 4>&-; echo $? >&4) 3>&- | + eval "$cmp" - - >&3 + ) + elif # Reject Solaris 8's buggy /bin/bash 2.03. + echo X | (echo X | eval "$cmp" /dev/fd/5 - >/dev/null 2>&1) 5<&0; then + # NOTE: xz_status will contain two numbers. + xz_status=$( + exec 4>&1 + ($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- | + ( ($xz2 -cdf -- "$2" 4>&-; echo $? >&4) 3>&- 5<&- &3) 5<&0 + ) + else + F=`expr "/$2" : '.*/\(.*\)[-.][ablmotxz2]*$'` || F=$prog + tmp= + trap ' + test -n "$tmp" && rm -rf "$tmp" + (exit 2); exit 2 + ' HUP INT PIPE TERM 0 + if type mktemp >/dev/null 2>&1; then + # Note that FreeBSD's mktemp isn't fully compatible with + # the implementations from mktemp.org and GNU coreutils. + # It is important that the -t argument is the last argument + # and that no "--" is used between -t and the template argument. + # This way this command works on all implementations. + tmp=`mktemp -d -t "$prog.XXXXXXXXXX"` || exit 2 + else + # Fallback code if mktemp is missing. This isn't as + # robust as using mktemp since this doesn't try with + # different file names in case of a file name conflict. + # + # There's no need to save the original umask since + # we don't create any non-temp files. Note that using + # mkdir -m 0077 isn't secure since some mkdir implementations + # create the dir with the default umask and chmod the + # the dir afterwards. + umask 0077 + mkdir -- "${TMPDIR-/tmp}/$prog.$$" || exit 2 + tmp="${TMPDIR-/tmp}/$prog.$$" + fi + $xz2 -cdf -- "$2" > "$tmp/$F" || exit 2 + xz_status=$( + exec 4>&1 + ($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- | + eval "$cmp" - '"$tmp/$F"' >&3 + ) + cmp_status=$? + rm -rf "$tmp" || xz_status=$? + trap - HUP INT PIPE TERM 0 + (exit $cmp_status) + fi;; + *) + xz_status=$( + exec 4>&1 + ($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- | + eval "$cmp" - '"$2"' >&3 + );; + esac;; + *) + case "$2" in + *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | *[-.]lz4 | -) + xz_status=$( + exec 4>&1 + ($xz2 -cdf -- "$2" 4>&-; echo $? >&4) 3>&- | + eval "$cmp" '"$1"' - >&3 + );; + *) + eval "$cmp" '"$1"' '"$2"';; + esac;; + esac +else + printf '%s\n' "$0: Invalid number of operands; try '${0##*/} --help' for help" >&2 + exit 2 +fi + +cmp_status=$? +for num in $xz_status ; do + # 0 from decompressor means successful decompression. SIGPIPE from + # decompressor is possible when diff or cmp exits before the whole file + # has been decompressed. In that case we want to retain the exit status + # from diff or cmp. Note that using "trap '' PIPE" is not possible + # because gzip changes its behavior (including exit status) if SIGPIPE + # is ignored. + test "$num" -eq 0 && continue + test "$num" -ge 128 \ + && test "$(kill -l "$num" 2> /dev/null)" = "PIPE" \ + && continue + exit 2 +done +exit $cmp_status diff --git a/data/miniconda3/bin/lzgrep b/data/miniconda3/bin/lzgrep new file mode 100644 index 0000000000000000000000000000000000000000..f2a73bb9297a231da8823435f9d8bde68787b63a --- /dev/null +++ b/data/miniconda3/bin/lzgrep @@ -0,0 +1,300 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0-or-later + +# xzgrep -- a wrapper around a grep program that decompresses files as needed +# Adapted from a version sent by Charles Levert + +# Copyright (C) 1998, 2001, 2002, 2006, 2007 Free Software Foundation +# Copyright (C) 1993 Jean-loup Gailly + +# Modified for XZ Utils by Andrew Dudman and Lasse Collin. + +# 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 2 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. + + +#SET_PATH - This line is a placeholder to ease patching this script. + +# Instead of unsetting XZ_OPT, just make sure that xz will use file format +# autodetection. This way memory usage limit and thread limit can be +# specified via XZ_OPT. With gzip, bzip2, and lzop it's OK to just unset the +# environment variables. +xz='xz --format=auto' +unset GZIP BZIP BZIP2 LZOP + +case ${0##*/} in + *egrep*) prog=xzegrep; grep=${GREP:-grep -E};; + *fgrep*) prog=xzfgrep; grep=${GREP:-grep -F};; + *) prog=xzgrep; grep=${GREP:-grep};; +esac + +version="$prog (XZ Utils) 5.6.4" + +usage="Usage: ${0##*/} [OPTION]... [-e] PATTERN [FILE]... +Look for instances of PATTERN in the input FILEs, using their +uncompressed contents if they are compressed. + +OPTIONs are the same as for '$grep'. + +Report bugs to ." + +# sed script to escape all ' for the shell, and then (to handle trailing +# newlines correctly) turn trailing X on last line into '. +escape=' + s/'\''/'\''\\'\'''\''/g + $s/X$/'\''/ +' +operands= +have_pat=0 +files_with_matches=0 +files_without_matches=0 +no_filename=0 +with_filename=0 + +# See if -H and --label options are supported (GNU and *BSDs). +if test f:x = "$(eval "echo x | $grep -H --label=f x 2> /dev/null")"; then + grep_supports_label=1 +else + grep_supports_label=0 +fi + +while test $# -ne 0; do + option=$1 + shift + optarg= + + case $option in + (-[0123456789abcdEFGhHiIKlLnoPqrRsTuUvVwxyzZ]*[!0123456789]*) + # Something like -Fiv was specified, that is, $option contains more + # than one option of which the first option (in this example -F) + # doesn't take an argument. Split the first option into a standalone + # argument and continue parsing the rest of the options (in this example, + # replace -Fiv with -iv in the argument list and set option=-F). + # + # If there are digits [0-9] they are treated as if they were a single + # option character because this syntax is an alias for -C for GNU grep. + # For example, "grep -25F" is equivalent to "grep -C25 -F". If only + # digits are specified like "grep -25" we don't get here because the + # above pattern in the case-statement doesn't match such strings. + arg2=-\'$(LC_ALL=C expr "X${option}X" : 'X-.[0-9]*\(.*\)' | + LC_ALL=C sed "$escape") + eval "set -- $arg2 "'${1+"$@"}' + option=$(LC_ALL=C expr "X$option" : 'X\(-.[0-9]*\)');; + (--binary-*=* | --[lm]a*=* | --reg*=*) + # These options require an argument and an argument has been provided + # with the --foo=argument syntax. All is good. + ;; + (-[ABCDefmX] | --binary-* | --file | --[lm]a* | --reg*) + # These options require an argument which should now be in $1. + # If it isn't, display an error and exit. + case ${1?"$option option requires an argument"} in + (*\'*) + optarg=" '"$(printf '%sX\n' "$1" | LC_ALL=C sed "$escape");; + (*) + optarg=" '$1'";; + esac + shift;; + (--) + break;; + (-?*) + ;; + (*) + case $option in + (*\'*) + operands="$operands '"$(printf '%sX\n' "$option" | + LC_ALL=C sed "$escape");; + (*) + operands="$operands '$option'";; + esac + ${POSIXLY_CORRECT+break} + continue;; + esac + + case $option in + (-[drRzZ] | --di* | --exc* | --inc* | --rec* | --nu*) + printf >&2 '%s: %s: Option not supported\n' "$0" "$option" + exit 2;; + (-[ef]* | --file | --file=* | --reg*) + have_pat=1;; + (--h | --he | --hel | --help) + printf '%s\n' "$usage" || exit 2 + exit;; + (-H | --wi | --wit | --with | --with- | --with-f | --with-fi \ + | --with-fil | --with-file | --with-filen | --with-filena | --with-filenam \ + | --with-filename) + with_filename=1 + continue;; + (-l | --files-with-*) + files_with_matches=1 + continue;; + (-L | --files-witho*) + files_without_matches=1 + continue;; + (-h | --no-f*) + no_filename=1;; + (-V | --v | --ve | --ver | --vers | --versi | --versio | --version) + printf '%s\n' "$version" || exit 2 + exit;; + esac + + case $option in + (*\'?*) + option=\'$(printf '%sX\n' "$option" | LC_ALL=C sed "$escape");; + (*) + option="'$option'";; + esac + + grep="$grep $option$optarg" +done + +eval "set -- $operands "'${1+"$@"}' + +if test $have_pat -eq 0; then + case ${1?"Missing pattern; try '${0##*/} --help' for help"} in + (*\'*) + grep="$grep -e '"$(printf '%sX\n' "$1" | LC_ALL=C sed "$escape");; + (*) + grep="$grep -e '$1'";; + esac + shift +fi + +if test $# -eq 0; then + set -- - +fi + +exec 3>&1 + +# res=1 means that no file matched yet +res=1 + +for i; do + case $i in + *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) uncompress="gzip -cdf";; + *[-.]bz2 | *[-.]tbz | *.tbz2) uncompress="bzip2 -cdf";; + *[-.]lzo | *[-.]tzo) uncompress="lzop -cdf";; + *[-.]zst | *[-.]tzst) uncompress="zstd -cdfq";; # zstd needs -q. + *[-.]lz4) uncompress="lz4 -cdf";; + *) uncompress="$xz -cdfqQ";; # -qQ to ignore warnings like unsupp. check. + esac + # xz_status will hold the decompressor's exit status. + # Exit status of grep (and in rare cases, printf or sed) is + # available as the exit status of this assignment command. + xz_status=$( + exec 5>&1 + ($uncompress -- "$i" 5>&-; echo $? >&5) 3>&- | + if test $files_with_matches -eq 1; then + eval "$grep -q" && { printf '%s\n' "$i" || exit 2; } + elif test $files_without_matches -eq 1; then + eval "$grep -q" || { + r=$? + if test $r -eq 1; then + printf '%s\n' "$i" || r=2 + fi + exit $r + } + elif test $with_filename -eq 0 && + { test $# -eq 1 || test $no_filename -eq 1; }; then + eval "$grep" + elif test $grep_supports_label -eq 1; then + # The grep implementation in use allows us to specify the filename + # that grep will prefix to the output lines. This is faster and + # less prone to security bugs than the fallback method that uses sed. + # This also avoids confusing output with GNU grep >= 3.5 (2020-09-27) + # which prints "binary file matches" to stderr instead of stdout. + # + # If reading from stdin, let grep use whatever name it prefers for + # stdin. With GNU grep it is a locale-specific translated string. + if test "x$i" = "x-"; then + eval "$grep -H" + else + eval "$grep -H --label \"\$i\"" + fi + else + # Append a colon so that the last character will never be a newline + # which would otherwise get lost in shell command substitution. + i="$i:" + + # Escape & \ | and newlines only if such characters are present + # (speed optimization). + case $i in + (*' +'* | *'&'* | *'\'* | *'|'*) + # If sed fails, set i to a known safe string to ensure that + # failing sed did not create a half-escaped dangerous string. + i=$(printf '%s\n' "$i" | LC_ALL=C sed 's/[&\|]/\\&/g; $!s/$/\\/') || + i='(unknown filename):';; + esac + + # $i already ends with a colon so do not add it here. + sed_script="s|^|$i|" + + # If grep or sed fails, pick the larger value of the two exit statuses. + # If sed fails, use at least 2 since we use >= 2 to indicate errors. + r=$( + exec 4>&1 + (eval "$grep" 4>&-; echo $? >&4) 3>&- | + LC_ALL=C sed "$sed_script" >&3 4>&- + ) || { + sed_status=$? + test "$sed_status" -lt 2 && sed_status=2 + test "$r" -lt "$sed_status" && r=$sed_status + } + exit $r + fi >&3 5>&- + ) + r=$? + + # If grep or sed or other non-decompression command failed with a signal, + # exit immediately and ignore the possible remaining files. + # + # NOTE: Instead of 128 + signal_number, some shells use + # 256 + signal_number (ksh) or 384 + signal_number (yash). + # This is fine for us since their "exit" and "kill -l" commands take + # this into account. (At least the versions I tried do but there is + # a report of an old ksh variant whose "exit" truncates the exit status + # to 8 bits without any special handling for values indicating a signal.) + test "$r" -ge 128 && exit "$r" + + if test -z "$xz_status"; then + # Something unusual happened, for example, we got a signal and + # the exit status of the decompressor was never echoed and thus + # $xz_status is empty. Exit immediately and ignore the possible + # remaining files. + exit 2 + elif test "$xz_status" -ge 128; then + # The decompressor died due to a signal. SIGPIPE is ignored since it can + # occur if grep exits before the whole file has been decompressed (grep -q + # can do that). If the decompressor died with some other signal, exit + # immediately and ignore the possible remaining files. + test "$(kill -l "$xz_status" 2> /dev/null)" != "PIPE" && exit "$xz_status" + elif test "$xz_status" -gt 0; then + # Decompression failed but we will continue with the remaining + # files anyway. Set exit status to at least 2 to indicate an error. + test "$r" -lt 2 && r=2 + fi + + # Since res=1 is the initial value, we only need to care about + # matches (r == 0) and errors (r >= 2) here; r == 1 can be ignored. + if test "$r" -ge 2; then + # An error occurred in decompressor, grep, or some other command. Update + # res unless a larger error code has been seen with an earlier file. + test "$res" -lt "$r" && res=$r + elif test "$r" -eq 0; then + # grep found a match and no errors occurred. Update res if no errors have + # occurred with earlier files. + test "$res" -eq 1 && res=0 + fi +done + +# 0: At least one file matched and no errors occurred. +# 1: No matches were found and no errors occurred. +# >=2: Error. It's unknown if matches were found. +exit "$res" diff --git a/data/miniconda3/bin/lzmore b/data/miniconda3/bin/lzmore new file mode 100644 index 0000000000000000000000000000000000000000..1a7078e38564268f323b19058a46f32f14aad11e --- /dev/null +++ b/data/miniconda3/bin/lzmore @@ -0,0 +1,80 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0-or-later + +# Copyright (C) 2001, 2002, 2007 Free Software Foundation +# Copyright (C) 1992, 1993 Jean-loup Gailly + +# Modified for XZ Utils by Andrew Dudman and Lasse Collin. + +# 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 2 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. + + +#SET_PATH - This line is a placeholder to ease patching this script. + +# Instead of unsetting XZ_OPT, just make sure that xz will use file format +# autodetection. This way memory usage limit and thread limit can be +# specified via XZ_OPT. +xz='xz --format=auto' + +version='xzmore (XZ Utils) 5.6.4' + +usage="Usage: ${0##*/} [OPTION]... [FILE]... +Like 'more', but operate on the uncompressed contents of xz compressed FILEs. + +Report bugs to ." + +case $1 in + --help) printf '%s\n' "$usage" || exit 2; exit;; + --version) printf '%s\n' "$version" || exit 2; exit;; +esac + +oldtty=`stty -g 2>/dev/null` +if stty -cbreak 2>/dev/null; then + cb='cbreak'; ncb='-cbreak' +else + # 'stty min 1' resets eof to ^a on both SunOS and SysV! + cb='min 1 -icanon'; ncb='icanon eof ^d' +fi +if test $? -eq 0 && test -n "$oldtty"; then + trap 'stty $oldtty 2>/dev/null; exit' 0 2 3 5 10 13 15 +else + trap 'stty $ncb echo 2>/dev/null; exit' 0 2 3 5 10 13 15 +fi + +if test $# = 0; then + if test -t 0; then + printf '%s\n' "$usage"; exit 1 + else + $xz -cdfqQ | eval "${PAGER:-more}" + fi +else + FIRST=1 + for FILE; do + < "$FILE" || continue + if test $FIRST -eq 0; then + printf "%s--More--(Next file: %s)" "" "$FILE" + stty $cb -echo 2>/dev/null + ANS=`dd bs=1 count=1 2>/dev/null` + stty $ncb echo 2>/dev/null + echo " " + case "$ANS" in + [eq]) exit;; + esac + fi + if test "$ANS" != 's'; then + printf '%s\n' "------> $FILE <------" + $xz -cdfqQ -- "$FILE" | eval "${PAGER:-more}" + fi + if test -t 1; then + FIRST=0 + fi + done +fi diff --git a/data/miniconda3/bin/magick b/data/miniconda3/bin/magick new file mode 100644 index 0000000000000000000000000000000000000000..c26809249cc7f09b1c44be53dba07425238b44cd Binary files /dev/null and b/data/miniconda3/bin/magick differ diff --git a/data/miniconda3/bin/msgcomm b/data/miniconda3/bin/msgcomm new file mode 100644 index 0000000000000000000000000000000000000000..c534926244a27e7d0b42a49e6a9662b56a7ab23b Binary files /dev/null and b/data/miniconda3/bin/msgcomm differ diff --git a/data/miniconda3/bin/msgconv b/data/miniconda3/bin/msgconv new file mode 100644 index 0000000000000000000000000000000000000000..536fdf27c7eb0c958e6eef6f2092b91289b8e49a Binary files /dev/null and b/data/miniconda3/bin/msgconv differ diff --git a/data/miniconda3/bin/msginit b/data/miniconda3/bin/msginit new file mode 100644 index 0000000000000000000000000000000000000000..f0aac2768fd046469c3b831002fdbc0f394d1f9a Binary files /dev/null and b/data/miniconda3/bin/msginit differ diff --git a/data/miniconda3/bin/msgunfmt b/data/miniconda3/bin/msgunfmt new file mode 100644 index 0000000000000000000000000000000000000000..f1c5e88dc410754c712a9a39246aa8632c3cfafc Binary files /dev/null and b/data/miniconda3/bin/msgunfmt differ diff --git a/data/miniconda3/bin/msguniq b/data/miniconda3/bin/msguniq new file mode 100644 index 0000000000000000000000000000000000000000..98252a366ca72a9eac0523a4f626881c3bb38cce Binary files /dev/null and b/data/miniconda3/bin/msguniq differ diff --git a/data/miniconda3/bin/ngettext b/data/miniconda3/bin/ngettext new file mode 100644 index 0000000000000000000000000000000000000000..804ecc73f7ba789a35433037927a9caa70ae3404 Binary files /dev/null and b/data/miniconda3/bin/ngettext differ diff --git a/data/miniconda3/bin/nvisel b/data/miniconda3/bin/nvisel new file mode 100644 index 0000000000000000000000000000000000000000..ea709ab0211dba17c9b23d039cbae5b7b656097a --- /dev/null +++ b/data/miniconda3/bin/nvisel @@ -0,0 +1,7 @@ +#!/home/zangyihe/miniconda3/bin/python3.13 +import sys +from nvitop.select import main +if __name__ == '__main__': + if sys.argv[0].endswith('.exe'): + sys.argv[0] = sys.argv[0][:-4] + sys.exit(main()) diff --git a/data/miniconda3/bin/perl b/data/miniconda3/bin/perl new file mode 100644 index 0000000000000000000000000000000000000000..24e3820d0874004ace368283a43380a63aa8b141 Binary files /dev/null and b/data/miniconda3/bin/perl differ diff --git a/data/miniconda3/bin/perlbug b/data/miniconda3/bin/perlbug new file mode 100644 index 0000000000000000000000000000000000000000..760b3657e103001d3cb0c80cbc8c44cde06d0847 --- /dev/null +++ b/data/miniconda3/bin/perlbug @@ -0,0 +1,1518 @@ +#!/home/zangyihe/miniconda3/bin/perl + eval 'exec /home/zangyihe/miniconda3/bin/perl -S $0 ${1+"$@"}' + if $running_under_some_shell; + +my $config_tag1 = '5.32.1 - Sat Dec 23 05:44:15 UTC 2023'; + +my $patchlevel_date = 1610211291; +my @patches = Config::local_patches(); +my $patch_tags = join "", map /(\S+)/ ? "+$1 " : (), @patches; + +BEGIN { pop @INC if $INC[-1] eq '.' } +use warnings; +use strict; +use Config; +use File::Spec; # keep perlbug Perl 5.005 compatible +use Getopt::Std; +use File::Basename 'basename'; + +$Getopt::Std::STANDARD_HELP_VERSION = 1; + +sub paraprint; + +BEGIN { + eval { require Mail::Send;}; + $::HaveSend = ($@ eq ""); + eval { require Mail::Util; } ; + $::HaveUtil = ($@ eq ""); + # use secure tempfiles wherever possible + eval { require File::Temp; }; + $::HaveTemp = ($@ eq ""); + eval { require Module::CoreList; }; + $::HaveCoreList = ($@ eq ""); + eval { require Text::Wrap; }; + $::HaveWrap = ($@ eq ""); +}; + +our $VERSION = "1.42"; + +#TODO: +# make sure failure (transmission-wise) of Mail::Send is accounted for. +# (This may work now. Unsure of the original author's issue -JESSE 2008-06-08) +# - Test -b option + +my( $file, $usefile, $cc, $address, $thanksaddress, + $filename, $messageid, $domain, $subject, $from, $verbose, $ed, $outfile, + $fh, $me, $body, $andcc, %REP, $ok, $thanks, $progname, + $Is_MSWin32, $Is_Linux, $Is_VMS, $Is_OpenBSD, + $report_about_module, $category, $severity, + %opt, $have_attachment, $attachments, $has_patch, $mime_boundary +); + +my $running_noninteractively = !-t STDIN; + +my $perl_version = $^V ? sprintf("%vd", $^V) : $]; + +my $config_tag2 = "$perl_version - $Config{cf_time}"; + +Init(); + +if ($opt{h}) { Help(); exit; } +if ($opt{d}) { Dump(*STDOUT); exit; } +if ($running_noninteractively && !$opt{t} && !($ok and not $opt{n})) { + paraprint <<"EOF"; +Please use $progname interactively. If you want to +include a file, you can use the -f switch. +EOF + die "\n"; +} + +Query(); +Edit() unless $usefile || ($ok and not $opt{n}); +NowWhat(); +if ($address) { + Send(); + if ($thanks) { + print "\nThank you for taking the time to send a thank-you message!\n\n"; + + paraprint < { + 'default' => 'core', + 'ok' => 'install', + # Inevitably some of these will end up in RT whatever we do: + 'thanks' => 'thanks', + 'opts' => [qw(core docs install library utilities)], # patch, notabug + }, + 'severity' => { + 'default' => 'low', + 'ok' => 'none', + 'thanks' => 'none', + 'opts' => [qw(critical high medium low wishlist none)], # zero + }, + ); + die "Invalid alternative ($name) requested\n" unless grep(/^$name$/, keys %alts); + my $alt = ""; + my $what = $ok || $thanks; + if ($what) { + $alt = $alts{$name}{$what}; + } else { + my @alts = @{$alts{$name}{'opts'}}; + print "\n\n"; + paraprint < 5) { + die "Invalid $name: aborting.\n"; + } + $alt = _prompt('', "\u$name", $alts{$name}{'default'}); + $alt ||= $alts{$name}{'default'}; + } while !((($alt) = grep(/^$alt/i, @alts))); + } + lc $alt; +} + +sub HELP_MESSAGE { Help(); exit; } +sub VERSION_MESSAGE { print "perlbug version $VERSION\n"; } + +sub Init { + # -------- Setup -------- + + $Is_MSWin32 = $^O eq 'MSWin32'; + $Is_VMS = $^O eq 'VMS'; + $Is_Linux = lc($^O) eq 'linux'; + $Is_OpenBSD = lc($^O) eq 'openbsd'; + + # Thanks address + $thanksaddress = 'perl-thanks@perl.org'; + + # Defaults if getopts fails. + $outfile = (basename($0) =~ /^perlthanks/i) ? "perlthanks.rep" : "perlbug.rep"; + $cc = $::Config{'perladmin'} || $::Config{'cf_email'} || $::Config{'cf_by'} || ''; + + HELP_MESSAGE() unless getopts("Adhva:s:b:f:F:r:e:SCc:to:n:T:p:", \%opt); + + # This comment is needed to notify metaconfig that we are + # using the $perladmin, $cf_by, and $cf_time definitions. + # -------- Configuration --------- + + if (basename ($0) =~ /^perlthanks/i) { + # invoked as perlthanks + $opt{T} = 1; + $opt{C} = 1; # don't send a copy to the local admin + } + + if ($opt{T}) { + $thanks = 'thanks'; + } + + $progname = $thanks ? 'perlthanks' : 'perlbug'; + # Target address + $address = $opt{a} || ($thanks ? $thanksaddress : ""); + + # Users address, used in message and in From and Reply-To headers + $from = $opt{r} || ""; + + # Include verbose configuration information + $verbose = $opt{v} || 0; + + # Subject of bug-report message + $subject = $opt{s} || ""; + + # Send a file + $usefile = ($opt{f} || 0); + + # File to send as report + $file = $opt{f} || ""; + + # We have one or more attachments + $have_attachment = ($opt{p} || 0); + $mime_boundary = ('-' x 12) . "$VERSION.perlbug" if $have_attachment; + + # Comma-separated list of attachments + $attachments = $opt{p} || ""; + $has_patch = 0; # TBD based on file type + + for my $attachment (split /\s*,\s*/, $attachments) { + unless (-f $attachment && -r $attachment) { + die "The attachment $attachment is not a readable file: $!\n"; + } + $has_patch = 1 if $attachment =~ m/\.(patch|diff)$/; + } + + # File to output to + $outfile = $opt{F} || "$progname.rep"; + + # Body of report + $body = $opt{b} || ""; + + # Editor + $ed = $opt{e} || $ENV{VISUAL} || $ENV{EDITOR} || $ENV{EDIT} + || ($Is_VMS && "edit/tpu") + || ($Is_MSWin32 && "notepad") + || "vi"; + + # Not OK - provide build failure template by finessing OK report + if ($opt{n}) { + if (substr($opt{n}, 0, 2) eq 'ok' ) { + $opt{o} = substr($opt{n}, 1); + } else { + Help(); + exit(); + } + } + + # OK - send "OK" report for build on this system + $ok = ''; + if ($opt{o}) { + if ($opt{o} eq 'k' or $opt{o} eq 'kay') { + my $age = time - $patchlevel_date; + if ($opt{o} eq 'k' and $age > 60 * 24 * 60 * 60 ) { + my $date = localtime $patchlevel_date; + print <<"EOF"; +"perlbug -ok" and "perlbug -nok" do not report on Perl versions which +are more than 60 days old. This Perl version was constructed on +$date. If you really want to report this, use +"perlbug -okay" or "perlbug -nokay". +EOF + exit(); + } + # force these options + unless ($opt{n}) { + $opt{S} = 1; # don't prompt for send + $opt{b} = 1; # we have a body + $body = "Perl reported to build OK on this system.\n"; + } + $opt{C} = 1; # don't send a copy to the local admin + $opt{s} = 1; # we have a subject line + $subject = ($opt{n} ? 'Not ' : '') + . "OK: perl $perl_version ${patch_tags}on" + ." $::Config{'archname'} $::Config{'osvers'} $subject"; + $ok = 'ok'; + } else { + Help(); + exit(); + } + } + + # Possible administrator addresses, in order of confidence + # (Note that cf_email is not mentioned to metaconfig, since + # we don't really want it. We'll just take it if we have to.) + # + # This has to be after the $ok stuff above because of the way + # that $opt{C} is forced. + $cc = $opt{C} ? "" : ( + $opt{c} || $::Config{'perladmin'} + || $::Config{'cf_email'} || $::Config{'cf_by'} + ); + + if ($::HaveUtil) { + $domain = Mail::Util::maildomain(); + } elsif ($Is_MSWin32) { + $domain = $ENV{'USERDOMAIN'}; + } else { + require Sys::Hostname; + $domain = Sys::Hostname::hostname(); + } + + # Message-Id - rjsf + $messageid = "<$::Config{'version'}_${$}_".time."\@$domain>"; + + # My username + $me = $Is_MSWin32 ? $ENV{'USERNAME'} + : $^O eq 'os2' ? $ENV{'USER'} || $ENV{'LOGNAME'} + : eval { getpwuid($<) }; # May be missing + + $from = $::Config{'cf_email'} + if !$from && $::Config{'cf_email'} && $::Config{'cf_by'} && $me && + ($me eq $::Config{'cf_by'}); +} # sub Init + +sub Query { + # Explain what perlbug is + unless ($ok) { + if ($thanks) { + paraprint <<'EOF'; +This program provides an easy way to send a thank-you message back to the +authors and maintainers of perl. + +If you wish to generate a bug report, please run it without the -T flag +(or run the program perlbug rather than perlthanks) +EOF + } else { + paraprint <<"EOF"; +This program provides an easy way to generate a bug report for the core +perl distribution (along with tests or patches). To send a thank-you +note to $thanksaddress instead of a bug report, please run 'perlthanks'. + +The GitHub issue tracker at https://github.com/Perl/perl5/issues is the +best place to submit your report so it can be tracked and resolved. + +Please do not use $0 to report bugs in perl modules from CPAN. + +Suggestions for how to find help using Perl can be found at +https://perldoc.perl.org/perlcommunity.html +EOF + } + } + + # Prompt for subject of message, if needed + + if ($subject && TrivialSubject($subject)) { + $subject = ''; + } + + unless ($subject) { + print +"First of all, please provide a subject for the report.\n"; + if ( not $thanks) { + paraprint <first_release($entry); + if ($entry and not $first_release) { + paraprint <:raw', $filename) or die "Unable to create report file '$filename': $!\n"; + binmode(REP, ':raw :crlf') if $Is_MSWin32; + + my $reptype = !$ok ? ($thanks ? 'thank-you' : 'bug') + : $opt{n} ? "build failure" : "success"; + + print REP <) { + print REP $_ + } + close(F) or die "Error closing '$file': $!"; + } else { + if ($thanks) { + print REP <<'EOF'; + +----------------------------------------------------------------- +[Please enter your thank-you message here] + + + +[You're welcome to delete anything below this line] +----------------------------------------------------------------- +EOF + } else { + print REP <<'EOF'; + +----------------------------------------------------------------- +[Please describe your issue here] + + + +[Please do not change anything below this line] +----------------------------------------------------------------- +EOF + } + } + Dump(*REP); + close(REP) or die "Error closing report file: $!"; + + # Set up an initial report fingerprint so we can compare it later + _fingerprint_lines_in_report(); + +} # sub Query + +sub Dump { + local(*OUT) = @_; + + # these won't have been set if run with -d + $category ||= 'core'; + $severity ||= 'low'; + + print OUT <etry dit + next; + } elsif ( $action =~ /^[cq]/i ) { # ancel, uit + Cancel(); # cancel exits + } + } + # Ok. the user did what they needed to; + return; + + } +} + + +sub Cancel { + 1 while unlink($filename); # remove all versions under VMS + print "\nQuitting without generating a report.\n"; + exit(0); +} + +sub NowWhat { + # Report is done, prompt for further action + if( !$opt{S} ) { + while(1) { + my $send_to = $address || 'the Perl developers'; + my $menu = <ile/ve + if ( SaveMessage() ) { exit } + } elsif ($action =~ /^(d|l|sh)/i ) { # isplay, ist, ow + # Display the message + print _read_report($filename); + if ($have_attachment) { + print "\n\n---\nAttachment(s):\n"; + for my $att (split /\s*,\s*/, $attachments) { print " $att\n"; } + } + } elsif ($action =~ /^su/i) { # bject + my $reply = _prompt( "Subject: $subject", "If the above subject is fine, press Enter. Otherwise, type a replacement now\nSubject"); + if ($reply ne '') { + unless (TrivialSubject($reply)) { + $subject = $reply; + print "Subject: $subject\n"; + } + } + } elsif ($action =~ /^se/i) { # end + # Send the message + if (not $thanks) { + print <dit, e-edit + # edit the message + Edit(); + } elsif ($action =~ /^[qc]/i) { # ancel, uit + Cancel(); + } elsif ($action =~ /^s/i) { + paraprint < 1); + close($fh); + return $filename; + } else { + # Bah. Fall back to doing things less securely. + my $dir = File::Spec->tmpdir(); + $filename = "bugrep0$$"; + $filename++ while -e File::Spec->catfile($dir, $filename); + $filename = File::Spec->catfile($dir, $filename); + } +} + +sub paraprint { + my @paragraphs = split /\n{2,}/, "@_"; + for (@paragraphs) { # implicit local $_ + s/(\S)\s*\n/$1 /g; + write; + print "\n"; + } +} + +sub _prompt { + my ($explanation, $prompt, $default) = (@_); + if ($explanation) { + print "\n\n"; + paraprint $explanation; + } + print $prompt. ($default ? " [$default]" :''). ": "; + my $result = scalar(<>); + return $default if !defined $result; # got eof + chomp($result); + $result =~ s/^\s*(.*?)\s*$/$1/s; + if ($default && $result eq '') { + return $default; + } else { + return $result; + } +} + +sub _build_header { + my %attr = (@_); + + my $head = ''; + for my $header (keys %attr) { + $head .= "$header: ".$attr{$header}."\n"; + } + return $head; +} + +sub _message_headers { + my %headers = ( To => $address || 'perl5-porters@perl.org', Subject => $subject ); + $headers{'Cc'} = $cc if ($cc); + $headers{'Message-Id'} = $messageid if ($messageid); + $headers{'Reply-To'} = $from if ($from); + $headers{'From'} = $from if ($from); + if ($have_attachment) { + $headers{'MIME-Version'} = '1.0'; + $headers{'Content-Type'} = qq{multipart/mixed; boundary=\"$mime_boundary\"}; + } + return \%headers; +} + +sub _add_body_start { + my $body_start = <<"BODY_START"; +This is a multi-part message in MIME format. +--$mime_boundary +Content-Type: text/plain; format=fixed +Content-Transfer-Encoding: 8bit + +BODY_START + return $body_start; +} + +sub _add_attachments { + my $attach = ''; + for my $attachment (split /\s*,\s*/, $attachments) { + my $attach_file = basename($attachment); + $attach .= <<"ATTACHMENT"; + +--$mime_boundary +Content-Type: text/x-patch; name="$attach_file" +Content-Transfer-Encoding: 8bit +Content-Disposition: attachment; filename="$attach_file" + +ATTACHMENT + + open my $attach_fh, '<:raw', $attachment + or die "Couldn't open attachment '$attachment': $!\n"; + while (<$attach_fh>) { $attach .= $_; } + close($attach_fh) or die "Error closing attachment '$attachment': $!"; + } + + $attach .= "\n--$mime_boundary--\n"; + return $attach; +} + +sub _read_report { + my $fname = shift; + my $content; + open( REP, "<:raw", $fname ) or die "Couldn't open file '$fname': $!\n"; + binmode(REP, ':raw :crlf') if $Is_MSWin32; + # wrap long lines to make sure the report gets delivered + local $Text::Wrap::columns = 900; + local $Text::Wrap::huge = 'overflow'; + while () { + if ($::HaveWrap && /\S/) { # wrap() would remove empty lines + $content .= Text::Wrap::wrap(undef, undef, $_); + } else { + $content .= $_; + } + } + close(REP) or die "Error closing report file '$fname': $!"; + return $content; +} + +sub build_complete_message { + my $content = _build_header(%{_message_headers()}) . "\n\n"; + $content .= _add_body_start() if $have_attachment; + $content .= _read_report($filename); + $content .= _add_attachments() if $have_attachment; + return $content; +} + +sub save_message_to_disk { + my $file = shift; + + if (-e $file) { + my $response = _prompt( '', "Overwrite existing '$file'", 'n' ); + return undef unless $response =~ / yes | y /xi; + } + open OUTFILE, '>:raw', $file or do { warn "Couldn't open '$file': $!\n"; return undef}; + binmode(OUTFILE, ':raw :crlf') if $Is_MSWin32; + + print OUTFILE build_complete_message(); + close(OUTFILE) or do { warn "Error closing $file: $!"; return undef }; + print "\nReport saved to '$file'. Please submit it to https://github.com/Perl/perl5/issues\n"; + return 1; +} + +sub _send_message_vms { + + my $mail_from = $from; + my $rcpt_to_to = $address; + my $rcpt_to_cc = $cc; + + map { $_ =~ s/^[^<]*[^>]*//; } ($mail_from, $rcpt_to_to, $rcpt_to_cc); + + if ( open my $sff_fh, '|-:raw', 'MCR TCPIP$SYSTEM:TCPIP$SMTP_SFF.EXE SYS$INPUT:' ) { + print $sff_fh "MAIL FROM:<$mail_from>\n"; + print $sff_fh "RCPT TO:<$rcpt_to_to>\n"; + print $sff_fh "RCPT TO:<$rcpt_to_cc>\n" if $rcpt_to_cc; + print $sff_fh "DATA\n"; + print $sff_fh build_complete_message(); + my $success = close $sff_fh; + if ($success ) { + print "\nMessage sent\n"; + return; + } + } + die "Mail transport failed (leaving bug report in $filename): $^E\n"; +} + +sub _send_message_mailsend { + my $msg = Mail::Send->new(); + my %headers = %{_message_headers()}; + for my $key ( keys %headers) { + $msg->add($key => $headers{$key}); + } + + $fh = $msg->open; + binmode($fh, ':raw'); + print $fh _add_body_start() if $have_attachment; + print $fh _read_report($filename); + print $fh _add_attachments() if $have_attachment; + $fh->close or die "Error sending mail: $!"; + + print "\nMessage sent.\n"; +} + +sub _probe_for_sendmail { + my $sendmail = ""; + for (qw(/usr/lib/sendmail /usr/sbin/sendmail /usr/ucblib/sendmail)) { + $sendmail = $_, last if -e $_; + } + if ( $^O eq 'os2' and $sendmail eq "" ) { + my $path = $ENV{PATH}; + $path =~ s:\\:/:; + my @path = split /$Config{'path_sep'}/, $path; + for (@path) { + $sendmail = "$_/sendmail", last if -e "$_/sendmail"; + $sendmail = "$_/sendmail.exe", last if -e "$_/sendmail.exe"; + } + } + return $sendmail; +} + +sub _send_message_sendmail { + my $sendmail = _probe_for_sendmail(); + unless ($sendmail) { + my $message_start = !$Is_Linux && !$Is_OpenBSD ? <<'EOT' : <<'EOT'; +It appears that there is no program which looks like "sendmail" on +your system and that the Mail::Send library from CPAN isn't available. +EOT +It appears that there is no program which looks like "sendmail" on +your system. +EOT + paraprint(<<"EOF"), die "\n"; +$message_start +Because of this, there's no easy way to automatically send your +report. + +A copy of your report has been saved in '$filename' for you to +send to '$address' with your normal mail client. +EOF + } + + open( SENDMAIL, "|-:raw", $sendmail, "-t", "-oi", "-f", $from ) + || die "'|$sendmail -t -oi -f $from' failed: $!"; + print SENDMAIL build_complete_message(); + if ( close(SENDMAIL) ) { + print "\nMessage sent\n"; + } else { + warn "\nSendmail returned status '", $? >> 8, "'\n"; + } +} + + + +# a strange way to check whether any significant editing +# has been done: check whether any new non-empty lines +# have been added. + +sub _fingerprint_lines_in_report { + my $new_lines = 0; + # read in the report template once so that + # we can track whether the user does any editing. + # yes, *all* whitespace is ignored. + + open(REP, '<:raw', $filename) or die "Unable to open report file '$filename': $!\n"; + binmode(REP, ':raw :crlf') if $Is_MSWin32; + while (my $line = ) { + $line =~ s/\s+//g; + $new_lines++ if (!$REP{$line}); + + } + close(REP) or die "Error closing report file '$filename': $!"; + # returns the number of lines with content that wasn't there when last we looked + return $new_lines; +} + + + +format STDOUT = +^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ~~ +$_ +. + +__END__ + +=head1 NAME + +perlbug - how to submit bug reports on Perl + +=head1 SYNOPSIS + +B + +B S<[ B<-v> ]> S<[ B<-a> I
]> S<[ B<-s> I ]> +S<[ B<-b> I | B<-f> I ]> S<[ B<-F> I ]> +S<[ B<-r> I ]> +S<[ B<-e> I ]> S<[ B<-c> I | B<-C> ]> +S<[ B<-S> ]> S<[ B<-t> ]> S<[ B<-d> ]> S<[ B<-h> ]> S<[ B<-T> ]> + +B S<[ B<-v> ]> S<[ B<-r> I ]> + S<[ B<-ok> | B<-okay> | B<-nok> | B<-nokay> ]> + +B + +=head1 DESCRIPTION + + +This program is designed to help you generate bug reports +(and thank-you notes) about perl5 and the modules which ship with it. + +In most cases, you can just run it interactively from a command +line without any special arguments and follow the prompts. + +If you have found a bug with a non-standard port (one that was not +part of the I), a binary distribution, or a +non-core module (such as Tk, DBI, etc), then please see the +documentation that came with that distribution to determine the +correct place to report bugs. + +Bug reports should be submitted to the GitHub issue tracker at +L. The B +address no longer automatically opens tickets. You can use this tool +to compose your report and save it to a file which you can then submit +to the issue tracker. + +In extreme cases, B may not work well enough on your system +to guide you through composing a bug report. In those cases, you +may be able to use B or B to get system +configuration information to include in your issue report. + + +When reporting a bug, please run through this checklist: + +=over 4 + +=item What version of Perl you are running? + +Type C at the command line to find out. + +=item Are you running the latest released version of perl? + +Look at L to find out. If you are not using the +latest released version, please try to replicate your bug on the +latest stable release. + +Note that reports about bugs in old versions of Perl, especially +those which indicate you haven't also tested the current stable +release of Perl, are likely to receive less attention from the +volunteers who build and maintain Perl than reports about bugs in +the current release. + +This tool isn't appropriate for reporting bugs in any version +prior to Perl 5.0. + +=item Are you sure what you have is a bug? + +A significant number of the bug reports we get turn out to be +documented features in Perl. Make sure the issue you've run into +isn't intentional by glancing through the documentation that comes +with the Perl distribution. + +Given the sheer volume of Perl documentation, this isn't a trivial +undertaking, but if you can point to documentation that suggests +the behaviour you're seeing is I, your issue is likely to +receive more attention. You may want to start with B +L for pointers to common traps that new (and experienced) +Perl programmers run into. + +If you're unsure of the meaning of an error message you've run +across, B L for an explanation. If the message +isn't in perldiag, it probably isn't generated by Perl. You may +have luck consulting your operating system documentation instead. + +If you are on a non-UNIX platform B L, as some +features may be unimplemented or work differently. + +You may be able to figure out what's going wrong using the Perl +debugger. For information about how to use the debugger B +L. + +=item Do you have a proper test case? + +The easier it is to reproduce your bug, the more likely it will be +fixed -- if nobody can duplicate your problem, it probably won't be +addressed. + +A good test case has most of these attributes: short, simple code; +few dependencies on external commands, modules, or libraries; no +platform-dependent code (unless it's a platform-specific bug); +clear, simple documentation. + +A good test case is almost always a good candidate to be included in +Perl's test suite. If you have the time, consider writing your test case so +that it can be easily included into the standard test suite. + +=item Have you included all relevant information? + +Be sure to include the B error messages, if any. +"Perl gave an error" is not an exact error message. + +If you get a core dump (or equivalent), you may use a debugger +(B, B, etc) to produce a stack trace to include in the bug +report. + +NOTE: unless your Perl has been compiled with debug info +(often B<-g>), the stack trace is likely to be somewhat hard to use +because it will most probably contain only the function names and not +their arguments. If possible, recompile your Perl with debug info and +reproduce the crash and the stack trace. + +=item Can you describe the bug in plain English? + +The easier it is to understand a reproducible bug, the more likely +it will be fixed. Any insight you can provide into the problem +will help a great deal. In other words, try to analyze the problem +(to the extent you can) and report your discoveries. + +=item Can you fix the bug yourself? + +If so, that's great news; bug reports with patches are likely to +receive significantly more attention and interest than those without +patches. Please submit your patch via the GitHub Pull Request workflow +as described in B L. You may also send patches to +B. When sending a patch, create it using +C if possible, though a unified diff created with +C will do nearly as well. + +Your patch may be returned with requests for changes, or requests for more +detailed explanations about your fix. + +Here are a few hints for creating high-quality patches: + +Make sure the patch is not reversed (the first argument to diff is +typically the original file, the second argument your changed file). +Make sure you test your patch by applying it with C or the +C program before you send it on its way. Try to follow the +same style as the code you are trying to patch. Make sure your patch +really does work (C, if the thing you're patching is covered +by Perl's test suite). + +=item Can you use C to submit a thank-you note? + +Yes, you can do this by either using the C<-T> option, or by invoking +the program as C. Thank-you notes are good. It makes people +smile. + +=back + +Please make your issue title informative. "a bug" is not informative. +Neither is "perl crashes" nor is "HELP!!!". These don't help. A compact +description of what's wrong is fine. + +Having done your bit, please be prepared to wait, to be told the +bug is in your code, or possibly to get no reply at all. The +volunteers who maintain Perl are busy folks, so if your problem is +an obvious bug in your own code, is difficult to understand or is +a duplicate of an existing report, you may not receive a personal +reply. + +If it is important to you that your bug be fixed, do monitor the +issue tracker (you will be subscribed to notifications for issues you +submit or comment on) and the commit logs to development +versions of Perl, and encourage the maintainers with kind words or +offers of frosty beverages. (Please do be kind to the maintainers. +Harassing or flaming them is likely to have the opposite effect of the +one you want.) + +Feel free to update the ticket about your bug on +L +if a new version of Perl is released and your bug is still present. + +=head1 OPTIONS + +=over 8 + +=item B<-a> + +Address to send the report to instead of saving to a file. + +=item B<-b> + +Body of the report. If not included on the command line, or +in a file with B<-f>, you will get a chance to edit the report. + +=item B<-C> + +Don't send copy to administrator when sending report by mail. + +=item B<-c> + +Address to send copy of report to when sending report by mail. +Defaults to the address of the +local perl administrator (recorded when perl was built). + +=item B<-d> + +Data mode (the default if you redirect or pipe output). This prints out +your configuration data, without saving or mailing anything. You can use +this with B<-v> to get more complete data. + +=item B<-e> + +Editor to use. + +=item B<-f> + +File containing the body of the report. Use this to quickly send a +prepared report. + +=item B<-F> + +File to output the results to. Defaults to B. + +=item B<-h> + +Prints a brief summary of the options. + +=item B<-ok> + +Report successful build on this system to perl porters. Forces B<-S> +and B<-C>. Forces and supplies values for B<-s> and B<-b>. Only +prompts for a return address if it cannot guess it (for use with +B). Honors return address specified with B<-r>. You can use this +with B<-v> to get more complete data. Only makes a report if this +system is less than 60 days old. + +=item B<-okay> + +As B<-ok> except it will report on older systems. + +=item B<-nok> + +Report unsuccessful build on this system. Forces B<-C>. Forces and +supplies a value for B<-s>, then requires you to edit the report +and say what went wrong. Alternatively, a prepared report may be +supplied using B<-f>. Only prompts for a return address if it +cannot guess it (for use with B). Honors return address +specified with B<-r>. You can use this with B<-v> to get more +complete data. Only makes a report if this system is less than 60 +days old. + +=item B<-nokay> + +As B<-nok> except it will report on older systems. + +=item B<-p> + +The names of one or more patch files or other text attachments to be +included with the report. Multiple files must be separated with commas. + +=item B<-r> + +Your return address. The program will ask you to confirm its default +if you don't use this option. + +=item B<-S> + +Save or send the report without asking for confirmation. + +=item B<-s> + +Subject to include with the report. You will be prompted if you don't +supply one on the command line. + +=item B<-t> + +Test mode. Makes it possible to command perlbug from a pipe or file, for +testing purposes. + +=item B<-T> + +Send a thank-you note instead of a bug report. + +=item B<-v> + +Include verbose configuration data in the report. + +=back + +=head1 AUTHORS + +Kenneth Albanowski (Ekjahds@kjahds.comE), subsequently +Itored by Gurusamy Sarathy (Egsar@activestate.comE), +Tom Christiansen (Etchrist@perl.comE), Nathan Torkington +(Egnat@frii.comE), Charles F. Randall (Ecfr@pobox.comE), +Mike Guy (Emjtg@cam.ac.ukE), Dominic Dunlop +(Edomo@computer.orgE), Hugo van der Sanden (Ehv@crypt.orgE), +Jarkko Hietaniemi (Ejhi@iki.fiE), Chris Nandor +(Epudge@pobox.comE), Jon Orwant (Eorwant@media.mit.eduE, +Richard Foley (Erichard.foley@rfi.netE), Jesse Vincent +(Ejesse@bestpractical.comE), and Craig A. Berry (Ecraigberry@mac.comE). + +=head1 SEE ALSO + +perl(1), perldebug(1), perldiag(1), perlport(1), perltrap(1), +diff(1), patch(1), dbx(1), gdb(1) + +=head1 BUGS + +None known (guess what must have been used to report them?) + +=cut + diff --git a/data/miniconda3/bin/perlthanks b/data/miniconda3/bin/perlthanks new file mode 100644 index 0000000000000000000000000000000000000000..760b3657e103001d3cb0c80cbc8c44cde06d0847 --- /dev/null +++ b/data/miniconda3/bin/perlthanks @@ -0,0 +1,1518 @@ +#!/home/zangyihe/miniconda3/bin/perl + eval 'exec /home/zangyihe/miniconda3/bin/perl -S $0 ${1+"$@"}' + if $running_under_some_shell; + +my $config_tag1 = '5.32.1 - Sat Dec 23 05:44:15 UTC 2023'; + +my $patchlevel_date = 1610211291; +my @patches = Config::local_patches(); +my $patch_tags = join "", map /(\S+)/ ? "+$1 " : (), @patches; + +BEGIN { pop @INC if $INC[-1] eq '.' } +use warnings; +use strict; +use Config; +use File::Spec; # keep perlbug Perl 5.005 compatible +use Getopt::Std; +use File::Basename 'basename'; + +$Getopt::Std::STANDARD_HELP_VERSION = 1; + +sub paraprint; + +BEGIN { + eval { require Mail::Send;}; + $::HaveSend = ($@ eq ""); + eval { require Mail::Util; } ; + $::HaveUtil = ($@ eq ""); + # use secure tempfiles wherever possible + eval { require File::Temp; }; + $::HaveTemp = ($@ eq ""); + eval { require Module::CoreList; }; + $::HaveCoreList = ($@ eq ""); + eval { require Text::Wrap; }; + $::HaveWrap = ($@ eq ""); +}; + +our $VERSION = "1.42"; + +#TODO: +# make sure failure (transmission-wise) of Mail::Send is accounted for. +# (This may work now. Unsure of the original author's issue -JESSE 2008-06-08) +# - Test -b option + +my( $file, $usefile, $cc, $address, $thanksaddress, + $filename, $messageid, $domain, $subject, $from, $verbose, $ed, $outfile, + $fh, $me, $body, $andcc, %REP, $ok, $thanks, $progname, + $Is_MSWin32, $Is_Linux, $Is_VMS, $Is_OpenBSD, + $report_about_module, $category, $severity, + %opt, $have_attachment, $attachments, $has_patch, $mime_boundary +); + +my $running_noninteractively = !-t STDIN; + +my $perl_version = $^V ? sprintf("%vd", $^V) : $]; + +my $config_tag2 = "$perl_version - $Config{cf_time}"; + +Init(); + +if ($opt{h}) { Help(); exit; } +if ($opt{d}) { Dump(*STDOUT); exit; } +if ($running_noninteractively && !$opt{t} && !($ok and not $opt{n})) { + paraprint <<"EOF"; +Please use $progname interactively. If you want to +include a file, you can use the -f switch. +EOF + die "\n"; +} + +Query(); +Edit() unless $usefile || ($ok and not $opt{n}); +NowWhat(); +if ($address) { + Send(); + if ($thanks) { + print "\nThank you for taking the time to send a thank-you message!\n\n"; + + paraprint < { + 'default' => 'core', + 'ok' => 'install', + # Inevitably some of these will end up in RT whatever we do: + 'thanks' => 'thanks', + 'opts' => [qw(core docs install library utilities)], # patch, notabug + }, + 'severity' => { + 'default' => 'low', + 'ok' => 'none', + 'thanks' => 'none', + 'opts' => [qw(critical high medium low wishlist none)], # zero + }, + ); + die "Invalid alternative ($name) requested\n" unless grep(/^$name$/, keys %alts); + my $alt = ""; + my $what = $ok || $thanks; + if ($what) { + $alt = $alts{$name}{$what}; + } else { + my @alts = @{$alts{$name}{'opts'}}; + print "\n\n"; + paraprint < 5) { + die "Invalid $name: aborting.\n"; + } + $alt = _prompt('', "\u$name", $alts{$name}{'default'}); + $alt ||= $alts{$name}{'default'}; + } while !((($alt) = grep(/^$alt/i, @alts))); + } + lc $alt; +} + +sub HELP_MESSAGE { Help(); exit; } +sub VERSION_MESSAGE { print "perlbug version $VERSION\n"; } + +sub Init { + # -------- Setup -------- + + $Is_MSWin32 = $^O eq 'MSWin32'; + $Is_VMS = $^O eq 'VMS'; + $Is_Linux = lc($^O) eq 'linux'; + $Is_OpenBSD = lc($^O) eq 'openbsd'; + + # Thanks address + $thanksaddress = 'perl-thanks@perl.org'; + + # Defaults if getopts fails. + $outfile = (basename($0) =~ /^perlthanks/i) ? "perlthanks.rep" : "perlbug.rep"; + $cc = $::Config{'perladmin'} || $::Config{'cf_email'} || $::Config{'cf_by'} || ''; + + HELP_MESSAGE() unless getopts("Adhva:s:b:f:F:r:e:SCc:to:n:T:p:", \%opt); + + # This comment is needed to notify metaconfig that we are + # using the $perladmin, $cf_by, and $cf_time definitions. + # -------- Configuration --------- + + if (basename ($0) =~ /^perlthanks/i) { + # invoked as perlthanks + $opt{T} = 1; + $opt{C} = 1; # don't send a copy to the local admin + } + + if ($opt{T}) { + $thanks = 'thanks'; + } + + $progname = $thanks ? 'perlthanks' : 'perlbug'; + # Target address + $address = $opt{a} || ($thanks ? $thanksaddress : ""); + + # Users address, used in message and in From and Reply-To headers + $from = $opt{r} || ""; + + # Include verbose configuration information + $verbose = $opt{v} || 0; + + # Subject of bug-report message + $subject = $opt{s} || ""; + + # Send a file + $usefile = ($opt{f} || 0); + + # File to send as report + $file = $opt{f} || ""; + + # We have one or more attachments + $have_attachment = ($opt{p} || 0); + $mime_boundary = ('-' x 12) . "$VERSION.perlbug" if $have_attachment; + + # Comma-separated list of attachments + $attachments = $opt{p} || ""; + $has_patch = 0; # TBD based on file type + + for my $attachment (split /\s*,\s*/, $attachments) { + unless (-f $attachment && -r $attachment) { + die "The attachment $attachment is not a readable file: $!\n"; + } + $has_patch = 1 if $attachment =~ m/\.(patch|diff)$/; + } + + # File to output to + $outfile = $opt{F} || "$progname.rep"; + + # Body of report + $body = $opt{b} || ""; + + # Editor + $ed = $opt{e} || $ENV{VISUAL} || $ENV{EDITOR} || $ENV{EDIT} + || ($Is_VMS && "edit/tpu") + || ($Is_MSWin32 && "notepad") + || "vi"; + + # Not OK - provide build failure template by finessing OK report + if ($opt{n}) { + if (substr($opt{n}, 0, 2) eq 'ok' ) { + $opt{o} = substr($opt{n}, 1); + } else { + Help(); + exit(); + } + } + + # OK - send "OK" report for build on this system + $ok = ''; + if ($opt{o}) { + if ($opt{o} eq 'k' or $opt{o} eq 'kay') { + my $age = time - $patchlevel_date; + if ($opt{o} eq 'k' and $age > 60 * 24 * 60 * 60 ) { + my $date = localtime $patchlevel_date; + print <<"EOF"; +"perlbug -ok" and "perlbug -nok" do not report on Perl versions which +are more than 60 days old. This Perl version was constructed on +$date. If you really want to report this, use +"perlbug -okay" or "perlbug -nokay". +EOF + exit(); + } + # force these options + unless ($opt{n}) { + $opt{S} = 1; # don't prompt for send + $opt{b} = 1; # we have a body + $body = "Perl reported to build OK on this system.\n"; + } + $opt{C} = 1; # don't send a copy to the local admin + $opt{s} = 1; # we have a subject line + $subject = ($opt{n} ? 'Not ' : '') + . "OK: perl $perl_version ${patch_tags}on" + ." $::Config{'archname'} $::Config{'osvers'} $subject"; + $ok = 'ok'; + } else { + Help(); + exit(); + } + } + + # Possible administrator addresses, in order of confidence + # (Note that cf_email is not mentioned to metaconfig, since + # we don't really want it. We'll just take it if we have to.) + # + # This has to be after the $ok stuff above because of the way + # that $opt{C} is forced. + $cc = $opt{C} ? "" : ( + $opt{c} || $::Config{'perladmin'} + || $::Config{'cf_email'} || $::Config{'cf_by'} + ); + + if ($::HaveUtil) { + $domain = Mail::Util::maildomain(); + } elsif ($Is_MSWin32) { + $domain = $ENV{'USERDOMAIN'}; + } else { + require Sys::Hostname; + $domain = Sys::Hostname::hostname(); + } + + # Message-Id - rjsf + $messageid = "<$::Config{'version'}_${$}_".time."\@$domain>"; + + # My username + $me = $Is_MSWin32 ? $ENV{'USERNAME'} + : $^O eq 'os2' ? $ENV{'USER'} || $ENV{'LOGNAME'} + : eval { getpwuid($<) }; # May be missing + + $from = $::Config{'cf_email'} + if !$from && $::Config{'cf_email'} && $::Config{'cf_by'} && $me && + ($me eq $::Config{'cf_by'}); +} # sub Init + +sub Query { + # Explain what perlbug is + unless ($ok) { + if ($thanks) { + paraprint <<'EOF'; +This program provides an easy way to send a thank-you message back to the +authors and maintainers of perl. + +If you wish to generate a bug report, please run it without the -T flag +(or run the program perlbug rather than perlthanks) +EOF + } else { + paraprint <<"EOF"; +This program provides an easy way to generate a bug report for the core +perl distribution (along with tests or patches). To send a thank-you +note to $thanksaddress instead of a bug report, please run 'perlthanks'. + +The GitHub issue tracker at https://github.com/Perl/perl5/issues is the +best place to submit your report so it can be tracked and resolved. + +Please do not use $0 to report bugs in perl modules from CPAN. + +Suggestions for how to find help using Perl can be found at +https://perldoc.perl.org/perlcommunity.html +EOF + } + } + + # Prompt for subject of message, if needed + + if ($subject && TrivialSubject($subject)) { + $subject = ''; + } + + unless ($subject) { + print +"First of all, please provide a subject for the report.\n"; + if ( not $thanks) { + paraprint <first_release($entry); + if ($entry and not $first_release) { + paraprint <:raw', $filename) or die "Unable to create report file '$filename': $!\n"; + binmode(REP, ':raw :crlf') if $Is_MSWin32; + + my $reptype = !$ok ? ($thanks ? 'thank-you' : 'bug') + : $opt{n} ? "build failure" : "success"; + + print REP <) { + print REP $_ + } + close(F) or die "Error closing '$file': $!"; + } else { + if ($thanks) { + print REP <<'EOF'; + +----------------------------------------------------------------- +[Please enter your thank-you message here] + + + +[You're welcome to delete anything below this line] +----------------------------------------------------------------- +EOF + } else { + print REP <<'EOF'; + +----------------------------------------------------------------- +[Please describe your issue here] + + + +[Please do not change anything below this line] +----------------------------------------------------------------- +EOF + } + } + Dump(*REP); + close(REP) or die "Error closing report file: $!"; + + # Set up an initial report fingerprint so we can compare it later + _fingerprint_lines_in_report(); + +} # sub Query + +sub Dump { + local(*OUT) = @_; + + # these won't have been set if run with -d + $category ||= 'core'; + $severity ||= 'low'; + + print OUT <etry dit + next; + } elsif ( $action =~ /^[cq]/i ) { # ancel, uit + Cancel(); # cancel exits + } + } + # Ok. the user did what they needed to; + return; + + } +} + + +sub Cancel { + 1 while unlink($filename); # remove all versions under VMS + print "\nQuitting without generating a report.\n"; + exit(0); +} + +sub NowWhat { + # Report is done, prompt for further action + if( !$opt{S} ) { + while(1) { + my $send_to = $address || 'the Perl developers'; + my $menu = <ile/ve + if ( SaveMessage() ) { exit } + } elsif ($action =~ /^(d|l|sh)/i ) { # isplay, ist, ow + # Display the message + print _read_report($filename); + if ($have_attachment) { + print "\n\n---\nAttachment(s):\n"; + for my $att (split /\s*,\s*/, $attachments) { print " $att\n"; } + } + } elsif ($action =~ /^su/i) { # bject + my $reply = _prompt( "Subject: $subject", "If the above subject is fine, press Enter. Otherwise, type a replacement now\nSubject"); + if ($reply ne '') { + unless (TrivialSubject($reply)) { + $subject = $reply; + print "Subject: $subject\n"; + } + } + } elsif ($action =~ /^se/i) { # end + # Send the message + if (not $thanks) { + print <dit, e-edit + # edit the message + Edit(); + } elsif ($action =~ /^[qc]/i) { # ancel, uit + Cancel(); + } elsif ($action =~ /^s/i) { + paraprint < 1); + close($fh); + return $filename; + } else { + # Bah. Fall back to doing things less securely. + my $dir = File::Spec->tmpdir(); + $filename = "bugrep0$$"; + $filename++ while -e File::Spec->catfile($dir, $filename); + $filename = File::Spec->catfile($dir, $filename); + } +} + +sub paraprint { + my @paragraphs = split /\n{2,}/, "@_"; + for (@paragraphs) { # implicit local $_ + s/(\S)\s*\n/$1 /g; + write; + print "\n"; + } +} + +sub _prompt { + my ($explanation, $prompt, $default) = (@_); + if ($explanation) { + print "\n\n"; + paraprint $explanation; + } + print $prompt. ($default ? " [$default]" :''). ": "; + my $result = scalar(<>); + return $default if !defined $result; # got eof + chomp($result); + $result =~ s/^\s*(.*?)\s*$/$1/s; + if ($default && $result eq '') { + return $default; + } else { + return $result; + } +} + +sub _build_header { + my %attr = (@_); + + my $head = ''; + for my $header (keys %attr) { + $head .= "$header: ".$attr{$header}."\n"; + } + return $head; +} + +sub _message_headers { + my %headers = ( To => $address || 'perl5-porters@perl.org', Subject => $subject ); + $headers{'Cc'} = $cc if ($cc); + $headers{'Message-Id'} = $messageid if ($messageid); + $headers{'Reply-To'} = $from if ($from); + $headers{'From'} = $from if ($from); + if ($have_attachment) { + $headers{'MIME-Version'} = '1.0'; + $headers{'Content-Type'} = qq{multipart/mixed; boundary=\"$mime_boundary\"}; + } + return \%headers; +} + +sub _add_body_start { + my $body_start = <<"BODY_START"; +This is a multi-part message in MIME format. +--$mime_boundary +Content-Type: text/plain; format=fixed +Content-Transfer-Encoding: 8bit + +BODY_START + return $body_start; +} + +sub _add_attachments { + my $attach = ''; + for my $attachment (split /\s*,\s*/, $attachments) { + my $attach_file = basename($attachment); + $attach .= <<"ATTACHMENT"; + +--$mime_boundary +Content-Type: text/x-patch; name="$attach_file" +Content-Transfer-Encoding: 8bit +Content-Disposition: attachment; filename="$attach_file" + +ATTACHMENT + + open my $attach_fh, '<:raw', $attachment + or die "Couldn't open attachment '$attachment': $!\n"; + while (<$attach_fh>) { $attach .= $_; } + close($attach_fh) or die "Error closing attachment '$attachment': $!"; + } + + $attach .= "\n--$mime_boundary--\n"; + return $attach; +} + +sub _read_report { + my $fname = shift; + my $content; + open( REP, "<:raw", $fname ) or die "Couldn't open file '$fname': $!\n"; + binmode(REP, ':raw :crlf') if $Is_MSWin32; + # wrap long lines to make sure the report gets delivered + local $Text::Wrap::columns = 900; + local $Text::Wrap::huge = 'overflow'; + while () { + if ($::HaveWrap && /\S/) { # wrap() would remove empty lines + $content .= Text::Wrap::wrap(undef, undef, $_); + } else { + $content .= $_; + } + } + close(REP) or die "Error closing report file '$fname': $!"; + return $content; +} + +sub build_complete_message { + my $content = _build_header(%{_message_headers()}) . "\n\n"; + $content .= _add_body_start() if $have_attachment; + $content .= _read_report($filename); + $content .= _add_attachments() if $have_attachment; + return $content; +} + +sub save_message_to_disk { + my $file = shift; + + if (-e $file) { + my $response = _prompt( '', "Overwrite existing '$file'", 'n' ); + return undef unless $response =~ / yes | y /xi; + } + open OUTFILE, '>:raw', $file or do { warn "Couldn't open '$file': $!\n"; return undef}; + binmode(OUTFILE, ':raw :crlf') if $Is_MSWin32; + + print OUTFILE build_complete_message(); + close(OUTFILE) or do { warn "Error closing $file: $!"; return undef }; + print "\nReport saved to '$file'. Please submit it to https://github.com/Perl/perl5/issues\n"; + return 1; +} + +sub _send_message_vms { + + my $mail_from = $from; + my $rcpt_to_to = $address; + my $rcpt_to_cc = $cc; + + map { $_ =~ s/^[^<]*[^>]*//; } ($mail_from, $rcpt_to_to, $rcpt_to_cc); + + if ( open my $sff_fh, '|-:raw', 'MCR TCPIP$SYSTEM:TCPIP$SMTP_SFF.EXE SYS$INPUT:' ) { + print $sff_fh "MAIL FROM:<$mail_from>\n"; + print $sff_fh "RCPT TO:<$rcpt_to_to>\n"; + print $sff_fh "RCPT TO:<$rcpt_to_cc>\n" if $rcpt_to_cc; + print $sff_fh "DATA\n"; + print $sff_fh build_complete_message(); + my $success = close $sff_fh; + if ($success ) { + print "\nMessage sent\n"; + return; + } + } + die "Mail transport failed (leaving bug report in $filename): $^E\n"; +} + +sub _send_message_mailsend { + my $msg = Mail::Send->new(); + my %headers = %{_message_headers()}; + for my $key ( keys %headers) { + $msg->add($key => $headers{$key}); + } + + $fh = $msg->open; + binmode($fh, ':raw'); + print $fh _add_body_start() if $have_attachment; + print $fh _read_report($filename); + print $fh _add_attachments() if $have_attachment; + $fh->close or die "Error sending mail: $!"; + + print "\nMessage sent.\n"; +} + +sub _probe_for_sendmail { + my $sendmail = ""; + for (qw(/usr/lib/sendmail /usr/sbin/sendmail /usr/ucblib/sendmail)) { + $sendmail = $_, last if -e $_; + } + if ( $^O eq 'os2' and $sendmail eq "" ) { + my $path = $ENV{PATH}; + $path =~ s:\\:/:; + my @path = split /$Config{'path_sep'}/, $path; + for (@path) { + $sendmail = "$_/sendmail", last if -e "$_/sendmail"; + $sendmail = "$_/sendmail.exe", last if -e "$_/sendmail.exe"; + } + } + return $sendmail; +} + +sub _send_message_sendmail { + my $sendmail = _probe_for_sendmail(); + unless ($sendmail) { + my $message_start = !$Is_Linux && !$Is_OpenBSD ? <<'EOT' : <<'EOT'; +It appears that there is no program which looks like "sendmail" on +your system and that the Mail::Send library from CPAN isn't available. +EOT +It appears that there is no program which looks like "sendmail" on +your system. +EOT + paraprint(<<"EOF"), die "\n"; +$message_start +Because of this, there's no easy way to automatically send your +report. + +A copy of your report has been saved in '$filename' for you to +send to '$address' with your normal mail client. +EOF + } + + open( SENDMAIL, "|-:raw", $sendmail, "-t", "-oi", "-f", $from ) + || die "'|$sendmail -t -oi -f $from' failed: $!"; + print SENDMAIL build_complete_message(); + if ( close(SENDMAIL) ) { + print "\nMessage sent\n"; + } else { + warn "\nSendmail returned status '", $? >> 8, "'\n"; + } +} + + + +# a strange way to check whether any significant editing +# has been done: check whether any new non-empty lines +# have been added. + +sub _fingerprint_lines_in_report { + my $new_lines = 0; + # read in the report template once so that + # we can track whether the user does any editing. + # yes, *all* whitespace is ignored. + + open(REP, '<:raw', $filename) or die "Unable to open report file '$filename': $!\n"; + binmode(REP, ':raw :crlf') if $Is_MSWin32; + while (my $line = ) { + $line =~ s/\s+//g; + $new_lines++ if (!$REP{$line}); + + } + close(REP) or die "Error closing report file '$filename': $!"; + # returns the number of lines with content that wasn't there when last we looked + return $new_lines; +} + + + +format STDOUT = +^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ~~ +$_ +. + +__END__ + +=head1 NAME + +perlbug - how to submit bug reports on Perl + +=head1 SYNOPSIS + +B + +B S<[ B<-v> ]> S<[ B<-a> I
]> S<[ B<-s> I ]> +S<[ B<-b> I | B<-f> I ]> S<[ B<-F> I ]> +S<[ B<-r> I ]> +S<[ B<-e> I ]> S<[ B<-c> I | B<-C> ]> +S<[ B<-S> ]> S<[ B<-t> ]> S<[ B<-d> ]> S<[ B<-h> ]> S<[ B<-T> ]> + +B S<[ B<-v> ]> S<[ B<-r> I ]> + S<[ B<-ok> | B<-okay> | B<-nok> | B<-nokay> ]> + +B + +=head1 DESCRIPTION + + +This program is designed to help you generate bug reports +(and thank-you notes) about perl5 and the modules which ship with it. + +In most cases, you can just run it interactively from a command +line without any special arguments and follow the prompts. + +If you have found a bug with a non-standard port (one that was not +part of the I), a binary distribution, or a +non-core module (such as Tk, DBI, etc), then please see the +documentation that came with that distribution to determine the +correct place to report bugs. + +Bug reports should be submitted to the GitHub issue tracker at +L. The B +address no longer automatically opens tickets. You can use this tool +to compose your report and save it to a file which you can then submit +to the issue tracker. + +In extreme cases, B may not work well enough on your system +to guide you through composing a bug report. In those cases, you +may be able to use B or B to get system +configuration information to include in your issue report. + + +When reporting a bug, please run through this checklist: + +=over 4 + +=item What version of Perl you are running? + +Type C at the command line to find out. + +=item Are you running the latest released version of perl? + +Look at L to find out. If you are not using the +latest released version, please try to replicate your bug on the +latest stable release. + +Note that reports about bugs in old versions of Perl, especially +those which indicate you haven't also tested the current stable +release of Perl, are likely to receive less attention from the +volunteers who build and maintain Perl than reports about bugs in +the current release. + +This tool isn't appropriate for reporting bugs in any version +prior to Perl 5.0. + +=item Are you sure what you have is a bug? + +A significant number of the bug reports we get turn out to be +documented features in Perl. Make sure the issue you've run into +isn't intentional by glancing through the documentation that comes +with the Perl distribution. + +Given the sheer volume of Perl documentation, this isn't a trivial +undertaking, but if you can point to documentation that suggests +the behaviour you're seeing is I, your issue is likely to +receive more attention. You may want to start with B +L for pointers to common traps that new (and experienced) +Perl programmers run into. + +If you're unsure of the meaning of an error message you've run +across, B L for an explanation. If the message +isn't in perldiag, it probably isn't generated by Perl. You may +have luck consulting your operating system documentation instead. + +If you are on a non-UNIX platform B L, as some +features may be unimplemented or work differently. + +You may be able to figure out what's going wrong using the Perl +debugger. For information about how to use the debugger B +L. + +=item Do you have a proper test case? + +The easier it is to reproduce your bug, the more likely it will be +fixed -- if nobody can duplicate your problem, it probably won't be +addressed. + +A good test case has most of these attributes: short, simple code; +few dependencies on external commands, modules, or libraries; no +platform-dependent code (unless it's a platform-specific bug); +clear, simple documentation. + +A good test case is almost always a good candidate to be included in +Perl's test suite. If you have the time, consider writing your test case so +that it can be easily included into the standard test suite. + +=item Have you included all relevant information? + +Be sure to include the B error messages, if any. +"Perl gave an error" is not an exact error message. + +If you get a core dump (or equivalent), you may use a debugger +(B, B, etc) to produce a stack trace to include in the bug +report. + +NOTE: unless your Perl has been compiled with debug info +(often B<-g>), the stack trace is likely to be somewhat hard to use +because it will most probably contain only the function names and not +their arguments. If possible, recompile your Perl with debug info and +reproduce the crash and the stack trace. + +=item Can you describe the bug in plain English? + +The easier it is to understand a reproducible bug, the more likely +it will be fixed. Any insight you can provide into the problem +will help a great deal. In other words, try to analyze the problem +(to the extent you can) and report your discoveries. + +=item Can you fix the bug yourself? + +If so, that's great news; bug reports with patches are likely to +receive significantly more attention and interest than those without +patches. Please submit your patch via the GitHub Pull Request workflow +as described in B L. You may also send patches to +B. When sending a patch, create it using +C if possible, though a unified diff created with +C will do nearly as well. + +Your patch may be returned with requests for changes, or requests for more +detailed explanations about your fix. + +Here are a few hints for creating high-quality patches: + +Make sure the patch is not reversed (the first argument to diff is +typically the original file, the second argument your changed file). +Make sure you test your patch by applying it with C or the +C program before you send it on its way. Try to follow the +same style as the code you are trying to patch. Make sure your patch +really does work (C, if the thing you're patching is covered +by Perl's test suite). + +=item Can you use C to submit a thank-you note? + +Yes, you can do this by either using the C<-T> option, or by invoking +the program as C. Thank-you notes are good. It makes people +smile. + +=back + +Please make your issue title informative. "a bug" is not informative. +Neither is "perl crashes" nor is "HELP!!!". These don't help. A compact +description of what's wrong is fine. + +Having done your bit, please be prepared to wait, to be told the +bug is in your code, or possibly to get no reply at all. The +volunteers who maintain Perl are busy folks, so if your problem is +an obvious bug in your own code, is difficult to understand or is +a duplicate of an existing report, you may not receive a personal +reply. + +If it is important to you that your bug be fixed, do monitor the +issue tracker (you will be subscribed to notifications for issues you +submit or comment on) and the commit logs to development +versions of Perl, and encourage the maintainers with kind words or +offers of frosty beverages. (Please do be kind to the maintainers. +Harassing or flaming them is likely to have the opposite effect of the +one you want.) + +Feel free to update the ticket about your bug on +L +if a new version of Perl is released and your bug is still present. + +=head1 OPTIONS + +=over 8 + +=item B<-a> + +Address to send the report to instead of saving to a file. + +=item B<-b> + +Body of the report. If not included on the command line, or +in a file with B<-f>, you will get a chance to edit the report. + +=item B<-C> + +Don't send copy to administrator when sending report by mail. + +=item B<-c> + +Address to send copy of report to when sending report by mail. +Defaults to the address of the +local perl administrator (recorded when perl was built). + +=item B<-d> + +Data mode (the default if you redirect or pipe output). This prints out +your configuration data, without saving or mailing anything. You can use +this with B<-v> to get more complete data. + +=item B<-e> + +Editor to use. + +=item B<-f> + +File containing the body of the report. Use this to quickly send a +prepared report. + +=item B<-F> + +File to output the results to. Defaults to B. + +=item B<-h> + +Prints a brief summary of the options. + +=item B<-ok> + +Report successful build on this system to perl porters. Forces B<-S> +and B<-C>. Forces and supplies values for B<-s> and B<-b>. Only +prompts for a return address if it cannot guess it (for use with +B). Honors return address specified with B<-r>. You can use this +with B<-v> to get more complete data. Only makes a report if this +system is less than 60 days old. + +=item B<-okay> + +As B<-ok> except it will report on older systems. + +=item B<-nok> + +Report unsuccessful build on this system. Forces B<-C>. Forces and +supplies a value for B<-s>, then requires you to edit the report +and say what went wrong. Alternatively, a prepared report may be +supplied using B<-f>. Only prompts for a return address if it +cannot guess it (for use with B). Honors return address +specified with B<-r>. You can use this with B<-v> to get more +complete data. Only makes a report if this system is less than 60 +days old. + +=item B<-nokay> + +As B<-nok> except it will report on older systems. + +=item B<-p> + +The names of one or more patch files or other text attachments to be +included with the report. Multiple files must be separated with commas. + +=item B<-r> + +Your return address. The program will ask you to confirm its default +if you don't use this option. + +=item B<-S> + +Save or send the report without asking for confirmation. + +=item B<-s> + +Subject to include with the report. You will be prompted if you don't +supply one on the command line. + +=item B<-t> + +Test mode. Makes it possible to command perlbug from a pipe or file, for +testing purposes. + +=item B<-T> + +Send a thank-you note instead of a bug report. + +=item B<-v> + +Include verbose configuration data in the report. + +=back + +=head1 AUTHORS + +Kenneth Albanowski (Ekjahds@kjahds.comE), subsequently +Itored by Gurusamy Sarathy (Egsar@activestate.comE), +Tom Christiansen (Etchrist@perl.comE), Nathan Torkington +(Egnat@frii.comE), Charles F. Randall (Ecfr@pobox.comE), +Mike Guy (Emjtg@cam.ac.ukE), Dominic Dunlop +(Edomo@computer.orgE), Hugo van der Sanden (Ehv@crypt.orgE), +Jarkko Hietaniemi (Ejhi@iki.fiE), Chris Nandor +(Epudge@pobox.comE), Jon Orwant (Eorwant@media.mit.eduE, +Richard Foley (Erichard.foley@rfi.netE), Jesse Vincent +(Ejesse@bestpractical.comE), and Craig A. Berry (Ecraigberry@mac.comE). + +=head1 SEE ALSO + +perl(1), perldebug(1), perldiag(1), perlport(1), perltrap(1), +diff(1), patch(1), dbx(1), gdb(1) + +=head1 BUGS + +None known (guess what must have been used to report them?) + +=cut + diff --git a/data/miniconda3/bin/pngfix b/data/miniconda3/bin/pngfix new file mode 100644 index 0000000000000000000000000000000000000000..adc7be96386468dd7785cf5b2b7e8df55f96f335 Binary files /dev/null and b/data/miniconda3/bin/pngfix differ diff --git a/data/miniconda3/bin/pphs b/data/miniconda3/bin/pphs new file mode 100644 index 0000000000000000000000000000000000000000..b8997017c981b8800795c7ff13b301db15ad348f --- /dev/null +++ b/data/miniconda3/bin/pphs @@ -0,0 +1,15 @@ +#!/bin/sh +# Print the Primary Hint Stream from a linearized PDF file. Usage: +# pphs filename.pdf +# Output goes to stdout. + +# This definition is changed on install to match the +# executable name set in the makefile +GS_EXECUTABLE=gs +gs="`dirname \"$0\"`/$GS_EXECUTABLE" +if test ! -x "$gs"; then + gs="$GS_EXECUTABLE" +fi +GS_EXECUTABLE="$gs" + +exec "$GS_EXECUTABLE" -q -P- -dSAFER -dNODISPLAY -- pphs.ps "$@" diff --git a/data/miniconda3/bin/ppm2tiff b/data/miniconda3/bin/ppm2tiff new file mode 100644 index 0000000000000000000000000000000000000000..acbd22f657d8a5c3f1aff561b926fb63b6bfe1fd Binary files /dev/null and b/data/miniconda3/bin/ppm2tiff differ diff --git a/data/miniconda3/bin/prove b/data/miniconda3/bin/prove new file mode 100644 index 0000000000000000000000000000000000000000..7eb58a1f0128698cf8162e235c12961f5bdb11cc --- /dev/null +++ b/data/miniconda3/bin/prove @@ -0,0 +1,410 @@ +#!/home/zangyihe/miniconda3/bin/perl + eval 'exec /home/zangyihe/miniconda3/bin/perl -S $0 ${1+"$@"}' + if $running_under_some_shell; +#!/usr/bin/perl -w + +BEGIN { pop @INC if $INC[-1] eq '.' } +use strict; +use warnings; +use App::Prove; + +my $app = App::Prove->new; +$app->process_args(@ARGV); +exit( $app->run ? 0 : 1 ); + +__END__ + +=head1 NAME + +prove - Run tests through a TAP harness. + +=head1 USAGE + + prove [options] [files or directories] + +=head1 OPTIONS + +Boolean options: + + -v, --verbose Print all test lines. + -l, --lib Add 'lib' to the path for your tests (-Ilib). + -b, --blib Add 'blib/lib' and 'blib/arch' to the path for + your tests + -s, --shuffle Run the tests in random order. + -c, --color Colored test output (default). + --nocolor Do not color test output. + --count Show the X/Y test count when not verbose + (default) + --nocount Disable the X/Y test count. + -D --dry Dry run. Show test that would have run. + -f, --failures Show failed tests. + -o, --comments Show comments. + --ignore-exit Ignore exit status from test scripts. + -m, --merge Merge test scripts' STDERR with their STDOUT. + -r, --recurse Recursively descend into directories. + --reverse Run the tests in reverse order. + -q, --quiet Suppress some test output while running tests. + -Q, --QUIET Only print summary results. + -p, --parse Show full list of TAP parse errors, if any. + --directives Only show results with TODO or SKIP directives. + --timer Print elapsed time after each test. + --trap Trap Ctrl-C and print summary on interrupt. + --normalize Normalize TAP output in verbose output + -T Enable tainting checks. + -t Enable tainting warnings. + -W Enable fatal warnings. + -w Enable warnings. + -h, --help Display this help + -?, Display this help + -V, --version Display the version + -H, --man Longer manpage for prove + --norc Don't process default .proverc + +Options that take arguments: + + -I Library paths to include. + -P Load plugin (searches App::Prove::Plugin::*.) + -M Load a module. + -e, --exec Interpreter to run the tests ('' for compiled + tests.) + --ext Set the extension for tests (default '.t') + --harness Define test harness to use. See TAP::Harness. + --formatter Result formatter to use. See FORMATTERS. + --source Load and/or configure a SourceHandler. See + SOURCE HANDLERS. + -a, --archive out.tgz Store the resulting TAP in an archive file. + -j, --jobs N Run N test jobs in parallel (try 9.) + --state=opts Control prove's persistent state. + --statefile=file Use `file` instead of `.prove` for state + --rc=rcfile Process options from rcfile + --rules Rules for parallel vs sequential processing. + +=head1 NOTES + +=head2 .proverc + +If F<~/.proverc> or F<./.proverc> exist they will be read and any +options they contain processed before the command line options. Options +in F<.proverc> are specified in the same way as command line options: + + # .proverc + --state=hot,fast,save + -j9 + +Additional option files may be specified with the C<--rc> option. +Default option file processing is disabled by the C<--norc> option. + +Under Windows and VMS the option file is named F<_proverc> rather than +F<.proverc> and is sought only in the current directory. + +=head2 Reading from C + +If you have a list of tests (or URLs, or anything else you want to test) in a +file, you can add them to your tests by using a '-': + + prove - < my_list_of_things_to_test.txt + +See the C in the C directory of this distribution. + +=head2 Default Test Directory + +If no files or directories are supplied, C looks for all files +matching the pattern C. + +=head2 Colored Test Output + +Colored test output using L is the default, but +if output is not to a terminal, color is disabled. You can override this by +adding the C<--color> switch. + +Color support requires L and, on windows platforms, also +L. If the necessary module(s) are not installed +colored output will not be available. + +=head2 Exit Code + +If the tests fail C will exit with non-zero status. + +=head2 Arguments to Tests + +It is possible to supply arguments to tests. To do so separate them from +prove's own arguments with the arisdottle, '::'. For example + + prove -v t/mytest.t :: --url http://example.com + +would run F with the options '--url http://example.com'. +When running multiple tests they will each receive the same arguments. + +=head2 C<--exec> + +Normally you can just pass a list of Perl tests and the harness will know how +to execute them. However, if your tests are not written in Perl or if you +want all tests invoked exactly the same way, use the C<-e>, or C<--exec> +switch: + + prove --exec '/usr/bin/ruby -w' t/ + prove --exec '/usr/bin/perl -Tw -mstrict -Ilib' t/ + prove --exec '/path/to/my/customer/exec' + +=head2 C<--merge> + +If you need to make sure your diagnostics are displayed in the correct +order relative to test results you can use the C<--merge> option to +merge the test scripts' STDERR into their STDOUT. + +This guarantees that STDOUT (where the test results appear) and STDERR +(where the diagnostics appear) will stay in sync. The harness will +display any diagnostics your tests emit on STDERR. + +Caveat: this is a bit of a kludge. In particular note that if anything +that appears on STDERR looks like a test result the test harness will +get confused. Use this option only if you understand the consequences +and can live with the risk. + +=head2 C<--trap> + +The C<--trap> option will attempt to trap SIGINT (Ctrl-C) during a test +run and display the test summary even if the run is interrupted + +=head2 C<--state> + +You can ask C to remember the state of previous test runs and +select and/or order the tests to be run based on that saved state. + +The C<--state> switch requires an argument which must be a comma +separated list of one or more of the following options. + +=over + +=item C + +Run the same tests as the last time the state was saved. This makes it +possible, for example, to recreate the ordering of a shuffled test. + + # Run all tests in random order + $ prove -b --state=save --shuffle + + # Run them again in the same order + $ prove -b --state=last + +=item C + +Run only the tests that failed on the last run. + + # Run all tests + $ prove -b --state=save + + # Run failures + $ prove -b --state=failed + +If you also specify the C option newly passing tests will be +excluded from subsequent runs. + + # Repeat until no more failures + $ prove -b --state=failed,save + +=item C + +Run only the passed tests from last time. Useful to make sure that no +new problems have been introduced. + +=item C + +Run all tests in normal order. Multple options may be specified, so to +run all tests with the failures from last time first: + + $ prove -b --state=failed,all,save + +=item C + +Run the tests that most recently failed first. The last failure time of +each test is stored. The C option causes tests to be run in most-recent- +failure order. + + $ prove -b --state=hot,save + +Tests that have never failed will not be selected. To run all tests with +the most recently failed first use + + $ prove -b --state=hot,all,save + +This combination of options may also be specified thus + + $ prove -b --state=adrian + +=item C + +Run any tests with todos. + +=item C + +Run the tests in slowest to fastest order. This is useful in conjunction +with the C<-j> parallel testing switch to ensure that your slowest tests +start running first. + + $ prove -b --state=slow -j9 + +=item C + +Run test tests in fastest to slowest order. + +=item C + +Run the tests in newest to oldest order based on the modification times +of the test scripts. + +=item C + +Run the tests in oldest to newest order. + +=item C + +Run those test scripts that have been modified since the last test run. + +=item C + +Save the state on exit. The state is stored in a file called F<.prove> +(F<_prove> on Windows and VMS) in the current directory. + +=back + +The C<--state> switch may be used more than once. + + $ prove -b --state=hot --state=all,save + +=head2 --rules + +The C<--rules> option is used to control which tests are run sequentially and +which are run in parallel, if the C<--jobs> option is specified. The option may +be specified multiple times, and the order matters. + +The most practical use is likely to specify that some tests are not +"parallel-ready". Since mentioning a file with --rules doesn't cause it to +be selected to run as a test, you can "set and forget" some rules preferences in +your .proverc file. Then you'll be able to take maximum advantage of the +performance benefits of parallel testing, while some exceptions are still run +in parallel. + +=head3 --rules examples + + # All tests are allowed to run in parallel, except those starting with "p" + --rules='seq=t/p*.t' --rules='par=**' + + # All tests must run in sequence except those starting with "p", which should be run parallel + --rules='par=t/p*.t' + +=head3 --rules resolution + +=over 4 + +=item * By default, all tests are eligible to be run in parallel. Specifying any of your own rules removes this one. + +=item * "First match wins". The first rule that matches a test will be the one that applies. + +=item * Any test which does not match a rule will be run in sequence at the end of the run. + +=item * The existence of a rule does not imply selecting a test. You must still specify the tests to run. + +=item * Specifying a rule to allow tests to run in parallel does not make them run in parallel. You still need specify the number of parallel C in your Harness object. + +=back + +=head3 --rules Glob-style pattern matching + +We implement our own glob-style pattern matching for --rules. Here are the +supported patterns: + + ** is any number of characters, including /, within a pathname + * is zero or more characters within a filename/directory name + ? is exactly one character within a filename/directory name + {foo,bar,baz} is any of foo, bar or baz. + \ is an escape character + +=head3 More advanced specifications for parallel vs sequence run rules + +If you need more advanced management of what runs in parallel vs in sequence, see +the associated 'rules' documentation in L and L. +If what's possible directly through C is not sufficient, you can write your own +harness to access these features directly. + +=head2 @INC + +prove introduces a separation between "options passed to the perl which +runs prove" and "options passed to the perl which runs tests"; this +distinction is by design. Thus the perl which is running a test starts +with the default C<@INC>. Additional library directories can be added +via the C environment variable, via -Ifoo in C or +via the C<-Ilib> option to F. + +=head2 Taint Mode + +Normally when a Perl program is run in taint mode the contents of the +C environment variable do not appear in C<@INC>. + +Because C is often used during testing to add build +directories to C<@INC> prove passes the names of any directories found +in C as -I switches. The net effect of this is that +C is honoured even when prove is run in taint mode. + + +=head1 FORMATTERS + +You can load a custom L: + + prove --formatter MyFormatter + +=head1 SOURCE HANDLERS + +You can load custom Ls, to change the way the +parser interprets particular I of TAP. + + prove --source MyHandler --source YetAnother t + +If you want to provide config to the source you can use: + + prove --source MyCustom \ + --source Perl --perl-option 'foo=bar baz' --perl-option avg=0.278 \ + --source File --file-option extensions=.txt --file-option extensions=.tmp t + --source pgTAP --pgtap-option pset=format=html --pgtap-option pset=border=2 + +Each C<--$source-option> option must specify a key/value pair separated by an +C<=>. If an option can take multiple values, just specify it multiple times, +as with the C examples above. If the option should be a hash +reference, specify the value as a second pair separated by a C<=>, as in the +C examples above (escape C<=> with a backslash). + +All C<--sources> are combined into a hash, and passed to L's +C parameter. + +See L for more details on how configuration is +passed to I. + +=head1 PLUGINS + +Plugins can be loaded using the C<< -PI >> syntax, eg: + + prove -PMyPlugin + +This will search for a module named C, or failing +that, C. If the plugin can't be found, C will complain & exit. + +You can pass arguments to your plugin by appending C<=arg1,arg2,etc> to the +plugin name: + + prove -PMyPlugin=fou,du,fafa + +Please check individual plugin documentation for more details. + +=head2 Available Plugins + +For an up-to-date list of plugins available, please check CPAN: + +L + +=head2 Writing Plugins + +Please see L. + +=cut + +# vim:ts=4:sw=4:et:sta diff --git a/data/miniconda3/bin/ps2pdf b/data/miniconda3/bin/ps2pdf new file mode 100644 index 0000000000000000000000000000000000000000..878474d929552470d80afb50b3643f5cdf4ad550 --- /dev/null +++ b/data/miniconda3/bin/ps2pdf @@ -0,0 +1,12 @@ +#!/bin/sh +# Convert PostScript to PDF. + +# Currently, we produce PDF 1.4 by default, but this is not guaranteed +# not to change in the future. +version=14 + +ps2pdf="`dirname \"$0\"`/ps2pdf$version" +if test ! -x "$ps2pdf"; then + ps2pdf="ps2pdf$version" +fi +exec "$ps2pdf" "$@" diff --git a/data/miniconda3/bin/ps2pdf13 b/data/miniconda3/bin/ps2pdf13 new file mode 100644 index 0000000000000000000000000000000000000000..8133e9342e208ad45d09987f508b3e322737406c --- /dev/null +++ b/data/miniconda3/bin/ps2pdf13 @@ -0,0 +1,7 @@ +#!/bin/sh +# Convert PostScript to PDF 1.3 (Acrobat 4-and-later compatible). +ps2pdfwr="`dirname \"$0\"`/ps2pdfwr" +if test ! -x "$ps2pdfwr"; then + ps2pdfwr="ps2pdfwr" +fi +exec "$ps2pdfwr" -dCompatibilityLevel=1.3 -dWriteXRefStm=false -dWriteObjStms=false "$@" diff --git a/data/miniconda3/bin/ps2pdf14 b/data/miniconda3/bin/ps2pdf14 new file mode 100644 index 0000000000000000000000000000000000000000..721138d8482e30844415424ef61e73a002309ab5 --- /dev/null +++ b/data/miniconda3/bin/ps2pdf14 @@ -0,0 +1,7 @@ +#!/bin/sh +# Convert PostScript to PDF 1.4 (Acrobat 5-and-later compatible). +ps2pdfwr="`dirname \"$0\"`/ps2pdfwr" +if test ! -x "$ps2pdfwr"; then + ps2pdfwr="ps2pdfwr" +fi +exec "$ps2pdfwr" -dCompatibilityLevel=1.4 -dWriteXRefStm=false -dWriteObjStms=false "$@" diff --git a/data/miniconda3/bin/ps2pdfwr b/data/miniconda3/bin/ps2pdfwr new file mode 100644 index 0000000000000000000000000000000000000000..fe30f070f630922b7d75c7177174e8bbedd8fcb7 --- /dev/null +++ b/data/miniconda3/bin/ps2pdfwr @@ -0,0 +1,44 @@ +#!/bin/sh +# Convert PostScript to PDF without specifying CompatibilityLevel. + +# This definition is changed on install to match the +# executable name set in the makefile +GS_EXECUTABLE=gs +gs="`dirname \"$0\"`/$GS_EXECUTABLE" +if test ! -x "$gs"; then + gs="$GS_EXECUTABLE" +fi +GS_EXECUTABLE="$gs" + +OPTIONS="-P- -dSAFER" +while true +do + case "$1" in + -?*) OPTIONS="$OPTIONS $1" ;; + *) break ;; + esac + shift +done + +if [ $# -lt 1 -o $# -gt 2 ]; then + echo "Usage: `basename \"$0\"` [options...] (input.[e]ps|-) [output.pdf|-]" 1>&2 + exit 1 +fi + +infile="$1"; + +if [ $# -eq 1 ] +then + case "${infile}" in + -) outfile=- ;; + *.eps) base=`basename "${infile}" .eps`; outfile="${base}.pdf" ;; + *.ps) base=`basename "${infile}" .ps`; outfile="${base}.pdf" ;; + *) base=`basename "${infile}"`; outfile="${base}.pdf" ;; + esac +else + outfile="$2" +fi + +# We have to include the options twice because -I only takes effect if it +# appears before other options. +exec "$GS_EXECUTABLE" $OPTIONS -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr "-sOutputFile=$outfile" $OPTIONS "$infile" diff --git a/data/miniconda3/bin/ptargrep b/data/miniconda3/bin/ptargrep new file mode 100644 index 0000000000000000000000000000000000000000..e52535c0919764404b8dc58a43e2552a982bec18 --- /dev/null +++ b/data/miniconda3/bin/ptargrep @@ -0,0 +1,196 @@ +#!/home/zangyihe/miniconda3/bin/perl + eval 'exec /home/zangyihe/miniconda3/bin/perl -S $0 ${1+"$@"}' + if $running_under_some_shell; +#!/usr/bin/perl +############################################################################## +# Tool for using regular expressions against the contents of files in a tar +# archive. See 'ptargrep --help' for more documentation. +# + +BEGIN { pop @INC if $INC[-1] eq '.' } +use strict; +use warnings; + +use Pod::Usage qw(pod2usage); +use Getopt::Long qw(GetOptions); +use Archive::Tar qw(); +use File::Path qw(mkpath); + +my(%opt, $pattern); + +if(!GetOptions(\%opt, + 'basename|b', + 'ignore-case|i', + 'list-only|l', + 'verbose|v', + 'help|?', +)) { + pod2usage(-exitval => 1, -verbose => 0); +} + + +pod2usage(-exitstatus => 0, -verbose => 2) if $opt{help}; + +pod2usage(-exitval => 1, -verbose => 0, + -message => "No pattern specified", +) unless @ARGV; +make_pattern( shift(@ARGV) ); + +pod2usage(-exitval => 1, -verbose => 0, + -message => "No tar files specified", +) unless @ARGV; + +process_archive($_) foreach @ARGV; + +exit 0; + + +sub make_pattern { + my($pat) = @_; + + if($opt{'ignore-case'}) { + $pattern = qr{(?im)$pat}; + } + else { + $pattern = qr{(?m)$pat}; + } +} + + +sub process_archive { + my($filename) = @_; + + _log("Processing archive: $filename"); + my $next = Archive::Tar->iter($filename); + while( my $f = $next->() ) { + next unless $f->is_file; + match_file($f) if $f->size > 0; + } +} + + +sub match_file { + my($f) = @_; + my $path = $f->name; + my $prefix = $f->prefix; + if (defined $prefix) { + $path = File::Spec->catfile($prefix, $path); + } + + _log("filename: %s (%d bytes)", $path, $f->size); + + my $body = $f->get_content(); + if($body !~ $pattern) { + _log(" no match"); + return; + } + + if($opt{'list-only'}) { + print $path, "\n"; + return; + } + + save_file($path, $body); +} + + +sub save_file { + my($path, $body) = @_; + + _log(" found match - extracting"); + my($fh); + my($dir, $file) = $path =~ m{\A(?:(.*)/)?([^/]+)\z}; + if($dir and not $opt{basename}) { + _log(" writing to $dir/$file"); + $dir =~ s{\A/}{./}; + mkpath($dir) unless -d $dir; + open $fh, '>', "$dir/$file" or die "open($dir/$file): $!"; + } + else { + _log(" writing to ./$file"); + open $fh, '>', $file or die "open($file): $!"; + } + print $fh $body; + close($fh); +} + + +sub _log { + return unless $opt{verbose}; + my($format, @args) = @_; + warn sprintf($format, @args) . "\n"; +} + + +__END__ + +=head1 NAME + +ptargrep - Apply pattern matching to the contents of files in a tar archive + +=head1 SYNOPSIS + + ptargrep [options] ... + + Options: + + --basename|-b ignore directory paths from archive + --ignore-case|-i do case-insensitive pattern matching + --list-only|-l list matching filenames rather than extracting matches + --verbose|-v write debugging message to STDERR + --help|-? detailed help message + +=head1 DESCRIPTION + +This utility allows you to apply pattern matching to B of files +contained in a tar archive. You might use this to identify all files in an +archive which contain lines matching the specified pattern and either print out +the pathnames or extract the files. + +The pattern will be used as a Perl regular expression (as opposed to a simple +grep regex). + +Multiple tar archive filenames can be specified - they will each be processed +in turn. + +=head1 OPTIONS + +=over 4 + +=item B<--basename> (alias -b) + +When matching files are extracted, ignore the directory path from the archive +and write to the current directory using the basename of the file from the +archive. Beware: if two matching files in the archive have the same basename, +the second file extracted will overwrite the first. + +=item B<--ignore-case> (alias -i) + +Make pattern matching case-insensitive. + +=item B<--list-only> (alias -l) + +Print the pathname of each matching file from the archive to STDOUT. Without +this option, the default behaviour is to extract each matching file. + +=item B<--verbose> (alias -v) + +Log debugging info to STDERR. + +=item B<--help> (alias -?) + +Display this documentation. + +=back + +=head1 COPYRIGHT + +Copyright 2010 Grant McLean Egrantm@cpan.orgE + +This program is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. + +=cut + + + diff --git a/data/miniconda3/bin/pydoc b/data/miniconda3/bin/pydoc new file mode 100644 index 0000000000000000000000000000000000000000..a311118dbca4a237a08c7dd203dce41accf56776 --- /dev/null +++ b/data/miniconda3/bin/pydoc @@ -0,0 +1,5 @@ +#!/home/zangyihe/miniconda3/bin/python3.13 + +import pydoc +if __name__ == '__main__': + pydoc.cli() diff --git a/data/miniconda3/bin/pyftsubset b/data/miniconda3/bin/pyftsubset new file mode 100644 index 0000000000000000000000000000000000000000..65c1d1195abf85e0ac083d7e525d3daeb01f80be --- /dev/null +++ b/data/miniconda3/bin/pyftsubset @@ -0,0 +1,7 @@ +#!/home/zangyihe/miniconda3/bin/python3.13 +import sys +from fontTools.subset import main +if __name__ == '__main__': + if sys.argv[0].endswith('.exe'): + sys.argv[0] = sys.argv[0][:-4] + sys.exit(main()) diff --git a/data/miniconda3/bin/raw2tiff b/data/miniconda3/bin/raw2tiff new file mode 100644 index 0000000000000000000000000000000000000000..388788baebbc0b2bdd1c6b49ed2d86fd59b985ff Binary files /dev/null and b/data/miniconda3/bin/raw2tiff differ diff --git a/data/miniconda3/bin/stl2bin b/data/miniconda3/bin/stl2bin new file mode 100644 index 0000000000000000000000000000000000000000..54962481f119abd4f3d48150e5e0fab94115c1b7 --- /dev/null +++ b/data/miniconda3/bin/stl2bin @@ -0,0 +1,7 @@ +#!/home/zangyihe/miniconda3/bin/python3.13 +import sys +from stl.main import to_binary +if __name__ == '__main__': + if sys.argv[0].endswith('.exe'): + sys.argv[0] = sys.argv[0][:-4] + sys.exit(to_binary()) diff --git a/data/miniconda3/bin/stl2gts b/data/miniconda3/bin/stl2gts new file mode 100644 index 0000000000000000000000000000000000000000..a0c3c477a5cdf975f771d5480cfc8fe0912a9c51 Binary files /dev/null and b/data/miniconda3/bin/stl2gts differ diff --git a/data/miniconda3/bin/stream b/data/miniconda3/bin/stream new file mode 100644 index 0000000000000000000000000000000000000000..c26809249cc7f09b1c44be53dba07425238b44cd Binary files /dev/null and b/data/miniconda3/bin/stream differ diff --git a/data/miniconda3/bin/tabs b/data/miniconda3/bin/tabs new file mode 100644 index 0000000000000000000000000000000000000000..67128c463ba1a6b18eb424d73586a5b8fde16524 Binary files /dev/null and b/data/miniconda3/bin/tabs differ diff --git a/data/miniconda3/bin/tiff2ps b/data/miniconda3/bin/tiff2ps new file mode 100644 index 0000000000000000000000000000000000000000..655fc1832f98b9b8e51ab17305b3811e6fe70b19 Binary files /dev/null and b/data/miniconda3/bin/tiff2ps differ diff --git a/data/miniconda3/bin/wheel b/data/miniconda3/bin/wheel new file mode 100644 index 0000000000000000000000000000000000000000..e54316a930d185a5927b16154e76027cc0b50119 --- /dev/null +++ b/data/miniconda3/bin/wheel @@ -0,0 +1,11 @@ +#!/home/zangyihe/miniconda3/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from wheel.cli import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/data/miniconda3/bin/x86_64-conda-linux-gnu-pkg-config b/data/miniconda3/bin/x86_64-conda-linux-gnu-pkg-config new file mode 100644 index 0000000000000000000000000000000000000000..71b295aad9a2eddaada478e95947e40ba3855e23 --- /dev/null +++ b/data/miniconda3/bin/x86_64-conda-linux-gnu-pkg-config @@ -0,0 +1,73 @@ +#!/usr/bin/env bash + +function _guess_prefix() { + local _GUESS_FILE + if [ -n "${BASH_SOURCE[0]}" ]; then + _GUESS_FILE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BASH_SOURCE[0]}")" + elif [ -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 + _GUESS_FILE="$(cd "$(dirname "${(%):-%x}")" && pwd)/$(basename "${(%):-%x}")" + else + # This case will be hit outside of conda-build or a properly activated + # conda environment when not using bash nor zsh. This is a corner case + _GUESS_FILE="${PWD}/bin/unknown" + fi + echo $(dirname $(dirname ${_GUESS_FILE})) +} + +function _run_pkg_config() { + local PC_PREFIX=$(_guess_prefix) + local PC_PATH_BUILD="$(${PC_PREFIX}/bin/pkg-config.bin --variable pc_path pkg-config)" + local PC_PATH_HOST=${PC_PATH_BUILD//$PC_PREFIX/${PREFIX:-${CONDA_PREFIX:-$PC_PREFIX}}} + + # conda customization for CDT packages; are we targeting Linux with a cross compiler + if [[ ${HOST} =~ .*linux.* ]] && [[ $(basename ${CC}) =~ .*-.*-.* ]]; then + # From https://cgit.freedesktop.org/pkg-config/tree/main.c#n520 + # it can be seen that the logic is: + # PKG_CONFIG_PATH, if set, always comes first + # if PKG_CONFIG_LIBDIR is set it comes next + # .. otherwise PC_PATH_HOST comes next. + # If we tried to send sysroot paths in via PKG_CONFIG_PATH they would + # get precedence over PREFIX (pkg_config_pc_path). We never want that. + # Instead pass PKG_CONFIG_LIBDIR as PC_PATH:SYSROOT and allow the user + # to take precedence over all that iff PKG_CONFIG_PATH is set. + if [[ ${HOST} =~ .*x86_64.* ]] || [[ ${HOST} =~ .*powerpc64le.* ]] || [[ ${HOST} =~ .*aarch64.* ]]; then + SRLIBDIR=":$(${CC} -print-sysroot)/usr/lib/pkgconfig" + SRLIBDIR64=":$(${CC} -print-sysroot)/usr/lib64/pkgconfig" + else + SRLIBDIR=":$(${CC} -print-sysroot)/usr/lib/pkgconfig" + SRLIBDIR64= + fi + if [[ ${CONDA_BUILD_PKG_CONFIG_LOG} == yes ]]; then + echo "Calling: PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR}:${PC_PATH_HOST}:$(${CC} -print-sysroot)/usr/share/pkgconfig${SRLIBDIR}${SRLIBDIR64} \ + ${PC_PREFIX}/bin/pkg-config.bin --define-prefix --debug "$@" > /tmp/pkg-config-$$.log" + PKG_CONFIG_LIBDIR="${PKG_CONFIG_LIBDIR}:${PC_PATH_HOST}":"$(${CC} -print-sysroot)/usr/share/pkgconfig${SRLIBDIR}${SRLIBDIR64}" \ + ${PC_PREFIX}/bin/pkg-config.bin --define-prefix --debug "$@" >> /tmp/pkg-config-$$.log 2>&1 || true + fi + PKG_CONFIG_LIBDIR="${PKG_CONFIG_LIBDIR}:${PC_PATH_HOST}":"$(${CC} -print-sysroot)/usr/share/pkgconfig${SRLIBDIR}${SRLIBDIR64}" \ + ${PC_PREFIX}/bin/pkg-config.bin --define-prefix "$@" + else + # We might need --define-prefix here sometimes, but would be better off ensuring /usr is replaced by ${prefix} + # in all source .pc files in our packages. TODO :: Make conda-build / conda-verify detect this. + # try to determine additionnals /lib arch dir. On 64bits systems, it should be /lib and /lib64, on 32bits it should be /lib and /lib32 + SRLIBDIR=":/usr/lib/pkgconfig:/usr/share/pkgconfig" + if [[ ${HOSTTYPE} == "" ]]; then + SRLIBDIRARCH=":/usr/lib$(uname -m | sed 's/x86_//;s/i[3-6]86/32/')/pkgconfig" + else + SRLIBDIRARCH=":/usr/lib$(echo ${HOSTTYPE} | sed 's/x86_//;s/i[3-6]86/32/')/pkgconfig" + fi + + PC_PATH_SYSROOT=${PC_PATH_BUILD//$PC_PREFIX//usr$CONDA_BUILD_SYSROOT}${SRLIBDIRARCH}${SRLIBDIR} + if [[ ${CONDA_BUILD_PKG_CONFIG_LOG} == yes ]]; then + echo "Calling: PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR}:${PC_PATH_HOST}:${PC_PATH_SYSROOT} \ + ${PC_PREFIX}/bin/pkg-config.bin --define-prefix --debug $@ > /tmp/pkg-config-$$.log" + PKG_CONFIG_LIBDIR="${PKG_CONFIG_LIBDIR}:${PC_PATH_HOST}:${PC_PATH_SYSROOT}" \ + ${PC_PREFIX}/bin/pkg-config.bin --define-prefix --debug "$@" >> /tmp/pkg-config-$$.log 2>&1 || true + fi + PKG_CONFIG_LIBDIR="${PKG_CONFIG_LIBDIR}:${PC_PATH_HOST}:${PC_PATH_SYSROOT}" \ + ${PC_PREFIX}/bin/pkg-config.bin --define-prefix "$@" + fi +} + +_run_pkg_config "$@" diff --git a/data/miniconda3/bin/zstdless b/data/miniconda3/bin/zstdless new file mode 100644 index 0000000000000000000000000000000000000000..17726a4f6e1efb5328d0f2c116f20500149db41b --- /dev/null +++ b/data/miniconda3/bin/zstdless @@ -0,0 +1,8 @@ +#!/bin/sh + +zstd=${ZSTD:-zstd} + +# TODO: Address quirks and bugs tied to old versions of less, provide a mechanism to pass flags directly to zstd + +export LESSOPEN="|-${zstd} -cdfq %s" +exec less "$@" diff --git a/data/ulars/supplement/relearn/logs/40steps_640chunks/eval/OPTML-Group__GradDiff-SAM-WMDP__bio.log b/data/ulars/supplement/relearn/logs/40steps_640chunks/eval/OPTML-Group__GradDiff-SAM-WMDP__bio.log new file mode 100644 index 0000000000000000000000000000000000000000..ba3d695d9e49f9cd2bde593f78eb000db205097a --- /dev/null +++ b/data/ulars/supplement/relearn/logs/40steps_640chunks/eval/OPTML-Group__GradDiff-SAM-WMDP__bio.log @@ -0,0 +1,6 @@ +$ /zfspool/zangyihe/conda_envs/corgo/bin/python /zfspool/zangyihe/home/UnlearnArena/scripts/evaluate_relearned_checkpoint.py --model_path /zfspool/zangyihe/ulars/relearned_hf/relearn_40steps_640chunks/checkpoints/OPTML-Group__GradDiff-SAM-WMDP__relearn_bio --repo_id OPTML-Group/GradDiff-SAM-WMDP --alias OPTML-Group__GradDiff-SAM-WMDP --relearn_domain bio --out /zfspool/zangyihe/ulars/relearned_hf/relearn_40steps_640chunks/eval/OPTML-Group__GradDiff-SAM-WMDP__relearn_bio.json --data_dir /zfspool/zangyihe/ulars/data --dtype bfloat16 --skip_done +CUDA_VISIBLE_DEVICES=4 + +[2026-06-03 15:04:38,891] [INFO] [real_accelerator.py:219:get_accelerator] Setting ds_accelerator to cuda (auto detect) + Loading checkpoint shards: 0%| | 0/3 [00:00