Skip to content

Commit e1aa80e

Browse files
committed
ceph.spec.in, install-deps: sed -i 's/seastar/crimson/'
Signed-off-by: Matan Breizman <[email protected]>
1 parent 23c33f6 commit e1aa80e

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

ceph.spec.in

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
%bcond_with lua_packages
9292
%endif
9393
%endif
94-
%bcond_with seastar
94+
%bcond_with crimson
9595
%if 0%{?suse_version} || 0%{?openEuler}
9696
%bcond_with jaeger
9797
%else
@@ -150,7 +150,7 @@
150150
%{!?python3_pkgversion: %global python3_pkgversion 3}
151151
%{!?python3_version_nodots: %global python3_version_nodots 3}
152152
%{!?python3_version: %global python3_version 3}
153-
%if 0%{with seastar}
153+
%if 0%{with crimson}
154154
%{!?gts_version: %global gts_version 13}
155155
%else
156156
%if 0%{?rhel} == 8
@@ -325,7 +325,7 @@ BuildRequires: xmlstarlet
325325
BuildRequires: nasm
326326
BuildRequires: lua-devel
327327
BuildRequires: lmdb-devel
328-
%if 0%{with seastar} || 0%{with jaeger}
328+
%if 0%{with crimson} || 0%{with jaeger}
329329
BuildRequires: yaml-cpp-devel >= 0.6
330330
%endif
331331
%if 0%{with amqp_endpoint}
@@ -387,7 +387,7 @@ BuildRequires: utf8proc-devel
387387
BuildRequires: qatlib-devel
388388
BuildRequires: qatzip-devel
389389
%endif
390-
%if 0%{with seastar}
390+
%if 0%{with crimson}
391391
BuildRequires: c-ares-devel
392392
BuildRequires: gnutls-devel
393393
BuildRequires: hwloc-devel
@@ -514,7 +514,7 @@ BuildRequires: redhat-rpm-config
514514
%if 0%{?openEuler}
515515
BuildRequires: openEuler-rpm-config
516516
%endif
517-
%if 0%{with seastar}
517+
%if 0%{with crimson}
518518
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
519519
BuildRequires: cryptopp-devel
520520
%endif
@@ -943,7 +943,7 @@ Provides: ceph-test:/usr/bin/ceph-osdomap-tool
943943
Requires: ceph-base = %{_epoch_prefix}%{version}-%{release}
944944
Requires: sudo
945945
Requires: libstoragemgmt
946-
%if 0%{with seastar}
946+
%if 0%{with crimson}
947947
Requires: protobuf
948948
%endif
949949
%if 0%{?weak_deps}
@@ -954,7 +954,7 @@ ceph-osd is the object storage daemon for the Ceph distributed file
954954
system. It is responsible for storing objects on a local file system
955955
and providing access to them over the network.
956956

957-
%if 0%{with seastar}
957+
%if 0%{with crimson}
958958
%package crimson-osd
959959
Summary: Ceph Object Storage Daemon (crimson)
960960
%if 0%{?suse_version}
@@ -1431,7 +1431,7 @@ export CFLAGS="$RPM_OPT_FLAGS"
14311431
export CXXFLAGS="$RPM_OPT_FLAGS"
14321432
export LDFLAGS="$RPM_LD_FLAGS"
14331433

