Re: [SailfishDevel] Boolean dependencies in RPM SPEC
Summary from IRC chat on the topic: David spotted that BuildRequires is not mentioned in the list of boolean dependencies (thank you!). So, next question: which condition could I use in %if expansion of SPEC to distinguish SFOS 3.0.3.x from the earlier versions? Maybe there is some variable defined at OBS build env that can be used? Rinigus On Sat, May 11, 2019 at 4:38 PM rinigus wrote: > Hi, > > the problem is while building at OBS: > https://build.merproject.org/package/show/home:rinigus:maps/mapnik > > Rinigus > > On Sat, May 11, 2019 at 4:30 PM David Llewellyn-Jones > wrote: > >> On 11/05/2019 16:12, rinigus wrote: >> [snip] >> > BuildRequires: (libicu52-devel or libicu-devel) >> > >> > as in >> > >> https://github.com/rinigus/pkg-mapnik/blob/da5b6a11667b286c89bbee93eb57e2d4d52d5902/rpm/mapnik.spec#L16 >> >> [snip] >> > Hence the question - how can I add support for 3.0.2.x and 3.0.3.x using >> > the same SPEC file? On device, RPM has version 4.14, if its of any >> > importance. >> >> For 'BuildRequires', it's presumably the versioning in your SDK tooling >> which is important, rather than the RPM version on your device. It may >> be worth checking that too. >> >> Or is the problem you're experiencing happening at install time (i.e. in >> relation to the 'Requires' on line 36 of that file)? I can't see any >> difference between your version and the examples in the spec you posted. >> >> David >> -- >> Website: http://www.flypig.co.uk >> ___ >> SailfishOS.org Devel mailing list >> To unsubscribe, please send a mail to >> devel-unsubscr...@lists.sailfishos.org > > ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Boolean dependencies in RPM SPEC
Hi, the problem is while building at OBS: https://build.merproject.org/package/show/home:rinigus:maps/mapnik Rinigus On Sat, May 11, 2019 at 4:30 PM David Llewellyn-Jones wrote: > On 11/05/2019 16:12, rinigus wrote: > [snip] > > BuildRequires: (libicu52-devel or libicu-devel) > > > > as in > > > https://github.com/rinigus/pkg-mapnik/blob/da5b6a11667b286c89bbee93eb57e2d4d52d5902/rpm/mapnik.spec#L16 > > [snip] > > Hence the question - how can I add support for 3.0.2.x and 3.0.3.x using > > the same SPEC file? On device, RPM has version 4.14, if its of any > > importance. > > For 'BuildRequires', it's presumably the versioning in your SDK tooling > which is important, rather than the RPM version on your device. It may > be worth checking that too. > > Or is the problem you're experiencing happening at install time (i.e. in > relation to the 'Requires' on line 36 of that file)? I can't see any > difference between your version and the examples in the spec you posted. > > David > -- > Website: http://www.flypig.co.uk > ___ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to > devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Boolean dependencies in RPM SPEC
On 11/05/2019 16:12, rinigus wrote: [snip] > BuildRequires: (libicu52-devel or libicu-devel) > > as in > https://github.com/rinigus/pkg-mapnik/blob/da5b6a11667b286c89bbee93eb57e2d4d52d5902/rpm/mapnik.spec#L16 > [snip] > Hence the question - how can I add support for 3.0.2.x and 3.0.3.x using > the same SPEC file? On device, RPM has version 4.14, if its of any > importance. For 'BuildRequires', it's presumably the versioning in your SDK tooling which is important, rather than the RPM version on your device. It may be worth checking that too. Or is the problem you're experiencing happening at install time (i.e. in relation to the 'Requires' on line 36 of that file)? I can't see any difference between your version and the examples in the spec you posted. David -- Website: http://www.flypig.co.uk <>___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Boolean dependencies in RPM SPEC
Hi, with SFOS 3.0.3.x, we have new ICU version which is packaged into libicu and libicu-devel. As a result, name of the package is different from the earlier one (had icu52 in the names) and RPM SPEC files need to change the dependency accordingly. I tried to use `or` in the SPEC without any success, as in BuildRequires: (libicu52-devel or libicu-devel) as in https://github.com/rinigus/pkg-mapnik/blob/da5b6a11667b286c89bbee93eb57e2d4d52d5902/rpm/mapnik.spec#L16 It seems to me that I followed syntax on https://rpm.org/user_doc/boolean_dependencies.html . Unfortunately, it didn't work out since it seemed to result in adding dependency on 3 packages: libicu52-devel, or, and libicu-devel Hence the question - how can I add support for 3.0.2.x and 3.0.3.x using the same SPEC file? On device, RPM has version 4.14, if its of any importance. Cheers, Rinigus PS: asked the same yesterday on IRC, expanding to mailing list ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org