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

No way to pass custom options to the generator tool #922

Closed rhabacker closed 1 year ago

rhabacker commented 1 year ago

I tried to debug the rpmbuild dependency generator for mingw builds on openSUSE with osc.

For this, the rpmbuild command has the command line option --rpmfcdebug. Unfortunately, there is no way to pass this option to rpmbuild via osc. You can pass command line parameters to build with osc --build-opt=xxx:

$ osc build --help | grep opt
    --build-opt=OPT     pass option OPT to the build command

but build itself has no way to pass parameters to the corresponding build recipes (in this case build-recipe-spec, see https://github.com/openSUSE/obs-build/blob/7950ca8f72622d2f33b141c83184257094a5ed08/build-recipe-spec#L170)