Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.1.0 installs windows version to joyent smartos(solaris) #639

Closed
sawanoboly opened this issue Sep 10, 2013 · 3 comments
Closed

v2.1.0 installs windows version to joyent smartos(solaris) #639

sawanoboly opened this issue Sep 10, 2013 · 3 comments

Comments

@sawanoboly
Copy link

Since update the rubygems to 2.1.0, execute gem install causes wrong package installation.

Why it installs windows dependencies?

Environments

SunOS localhost.local 5.11 joyent_20130226T234312Z i86pc i386 i86pc Solaris

# pkgin list | grep ruby
ruby193-base-1.9.3p392 Ruby 1.9.3 release minimum base package

# ruby -e 'puts RUBY_PLATFORM'
x86_64-solaris2.11

case. version 2.0.6

# gem update --system 2.0.6 
# gem install mixlib-shellout
Successfully installed mixlib-shellout-1.2.0
1 gem installed

case. version 2.1.0

# gem update --system 2.1.0
# gem install mixlib-shellout
Successfully installed ffi-1.9.0-x86-mingw32
Successfully installed win32-process-0.7.2
Successfully installed win32-api-1.5.0-universal-mingw32
Successfully installed windows-api-0.4.2
Successfully installed windows-pr-1.2.2
Successfully installed mixlib-shellout-1.2.0-x86-mingw32
6 gems installed
@sawanoboly
Copy link
Author

additional environments information.

dump of RbConfig below.

