Dear OBS list,
I've tried to find out how I can set environment variables while building dpkg packages via OBS. I would have assumed that maybe the project config would provide something like that, but I failed to find any.
The concrete usage example is to pass something like DEB_BUILD_OPTIONS=parallel=N which then most sane debian packages turn into "-jN" during make.
I also grep'ed for DEB_BUILD_OPTIONS in the OBS source code, but there were no hits.
Right now I'm watching a 16-core machine building a Linux kernel with "-j1" since I cannot figure out what is the designated way in OBS to specify such environment variables.
Thanks in advance for any assistance.
Regards, Harald
p.s.: I previously had to switch from public build.opensuse.org to a local installation of OBS due to the public build.opensuse.org workers consistently failing builds with "no space left on device" while trying to build a linux kernel package. And I already had stripped it down to only one variant + flavor + architecture. Not a complaint, just noticing it. I would have expected kernel builds not to be that uncommon.
I don’t think you can pass DEB_BUILD_OPTIONS for debian dsc builds on OBS. Which is shame as it would useful (in the same way the it’s possible to pass defines/macros to rpm builds on OBS)
I haven’t tried it, but looking at:
https://github.com/openSUSE/obs-build/blob/master/build-recipe-dsc#L97
It might be possible to override the whole build command with something like this in the prjconf:
Substitute: dsc:build_cmd ‘DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -us -uc'
Having an easy way to pass options to dsc build would be a useful feature. pass DEB_ and DH_ environment variables in particular would be a useful feature.
Thanks, Nick
On 30 Oct 2020, at 13:53, Harald Welte laforge@gnumonks.org wrote:
Dear OBS list,
I've tried to find out how I can set environment variables while building dpkg packages via OBS. I would have assumed that maybe the project config would provide something like that, but I failed to find any.
The concrete usage example is to pass something like DEB_BUILD_OPTIONS=parallel=N which then most sane debian packages turn into "-jN" during make.
I also grep'ed for DEB_BUILD_OPTIONS in the OBS source code, but there were no hits.
Right now I'm watching a 16-core machine building a Linux kernel with "-j1" since I cannot figure out what is the designated way in OBS to specify such environment variables.
Thanks in advance for any assistance.
Regards, Harald
p.s.: I previously had to switch from public build.opensuse.org to a local installation of OBS due to the public build.opensuse.org workers consistently failing builds with "no space left on device" while trying to build a linux kernel package. And I already had stripped it down to only one variant + flavor + architecture. Not a complaint, just noticing it. I would have expected kernel builds not to be that uncommon.
--
- Harald Welte laforge@gnumonks.org https://urldefense.com/v3/__http://laforge.gnumonks.org/__;!!BhdT!xZfAWhk3SM...
============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
N�����r��y隊Z)z{.���Wlz��qﮞ˛���m�)z{.��+�:�{Zr�az�'z��j)h���Ǜ�)]���Ǿ� ޮ�^�ˬz��
buildservice@lists.opensuse.org