-
Notifications
You must be signed in to change notification settings - Fork 107
Streamline server RPM spec file #2124
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
Although the Agent spec file efficiently references directories to be packaged hierarchically, the Server spec file has a full list of the individual packaged files. This is unnecessarily awkward to maintain, and error prone. The challenge here was some experimentation (the documentation is terrible) to figure out the order of precedence across the %attr and %defattr with directories and contained individual files. I added some comments in the spec file to clarify.
|
FYI, it's probably worth mentioning that I ran through several installs on my test VM to verify the behavior; the files are there, and the permissions look right. The RPM is available as |
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.
Seems good.
You don't want to use the directory-reference approach for the root directory, /%{installdir}/, as well? (Is there some hidden requirement/benefit to listing those files explicitly?) Would doing so allow you to omit listing anything else (except for the /%{installdir}/bin exception, the exception to that exception, and the other exception)?
I briefly considered it; it'd mean trying to break in the middle of the assembly process and make sure there's nothing else that we don't want. I also thought that calling out the "installer config" type files explicitly was probably useful documentation. |
|
Works for me. |
|
@dbutenhof So, how are they fetching files now or how is it working? |
The RPM builder has always had the capability to process an entire directory tree with a single line in the The only tricky part here (requiring several build/install cycles to debug) was working out how to specify a directory tree with one I submitted multiple builds to COPR and installed them on my VM to check the results. |
Ohh That's how.. Thanks |
Although the Agent spec file efficiently references directories to be packaged hierarchically, the Server spec file has a full list of the individual packaged files. This is unnecessarily awkward to maintain, and error prone. The challenge here was some experimentation (the documentation is terrible) to figure out the order of precedence across the %attr and %defattr with directories and contained individual files. I added some comments in the spec file to clarify.
Although the Agent spec file efficiently references directories to be packaged hierarchically, the Server spec file has a full list of the individual packaged files. This is unnecessarily awkward to maintain, and error prone.
The challenge here was some experimentation (the documentation is terrible) to figure out the order of precedence across the
%attrand%defattrwith directories and contained individual files. I added some comments in the spec file to clarify.