Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rhel7 rpm spec not 100% el7? #260

Open
f1-outsourcing opened this issue Sep 16, 2019 · 1 comment
Open

rhel7 rpm spec not 100% el7? #260

f1-outsourcing opened this issue Sep 16, 2019 · 1 comment

Comments

@f1-outsourcing
Copy link

This dovecot-ceph-plugin.spec should be the rhel7 not?

I am building on centos7 and have different rpm names.

[@test2 dovecot-ceph-plugin]$ diff rpm/dovecot-ceph-plugin.spec ~/rpmbuild/SPECS/dovecot-ceph-plugin.spec
2c2
< # spec file for package dovecot22-rados-plugins
---
> # spec file for package dovecot-rados-plugins
11c11
< %{!?dovecot_devel: %define dovecot_devel dovecot22-devel}
---
> %{!?dovecot_devel: %define dovecot_devel dovecot-devel}
30c30
< BuildRequires: libjansson-devel >= 2.9
---
> BuildRequires: jansson-devel >= 2.9
33d32
< BuildRequires: pkg-config

After these corrections build still fails on the the google stuff.

decls -fpermissive -std=c++11 -fPIC -DPIC -c -o rmb/test_rmb.o rmb/test_rmb.cpp
cc1plus: warning: ./googletest/googletest/include: No such file or directory [enabled by default]
cc1plus: warning: ./googletest/googlemock/include: No such file or directory [enabled by default]
rmb/test_rmb.cpp:12:25: fatal error: gtest/gtest.h: No such file or directory
 #include "gtest/gtest.h"
                         ^
compilation terminated.
make[3]: *** [rmb/test_rmb.o] Error 1
make[3]: Leaving directory `/home/users/test/rpmbuild/BUILD/dovecot-ceph-plugin-0.0.21/src/tests'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/users/test/rpmbuild/BUILD/dovecot-ceph-plugin-0.0.21/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/users/test/rpmbuild/BUILD/dovecot-ceph-plugin-0.0.21'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.ScHWEX (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.ScHWEX (%build)
@jrse
Copy link
Contributor

jrse commented Sep 16, 2019

googletest is added as a git submodule try to use git clone --recursive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants