-
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
Rules are not applied to implicit created directories #85
Comments
Indeed, that feels like a bug. |
Thank you for your feedback! I thought about the problem and played around a bit. I have no experience in packaging RPMs, but from my point of view, the following points should be considered for fixing the error:
Taking these aspects into account, I created a pull request as a first draft. This could be a starting point for a potential fix of the problem. I have not adapted the integration tests. Currently, some of them fail because the implicit intermediate folders are now part of the output and the hash sums are no longer correct. At the moment, my bugfix would be a breaking change (Prefixes should be configured correctly and not ignored). If a breaking change is not an option, perhaps an extra flag should be added for the feature of generating intermediate directories automatically. Sample-Output of rpm generated by mwe:
|
That looks awesome. I think those four assumptions are correct. Especially the last one, directories like Changes of hashes are expected when the tool changes. And a breaking change would also work for me. But as always when adding some new feature, it might good to have a way to disable it. |
At the moment I (mis)use the In the current version I've added the new configuration property 'generateIntermediateDirectories' to disable the feature. At default, the property is enabled. |
Are there any news on this topic? |
Hello, I also look for the changes to this maven plugin. So I am also interested in this issue and pull request. What is the actual status, what is missing to get this feature merged? |
Sorry I lost track of the PR. Thanks @RolandRodenbeck for pinging! |
Many thanks for the quick release! Unfortunately, I encountered an error when trying to install the generated RPM package using the new feature.
It looks like the order of unpacking files with The output of the predefined rpm query commands like The output of the command I'll think about the problem again and hope that I can come up with a better solution. |
I think the ticket can be closed as the main problem has been fixed. Unfortunately, I have not yet found time for the improvement mentioned in the PR to make the build process fail if an invalid file structure is used (wrong ordering of added files / directories). I haven't forgotten about it, and it's still on my list. |
Hello,
I have noticed that rules are not applied to implicitly created directories. For example, when a file is created in a target directory that does not yet exist, no rules are applied to these directories. For explicitly created directories, the rules are applied (see example below).
I am not sure if this is a bug or the expected behavior. I would have expected that the rules are applied to all applicable intermediate directories in a path as well.
Can you please clarify that? Thanks in advance!
Example
To reproduce the described problem, I have attached a simplified MWE (Used rpm-bilder-Plugin 1.11.0): mwe.zip
Ruleset:
Entries:
Output of created files/directroies with permissions after installation of built rpm from MWE:
Expected output of created files/directroies:
The text was updated successfully, but these errors were encountered: