RabbitMQ 3.1.0 formula breaks installation of bash completion script #19583

Closed
andypiper opened this Issue May 3, 2013 · 5 comments

Comments

Projects
None yet
2 participants
Contributor

andypiper commented May 3, 2013

Per comments on issue #19564 there is an error when the RabbitMQ 3.1.0 formula attempts to generate the bash completion script:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1207: command not found: /usr/local/Cellar/rabbitmq/3.1.0/sbin/rabbitmqadmin --bash-completion

I've tested the previous 3.0.4 script which follows exactly the same procedure to generate the bash completion script - it unpacks the rabbit admin plugin, takes the rabbitmqadmin tool and moves it to the sbin folder - and that works fine. The structure of the files in the tarball is the same. The rabbitmqadmin tool does end up being installed, but the bash completion script is 0 bytes in length.

Contributor

adamv commented May 3, 2013

Upstream issue?

Contributor

adamv commented May 3, 2013

Hmm, script comes out running rabbitmqadmin on the command line.

Contributor

adamv commented May 3, 2013

Oh, duh, we're trying to reference sbin before it has been linked to the cellar.

Contributor

adamv commented May 3, 2013

Nevermind, I clearly have no idea what I'm talking about.

Contributor

adamv commented May 3, 2013

I figured it out for real: we run the file out of sbin but it doesn't have +x on it; previously this extracted from the tarball with +x already set.

Our post-install linking step sets +x, but that's too late to use in the formula, so we'll have to chmod it manually.

adamv closed this in 605e8a3 May 3, 2013

@handyman5 handyman5 pushed a commit to handyman5/homebrew that referenced this issue Oct 7, 2013

@adamv adamv RabbitMQ: fix generation of bash completion
Closes #19583.
fab49f3

xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.