Logo
Explore Help
Register Sign In
Nemcio/nvm
1
0
Fork 0
You've already forked nvm
mirror of https://github.com/nvm-sh/nvm.git synced 2026-05-07 00:07:20 +02:00
Code Issues Packages Projects Releases Activity
Files
awk
nvm/test/mocks/pkg_info_amd64

5 lines
153 B
Plaintext
Raw Permalink Normal View History

Fix nvm on SmartOS setups using 64 bits pkgsrc repository On SmartOS setups using 64 bits pkgsrc repositories, `nvm_get_arch` would not handle pkg_info's output properly. This would result in nvm not being to install any node binary when running on SmartOS setups using a 64 bits pkgsrc repository. This change fixes this problem, and fixes the tests suite on similar setups.
2016-07-29 13:51:06 -07:00
# On SmartOS 64bits setups, pkg_info outputs _both_ i386 and x86_64
# architectures as architectures supported by pkg_install.
echo "i386"
Fix support for installing node on SmartOS uname on SmartOS cannot be used to guess if 32 and/or 64 bits binaries are supported, and its output is different than other uname commands on other operating systems. This change uses pkg_info to determine what types of binaries pkgsrc would install. If pkg_info fails to run or is not present, this change falls back to using isainfo -n, which determines what the kernel supports. It allows users to install node binaries on Solaris derivatives. io.js can also be installed on Solaris derivatives starting with version v3.3.1.
2015-09-28 16:02:34 -07:00
echo "x86_64"
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 49ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API