msva / mva-overlay

mva's sandbox overlay
55 stars 26 forks source link

www-servers/nginx does not compile with ruby20 #6

Closed myallod closed 10 years ago

myallod commented 10 years ago

[ebuild R #] www-servers/nginx-1.5.5::mva USE="debug http http-cache luajit pam pcre ssl -aio -ipv6 -libatomic -pcre-jit -perftools -rrd -rtmp (-selinux) -vim-syntax" NGINX_MODULES_HTTP="access auth_basic charset flv gzip limit_conn limit_req passenger perl proxy rewrite stub_status sub -addition -array_var -auth_request -autoindex -browser -cache_purge -coolkit -ctpp -dav -dav_ext -degradation -drizzle -echo -empty_gif -ey_balancer -fancyindex -fastcgi -form_input -geo -geoip -gunzip -gzip_static -headers_more -iconv -image_filter -lua -map -memc -memcached -metrics -mp4 -naxsi -ndk -postgres -push_stream -random_index -rds_json -realip -referer -scgi -secure_link -set_misc -slowfs_cache -spdy -split_clients -srcache -ssi -supervisord -upload_progress -upstream_check -upstream_ip_hash -userid -uwsgi -xslt -xss" NGINX_MODULES_MAIL="-imap -pop3 -smtp" RUBY_TARGETS="ruby20 -jruby -ruby18 -ruby19*" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Verifying ebuild manifests

Emerging (1 of 1) www-servers/nginx-1.5.5 from mva

  • nginx-1.5.5.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
  • passenger-release-4.0.18.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
  • ngx_http_auth_pam_module-1.2.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
  • Creating nginx user and group ... [ ok ]
  • please use append-cppflags for preprocessor flags Unpacking source... Unpacking nginx-1.5.5.tar.gz to /var/tmp/portage/www-servers/nginx-1.5.5/work Unpacking passenger-release-4.0.18.tar.gz to /var/tmp/portage/www-servers/nginx-1.5.5/work Unpacking ngx_http_auth_pam_module-1.2.tar.gz to /var/tmp/portage/www-servers/nginx-1.5.5/work Source unpacked in /var/tmp/portage/www-servers/nginx-1.5.5/work Preparing source in /var/tmp/portage/www-servers/nginx-1.5.5/work/nginx-1.5.5 ...
  • Applying nginx-1.5.5-fix-perl-install-path.patch ... [ ok ]
  • Applying passenger-4.0.18-gentoo.patch ... [ ok ]
  • Applying passenger-4.0.18-ldflags.patch ... [ ok ]
  • Applying passenger-4.0.18-contenthandler.patch ... [ ok ]
  • Running prepare phase for ruby20 ... /usr/bin/env: ruby19: No such file or directory
  • ERROR: www-servers/nginx-1.5.5::mva failed (prepare phase):
  • Passenger premake for /usr/bin/ruby20 failed!
  • Call stack:
  • ebuild.sh, line 93: Called src_prepare
  • environment, line 5988: Called _ruby_each_implementation 'passenger_premake'
  • environment, line 815: Called _ruby_invoke_environment 'ruby20' 'passenger_premake'
  • environment, line 867: Called passenger_premake
  • environment, line 4726: Called die
  • The specific snippet of code:
  • rake nginx || die "Passenger premake for ${RUBY} failed!"
  • If you need support, post the output of emerge --info '=www-servers/nginx-1.5.5::mva',
  • the complete build log and the output of emerge -pqv '=www-servers/nginx-1.5.5::mva'. !!! When you file a bug report, please include the following information: GENTOO_VM= CLASSPATH="" JAVA_HOME="" JAVACFLAGS="" COMPILER="" and of course, the output of emerge --info =nginx-1.5.5
  • The complete build log is located at '/var/tmp/portage/www-servers/nginx-1.5.5/temp/build.log'.
  • The ebuild environment file is located at '/var/tmp/portage/www-servers/nginx-1.5.5/temp/environment'.
  • Working directory: '/var/tmp/portage/www-servers/nginx-1.5.5/work/ruby20/nginx-1.5.5/passenger-release-4.0.18'
  • S: '/var/tmp/portage/www-servers/nginx-1.5.5/work/ruby20/nginx-1.5.5'

Failed to emerge www-servers/nginx-1.5.5, Log file:

'/var/tmp/portage/www-servers/nginx-1.5.5/temp/build.log'

  • Messages for package www-servers/nginx-1.5.5:
  • ERROR: www-servers/nginx-1.5.5::mva failed (prepare phase):
  • Passenger premake for /usr/bin/ruby20 failed!
  • Call stack:
  • ebuild.sh, line 93: Called src_prepare
  • environment, line 5988: Called _ruby_each_implementation 'passenger_premake'
  • environment, line 815: Called _ruby_invoke_environment 'ruby20' 'passenger_premake'
  • environment, line 867: Called passenger_premake
  • environment, line 4726: Called die
  • The specific snippet of code:
  • rake nginx || die "Passenger premake for ${RUBY} failed!"
  • If you need support, post the output of emerge --info '=www-servers/nginx-1.5.5::mva',
  • the complete build log and the output of emerge -pqv '=www-servers/nginx-1.5.5::mva'.
  • The complete build log is located at '/var/tmp/portage/www-servers/nginx-1.5.5/temp/build.log'.
  • The ebuild environment file is located at '/var/tmp/portage/www-servers/nginx-1.5.5/temp/environment'.
  • Working directory: '/var/tmp/portage/www-servers/nginx-1.5.5/work/ruby20/nginx-1.5.5/passenger-release-4.0.18'
  • S: '/var/tmp/portage/www-servers/nginx-1.5.5/work/ruby20/nginx-1.5.5'
msva commented 10 years ago

show me eselect ruby list, please

myallod commented 10 years ago

eselect ruby list Available Ruby profiles: [1] ruby20 (with Rubygems) *

emerge --info !!! Repository 'srcshelton' is missing masters attribute in '/var/lib/layman/srcshelton/metadata/layout.conf' !!! Set 'masters = gentoo' in this file for future compatibility

Portage 2.2.1 (default/linux/amd64/13.0, gcc-4.4.5, glibc-2.15-r3, 3.8.13-gentoo-dom0 x86_64)

System uname: Linux-3.8.13-gentoo-dom0-x86_64-Intel-R-_Xeon-R-_CPUE5506@_2.13GHz-with-gentoo-2.2 KiB Mem: 8441348 total, 741188 free KiB Swap: 2097148 total, 2079888 free Timestamp of tree: Wed, 02 Oct 2013 15:30:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p45 dev-lang/python: 2.6.6-r1, 2.7.5-r2, 3.1.3-r1, 3.2.5-r2 dev-util/cmake: 2.8.10.2-r2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.11.6, 1.12.6, 1.13.4 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.4.5, 4.5.3-r2, 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo mva calculate srcshelton ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -mtune=generic -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind /var/lib/redmine/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /var/lib/redmine/config/locales /var/lib/redmine/config/settings.yml" CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="ru_RU.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/mva /var/lib/layman/calculate /var/lib/layman/srcshelton" USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl openmp pam pcre readline session sse sse2 ssl tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="itk" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NGINX_MODULES_HTTP="flv perl sub limit_req limit_conn rewrite gzip auth_basic stub_status access proxy charset passenger" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

msva commented 10 years ago

Strange. It works with ruby20 just fine for me on many computers.

Do you have ruby-1.9 or something, that requires it installed in the system?

myallod commented 10 years ago

Здравствуйте Михаил.

Я удалил флаг ruby18 и ruby19, перекомпилил всё, что зависело от ruby18 и ruby19, но вот nginx-1.5.5 не собирается с ruby20. Причём passenger компилится нормально:

tar -xzf /usr/portage/distfiles/passenger-release-4.0.18.tar.gz cd passenger-release-4.0.18/ rake nginx ... ... creating Makefile cd 'buildout/ruby/ruby-2.0.0-x86_64-linux/' && make compiling /root/passenger-release-4.0.18/ext/ruby/passenger_native_support.c linking shared-object passenger_native_support.so

rake --version rake, version 10.1.0

which rake /usr/bin/rake

myallod commented 10 years ago

Нашёл проблему rake из ebuild вызывался как /usr/local/bin/rake, в котором первая строка была:

!/usr/bin/env ruby19

После удаления этого файла nginx собрался (используя /usr/bin/rake). Спасибо

msva commented 10 years ago

1) хотелось бы, всё же, обратить внимание на то, что я не Михаил (в отличие от того, кто на гитхабе зарегистрирован под моим основным ником, @mva . Но он — не русский). 2) Да, я приблизительно подобное и предполагал (что проблема в каком-то из скриптов в системе) 3) я тут бампнул NginX до 1.5.6 (ну и за компанию — некоторые модули, включая Пассажира)

myallod commented 10 years ago

Ой, прошу прощения за ошибку в имени :)