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

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

    <bug>
          <bug_id>40500</bug_id>
          
          <creation_ts>2021-07-15 15:12:03 +0300</creation_ts>
          <short_desc>`control openssl-gost enable` включает gost, но возвращает ошибку</short_desc>
          <delta_ts>2021-07-15 21:17:53 +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>openssl-gost-engine</component>
          <version>unstable</version>
          <rep_platform>x86</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="Vitaly Chikunov">vt</reporter>
          <assigned_to name="manowar@altlinux.org">manowar</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>manowar</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>200536</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2021-07-15 15:12:03 +0300</bug_when>
    <thetext># control openssl-gost enable; echo $?
control: openssl-gost: Requested enable, got enabled
1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200537</commentid>
    <comment_count>1</comment_count>
    <who name="manowar@altlinux.org">manowar</who>
    <bug_when>2021-07-15 15:14:34 +0300</bug_when>
    <thetext>А зачем &quot;enable&quot; вместо &quot;enabled&quot;? Это feature request?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200538</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2021-07-15 15:18:48 +0300</bug_when>
    <thetext>(In reply to manowar@altlinux.org from comment #1)
&gt; А зачем &quot;enable&quot; вместо &quot;enabled&quot;? Это feature request?

Очевидно, это сообщение об ошибке в пакете openssl-gost-engine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200539</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2021-07-15 15:25:20 +0300</bug_when>
    <thetext>А там надо писать enabled. Я этого не понял сразу. Sorry.

        enabled|enable)
        enable_gost
                ;;
        disabled|disable)
        disable_gost
                ;;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200540</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2021-07-15 15:30:37 +0300</bug_when>
    <thetext>(In reply to Vitaly Chikunov from comment #3)
&gt; А там надо писать enabled. Я этого не понял сразу. Sorry.
&gt; 
&gt;         enabled|enable)
&gt;         enable_gost
&gt;                 ;;
&gt;         disabled|disable)
&gt;         disable_gost
&gt;                 ;;

control считает ошибкой ситуацию, когда выставленное состояние не совпадает с заказанным.

Зачем enable и disable, если состояния на самом деле enabled и disabled?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200541</commentid>
    <comment_count>5</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2021-07-15 15:34:53 +0300</bug_when>
    <thetext>В общем интерфейс у control слегка запутывающий. Я закрываю баг.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200542</commentid>
    <comment_count>6</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2021-07-15 15:41:20 +0300</bug_when>
    <thetext>.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200556</commentid>
    <comment_count>7</comment_count>
    <who name="manowar@altlinux.org">manowar</who>
    <bug_when>2021-07-15 18:44:31 +0300</bug_when>
    <thetext>(Ответ для Vitaly Chikunov на комментарий #3)
&gt; А там надо писать enabled. Я этого не понял сразу. Sorry.

Нужно ориентироваться на вывод

    control openssl-gost help
    control openssl-gost list

&gt;         enabled|enable)
&gt;         enable_gost
&gt;                 ;;
&gt;         disabled|disable)
&gt;         disable_gost
&gt;                 ;;

  Понял, лишние ключевые слова нужно убрать. Но может и вправду лучше переделать на &apos;enable&apos; и &apos;disable&apos;? С другой стороны, я их выбирал, помню, исходя из вывода

   # control openssl-gost
   enabled

Вроде так понятнее, когда для текущего состояния (статуса) выводятся слова &apos;enabled&apos; и &apos;disabled&apos;. Но в этом случае и для включения нужно использовать именно их --- хак с синонимами не прошёл.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200557</commentid>
    <comment_count>8</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2021-07-15 18:47:43 +0300</bug_when>
    <thetext>Моё мнение, что нужно оставить &quot;enabled&quot;, так как я уже так коммичу в апстрим для CI тестов в докере для альтов.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200558</commentid>
    <comment_count>9</comment_count>
    <who name="manowar@altlinux.org">manowar</who>
    <bug_when>2021-07-15 18:49:56 +0300</bug_when>
    <thetext>О! У этого контрола есть пользователи! :-) Хорошо.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200559</commentid>
    <comment_count>10</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2021-07-15 18:54:13 +0300</bug_when>
    <thetext>Теперь есть, так как без него тесты гостовых алгоритмов скипаются.
https://github.com/mimizohar/ima-evm-utils/commit/01cb906942b8a7042d4fd3cd7d0fd29c1532d589</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200560</commentid>
    <comment_count>11</comment_count>
    <who name="manowar@altlinux.org">manowar</who>
    <bug_when>2021-07-15 19:41:48 +0300</bug_when>
    <thetext>Можно проверять: http://git.altlinux.org/tasks/279057/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200561</commentid>
    <comment_count>12</comment_count>
    <who name="manowar@altlinux.org">manowar</who>
    <bug_when>2021-07-15 19:51:28 +0300</bug_when>
    <thetext>Не, осечка. Видимо, нужно добавить сообщение об ошибке, как в других контролах.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200562</commentid>
    <comment_count>13</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2021-07-15 20:24:24 +0300</bug_when>
    <thetext>openssl-gost-engine-1.1.0.3.0.255.ge3af41d.p1-alt4 -&gt; sisyphus:

 Thu Jul 15 2021 Paul Wolneykien &lt;manowar@altlinux&gt; 1.1.0.3.0.255.ge3af41d.p1-alt4
 - Fix: Remove synonyms for &apos;enabled&apos; and &apos;disabled&apos; states (closes: 40500).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200563</commentid>
    <comment_count>14</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2021-07-15 21:17:53 +0300</bug_when>
    <thetext>Спасибо!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>