Qt and Hadoop conflict #15501

Closed
cooljeanius opened this Issue Oct 17, 2012 · 14 comments

Projects

None yet

5 participants

@cooljeanius

If you have Homebrew's Qt installed and linked, and then try to do brew link hadoop, it will fail because Qt's rcc will be blocking Hadoop's. Checking the rcc symlink confirms that the current one belongs to Homebrew's Qt.

@MikeMcQuaid
Member

I know what Qt's rcc is used for. Can you tell me what Hadoop's is?

@cooljeanius

Hadoop's rcc is "The Hadoop Record Compiler". The one in its bin directory is just a shell script execing the one in its libexec/bin directory. The one in its libexec/bin directory is also a shell script. This one basically just sets a bunch of environment variables and then runs the java version of it.

@MikeMcQuaid
Member

I reckon we should rename the Hadoop rcc or just put it not in bin. Qt's rcc will break things pretty badly if renamed. Thoughts?

@adamv
Contributor
adamv commented Oct 20, 2012

What's Qt's rcc? I've never directly ran any bins from Qt.

@MikeMcQuaid
Member

The QResource compiler. Turns e.g. icons into a form that gets them embedded into executables. It's run implicitly by qmake/cmake, you would be unlikely to run it directly.

@cooljeanius

so now that Homebrew has support for libexec scripts/helpers, could one of those possibly be used for this issue?

@Sharpie
Contributor
Sharpie commented Nov 2, 2012

so now that Homebrew has support for libexec scripts/helpers, could one of those possibly be used for this issue?

I don't think so. As Mike stated rcc is pretty deeply embedded in the build process of any software that uses Qt and has been around for a decade or two.

The Hadoop team really should have picked a different name.

@cooljeanius

No I meant use the libexec script/helper thing for Hadoop's rcc, not Qt's. Hadoop's rcc that it has in its bin just calls the libexec one anyway, so we could just leave out Hadoop's rcc that it puts in bin and just use its libexec one.

@tispratik
Contributor

I am facing the same issue, is there any workaround available?

@Sharpie
Contributor
Sharpie commented Dec 16, 2012

I am facing the same issue, is there any workaround available?

Noone has taken the time to write one. Pull request welcomed!

@cooljeanius

Issue #16591 was somewhat similar to this one and @adamv solved it pretty quickly, perhaps he could do the same here?

@adamv
Contributor
adamv commented Dec 17, 2012

"service" didn't need to be public, though; seems that both of these are publicly visible utils?

@cooljeanius

Macports doesn't make Hadoop's rcc publicly visible, it just leaves it in /opt/local/share/java/hadoop-1.1.1/bin. Perhaps Homebrew could do something similar?

@adamv
Contributor
adamv commented Dec 17, 2012

Ok, that's good enough for me. Diving in.

@adamv adamv added a commit that closed this issue Dec 17, 2012
@adamv adamv Hadoop: don't link rcc into bin
Closes #15501.
4867f92
@adamv adamv closed this in 4867f92 Dec 17, 2012
@snakeyroc3 snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
@adamv adamv Hadoop: don't link rcc into bin
Closes #15501.
7c776e1
@xu-cheng 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.