aboutsummaryrefslogtreecommitdiff
path: root/biology/sra-tools/files/patch-ncbi-vdb_setup_os-arch.prl
diff options
context:
space:
mode:
Diffstat (limited to 'biology/sra-tools/files/patch-ncbi-vdb_setup_os-arch.prl')
-rw-r--r--biology/sra-tools/files/patch-ncbi-vdb_setup_os-arch.prl20
1 files changed, 20 insertions, 0 deletions
diff --git a/biology/sra-tools/files/patch-ncbi-vdb_setup_os-arch.prl b/biology/sra-tools/files/patch-ncbi-vdb_setup_os-arch.prl
new file mode 100644
index 000000000000..01cb9824ff7b
--- /dev/null
+++ b/biology/sra-tools/files/patch-ncbi-vdb_setup_os-arch.prl
@@ -0,0 +1,20 @@
+--- ncbi-vdb/setup/os-arch.prl.orig 2021-03-15 18:16:43 UTC
++++ ncbi-vdb/setup/os-arch.prl
+@@ -11,6 +11,8 @@ sub OsArch {
+ chomp $UNAME;
+ if ($UNAME =~ /Darwin/) {
+ $HOST_OS = 'mac';
++ } elsif ($UNAME =~ /.*BSD/) {
++ $HOST_OS = 'bsd';
+ } elsif ($UNAME =~ /Linux/) {
+ $HOST_OS = 'linux';
+ } elsif ($UNAME =~ /SunOS/) {
+@@ -48,6 +50,8 @@ sub OsArch {
+ $HOST_ARCH = 'i386';
+ }
+ } elsif ($MARCH =~ /x86_64/) {
++ $HOST_ARCH = 'x86_64';
++ } elsif ($MARCH =~ /amd64/) {
+ $HOST_ARCH = 'x86_64';
+ } elsif ($MARCH =~ /i86pc/) {
+ $HOST_ARCH = 'x86_64';