openSUSE / obs-build

OBS build script, can be used with OBS or stand alone
GNU General Public License v2.0
132 stars 183 forks source link

"Support:" option in prjconf is ignored for docker/podman build #950

Open fcrozat opened 11 months ago

fcrozat commented 11 months ago

Unlike kiwi style build, Support: directives are ignored when building containers with Docker / Podman.

I have to use:

%if %_repository == "images"
Support: containment-rpm
%else
%if %_repository == "containerfile" 
Substitute: system-packages:podman podman buildah createrepo_c release-compare skopeo umoci containment-rpm
%endif
%endif
Vogtinator commented 11 months ago

Does Required instead work?

That Support is used at all in kiwi builds is for some backwards compat only: https://github.com/openSUSE/obs-build/blob/c6092e765ae74c52cab58c5b1a0f7be112ad4dec/Build.pm#L860

(IMO we need some build type specific Support)

fcrozat commented 11 months ago

Does Required instead work?

Yes, it works fine.