Mailinglist Archive: opensuse-packaging (104 mails)

< Previous Next >
Re: [opensuse-packaging] RPM Boolean Dependencies
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Tue, 2018-08-07 at 09:15 +0200, Tomas Chvatal wrote:
Sean Marlow píše v Po 06. 08. 2018 v 22:15 +0000:
Hi Packagers,

Sorry in advance for crossposting (opensuse-buildservice) as I'm
not
sure the best list to query.

Is there support for Boolean Dependencies [1] in the pipeline for
openSUSE build service (osc)?

It would be nice for example with packages that depend on Django
which
has two possible packages python-Django and python-Django1.

E.g.

Requires: (python-Django1 >= 1.11.0 or python-Django >= 2.0.0)

A quick test results in failure. It seems the format_spec_file
script
[2] chokes on boolean dependencies and splits them all up.

Requires: (python-Django1 >= 1.11.0
Requires: python-Django >= 2.0.0)
Requires: or


[1] http://rpm.org/user_doc/boolean_dependencies.html
[2]



https://github.com/openSUSE/obs-service-format_spec_file/blob/master/prepare_spec


The logic in format_spec_file is just not smart enough to detect
boolean deps.

You have 2 options, either remove format_spec_file to not be run on
the
package (--noservice) or try to use spec-cleaner in its place. Both
ways won't screw up your package.

Thanks Tom, that helps for a single build to add --noservice option.
However, when the spec changes are committed the file is mangled again.
Is it possible to set the flag inside spec to prevent this in the build
service?


Spec-cleaner even tests for this [1].

HTH

Tom

[1] https://github.com/openSUSE/spec-cleaner/issues/174

Thanks,

- --
Sean Marlow
Public Cloud Developer
sean.marlow@xxxxxxxx
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEqA16xWoe2L38VgYCJ30GzZDdUEsFAltp80gACgkQJ30GzZDd
UEtXAg/7BLDvgq6/SazhUs/Ar9bHFwa22G+GRn5yzwbwPISzZOQDJKnYPDCCjbEo
9n80ohl4rd1o9FfozjgjNgXI92oHO9JZlUxTYBKSYLvK34fqDGq/wbqEn/L5tLAC
hrpoqKHH//G00iVOsDsPJ3Cv+/mx7Wet+0fgjOi9DFb/rE1roLYtEPngw0dyGDTY
yoT9NxkSDc37ZDyPx7f9NvChb3mWYTXGqsGzngBdSnpaTVQsMXI1010tykURJjSw
uhgVGC0oYCNOgavp0BZlPVBQGBm5tPXCxh83QcGf4exuO56i1Iw2CA/yCt6HYcH2
HIFaz3et3f0Dskq8u5IXYxjnVAwsreGku/FfZdxl0FRDytOAwMopbI2vvsgzpCBv
rf/PDYO8Gt9+5OWWZ7t7cXvgyeiARun4bAkCRIxhIoARPymPLlIZ9uVUuX1AZ2Ku
vnOpdU95V7L0frVFaD5J1ITWidimxSTkhWudOoWeL8jXeMDb05a1tYLpvPZPSZQO
goIQLJpH9szipmHEYfi7LsAzhGMfcGK0S+8PPlL7dBd3dr9MrsK1v5XC5UF22fu5
iLpYH9kAZ0/5iZ55QDoTlhMmSkbekSNsD9ro9zlx8Ok+LguPwnk2ckYRCqSMJZRJ
imy2/7BdisD5eiaOm56rBgaBsHjFkIEz3FywxGC0zskR3W0foF0=
=TTRf
-----END PGP SIGNATURE-----
< Previous Next >
Follow Ups