From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 490057236480 X-Google-Groups: supmua X-Google-Thread: 3030fda1bf,84fc934da9a14f27 X-Google-Attributes: gid3030fda1bf,domainid0,public,googlegroup X-Google-NewGroupId: yes X-Received: by 10.180.98.199 with SMTP id ek7mr1021966wib.1.1421053636497; Mon, 12 Jan 2015 01:07:16 -0800 (PST) X-BeenThere: supmua@googlegroups.com Received: by 10.152.44.131 with SMTP id e3ls654908lam.91.gmail; Mon, 12 Jan 2015 01:07:16 -0800 (PST) X-Received: by 10.112.99.37 with SMTP id en5mr110573lbb.17.1421053636002; Mon, 12 Jan 2015 01:07:16 -0800 (PST) Return-Path: Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by gmr-mx.google.com with ESMTPS id oi7si61235lbb.1.2015.01.12.01.07.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 12 Jan 2015 01:07:15 -0800 (PST) Received-SPF: none (google.com: eg@gaute.vetsj.com does not designate permitted sender hosts) client-ip=209.85.217.181; Authentication-Results: gmr-mx.google.com; spf=none (google.com: eg@gaute.vetsj.com does not designate permitted sender hosts) smtp.mail=eg@gaute.vetsj.com Received: by mail-lb0-f181.google.com with SMTP id l4so16577664lbv.12 for ; Mon, 12 Jan 2015 01:07:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:subject:to:references:in-reply-to :user-agent:message-id:mime-version:content-type :content-transfer-encoding; bh=ob3pkwfjG6ZHeg6m2QnI36d4TuzYEGA5pBcPLetOMbA=; b=FB0+U0dZ0X+Yg7k+gAbWHBkr2V/zCh365/230dj9jKT+7X/axunYM9jFGqnsNLjp2n npyJn9pImXUHcakGAbj5IgCjg2cA48omYjqRYMZuyEz9GQkz5Fb1yflh+KTDQOXr83mN Qw/YHSeFQPASLLaRbWRUOZ7axQBlZQlAX0XhtHoBse4acrqMMzcPH5kbQSBQl3gmgXg1 KBFdrRKE8ppPtQOg3dvIoX6kIPv6yMyq72ip+BgvhlWFz6qMitVcIw9MbzrGfSV6cWL9 MNMB6U1OMwNLtSyqUenOQJU2KIpF9iPYEPPbCpKU0uMMaWIV8GQ7PdzEafmwqeSuqjQc ms9w== X-Gm-Message-State: ALoCoQk3HE63Eyao+vuJHiY0DiRnzCDIrxO+zb20Gq140NovJ2M7CVjiKXAII2VsZPVQPOAdFcbn X-Received: by 10.152.43.77 with SMTP id u13mr26816679lal.93.1421053635241; Mon, 12 Jan 2015 01:07:15 -0800 (PST) Return-Path: Received: from localhost ([128.39.46.106]) by mx.google.com with ESMTPSA id q17sm3914045lal.2.2015.01.12.01.07.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Jan 2015 01:07:14 -0800 (PST) Date: Mon, 12 Jan 2015 09:08:03 +0000 From: Gaute Hope Subject: Re: [sup] sup broken with ruby 2.2? To: Ruthard Baudach , supmua References: <1421014626-sup-9934@ruthard-lappi> In-Reply-To: <1421014626-sup-9934@ruthard-lappi> User-Agent: astroid/vv0.1-42-ge9d4344b (https://github.com/gauteh/astroid) Message-Id: <1421053634-astroid-0-zafkkzq4jv-1745@strange> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi all, please test/review PR #360: https://github.com/sup-heliotrope/sup/pull/360 - gaute Excerpts from Ruthard Baudach's message of January 11, 2015 23:33: > It hit me, too. >=20 > The problem seems to be a deprecated DL module, that is > substituted by Fiddle and removed from Ruby 2.2. (remember the > deprecation notice when sup started?) >=20 > Assuming that the API of fiddle is the same as of DL, I replaced 'dl' by > 'fiddle' and it seems to work: >=20 > Locate your master sup script -- it should live in sup's bin/ directory, > if you installed sup via `gem install` this should be > `$HOME/.gem/ruby/2.2.0/gems/sup-0.20.0/bin/sup` for a current sup and > ruby install >=20 > open this file in the editor of your choice. >=20 > line 111 has to be changed from >=20 > require 'dl/import' >=20 > to > require 'fiddle/import' >=20 > and line 113 from >=20 > extend DL.const_defined?(:Importer) ? DL::Importer : DL::Importable >=20 > to >=20 > extend Fiddle::Importer >=20 >=20 > Sorry to Gaute and all developers for not providing a patch, but >=20 > a) I'm not really shure this will work, someone should probably skim the > documentation of ruby 2.1.5 dl/import and ruby 2.2.0 fiddle/import > b) I'm still not really acquainted with git. >=20 > Best regards, >=20 > Ruthard >=20 >>=3D=3D Ausz=C3=BCge aus der Nachricht von gui-gui vom 2015-01-06 11:13: >> Hello all, >>=20 >> I updated my system to ruby 2.2 and I can't get sup to work. >> At first it didn't work so I figured I needed to recompile it, so I remo= ved and reinstalled it. However, simply typing 'gem install sup' fails with= this message: >>=20 >> Fetching: sup-0.20.0.gem (100%) >> Building native extensions.=C2=A0 This could take a while... >> ERROR:=C2=A0 Error installing sup: >> =C2=A0=C2=A0=C2=A0 ERROR: Failed to build gem native extension. >>=20 >> =C2=A0=C2=A0=C2=A0 /usr/bin/ruby mkrf_conf_xapian.rb >> xapian: installing xapian-ruby.. >> xapian: platform specific dependencies.. >>=20 >> rake failed, exit code 1 >>=20 >> Gem files will remain installed in /home/guiniol/.gem/ruby/2.2.0/gems/su= p-0.20.0 for inspection. >> Results logged to /home/guiniol/.gem/ruby/2.2.0/extensions/x86_64-linux/= 2.2.0/sup-0.20.0/gem_make.out >>=20 >>=20 >> I figured the problem was with xapian, so I tried to first install xapia= n-ruby and then sup, which works. However, sup doesn't launch. I get this e= rror instead: >>=20 >> /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require':= cannot load such file -- dl/import (LoadError) >> =C2=A0=C2=A0=C2=A0 from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_req= uire.rb:54:in `require' >> =C2=A0=C2=A0=C2=A0 from /home/guiniol/.gem/ruby/2.2.0/gems/sup-0.20.0/bi= n/sup:111:in `' >> =C2=A0=C2=A0=C2=A0 from /home/guiniol/.gem/ruby/2.2.0/gems/sup-0.20.0/bi= n/sup:74:in `' >> =C2=A0=C2=A0=C2=A0 from /home/guiniol/.gem/ruby/2.2.0/bin/sup:23:in `loa= d' >> =C2=A0=C2=A0=C2=A0 from /home/guiniol/.gem/ruby/2.2.0/bin/sup:23:in `' >>=20 >>=20 >> Has anyone else tried sup with ruby 2.2? Is there anything I can try to = get it to work? >>=20 >> Cheers, >>=20 >> Guillaume >>=20 >=20 > --=20 >=20 > Emails are postcards. > Put them in an envelope, > Sign and encrypt them! >=20 > My PGP-Id: 0xAC5AC6C2 >=20 > --=20 > You received this message because you are subscribed to the Google Groups= "The Sup email client" group. > To unsubscribe from this group and stop receiving emails from it, send an= email to supmua+unsubscribe@googlegroups.com. > To post to this group, send email to supmua@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgi= d/supmua/1421014626-sup-9934%40ruthard-lappi. > For more options, visit https://groups.google.com/d/optout. >=20 =