[opensuse-packaging] RPM Boolean Dependencies
![](https://seccdn.libravatar.org/avatar/820da0d6cf03c53c669191fb66855637.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 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... Thanks, - -- Sean Marlow Public Cloud Developer sean.marlow@suse.com -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEqA16xWoe2L38VgYCJ30GzZDdUEsFAltoyJ4ACgkQJ30GzZDd UEuyew/9EkHOzz5XsbqpDakXGj+2Y8AUHv40jlvaC2+8m8WWYf/K6LGSKvjsGtVf n/Hj12AsNjXjwYWqz60s5TMhfLOhYUCQEnJX5D1AkeRK46KXKrXIBFW9gOo0OZ3I K6/umtUuPGZ1xbSsaYKZd6ORZ6s9hKVmZHuSRpxGjDkHLGqtJkCqRJFIR8YR98/I O1yy5fkqEDxwfI4N4Wt9wCpvdK64+gXxTcfoOmEA1u41yLeLBHoROpi3wQT/DXR/ vDtu4v7b8BorZT/bpK/IYmgNPd5M+bKpY00a0ZnTRsmKpilO55x0gDhDRdqvxOjs eRWvdqER08d+ONa6nZxOt4TiRE9TygV56uaWLi9e1t0nNi+v4X8XH7SsffwuzbVq GAY39PkU4IhhsE9GJPtxXKGDxqiJGzayJI0m3IYtchGba0mAh+zEo/Iw1TyW+TB/ qvGnvSZEC3tpDSPawPYNEZWYMGhCL6B6bkiqPq95vd2ozDe5hdcWLTRoD77rbUBk LOCDSwhiJCF8t4lwYM83C9iV7hCIrmwf0bpwEgLkOiGrgaphQ6GX3rOigMlWL+vg cflWeyxoGhuoF9ADdymjUAOLWiv9fTkTpacCUpWaobmUCKF0plFSgtHLADIL4Ztc P1FVVvSfqj61oj56GzuopjuT9WoXQCR005OqYdvVAqdYnlcdOvI= =rzmZ -----END PGP SIGNATURE----- N�����r��y隊Z)z{.��ZrF��x>�{.n�+������Ǩ��r��i�m��0��ޙ���������$j���0�����Ǩ�
![](https://seccdn.libravatar.org/avatar/8352b2ca702e57abc768876768d1959f.jpg?s=120&d=mm&r=g)
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
https://github.com/openSUSE/obs-service-format_spec_file/blob/master/prepare...
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. Spec-cleaner even tests for this [1]. HTH Tom [1] https://github.com/openSUSE/spec-cleaner/issues/174
![](https://seccdn.libravatar.org/avatar/820da0d6cf03c53c669191fb66855637.jpg?s=120&d=mm&r=g)
-----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
https://github.com/openSUSE/obs-service-format_spec_file/blob/master/prepare...
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
Thanks, - -- Sean Marlow Public Cloud Developer sean.marlow@suse.com -----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-----
![](https://seccdn.libravatar.org/avatar/820da0d6cf03c53c669191fb66855637.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On Tue, 2018-08-07 at 19:30 +0000, Sean Marlow wrote: <snip>
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?
Okay, I see these services aren't run on the server.
Spec-cleaner even tests for this [1].
HTH
Tom
And found the docs related to services [1]. After installing spec- cleaner and the alternative provider things look good (spec-cleaner- format_spec_file). [1] https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.source_serv... Thanks, - -- Sean Marlow Public Cloud Developer sean.marlow@suse.com -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEqA16xWoe2L38VgYCJ30GzZDdUEsFAltqH+gACgkQJ30GzZDd UEvL7RAAhFzdEzkG35dv2Vcl8GehwQjLi1Fx91VG040Ql4Y3vZidI9ggHQ6uhJP7 ESXe0gr9/zqSubSyb8G1oBakuls8CPmEShYNUSTPw1zgijdwKqrPjOQlp8VfgMOJ DtBChaI/LYbGIqE/GI+0+YhmbZcnVim9o/2u18ONRVkOAzscFte9sC+nJtbS1DIW qgupLjzFFjCtGbEgBLhKpajb89NATHmvoxV3gGqPpQf0WQz1JAume7L+zcg+pCxl IAn+6ifrvMkJ1sidDx42T0p7BkoKplo7RpkpyMZPFXNcwZq1SyTDQbA2GqNQGZCS 83RrjxV5e/eSeTSV2361Ml+JiEynPGeYnzdnA9t+sD9bZHN2TKq9Q2KGm7Iu9cPb PRrDxk676QFXgK7pqqti65KMb8A575JzC52Dm/C4X7aFJX8nAOE+OML3MgsD1Frx paDNJbkZSr47ADWWJgXAZz62x5lughgNsqjDfPClh2B+3MKKNmQo25NwjAlkdFMn nnXajrdKaXHNtWmnwbpYaWujHId6G/d09azxfx+oQHgwHWi7ZoeeuBrGo2JN0jmP /Jg/r9FOzVjQF1hZDgOFfSr7Ny1FCnLwbc+/f38rl7xfAvmScpUf6ihoFa2RgIb8 K5u06+9ydcZ+qE4P43TWBKXh9lodVufjrkfWg7xVa9M2/BFyBfY= =tow9 -----END PGP SIGNATURE-----
participants (2)
-
Sean Marlow
-
Tomas Chvatal