<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>45823</bug_id>
          
          <creation_ts>2023-04-11 14:17:08 +0300</creation_ts>
          <short_desc>Версия 6.0</short_desc>
          <delta_ts>2023-04-24 10:40:49 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>mongo</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Cherepanov">cas</reporter>
          <assigned_to name="Alexei Takaseev">taf</assigned_to>
          <cc>ilyushkinama</cc>
    
    <cc>taf</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>224308</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2023-04-11 14:17:08 +0300</bug_when>
    <thetext>Какие планы по сборке версии 6.0?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224379</commentid>
    <comment_count>1</comment_count>
    <who name="Alexei Takaseev">taf</who>
    <bug_when>2023-04-12 12:57:34 +0300</bug_when>
    <thetext>Нужна помощь зала. С наскока собрать не получается - заартачился scons:

+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd mongo-6.0.5
++ pkg-config --cflags libpcrecpp
+ scons -j 4 --use-system-tcmalloc --use-system-pcre --use-system-snappy --use-system-valgrind --use-system-zlib --use-system-stemmer --use-system-yaml --nostrip --use-sasl-client --wiredtiger=on --ssl=on MONGO_VERSION=6.0.5-alt1 --disable-warnings-as-errors &apos;CCFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto  -I/usr/include/pcre&apos; core
scons: Reading SConscript files ...
scons: running with args /usr/bin/python3 /usr/bin/scons -j 4 --use-system-tcmalloc --use-system-pcre --use-system-snappy --use-system-valgrind --use-system-zlib --use-system-stemmer --use-system-yaml --nostrip --use-sasl-client --wiredtiger=on --ssl=on MONGO_VERSION=6.0.5-alt1 --disable-warnings-as-errors CCFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto  -I/usr/include/pcre core
Mkdir(&quot;build/scons&quot;)
scons version: 4.0.1
python version: 3 10 8 &apos;final&apos; 0
CC is gcc
gcc found in $PATH at /usr/bin/gcc
/usr/bin/gcc resolves to /usr/bin/gcc_wrapper
CXX is g++
g++ found in $PATH at /usr/bin/g++
/usr/bin/g++ resolves to /usr/bin/gcc_wrapper
Checking if C++ compiler &quot;g++&quot; is GCC... yes
Checking if C compiler &quot;gcc&quot; is GCC... yes
Detected a x86_64 processor
Checking if target OS linux is supported by the toolchain... yes
Checking if C compiler is GCC 8.2 or newer...yes
Checking if C++ compiler is GCC 8.2 or newer...yes
Checking if linker supports -fuse-ld=lld... no
Checking if linker supports -fuse-ld=gold... no
Checking whether the C compiler works... yes
Checking whether the C++ compiler works... yes
Checking that the C++ compiler can link a C++ program... no
C++ compiler g++ can&apos;t link C++ programs
See /usr/src/RPM/BUILD/mongo-6.0.5/build/scons/config.log for details

Содержимое build/scons/config.log:
...
scons: Configure: Checking that the C++ compiler can link a C++ program... 
build/scons/59f4f0dd/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.cpp &lt;-
  |
  |#include &lt;iostream&gt;
  |#include &lt;cstdlib&gt;
  |
  |int main() {
  |    std::cout &lt;&lt; &quot;Hello, World&quot; &lt;&lt; std::endl;
  |    return EXIT_SUCCESS;
  |}
  |
