crypto/openssl: remove autogenerated files

These files contain build host paths and other configuration details
that can be regenerated via the standard vendor import process. Don't
clutter up the FreeBSD tree with these files.

Add the paths to .gitignore to prevent them from accidentally being
added in a future update.

MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D53044
This commit is contained in:
Enji Cooper 2025-10-11 09:48:10 -07:00
parent 3b6442370a
commit d271d2ce15
6 changed files with 78 additions and 37037 deletions

78
crypto/.gitignore vendored Normal file
View file

@ -0,0 +1,78 @@
# OpenSSL: the following are generated paths that generally should not be committed to FreeBSD.
openssl/apps/tsget.pl
openssl/crypto/buildinf.h
openssl/doc/html
openssl/doc/man
openssl/test/buildtest_*.c
openssl/util/wrap.pl
openssl/**/*.cmake
openssl/**/*.ld
openssl/**/*.s
openssl/*.pc
openssl/Makefile
openssl/Makefile.in
openssl/builddata.pm
openssl/configdata.pm
openssl/installdata.pm
openssl/pod2htmd.tmp
# .pod files generated from .pod.in files.
#
# List can be easily updated via this command:
#
# % find openssl/doc -name \*.pod.in | sed -e 's,\.in,,g'
openssl/doc/man1/openssl-asn1parse.pod
openssl/doc/man1/openssl-ca.pod
openssl/doc/man1/openssl-ciphers.pod
openssl/doc/man1/openssl-cmds.pod
openssl/doc/man1/openssl-cmp.pod
openssl/doc/man1/openssl-cms.pod
openssl/doc/man1/openssl-crl.pod
openssl/doc/man1/openssl-crl2pkcs7.pod
openssl/doc/man1/openssl-dgst.pod
openssl/doc/man1/openssl-dhparam.pod
openssl/doc/man1/openssl-dsa.pod
openssl/doc/man1/openssl-dsaparam.pod
openssl/doc/man1/openssl-ec.pod
openssl/doc/man1/openssl-ecparam.pod
openssl/doc/man1/openssl-enc.pod
openssl/doc/man1/openssl-engine.pod
openssl/doc/man1/openssl-errstr.pod
openssl/doc/man1/openssl-fipsinstall.pod
openssl/doc/man1/openssl-gendsa.pod
openssl/doc/man1/openssl-genpkey.pod
openssl/doc/man1/openssl-genrsa.pod
openssl/doc/man1/openssl-info.pod
openssl/doc/man1/openssl-kdf.pod
openssl/doc/man1/openssl-list.pod
openssl/doc/man1/openssl-mac.pod
openssl/doc/man1/openssl-nseq.pod
openssl/doc/man1/openssl-ocsp.pod
openssl/doc/man1/openssl-passwd.pod
openssl/doc/man1/openssl-pkcs12.pod
openssl/doc/man1/openssl-pkcs7.pod
openssl/doc/man1/openssl-pkcs8.pod
openssl/doc/man1/openssl-pkey.pod
openssl/doc/man1/openssl-pkeyparam.pod
openssl/doc/man1/openssl-pkeyutl.pod
openssl/doc/man1/openssl-prime.pod
openssl/doc/man1/openssl-rand.pod
openssl/doc/man1/openssl-rehash.pod
openssl/doc/man1/openssl-req.pod
openssl/doc/man1/openssl-rsa.pod
openssl/doc/man1/openssl-rsautl.pod
openssl/doc/man1/openssl-s_client.pod
openssl/doc/man1/openssl-s_server.pod
openssl/doc/man1/openssl-s_time.pod
openssl/doc/man1/openssl-sess_id.pod
openssl/doc/man1/openssl-skeyutl.pod
openssl/doc/man1/openssl-smime.pod
openssl/doc/man1/openssl-speed.pod
openssl/doc/man1/openssl-spkac.pod
openssl/doc/man1/openssl-srp.pod
openssl/doc/man1/openssl-storeutl.pod
openssl/doc/man1/openssl-ts.pod
openssl/doc/man1/openssl-verify.pod
openssl/doc/man1/openssl-version.pod
openssl/doc/man1/openssl-x509.pod
openssl/doc/man7/openssl_user_macros.pod

File diff suppressed because it is too large Load diff

View file

@ -1,13 +0,0 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}
includedir=${prefix}/include ${prefix}/./include
enginesdir=${libdir}/engines
modulesdir=${libdir}/providers
Name: OpenSSL-libcrypto
Description: OpenSSL cryptography library
Version: 3.5.4
Libs: -L${libdir} -lcrypto
Libs.private: -pthread
Cflags: -I${prefix}/include -I${prefix}/./include

View file

@ -1,11 +0,0 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}
includedir=${prefix}/include ${prefix}/./include
Name: OpenSSL-libssl
Description: Secure Sockets Layer and cryptography libraries
Version: 3.5.4
Requires.private: libcrypto
Libs: -L${libdir} -lssl
Cflags: -I${prefix}/include -I${prefix}/./include

View file

@ -1,9 +0,0 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}
includedir=${prefix}/include ${prefix}/./include
Name: OpenSSL
Description: Secure Sockets Layer and cryptography libraries and tools
Version: 3.5.4
Requires: libssl libcrypto

View file

@ -1,133 +0,0 @@
#! /usr/bin/env perl
use strict;
use warnings;
use File::Basename;
use File::Spec::Functions;
BEGIN {
# This method corresponds exactly to 'use OpenSSL::Util',
# but allows us to use a platform specific file spec.
require '/usr/home/ngie/git/freebsd-src/worktree/main/crypto/openssl/util/perl/OpenSSL/Util.pm';
OpenSSL::Util->import();
}
sub quote_cmd_win32 {
my $cmd = "";
foreach my $arg (@_) {
if ($arg =~ m{\A[\w,-./@]+\z}) {
$cmd .= $arg . q{ };;
} else {
$cmd .= q{"} . quote_arg_win32($arg) . q{" };
}
}
return substr($cmd, 0, -1);
}
sub quote_arg_win32 {
my ($arg) = @_;
my $val = "";
pos($arg) = 0;
while (1) {
return $val if (pos($arg) == length($arg));
if ($arg =~ m{\G((?:(?>[\\]*)[^"\\]+)+)}ogc) {
$val .= $1;
} elsif ($arg =~ m{\G"}ogc) {
$val .= qq{\\"};
} elsif ($arg =~ m{\G((?>[\\]+)(?="|\z))}ogc) {
$val .= qq{\\} x (2 * length($1));
} else {
die sprintf("Internal error quoting: '%s'\n", $arg);
}
}
}
my $there = canonpath(catdir(dirname($0), updir()));
my $std_engines = catdir($there, 'engines');
my $std_providers = catdir($there, 'providers');
my $std_openssl_conf = catdir($there, 'apps/openssl.cnf');
my $unix_shlib_wrap = catfile($there, 'util/shlib_wrap.sh');
my $std_openssl_conf_include;
if ($ARGV[0] eq '-fips') {
$std_openssl_conf = '/usr/home/ngie/git/freebsd-src/worktree/main/crypto/openssl/test/fips-and-base.cnf';
shift;
$std_openssl_conf_include = catdir($there, 'providers');
}
if ($ARGV[0] eq '-jitter') {
$std_openssl_conf = '/usr/home/ngie/git/freebsd-src/worktree/main/crypto/openssl/test/default-and-jitter.cnf';
shift;
$std_openssl_conf_include = catdir($there, 'providers');
}
local $ENV{OPENSSL_CONF_INCLUDE} = $std_openssl_conf_include
if defined $std_openssl_conf_include
&&($ENV{OPENSSL_CONF_INCLUDE} // '') eq ''
&& -d $std_openssl_conf_include;
local $ENV{OPENSSL_ENGINES} = $std_engines
if ($ENV{OPENSSL_ENGINES} // '') eq '' && -d $std_engines;
local $ENV{OPENSSL_MODULES} = $std_providers
if ($ENV{OPENSSL_MODULES} // '') eq '' && -d $std_providers;
local $ENV{OPENSSL_CONF} = $std_openssl_conf
if ($ENV{OPENSSL_CONF} // '') eq '' && -f $std_openssl_conf;
my $use_system = 0;
my @cmd;
if ($^O eq 'VMS') {
# VMS needs the command to be appropriately quotified
@cmd = fixup_cmd(@ARGV);
} elsif (-x $unix_shlib_wrap) {
@cmd = ( $unix_shlib_wrap, @ARGV );
} else {
# Hope for the best
@cmd = ( @ARGV );
}
# The exec() statement on MSWin32 doesn't seem to give back the exit code
# from the call, so we resort to using system() instead.
my $waitcode;
if ($^O eq 'MSWin32') {
$waitcode = system(quote_cmd_win32(@cmd));
} else {
$waitcode = system @cmd;
}
# According to documentation, -1 means that system() couldn't run the command,
# otherwise, the value is similar to the Unix wait() status value
# (exitcode << 8 | signalcode)
die "wrap.pl: Failed to execute '", join(' ', @cmd), "': $!\n"
if $waitcode == -1;
# When the subprocess aborted on a signal, we simply raise the same signal.
kill(($? & 255) => $$) if ($? & 255) != 0;
# If that didn't stop this script, mimic what Unix shells do, by
# converting the signal code to an exit code by setting the high bit.
# This only happens on Unix flavored operating systems, the others don't
# have this sort of signaling to date, and simply leave the low byte zero.
exit(($? & 255) | 128) if ($? & 255) != 0;
# When not a signal, just shift down the subprocess exit code and use that.
my $exitcode = $? >> 8;
# For VMS, perl recommendations is to emulate what the C library exit() does
# for all non-zero exit codes, except we set the error severity rather than
# success.
# Ref: https://perldoc.perl.org/perlport#exit
# https://perldoc.perl.org/perlvms#$?
if ($^O eq 'VMS' && $exitcode != 0) {
$exitcode =
0x35a000 # C facility code
+ ($exitcode * 8) # shift up to make space for the 3 severity bits
+ 2 # Severity: E(rror)
+ 0x10000000; # bit 28 set => the shell stays silent
}
exit($exitcode);