1434-
%if 0%{with seastar}
1434+
%if 0%{with crimson}
14351435
# seastar uses longjmp() to implement coroutine. and this annoys longjmp_chk()
14361436
export CXXFLAGS=$(echo $RPM_OPT_FLAGS | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g')
14371437
# remove from CFLAGS too because it causes the arrow submodule to fail with:
@@ -1543,7 +1543,7 @@ cmake .. \
15431543
-DWITH_SYSTEM_QATLIB:BOOL=ON \
15441544
-DWITH_SYSTEM_QATZIP:BOOL=ON \
15451545
%endif
1546-
%if 0%{with seastar}
1546+
%if 0%{with crimson}
15471547
-DWITH_CRIMSON:BOOL=ON \
15481548
-DWITH_JAEGER:BOOL=OFF \
15491549
%endif
@@ -1591,7 +1591,7 @@ pushd %{_vpath_builddir}
15911591
rm -f %{buildroot}/%{_sysconfdir}/init.d/ceph
15921592
popd
15931593

1594-
%if 0%{with seastar}
1594+
%if 0%{with crimson}
15951595
# package crimson-osd with the name of ceph-osd
15961596
install -m 0755 %{buildroot}%{_bindir}/crimson-osd %{buildroot}%{_bindir}/ceph-osd
15971597
%endif
@@ -2364,7 +2364,7 @@ if [ $1 -ge 1 ] ; then
23642364
fi
23652365
fi
23662366

2367-
%if 0%{with seastar}
2367+
%if 0%{with crimson}
23682368
%files crimson-osd
23692369
%{_bindir}/crimson-osd
23702370
%endif
@@ -2614,7 +2614,7 @@ fi
26142614
%{_bindir}/ceph-debugpack
26152615
%{_bindir}/ceph-dedup-tool
26162616
%{_bindir}/ceph-dedup-daemon
2617-
%if 0%{with seastar}
2617+
%if 0%{with crimson}
26182618
%{_bindir}/crimson-store-nbd
26192619
%endif
26202620
%{_mandir}/man8/ceph-debugpack.8*

install-deps.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ ARCH=$(uname -m)
3232

3333

3434
function munge_ceph_spec_in {
35-
local with_seastar=$1
35+
local with_crimson=$1
3636
shift
3737
local for_make_check=$1
3838
shift
3939
local OUTFILE=$1
4040
sed -e 's/@//g' < ceph.spec.in > $OUTFILE
4141
# http://rpm.org/user_doc/conditional_builds.html
42-
if $with_seastar; then
43-
sed -i -e 's/%bcond_with seastar/%bcond_without seastar/g' $OUTFILE
42+
if $with_crimson; then
43+
sed -i -e 's/%bcond_with crimson/%bcond_without crimson/g' $OUTFILE
4444
fi
4545
if $for_make_check; then
4646
sed -i -e 's/%bcond_with make_check/%bcond_without make_check/g' $OUTFILE
@@ -372,7 +372,7 @@ if [ x$(uname)x = xFreeBSDx ]; then
372372
sysutils/fusefs-libs \
373373
exit
374374
else
375-
[ $WITH_CRIMSON ] && with_seastar=true || with_seastar=false
375+
[ $WITH_CRIMSON ] && with_crimson=true || with_crimson=false
376376
[ $WITH_PMEM ] && with_pmem=true || with_pmem=false
377377
source /etc/os-release
378378
case "$ID" in
@@ -435,15 +435,15 @@ else
435435
if $for_make_check; then
436436
build_profiles+=",pkg.ceph.check"
437437
fi
438-
if $with_seastar; then
438+
if $with_crimson; then
439439
build_profiles+=",pkg.ceph.crimson"
440440
fi
441441
if $with_pmem; then
442442
build_profiles+=",pkg.ceph.pmdk"
443443
fi
444444

445445
ci_debug "for_make_check=$for_make_check"
446-
ci_debug "with_seastar=$with_seastar"
446+
ci_debug "with_crimson=$with_crimson"
447447
ci_debug "with_jaeger=$with_jaeger"
448448
ci_debug "build_profiles=$build_profiles"
449449
ci_debug "Now running 'mk-build-deps' and installing ceph-build-deps package"
@@ -502,7 +502,7 @@ else
502502
if [ "$INSTALL_EXTRA_PACKAGES" ]; then
503503
$SUDO dnf install -y $INSTALL_EXTRA_PACKAGES
504504
fi
505-
munge_ceph_spec_in $with_seastar $for_make_check $DIR/ceph.spec
505+
munge_ceph_spec_in $with_crimson $for_make_check $DIR/ceph.spec
506506
# for python3_pkgversion macro defined by python-srpm-macros, which is required by python3-devel
507507
$SUDO dnf install -y python3-devel
508508
$SUDO $builddepcmd $DIR/ceph.spec 2>&1 | tee $DIR/yum-builddep.out
@@ -520,7 +520,7 @@ else
520520
if [ "$INSTALL_EXTRA_PACKAGES" ]; then
521521
$SUDO $zypp_install $INSTALL_EXTRA_PACKAGES
522522
fi
523-
munge_ceph_spec_in $with_seastar $for_make_check $DIR/ceph.spec
523+
munge_ceph_spec_in $with_crimson $for_make_check $DIR/ceph.spec
524524
$SUDO $zypp_install $(rpmspec -q --buildrequires $DIR/ceph.spec) || exit 1
525525
;;
526526
*)

0 commit comments

Comments
 (0)