-
Notifications
You must be signed in to change notification settings - Fork 107
Unify agent and server RPM builds #2187
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
Conversation
dbutenhof
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments and questions...
portante
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, but if you feel like making a small change, that would be great.
ndokos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - modulo Peter's comment on the cp.
* Unify agent and server container makefiles * Code review feedback * More code review feedback
* Unify agent and server container makefiles * Code review feedback * More code review feedback
Previous to this PR, the agent and server each had separate makefiles which included separate subordinate
rpm.mkfiles, but overall, the contents were nearly identical. This PR creates a commonrpm.mkfile, and strips the agent and server makefiles down to little more than anincludedirective.I tested by comparing the output of the RPM builds without these changes and to the output with these changes; the differences were all reasonable and expected. And, I was able to install the resulting RPMs in the
pbench-develcontainer.Some of the items to pay particular attention to:
rpm-dirstarget is now a dependency of all the targets which require one or more of the directories which it creates. This means that this target no longer needs to be built explicitly, and it means that the other targets no longer need to explicitly create those directories.patchestarget now references the current directory as '.' rather than via a calculated absolute reference. This is simpler and hopefully safe.pbench-configandpbench-serverto change the script interpreter to/usr/bin/env python3; this seems to be unnecessary, so I've removed it.:=instead of=for all variables which are set to expressions which reference values outside the makefile, such as external files or shell call-outs, so that the expressions are evaluated only once.clean-sha1target worked before this change; so I removed it.verycleantarget withdistcleanand made it clean more thancleandoes.