Adapting Uyuni-Server-release
![](https://seccdn.libravatar.org/avatar/9df286bd635cdacb23a5bed82b5dc6f1.jpg?s=120&d=mm&r=g)
Hello, last package that I need adapting for Enterprise Linux is "Uyuni-Server-release.rpm". Can you tell me how to go about that one? Uyuni-Server-release.spec has the placeholder(?) ___PRODUCT_DEPENDENCIES___ How is that one filled (and with what)? Also there is _service:product_converter:Uyuni-Server-release.spec . I assume i shouldn't touch that one? How do I have to update it? Thank you and best wishes, Stefan
![](https://seccdn.libravatar.org/avatar/e6d0c9f42625f8f9f45b6bd11ffbb77b.jpg?s=120&d=mm&r=g)
Hi SUSE introduced "Products" beside to Packages. These products are part of a package - normally the release package. All the magic is implemented inside of the buildseervice and the "product converter/builder". The service used in 000product/ is the product_converter (see content of _service) and this use the templates and replace the placeholders like ___PRODUCT_DEPENDENCIES___ . The result can be seen in the auto generated result. In your case _service:product_converter:Uyuni-Server-release.spec Uyuni-Server-release.spec -> product_converter -> _service:product_converter:Uyuni-Server-release.spec If you just need additional dependencies, you can simply write them into the Uyuni-Server-release.spec file. If you need to change an autogenerated one, it is more tricky. Some of these extra dependencies come from the Uyuni-Server.product file. In this case please tell us what is the exact change you need and we can try to find a way. Another option might be to not use the release package/product in case of Alma Linux. At least not the package. The product also build a repository. That part is something you want as well. But the package can be made optional. Am Dienstag, 9. November 2021, 20:37:22 CET schrieb Stefan Bluhm:
Hello,
last package that I need adapting for Enterprise Linux is "Uyuni-Server-release.rpm".
Can you tell me how to go about that one?
Uyuni-Server-release.spec has the placeholder(?) ___PRODUCT_DEPENDENCIES___
How is that one filled (and with what)?
Also there is _service:product_converter:Uyuni-Server-release.spec . I assume i shouldn't touch that one? How do I have to update it?
Thank you and best wishes,
Stefan
-- Regards Michael Calmer -------------------------------------------------------------------------- Michael Calmer SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, D-90409 Nuernberg T: +49 (0) 911 74053 0 F: +49 (0) 911 74053575 - e-mail: Michael.Calmer@suse.com -------------------------------------------------------------------------- SUSE Software Solutions Germany GmbH, GF: Ivo Totev (HRB 36809, AG Nürnberg)
![](https://seccdn.libravatar.org/avatar/9df286bd635cdacb23a5bed82b5dc6f1.jpg?s=120&d=mm&r=g)
Thank you for the detailed explanation, Michael. So it seems that the auto-generated line needs to be changed in "Uyuni-Server.product" (and probably also "Uyuni-Proxy.product"): # dnf install Uyuni-Server-release-2021.11-1.1.uyuni1.x86_64.rpm Error: Problem: conflicting requests - nothing provides product(Leap) >= 15.3 needed by Uyuni-Server-release-2021.11-1.1.uyuni1.x86_64 Would a cheap %if !(0%{?rhel}) ___PRODUCT_DEPENDENCIES___ %endif in the spec files do? Best wishes, Stefan ----- Ursprüngliche Mail ----- Von: "Michael Calmer" <mc@suse.de> An: "devel" <devel@lists.uyuni-project.org> Gesendet: Mittwoch, 10. November 2021 10:06:20 Betreff: Re: Adapting Uyuni-Server-release Hi SUSE introduced "Products" beside to Packages. These products are part of a package - normally the release package. All the magic is implemented inside of the buildseervice and the "product converter/builder". The service used in 000product/ is the product_converter (see content of _service) and this use the templates and replace the placeholders like ___PRODUCT_DEPENDENCIES___ . The result can be seen in the auto generated result. In your case _service:product_converter:Uyuni-Server-release.spec Uyuni-Server-release.spec -> product_converter -> _service:product_converter:Uyuni-Server-release.spec If you just need additional dependencies, you can simply write them into the Uyuni-Server-release.spec file. If you need to change an autogenerated one, it is more tricky. Some of these extra dependencies come from the Uyuni-Server.product file. In this case please tell us what is the exact change you need and we can try to find a way. Another option might be to not use the release package/product in case of Alma Linux. At least not the package. The product also build a repository. That part is something you want as well. But the package can be made optional. Am Dienstag, 9. November 2021, 20:37:22 CET schrieb Stefan Bluhm:
Hello,
last package that I need adapting for Enterprise Linux is "Uyuni-Server-release.rpm".
Can you tell me how to go about that one?
Uyuni-Server-release.spec has the placeholder(?) ___PRODUCT_DEPENDENCIES___
How is that one filled (and with what)?
Also there is _service:product_converter:Uyuni-Server-release.spec . I assume i shouldn't touch that one? How do I have to update it?
Thank you and best wishes,
Stefan
-- Regards Michael Calmer -------------------------------------------------------------------------- Michael Calmer SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, D-90409 Nuernberg T: +49 (0) 911 74053 0 F: +49 (0) 911 74053575 - e-mail: Michael.Calmer@suse.com -------------------------------------------------------------------------- SUSE Software Solutions Germany GmbH, GF: Ivo Totev (HRB 36809, AG Nürnberg)
![](https://seccdn.libravatar.org/avatar/e6d0c9f42625f8f9f45b6bd11ffbb77b.jpg?s=120&d=mm&r=g)
Hi Am Donnerstag, 11. November 2021, 12:09:18 CET schrieb Stefan Bluhm:
Thank you for the detailed explanation, Michael.
So it seems that the auto-generated line needs to be changed in "Uyuni-Server.product" (and probably also "Uyuni-Proxy.product"):
# dnf install Uyuni-Server-release-2021.11-1.1.uyuni1.x86_64.rpm Error: Problem: conflicting requests - nothing provides product(Leap) >= 15.3 needed by Uyuni-Server-release-2021.11-1.1.uyuni1.x86_64
Would a cheap
%if !(0%{?rhel}) ___PRODUCT_DEPENDENCIES___ %endif
in the spec files do?
Yes, I think this could work. We should try this.
Best wishes,
Stefan
----- Ursprüngliche Mail ----- Von: "Michael Calmer" <mc@suse.de> An: "devel" <devel@lists.uyuni-project.org> Gesendet: Mittwoch, 10. November 2021 10:06:20 Betreff: Re: Adapting Uyuni-Server-release
Hi
SUSE introduced "Products" beside to Packages. These products are part of a package - normally the release package. All the magic is implemented inside of the buildseervice and the "product converter/builder". The service used in 000product/ is the product_converter (see content of _service) and this use the templates and replace the placeholders like ___PRODUCT_DEPENDENCIES___ .
The result can be seen in the auto generated result. In your case _service:product_converter:Uyuni-Server-release.spec
Uyuni-Server-release.spec -> product_converter -> _service:product_converter:Uyuni-Server-release.spec
If you just need additional dependencies, you can simply write them into the Uyuni-Server-release.spec file. If you need to change an autogenerated one, it is more tricky. Some of these extra dependencies come from the Uyuni-Server.product file.
In this case please tell us what is the exact change you need and we can try to find a way. Another option might be to not use the release package/product in case of Alma Linux. At least not the package. The product also build a repository. That part is something you want as well. But the package can be made optional.
Am Dienstag, 9. November 2021, 20:37:22 CET schrieb Stefan Bluhm:
Hello,
last package that I need adapting for Enterprise Linux is "Uyuni-Server-release.rpm".
Can you tell me how to go about that one?
Uyuni-Server-release.spec has the placeholder(?) ___PRODUCT_DEPENDENCIES___
How is that one filled (and with what)?
Also there is _service:product_converter:Uyuni-Server-release.spec . I assume i shouldn't touch that one? How do I have to update it?
Thank you and best wishes,
Stefan
-- Regards Michael Calmer -------------------------------------------------------------------------- Michael Calmer SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, D-90409 Nuernberg T: +49 (0) 911 74053 0 F: +49 (0) 911 74053575 - e-mail: Michael.Calmer@suse.com -------------------------------------------------------------------------- SUSE Software Solutions Germany GmbH, GF: Ivo Totev (HRB 36809, AG Nürnberg)
participants (2)
-
Michael Calmer
-
Stefan Bluhm