Overview

Request 774354 accepted

- Fix build: RPM 4.15 got a bit stricter and fails on
find-provides script errors. Earlier RPM versions ignored it. In
this specic case it turns out that the .cmake file installed is
invalid, as it contained set(PACKAGE_VERSION "..") (so RPM is
right to abort). Turns out that upstream simply did not really
cater for the fact that this could be installed from tarball and
not from a git checkout: they use 'git describe' to inject a
version into the .cmake file. Fix this by replacing the
placeholders using sed, injecting the rpm %version there.

Loading...

Request History
Dominique Leuenberger's avatar

dimstar created request

- Fix build: RPM 4.15 got a bit stricter and fails on
find-provides script errors. Earlier RPM versions ignored it. In
this specic case it turns out that the .cmake file installed is
invalid, as it contained set(PACKAGE_VERSION "..") (so RPM is
right to abort). Turns out that upstream simply did not really
cater for the fact that this could be installed from tarball and
not from a git checkout: they use 'git describe' to inject a
version into the .cmake file. Fix this by replacing the
placeholders using sed, injecting the rpm %version there.


Dominique Leuenberger's avatar

dimstar_suse accepted request

Factory Release Manager override - Fixes a build and an obvious bug

openSUSE Build Service is sponsored by