> RbConfig::CONFIG.each_pair {|a,b|puts "#{a}:#{b}"}
DESTDIR:
MAJOR:1
MINOR:9
TEENY:1
PATCHLEVEL:392
INSTALL:/opt/local/bin/install-sh -c
EXEEXT:
prefix:/opt/local
ruby_install_name:ruby193
RUBY_INSTALL_NAME:ruby193
RUBY_SO_NAME:ruby193
exec:exec
ruby_pc:ruby-1.9.3.pc
PACKAGE:ruby
BUILTIN_TRANSSRCS: newline.c
USE_RUBYGEMS:YES
MANTYPE:man
NROFF:/usr/bin/nroff
vendorhdrdir:/opt/local/include/ruby-1.9.3/vendor_ruby
sitehdrdir:/opt/local/include/ruby-1.9.3/site_ruby
rubyhdrdir:/opt/local/include/ruby-1.9.3
UNIVERSAL_INTS:
UNIVERSAL_ARCHNAMES:
configure_args: '--enable-shared' '--enable-install-doc=no' '--program-suffix=193' '--with-soname=ruby193' '--with-sitedir=/opt/local/lib/ruby/site_ruby' '--with-vendordir=/opt/local/lib/ruby/vendor_ruby' '--with-ruby-version=1.9.3' '--with-ruby-pc=ruby-1.9.3.pc' '--enable-pthread' '--with-libiconv-prefix=/opt/local' '--prefix=/opt/local' '--build=x86_64-sun-solaris2.11' '--host=x86_64-sun-solaris2.11' '--mandir=/opt/local/man' 'build_alias=x86_64-sun-solaris2.11' 'host_alias=x86_64-sun-solaris2.11' 'CC=gcc' 'CFLAGS=-O -pipe -O2 -I/opt/local/include -I/usr/include -D_REENTRANT -I/opt/local/include/db4' 'LDFLAGS=-L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64' 'LIBS=-lumem -lm -lpthread -lrt' 'CPPFLAGS=-I/opt/local/include -I/usr/include -D_REENTRANT -I/opt/local/include/db4' 'CXX=g++' 'CXXFLAGS=-O -pipe -O2 -I/opt/local/include -I/usr/include -D_REENTRANT -I/opt/local/include/db4'
vendordir:/opt/local/lib/ruby/vendor_ruby
sitedir:/opt/local/lib/ruby/site_ruby
ruby_version:1.9.3
sitearch:x86_64-solaris2.11
arch:x86_64-solaris2.11
RI_BASE_NAME:ri
ridir:/opt/local/share/ri
rubylibprefix:/opt/local/lib/ruby
MAKEFILES:Makefile
PLATFORM_DIR:
THREAD_MODEL:pthread
SYMBOL_PREFIX:
EXPORT_PREFIX:
COMMON_HEADERS:
COMMON_MACROS:
COMMON_LIBS:
MAINLIBS:
ENABLE_SHARED:yes
DLDLIBS: -lc
SOLIBS:-lpthread -lrt -lsocket -ldl -lcrypt -lm -lumem -lm -lpthread -lrt
LIBRUBYARG_SHARED:-lruby193
LIBRUBYARG_STATIC:-lruby193-static
LIBRUBYARG:-lruby193
LIBRUBY:libruby193.so.1
LIBRUBY_ALIASES:libruby193.so.1.9.1 libruby193.so
LIBRUBY_SO:libruby193.so.1
LIBRUBY_A:libruby193-static.a
RUBYW_INSTALL_NAME:
rubyw_install_name:
LIBRUBY_DLDFLAGS: -Wl,-h,$(@F)
LIBRUBY_LDSHARED:gcc -shared
warnflags:-Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration
debugflags:-ggdb
optflags:-O3
cxxflags: -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration
cflags: -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration
cppflags:-I/opt/local/include -I/usr/include -D_REENTRANT -I/opt/local/include/db4
NULLCMD::
INSTALLDOC:nodoc
CAPITARGET:nodoc
RDOCTARGET:nodoc
EXECUTABLE_EXTS:
ARCHFILE:
LIBRUBY_RELATIVE:no
EXTOUT:.ext
PREP:miniruby
TEST_RUNNABLE:yes
setup:Setup
EXTSTATIC:
STRIP:strip
TRY_LINK:
LIBPATHENV:LD_LIBRARY_PATH_64
RPATHFLAG:
LIBPATHFLAG: -L%s
LINK_SO:
LIBEXT:a
DLEXT2:
DLEXT:so
LDSHAREDXX:g++ -shared
LDSHARED:gcc -shared
CCDLFLAGS:-fPIC
STATIC:
ARCH_FLAG:
DLDFLAGS:
ALLOCA:
WERRORFLAG:-Werror
CHDIR:cd -P
RMALL:rm -fr
RMDIRS:rmdir -p
RMDIR:rmdir
CP:cp
RM:rm -f
PKG_CONFIG:
DOXYGEN:
DOT:
MAKEDIRS:/usr/bin/mkdir -p
MKDIR_P:/usr/bin/mkdir -p
INSTALL_DATA:/opt/local/bin/install-sh -c -m 644
INSTALL_SCRIPT:/opt/local/bin/install-sh -c
INSTALL_PROGRAM:/opt/local/bin/install-sh -c
SET_MAKE:
LN_S:ln -s
NM:nm
DLLWRAP:
WINDRES:
OBJCOPY::
OBJDUMP:objdump
ASFLAGS:
AS:as
AR:ar
RANLIB:ranlib
try_header:
COUTFLAG:-o 
OUTFLAG:-o 
CPPOUTFILE:-o conftest.i
GNU_LD:no
GCC:yes
EGREP:/usr/xpg4/bin/grep -E
GREP:/usr/xpg4/bin/grep
CPP:gcc -E
CXXFLAGS:-O -pipe -O2 -I/opt/local/include -I/usr/include -D_REENTRANT -I/opt/local/include/db4
CXX:g++
OBJEXT:o
CPPFLAGS:-I/opt/local/include -I/usr/include -D_REENTRANT -I/opt/local/include/db4  -I/opt/local/include -I/usr/include -D_REENTRANT -I/opt/local/include/db4
LDFLAGS:-L. -L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64
CFLAGS:-O -pipe -O2 -I/opt/local/include -I/usr/include -D_REENTRANT -I/opt/local/include/db4 -fPIC
CC:gcc
target_os:solaris2.11
target_vendor:sun
target_cpu:x86_64
target:x86_64-sun-solaris2.11
host_os:solaris2.11
host_vendor:sun
host_cpu:x86_64
host:x86_64-sun-solaris2.11
RUBYW_BASE_NAME:rubyw
RUBY_BASE_NAME:ruby
build_os:solaris2.11
build_vendor:sun
build_cpu:x86_64
build:x86_64-sun-solaris2.11
RUBY_RELEASE_DATE:2013-02-22
RUBY_PROGRAM_VERSION:1.9.3
BASERUBY:echo executable host ruby is required.  use --with-baseruby option.; false
target_alias:
host_alias:x86_64-sun-solaris2.11
build_alias:x86_64-sun-solaris2.11
LIBS:-lpthread -lrt -lsocket -ldl -lcrypt -lm -lumem -lm -lpthread -lrt
ECHO_T:
ECHO_N:-n
ECHO_C:
DEFS:
mandir:/opt/local/man
localedir:/opt/local/share/locale
libdir:/opt/local/lib
psdir:/opt/local/share/doc/ruby
pdfdir:/opt/local/share/doc/ruby
dvidir:/opt/local/share/doc/ruby
htmldir:/opt/local/share/doc/ruby
infodir:/opt/local/share/info
docdir:/opt/local/share/doc/ruby
oldincludedir:/usr/include
includedir:/opt/local/include
localstatedir:/opt/local/var
sharedstatedir:/opt/local/com
sysconfdir:/opt/local/etc
datadir:/opt/local/share
datarootdir:/opt/local/share
libexecdir:/opt/local/libexec
sbindir:/opt/local/sbin
bindir:/opt/local/bin
program_transform_name:s&$&193&;s&^&&
exec_prefix:/opt/local
PACKAGE_URL:
PACKAGE_BUGREPORT:
PACKAGE_STRING:
PACKAGE_VERSION:
PACKAGE_TARNAME:
PACKAGE_NAME:
PATH_SEPARATOR::
SHELL:/usr/bin/bash
rubylibdir:/opt/local/lib/ruby/1.9.3
archdir:/opt/local/lib/ruby/1.9.3/x86_64-solaris2.11
sitelibdir:/opt/local/lib/ruby/site_ruby/1.9.3
sitearchdir:/opt/local/lib/ruby/site_ruby/1.9.3/x86_64-solaris2.11
vendorlibdir:/opt/local/lib/ruby/vendor_ruby/1.9.3
vendorarchdir:/opt/local/lib/ruby/vendor_ruby/1.9.3/x86_64-solaris2.11
topdir:/opt/local/lib/ruby/1.9.3/x86_64-solaris2.11

@drbrain
Copy link
Member

drbrain commented Sep 10, 2013

Duplicate of #638, related to #635

@drbrain drbrain closed this as completed Sep 10, 2013
drbrain added a commit that referenced this issue Sep 10, 2013
Previously the list of possible gems was not restricted to the local
platforms.

Now the list of candidates is filtered before attempting to resolve the
gems.

Fixes #638

Fixes #639
@sawanoboly
Copy link
Author

gem install works fine at v2.1.1 on smartmachine.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants