-
Notifications
You must be signed in to change notification settings - Fork 32
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
Make configuration files being ignored during verify #41
Comments
It might indeed be interesting to be able to configure the verify parameters. However, I am not sure "how". One thing to be figured out 😀 It is not simple as adding I think what could be a proper solution, would be to add a |
I have programmed an experimental workaround that solves the problem in my case, but might be an acceptable solution for others, too. I assume that for all practical purposes, if a file inside the rpm is classififed "configuration" with "noreplace", then it is reasonable to ignore it during verification without any further ado.
Here, the statement I realize that this proposed change is a bit drastic and changes the behaviour compared to earlier versions of org.eclipse.packagedrone.utils.rpm. A more versatile and canonical solution would be the one ctron has suggested. That would require some (straightforward) changes both in the project org.eclipse.packagedrone.utils.rpm and in the project de.dentrassi.maven:rpm. Now my question is: How to proceed? Of course, I would prefer a "sustainable" solution, where all code changes go into the official code base of the respective open source projects. |
see ctron/rpm-builder#41 Signed-off-by: Oliver Matz <[email protected]>
Requires modifications from eclipse/packager#6 Fix for ctron#41. Signed-off-by: Oliver Matz <[email protected]>
The problem should be solved with my two pull requests What now? |
see ctron/rpm-builder#41 Signed-off-by: Oliver Matz <[email protected]>
* New test EntryDetailsTest * see #42 * EntryDetailsTest: verify return value of EntryDetails.apply(..) * Allow to control verification flags. * Requires modifications from eclipse/packager#6 * Fix for #41. * upgrade org.eclipse.packager:packager-rpm to 0.16.0 * resolve merge conflict * rename VerifyDetails.md5 to fileDigest, add javadoc * add license header * primitive boolean rather than Boolean, * dadaistic javadoc to suppress warnings Signed-off-by: Oliver Matz <[email protected]>
Version 1.3.0 is released which should contain this. Maybe you can test and close the issue. And thank you for the contribution! |
Fixed in Version 1.3.0.
Note the difference between a missing and an empty The appropriate configuration for my original use case is:
|
We are facing essentially the same problem as described in
https://stackoverflow.com/questions/38993603/rpm-verify-ignore-config-files:
The pom.xml contains an entry like this:
The rpm-maven-plugin creates an rpm file that contains a configuration file
configure-foo.properties
.After the user has edited that file and uses RPM's verification as described in
https://www.linux.co.cr/distributions/review/2002/red-hat-8.0/maximum-rpm-1.0/ch-rpm-verify.html
that tool treats this as a mismatch.
I would expect the file
configure-foo.properties
to be ignored, which should be possible with the spec file directive%verify(owner group) /opt/foo/configure-foo.properties
.Basically, I see three ways to achieve this in our build process:
plugin adds a suitable
%verify
directive by default, or<verifyexclude>true</verifyexclude>
to the respective entry in the pom.xml, or<verifyparams>owner group</verifyparams>
to the respective entry in the pom.xmlI slightly favour the first option.
This issues is related to #7
The text was updated successfully, but these errors were encountered: