Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM plugin configuration effectively declares ownership over /usr/bin #54

Open
tallpsmith opened this issue Aug 22, 2018 · 3 comments
Open

Comments

@tallpsmith
Copy link

tallpsmith commented Aug 22, 2018

I can't be certain this is still true because I'm having trouble actually building the RPM, but I've hit this same problem myself a few times I think I'm probably close to right here.

$ rpm -ql jmxterm | grep bin
/usr/bin
/usr/bin/jmxterm

(this is on an older version of the JMXTERM package I created ages ago)

The RPM is declaring it owns /usr/bin, which I think you'll agree is overreaching a bit.

I think you will need to modify the pom so that the <directoryIncluded>false</directoryIncluded> for the jmxterm.sh section of the maven-rpm-plugin configuration..

@tallpsmith
Copy link
Author

While I'm here, I would also recommend:

                    <needarch>noarch</needarch>

You can actually build an RPM on OSX but unfortunately without the above it encodes darwin in the needed architecture, and in reality this RPM itself is architecture independent (the JVM is of course a different matter).

@tallpsmith
Copy link
Author

also..

                    <targetOS>linux</targetOS>

@jiaqi
Copy link
Owner

jiaqi commented Jan 16, 2019

Can you please make a pull request if it works with your change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants