You are not logged in.

#1 2015-07-23 01:24:04

khouli
Member
Registered: 2014-12-14
Posts: 70

Packages are unable to find certain Ruby gems during build

Packages that require certain Ruby gems fail to build for me. For example, if I try to install the current gitlab package from the AUR I get this error message:

An error occurred while installing rugged (0.22.2), and Bundler cannot continue.
Make sure that `gem install rugged -v '0.22.2'` succeeds before bundling.

Installing rugged 0.22.2 doesn't seem to fix this. It installs but the gitlab build still fails.

$ gem install rugged -v '0.22.2'
Building native extensions.  This could take a while...
Successfully installed rugged-0.22.2
1 gem installed

What I can do to fix this is change the PKGBUILD and insert a command to install rugged 0.22.2 before building.

# before this line the PKGBUILD is unchanged
prepare() {
    gem install rugged -v 0.22.2
    # after this line the PKGBUILD is unchanged

The package then builds and installs without complaint but I'm not clear on what's going on here so I don't know if I'm just masking the error. I can see that part of the build() function involves fetching Ruby gems but it doesn't fetch rugged.

I have rbenv installed if that's relevant. I know it aliases some common Ruby commands.

I also had a very similar situation with the metasploit package and some other Ruby gem -- I forget which.

Offline

#2 2015-07-23 17:16:03

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Packages are unable to find certain Ruby gems during build

I've always had problems building gitlab from the AUR with the same error as you, but I found that simply repeating makepkg several times does the trick and it will eventually build.

Possibly something to do with the mirror the gems come from timing out.

Last edited by Slithery (2015-07-23 17:16:40)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2015-07-23 18:08:39

khouli
Member
Registered: 2014-12-14
Posts: 70

Re: Packages are unable to find certain Ruby gems during build

Weird, same gem too?

Offline

#4 2015-07-23 19:05:13

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Packages are unable to find certain Ruby gems during build

Most of the time yes, same gem.

I only found my solution because one time I tried to build, the error was for a different gem; this prompted me to keep retrying to see if I could figure out a pattern.

Last edited by Slithery (2015-07-23 19:07:44)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB