Bug 1531855 - Rakudo: This type cannot unbox to a native string: P6opaque, Failure
Summary: Rakudo: This type cannot unbox to a native string: P6opaque, Failure
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rakudo
Version: 27
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Gerd Pokorra
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-06 07:56 UTC by Todd
Modified: 2018-03-06 17:24 UTC (History)
3 users (show)

Fixed In Version: rakudo-0.2018.02.1-1.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-06 17:24:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
P6opaque, Failure trace (9.37 KB, text/plain)
2018-01-06 08:15 UTC, Todd
no flags Details

Description Todd 2018-01-06 07:56:13 UTC
Perl 6 and Fedora 27:

Rakudo that comes with Fedora 27 rakudo-2017.08-2.fc27 is broken and zef is all messes up when downloaded and installed from git or used with the rpm (rakudo-zef) from Fedora..

Error message is when "use" is called to an installed module:

    ===SORRY!===
    This type cannot unbox to a native string: P6opaque, Failure


To fix this, 

1) install the official release of Rakudo  0.2017.08-2.fc27 for Fedora from:

      https://github.com/nxadm/rakudo-pkg/releases
      https://github.com/nxadm/rakudo-pkg/releases/download/v2017.11/rakudo-pkg-Fedora27-2017.11-01.x86_64.rpm


2) remove zef
    
     zef uninstall zef


3) remove Fedora 27's rakudo:
   
     # dnf remove rakudo
     search for an remove any remaining zef's that are hiding


4) install rakudo-pkg-Fedora27  (openssl-devel is required for Net::SMTP and Email::MIME)
     # dnf install rakudo-pkg-Fedora27-2017.11-01.x86_64.rpm openssl-devel


5) rakudo install itself and zef in /opt and no one can find it.  Add the
   following links:

       $ ln -s /opt/rakudo-pkg/share/perl6/bin/zef $HOME/.perl6/bin/zef     <-- as your user
       # ln -s /opt/rakudo-pkg/share/perl6/bin/zef /usr/bin/zef             <-- as root
       # ln -s /opt/rakudo-pkg/bin/perl6 /usr/bin/perl6                     <-- as root

6) install missing modules:
    
       # zef install Terminal::ANSIColor
       # zef install Net::SMTP
       # zef install Email::MIME

Comment 1 Todd 2018-01-06 08:12:50 UTC
Here is the full bug trace on the issue:

http://vpaste.net/WuHL1

I will create an attachment in a minute

Comment 2 Todd 2018-01-06 08:15:11 UTC
Created attachment 1377802 [details]
P6opaque, Failure trace

Comment 3 Gerd Pokorra 2018-02-24 10:27:39 UTC
I have no problems with the official perl6 packages at Fedora 27.

$ rpm -qa | grep rakudo
rakudo-zef-0.1.30-1.fc27.x86_64
rakudo-0.2017.08-2.fc27.x86_64

$ zef list --installed
===> Found via /usr/lib64/perl6
CORE:ver<6.c>:auth<perl>
===> Found via /usr/lib64/perl6/vendor
zef:ver<0.1.30>:auth<github:ugexe>

The perl6 and zef executables of the packages works fine for me.


You can install packages from

- https://github.com/nxadm/rakudo-pkg/releases

for x86_64, but this are not the official packages from the Fedora distribution.

The packages from the github site in general are more up-to-date. I will not follow the monthly release cycle of Rakudo. The rakudo packages of Fedora will be updated about every 6 months.


If you have problems with the packages provided from nxadm at github, bugzilla is not the right place to debate things about that. You can do this with the tools at github.


Anyway I will update rakudo to 2018.02.1 on Fedora 27. The packages are already built und bodhi will close this bug if they are in the update repositories.

Comment 4 Gerd Pokorra 2018-02-24 10:30:34 UTC
*** Bug 1531856 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2018-02-24 10:42:45 UTC
moarvm-0.2018.02-1.fc27 nqp-0.0.2018.02-1.fc27 rakudo-0.2018.02.1-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b9a861ef5f

Comment 6 Fedora Update System 2018-02-24 20:33:17 UTC
moarvm-0.2018.02-1.fc27, nqp-0.0.2018.02-1.fc27, rakudo-0.2018.02.1-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-b9a861ef5f

Comment 7 Fedora Update System 2018-03-06 17:24:43 UTC
moarvm-0.2018.02-1.fc27, nqp-0.0.2018.02-1.fc27, rakudo-0.2018.02.1-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.