Optware / Optware-ng

279 stars 52 forks source link

add ruby-2.3.1 rubygems-2.6.5 cyrus-sasl-2.1.26 #129

Closed Johnsik closed 8 years ago

alllexx88 commented 8 years ago

Looks good, except the rc script, which was bad originally. Please make it similar to this one (except the if [ ! -d %OPTWARE_TARGET_PREFIX%/var/log/radius ] part, which isn't needed here), replace psmisc with busybox-base in CYRUS-SASL_DEPENDS, and I'll be glad to accept this.

Johnsik commented 8 years ago

Output when install package with new script:

[~] # ipkg install /share/CACHEDEV2_DATA/Download/nas_progs/ipk/cyrus-sasl_2.1.26-1_i686.ipk
Installing cyrus-sasl (2.1.26-1) on /opt/.
Configuring cyrus-sasl.

Please read the man page of saslauthd and
check settings in /opt/etc/init.d/S52saslauthd

If you dislike the link /usr/lib/sasl2 -> /opt/lib/sasl2
then you may want to set SASL_PATH instead

Usage: /opt/etc/init.d/S52saslauthd {start|stop|restart|check}
Collected errors:
 * pkg_run_script: package "cyrus-sasl" postinst script returned status 1.
 * opkg_configure: cyrus-sasl.postinst returned 1.

It's look like someone call script without start

alllexx88 commented 8 years ago

Right, good that you've noticed this. The sources/cyrus-sasl/postinst script (https://github.com/Optware/Optware-ng/blob/master/sources/cyrus-sasl/postinst) has to be edited to run the rc script with start, and prerm (https://github.com/Optware/Optware-ng/blob/master/sources/cyrus-sasl/prerm) -- to run it with stop instead of the killall command

alllexx88 commented 8 years ago

Thank you for your contribution! Merging

Johnsik commented 8 years ago

There is problem :( When I try to install ruby gems with native extension compilaton failed.

"/home/jenkins/Optware-ng/buildroot-i686/toolchain/buildroot-i686-linux-3.2.66-glibc-5.3.0/bin/i686-buildroot-linux-gnu-gcc -o conftest -I/opt/include/ruby-2.3.0/i686-linux-gnu -I/opt/include/ruby-2.3.0/ruby/backward -I/opt/include/ruby-2.3.0 -I. -O2   -pipe -I/home/jenkins/Optware-ng/buildroot-i686/staging/opt/include  -I/home/jenkins/Optware-ng/buildroot-i686/staging/opt/include -D_FILE_OFFSET_BITS=64   -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wno-maybe-uninitialized  -fPIC  conftest.c  -L. -L/opt/lib -Wl,-R/opt/lib -L/home/jenkins/Optware-ng/buildroot-i686/staging/opt/lib -Wl,-R/home/jenkins/Optware-ng/buildroot-i686/staging/opt/lib -L. -Wl,--dynamic-linker=/opt/lib/ld-linux.so.2 -Wl,-rpath,/opt/lib -Wl,-rpath-link,/home/jenkins/Optware-ng/buildroot-i686/staging/opt/lib  -fstack-protector -L/home/jenkins/Optware-ng/buildroot-i686/staging/opt/lib -rdynamic -Wl,-export-dynamic -L/home/jenkins/Optware-ng/buildroot-i686/staging/opt/lib  -Wl,-R/home/jenkins/Optware-ng/buildroot-i686/staging/opt/lib     -Wl,-R/opt/lib -lruby  -lpthread -lgmp -ldl -lcrypt -lm   -lc "

checking if the C compiler accepts ... *** extconf.rb failed ***
alllexx88 commented 8 years ago

@Johnsik I've pushed an untested fix for this recently, and it's already on the feed for the i686 target. Please upgrade and test

alllexx88 commented 8 years ago

P.S. Of course, you need gcc package to be installed for this

Johnsik commented 8 years ago

Of course gcc is installed. It's isn't problem of ruby package? I'm try to find text jenkins inside of it. Nothing... I'm solve the problem for now to set symlinks for /home/jenkins/Optware-ng/buildroot-i686/toolchain/buildroot-i686-linux-3.2.66-glibc-5.3.0 and /home/jenkins/Optware-ng/buildroot-i686/staging/opt to /opt. All extension is compelled. :)

alllexx88 commented 8 years ago

You shouldn't need those symlinks now: I've patched rbconfig.rb to use correct paths: see ef139876c6d3582ab9c11199d5318da78bf390e6 and 5a505d8484332da7abb83f31421d928c3275944f

Johnsik commented 8 years ago

Great! I't work!