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

debian: bump compat to 9 #10366

Merged
merged 1 commit into from Jul 21, 2016
Merged

debian: bump compat to 9 #10366

merged 1 commit into from Jul 21, 2016

Conversation

tchaikov
Copy link
Contributor

so dpkg-buildflags and dh_* are able to pass appropriate cflags and
ldflags to cmake. and we are safe to move to compat 9, as , as jewel's
supported debian based distro is jessie (with debhelper 9.20150101),
ubuntu trusty (with debhelper 9.20131227ubuntu1)

Fixes: http://tracker.ceph.com/issues/16744
Signed-off-by: Kefu Chai kchai@redhat.com

@tchaikov
Copy link
Contributor Author

[  0%] Building CXX object src/compressor/CMakeFiles/compressor_objs.dir/AsyncCompressor.cc.o
cd /var/ceph/ceph/obj-x86_64-linux-gnu/src/compressor && /usr/bin/c++   -DCEPH_LIBDIR=\"/usr/lib\" -DCEPH_PKGLIBDIR=\"/usr/lib/ceph\" -D__linux__ -I/var/ceph/ceph/obj-x86_64-linux-
gnu/src/include -I/include -I/var/ceph/ceph/src -I/var/ceph/ceph/obj-x86_64-linux-gnu/include -I/var/ceph/ceph/src/xxHash  -g -O2 -fstack-protector-strong -Wformat -Werror=format-s
ecurity -Wdate-time -D_FORTIFY_SOURCE=2  -rdynamic -Wall -Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith -Werror=format-security -fno-strict-aliasing -fsigned-char -
Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -ftemplate-depth-1024 -Wno-invalid-offsetof -Wnon-virtual-dtor -Wno-invalid-offsetof -Wstrict-null-sentinel -Wover
loaded-virtual -fdiagnostics-color=auto -I/usr/include/nss -I/usr/include/nspr -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -fPIC   -DHAVE_CONFIG_
H -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -D__STDC_FORMAT_MACROS -D_GNU_SOURCE -std=c++11 -o CMakeFiles/compressor_objs.dir/AsyncCompressor.cc.o -c /var/ceph/
ceph/src/compressor/AsyncCompressor.cc

it works on my debian box.

tchaikov referenced this pull request Jul 20, 2016
dh_auto_configure sets CMAKE_BUILD_TYPE=None unconditionally.
Work around that by setting it later on the command line to
"empty" so that the build type can be set correctly in
src/CMakeLists.txt

Fixes: http://tracker.ceph.com/issues/16744
Signed-off-by: Dan Mick <dan.mick@redhat.com>
@dmick
Copy link
Member

dmick commented Jul 20, 2016

I totally don't understand how this fixes anything.

dh_auto_configure set -DCMAKE_BUILD_TYPE=None so the default does not
take effect at all. this is on purpose, see [1].

and dpkg-buildflags is able to produce the suggested compiling flags by
debian policy. dh_* can pass these flags to cmake only if it works at
compat>=9, see [2].

and we are safe to move to compat 9, as jewel's supported debian based
distro is jessie (with debhelper 9.20150101), ubuntu trusty (with
debhelper 9.20131227ubuntu1)

---
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701233#35
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653916

Fixes: http://tracker.ceph.com/issues/16744
Signed-off-by: Kefu Chai <kchai@redhat.com>
@tchaikov
Copy link
Contributor Author

@dmick updated the commit message and repushed.

@dmick
Copy link
Member

dmick commented Jul 20, 2016

I now understand and agree with the approach. Looking into the build failure

@tchaikov tchaikov merged commit 278ea12 into master Jul 21, 2016
@tchaikov tchaikov deleted the wip-cmake-debian branch July 21, 2016 03:01
@dmick
Copy link
Member

dmick commented Jul 21, 2016

I was waiting to get a clean build sorted, but...

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