g++ -o build/scons/59f4f0dd/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.o -c -Woverloaded-virtual -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -Werror -ffp-contract=off -fasynchronous-unwind-tables -ggdb -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -fno-omit-frame-pointer -fno-strict-aliasing -O2 -march=sandybridge -mtune=generic -mprefer-vector-width=128 -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE build/scons/59f4f0dd/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.cpp
g++ -o build/scons/59f4f0dd/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0_2c3ca433457cd4c4da979b3ca2bd6249 -Wl,--fatal-warnings -pthread -Wl,-z,now -pie -rdynamic build/scons/59f4f0dd/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.o functools.partial(&lt;function get_syslibdeps at 0x7f0d89b54dc0&gt;, debug=None, shared=False) -lm -lresolv
sh: -c: line 0: syntax error near unexpected token `(&apos;
sh: -c: line 0: `g++ -o &quot;build/scons/59f4f0dd/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0_2c3ca433457cd4c4da979b3ca2bd6249&quot; -Wl,--fatal-warnings -pthread -Wl,-z,now -pie -rdynamic &quot;build/scons/59f4f0dd/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.o&quot; functools.partial(&lt;function get_syslibdeps at 0x7f0d89b54dc0&gt;, debug=None, shared=False) -lm -lresolv&apos;
scons: Configure: no</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224385</commentid>
    <comment_count>2</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2023-04-12 13:55:29 +0300</bug_when>
    <thetext>А забандленный есть scons?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224471</commentid>
    <comment_count>3</comment_count>
    <who name="Alexei Takaseev">taf</who>
    <bug_when>2023-04-14 11:10:17 +0300</bug_when>
    <thetext>С забандленным тоже все непросто. При попытке его запустить он начинает скачивать и ставить с pip еще кучу компонентов.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224552</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2023-04-16 06:14:59 +0300</bug_when>
    <thetext>mongo-6.0.5-alt1 -&gt; sisyphus:

 Wed Apr 12 2023 Alexei Takaseev &lt;taf@altlinux&gt; 6.0.5-alt1
 - 6.0.5 (ALT#45823)
 - Remove /usr/bin/mongo as deprecated on 5.0 and deleted on 6.0
 - Build with bandled scons</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224585</commentid>
    <comment_count>5</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2023-04-17 11:29:11 +0300</bug_when>
    <thetext>(Ответ для Repository Robot на комментарий #4)
&gt; mongo-6.0.5-alt1 -&gt; sisyphus:
&gt; 
&gt;  Wed Apr 12 2023 Alexei Takaseev &lt;taf@altlinux&gt; 6.0.5-alt1
&gt;  - 6.0.5 (ALT#45823)
&gt;  - Remove /usr/bin/mongo as deprecated on 5.0 and deleted on 6.0
&gt;  - Build with bandled scons

Спасибо, а в p10 можешь собрать?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224586</commentid>
    <comment_count>6</comment_count>
    <who name="Alexei Takaseev">taf</who>
    <bug_when>2023-04-17 11:42:33 +0300</bug_when>
    <thetext>В P10 собирается и даже запускается. Только там серьезная засада - прямого прыжка 4.4 -&gt; 6.0 уже работающие сайты не переживут. Им нужно будет пройти обязательную цепочку 4.4 -&gt; 5.0 -&gt; 6.0 с выполнением

db.adminCommand( { setFeatureCompatibilityVersion: &quot;MAJOR.VERSION&quot; } )

на каждой итерации. Ну, или через снятие-зелитие дампа (этот сценарий не проверял).

Но в любом случае после apt-get dist-upgrade монга на существующей базе не взлетит.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224595</commentid>
    <comment_count>7</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2023-04-17 12:49:00 +0300</bug_when>
    <thetext>(Ответ для Alexei Takaseev на комментарий #6)
&gt; В P10 собирается и даже запускается. Только там серьезная засада - прямого
&gt; прыжка 4.4 -&gt; 6.0 уже работающие сайты не переживут. Им нужно будет пройти
&gt; обязательную цепочку 4.4 -&gt; 5.0 -&gt; 6.0 с выполнением
&gt; 
&gt; db.adminCommand( { setFeatureCompatibilityVersion: &quot;MAJOR.VERSION&quot; } )
&gt; 
&gt; на каждой итерации. Ну, или через снятие-зелитие дампа (этот сценарий не
&gt; проверял).
&gt; 
&gt; Но в любом случае после apt-get dist-upgrade монга на существующей базе не
&gt; взлетит.

А можно собрать с именем mongo6?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224648</commentid>
    <comment_count>8</comment_count>
    <who name="Илюшкина Мария">ilyushkinama</who>
    <bug_when>2023-04-18 13:05:23 +0300</bug_when>
    <thetext>(Ответ для Andrey Cherepanov на комментарий #7)
&gt; (Ответ для Alexei Takaseev на комментарий #6)
&gt; &gt; В P10 собирается и даже запускается. Только там серьезная засада - прямого
&gt; &gt; прыжка 4.4 -&gt; 6.0 уже работающие сайты не переживут. Им нужно будет пройти
&gt; &gt; обязательную цепочку 4.4 -&gt; 5.0 -&gt; 6.0 с выполнением
&gt; &gt; 
&gt; &gt; db.adminCommand( { setFeatureCompatibilityVersion: &quot;MAJOR.VERSION&quot; } )
&gt; &gt; 
&gt; &gt; на каждой итерации. Ну, или через снятие-зелитие дампа (этот сценарий не
&gt; &gt; проверял).
&gt; &gt; 
&gt; &gt; Но в любом случае после apt-get dist-upgrade монга на существующей базе не
&gt; &gt; взлетит.
&gt; 
&gt; А можно собрать с именем mongo6?

Алексей, вы сможете это сделать ? И, если сможете, то когда ? 
Эту заявку зарегистрировали по причине тикета техподдержки, поэтому спрашиваю сроки, клиент интересуется.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224649</commentid>
    <comment_count>9</comment_count>
    <who name="Alexei Takaseev">taf</who>
    <bug_when>2023-04-18 13:11:26 +0300</bug_when>
    <thetext>В процессе. По плану для P10 надо собрать mongo4.2, mongo4.4, mongo5.0 и финальный mongo6.0, чтобы обеспечить возможность пошаговой миграции с mongo 4.0 из P9 до современной версии.

Проект жирный, собирается долго, но постараюсь закончить побыстрее.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224690</commentid>
    <comment_count>10</comment_count>
    <who name="Alexei Takaseev">taf</who>
    <bug_when>2023-04-19 07:02:34 +0300</bug_when>
    <thetext>Нужен совет, как все жe будет лучше сделать: дропнуть пакет mongo, заменив его пачкой mongo4.2, mongo4.4, mongo5.0, mongo6.0, чтобы обеспечить плавное обновление существующих баз от версии 4.0 из p9 до современной. Или только залить mongo6.0, дропнув mongo, в этом случае переезд на новую версию будет возможен только через mongodump/mongorestore?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224703</commentid>
    <comment_count>11</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2023-04-19 12:56:50 +0300</bug_when>
    <thetext>(Ответ для Alexei Takaseev на комментарий #10)
&gt; Нужен совет, как все жe будет лучше сделать: дропнуть пакет mongo, заменив
&gt; его пачкой mongo4.2, mongo4.4, mongo5.0, mongo6.0, чтобы обеспечить плавное
&gt; обновление существующих баз от версии 4.0 из p9 до современной. Или только
&gt; залить mongo6.0, дропнув mongo, в этом случае переезд на новую версию будет
&gt; возможен только через mongodump/mongorestore?

Лучше первый вариант.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224874</commentid>
    <comment_count>12</comment_count>
    <who name="Alexei Takaseev">taf</who>
    <bug_when>2023-04-24 05:27:49 +0300</bug_when>
    <thetext>В Сизиф версии 4.2, 4.4, 5.0 и 6.0 приехали.

Для P10 созданы задания 319169, 319170, 319171, 319172</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224876</commentid>
    <comment_count>13</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2023-04-24 10:40:49 +0300</bug_when>
    <thetext>(Ответ для Alexei Takaseev на комментарий #12)
&gt; В Сизиф версии 4.2, 4.4, 5.0 и 6.0 приехали.
&gt; 
&gt; Для P10 созданы задания 319169, 319170, 319171, 319172

Большое спасибо!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>