Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Simplify, fix and clean up the spec file and related files #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

thias
Copy link

@thias thias commented Oct 26, 2016

These are a lot of changes, so feel free to close/ignore and I won't be offended! 😄

There are many minor things, so I'll just outline the major ones :

  • It's now also possible to build from the spec file (using mock for instance).
  • The package is noarch, which is more correct and doesn't create any debuginfo by default.
  • The extra service.d file was merged into the main unit file.
  • The java-headless requirement was added, in order to pull in a JRE if none was present.
  • zkcli was moved to /usr/bin.

Let me know if there is anything you dislike or if you have any questions regarding some specific changes.

EnvironmentFile=/etc/sysconfig/zookeeper
Environment=CLASSPATH=@CLASSPATH@
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to change this to CLASSPATH=.:/usr/share/java/zookeeper/* and remove all CLASSPATH manipulations from the spec file

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that works, sure!

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does.

minsize 10M
copytruncate
compress
missingok
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove delaycompress and notifempty?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a minsize set, so notifempty becomes irrelevant. As for delaycompress, it's only really useful when you think the log file will still be written to for a short file after being rotated, and I don't think that can ever be the case with copytruncate.

Michal Lisowski and others added 2 commits November 22, 2016 15:30
@embusalacchi
Copy link

Any plan to merge this soon?

@id
Copy link
Owner

id commented Nov 20, 2019

@embusalacchi I would like to see the comment about CLASSPATH manupulation to be addressed.
Also, there are some conflicts.

@embusalacchi
Copy link

I’ve never built an RPM before but I am looking to use this and update the version. I’ll see if I can figure out the classpath changes and submit them for approval. If not I might just try for a zookeeper version update with your original code (which seems to work fine without this PR).

thias added a commit to thias/zookeeper-el7-rpm that referenced this pull request Jan 15, 2020
* Allow package name override, for multiple versions in a single repository
* Hardcode working CLASSPATH in the systemd service file
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants