-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[RFE] Execute dependency generators on the .spec file which ships them #782
Comments
I think if you override %__ruby_provides to %{buildroot}…, that should do the trick... |
But I agree, it is ugly. |
I don't think I have anything to override, because I would need to have the *.attr file installed. I can define the |
I don't believe it's that easy if you don't already have a Looking at the code, I think that with ugly hacks it might be possible to get around all of that, but I can't imagine the rather small benefit would justify the ugliness given the tiny number of packages which install file attributes. |
Yup, this is one of the main shortcomings of the "new" attr-based dependency generator and was just recently discussed again in the context of dynamic buildrequires. Besides self-dependencies (eg modules included in a language standard library and such), it'd be useful for source-based dependencies (automated depgen without shipping an otherwise irrelevant file in the package). |
Looking into this again and in more detail, I think it would be enough if there were some My (probably very silly idea) would be to ship |
Of course, there is no need to ship a file if the proper keyword (e.g. Lines 1186 to 1196 in c284d09
I think that if we had the proper keyword, I could try to come up with a patch |
Other option for me is to extract the generators into separate package, to have them available in the right place for the build. This has its own pros/cons |
Should I create package shipping such file for Fedora 🤪 It would need to be explicitly BRed, so it should not create any havoc 🤔 |
More details including implementation, where I went with |
This generator can be used by .spec file, which ships their own generators: ~~~ Source1: generator.req %global __local_generator_requires bash %{SOURCE1} ~~~ Resolves rpm-software-management#782
This generator can be used by .spec file, which ships their own generators: ~~~ Source1: generator.req %global __local_generator_requires bash %{SOURCE1} ~~~ Resolves rpm-software-management#782
This generator can be used by .spec file, which ships their own generators: ~~~ Source1: generator.req %global __local_generator_requires bash %{SOURCE1} %global __local_generator_path .* ~~~ Resolves rpm-software-management#782
This generator can be used by .spec file, which ships their own generators: ~~~ Source1: generator.req %global __local_generator_requires bash %{SOURCE1} %global __local_generator_path .* ~~~ Resolves rpm-software-management#782
This can declare file attributes which details can be defined in the spec file. This allows enabling file attributes and their dependency generators even if they are only shipped in the package itself and are not yet installed. The names need to be separated by colons (:). Co-authored-by: Florian Festi <ffesti@redhat.com> Resolves: rpm-software-management#782
This can declare file attributes which details can be defined in the spec file. This allows enabling file attributes and their dependency generators even if they are only shipped in the package itself and are not yet installed. The names need to be separated by colons (:). Co-authored-by: Florian Festi <ffesti@redhat.com> Resolves: rpm-software-management#782
This can declare file attributes which details can be defined in the spec file. This allows enabling file attributes and their dependency generators even if they are only shipped in the package itself and are not yet installed. The names need to be separated by colons (:). Co-authored-by: Florian Festi <ffesti@redhat.com> Resolves: rpm-software-management#782
This can declare file attributes which details can be defined in the spec file. This allows enabling file attributes and their dependency generators even if they are only shipped in the package itself and are not yet installed. The names need to be separated by colons (:). Co-authored-by: Florian Festi <ffesti@redhat.com> Resolves: rpm-software-management#782
This can declare file attributes which details can be defined in the spec file. This allows enabling file attributes and their dependency generators even if they are only shipped in the package itself and are not yet installed. The names need to be separated by colons (:). Co-authored-by: Florian Festi <ffesti@redhat.com> Resolves: rpm-software-management#782
This can declare file attributes which details can be defined in the spec file. This allows enabling file attributes and their dependency generators even if they are only shipped in the package itself and are not yet installed. The names need to be separated by colons (:). Co-authored-by: Florian Festi <ffesti@redhat.com> Resolves: rpm-software-management#782
Allow declaring file attributes from the spec via %_local_file_attrs macro. This allows enabling file attributes and their dependency generators even if they are only shipped in the package itself and are not yet installed. The names need to be separated by colons (:). Co-authored-by: Florian Festi <ffesti@redhat.com> Resolves: rpm-software-management#782
Allow declaring file attributes from the spec via %_local_file_attrs macro. This allows enabling file attributes and their dependency generators even if they are only shipped in the package itself and are not yet installed. The names need to be separated by colons (:). Co-authored-by: Florian Festi <ffesti@redhat.com> Resolves: #782
It would be very handy, if the dependency generators shipped by package could be used during build already.
E.g. when we build ruby package, it builds rubygems-devel package, which ships generators for rubygem- packages. But it also provides dozen of rubygem- subpackages and it would be very handy to utilize that generator already.
The text was updated successfully, but these errors were encountered: