Replies: 8 comments
-
Actually, the example given in #994 (comment) cold look like:
|
Beta Was this translation helpful? Give feedback.
-
I've opened kind-of a duplicate with #2555 since I have |
Beta Was this translation helpful? Give feedback.
-
Yup, people seem to be interested in having native support for real excludes. What remains to be seen is whether we want package-level excludes (i.e. a preamble tag such as
This seems redundant, though. Why would you need an |
Beta Was this translation helpful? Give feedback.
-
Please note that in this specific case, the whole IOW, this is to prevent mistakes. |
Beta Was this translation helpful? Give feedback.
-
Oh! My bad, I didn't realize this. Of course, this is a good point and something to consider if/when we design the solution. I still don't like the duplicity, though. We could perhaps make it so that the Edit: Example of what I mean:
being equivalent to:
|
Beta Was this translation helpful? Give feedback.
-
Neither do I. I just hope that my example is exceptional and the entry would be enough to list in
Huh, I think my brain is going to explode now thinking about the example 🤯 But does it mean that this would include the file after all?
Also, I believe that your examples are not really equivalent. Because one of the issues is that currently |
Beta Was this translation helpful? Give feedback.
-
Yes, as I said, this is all assuming that we would not complain about unpackaged files in the case of |
Beta Was this translation helpful? Give feedback.
-
OK, anyway, it seems like this would require a lot more thought and consideration. There's no concrete implementation idea here so let's just continue the discussion in, well, the Discussions... 😄 |
Beta Was this translation helpful? Give feedback.
-
There is
%exclude
macro which excludes file from package. However, it does not exclude the file from other processing such as generating debuginfo or what not and it causes confusion (there is probably more examples in #994).So I was thinking wouldn't it be possible to have
%excludes
section instead? The idea is that the%excludes
section would list files similarly to the%files
sections, but these files would not be packaged. Let me give a brief example:Note that the
%{gem_instdir}/config
is excluded form the main package, but then it is not obvious if it should not be included elsewhere. Therefore it is listed for the second time in the%excludes
section to make it clear it is not forgotten and it should really be excluded.In the simple scenario, I can imagine the functionality as RPM creating some
%{name}-exclude
subpackage containing such files and later justrm %{name}-exclude
such package. Of course, it could also mean that some processing of such files is ignored at some point but that is just optimization.Beta Was this translation helpful? Give feedback.
All reactions