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

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

    <bug>
          <bug_id>39211</bug_id>
          
          <creation_ts>2020-11-07 13:39:25 +0300</creation_ts>
          <short_desc>perl-Modern-Perl provides two different versions of perl(Modern/Perl.pm)</short_desc>
          <delta_ts>2020-11-07 20:07:23 +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>perl-Modern-Perl</component>
          <version>unstable</version>
          <rep_platform>all</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="Dmitry V. Levin">ldv</reporter>
          <assigned_to name="viy">viy</assigned_to>
          <cc>viy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>193861</commentid>
    <comment_count>0</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2020-11-07 13:39:25 +0300</bug_when>
    <thetext>$ rpmquery --provides -p Sisyphus/files/noarch/RPMS/perl-Modern-Perl-1.20200211-alt1.noarch.rpm |uniq -D -w20
perl(Modern/Perl.pm) = 2019.0
perl(Modern/Perl.pm) = 1.202.002</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193865</commentid>
    <comment_count>1</comment_count>
    <who name="viy">viy</who>
    <bug_when>2020-11-07 16:52:34 +0300</bug_when>
    <thetext>Займет какое-то время, привести в порядок.
Modern-Perl форксничал с версионированием,
в autoimports 17 пакетов, в которых старое 
perl-API-DirectAdmin-0.09-alt1.noarch|16396|2010.0
perl-Catalyst-Plugin-BigSitemap-0.9-alt1.noarch|16396|2010.0
perl-XSDSQL-20130411-alt1.noarch|16396|2010.0
perl-XML-CompileX-Schema-Loader-0.006-alt1.noarch|16396|2010.0
perl-Text-CSV-Merge-0.05-alt1.noarch|16396|2010.0
perl-XML-Ant-BuildFile-0.217-alt1.noarch|16396|2010.0
perl-Hetula-Client-0.008-alt1.noarch|16396|2015.0
perl-MooX-Async-Console-0.105-alt1.noarch|16396|2017.0
perl-Pootle-Client-0.08-alt1.noarch|16396|2015.0
perl-MediaCloud-JobManager-0.27-alt1.noarch|16396|2012.0
perl-App-DBCritic-0.023-alt1.noarch|16396|2011.0
perl-Bio-MUST-Drivers-0.193030-alt1.noarch|16396|2011.0
perl-WG-API-0.13-alt1.noarch|16396|2015.0
perl-Bio-MUST-Core-scripts-0.202310-alt1.noarch|16396|2011.0
perl-Container-Buildah-0.3.1-alt1.x86_64|16396|2015.0
perl-Dist-Zilla-Plugin-RequiresExternal-1.009-alt1_1.noarch|16396|2010.0
perl-Dist-Zilla-Plugin-WSDL-0.208-alt1.noarch|16396|2010.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193874</commentid>
    <comment_count>2</comment_count>
    <who name="viy">viy</who>
    <bug_when>2020-11-07 19:31:28 +0300</bug_when>
    <thetext>Хотел развесить баги по апстримам, заглянул в код Modern::Perl, а там действительно две валидные (для импорта) версии: 1.20200211 и 2020: 

package Modern::Perl;
$Modern::Perl::VERSION = &apos;1.20200211&apos;;
...
sub VERSION {
    my ($self, $version) = @_;

    return $Modern::Perl::VERSION || 2020 unless defined $version;
    return $Modern::Perl::VERSION || 2020 if             $version &lt; 2009;

    $wanted_date = $version if (caller(1))[3] =~ /::BEGIN/;
    return 2020;
}

такая, получается, не баг, а фича.

В принципе, могу дропнуть версию 1.х и оставить версию 2020.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193877</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2020-11-07 19:57:47 +0300</bug_when>
    <thetext>(In reply to viy from comment #2)
&gt; В принципе, могу дропнуть версию 1.х и оставить версию 2020.

Сравнения версий в rpm работают не так, как ожидают люди, когда у пакета больше одной версии.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193878</commentid>
    <comment_count>4</comment_count>
    <who name="viy">viy</who>
    <bug_when>2020-11-07 20:06:36 +0300</bug_when>
    <thetext>(Ответ для Dmitry V. Levin на комментарий #3)
&gt; (In reply to viy from comment #2)
&gt; &gt; В принципе, могу дропнуть версию 1.х и оставить версию 2020.
&gt; 
&gt; Сравнения версий в rpm работают не так, как ожидают люди, когда у пакета
&gt; больше одной версии.

да, я так и думал, дропнул 1.хxxxxxx в пользу 20xx
#261201 BUILDING #1 [locked] sisyphus
srpm=perl-Modern-Perl-1.20200211-alt2.src.rpm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193879</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2020-11-07 20:07:23 +0300</bug_when>
    <thetext>perl-Modern-Perl-1:1.20200211-alt2 -&gt; sisyphus:

 Sat Nov 07 2020 Igor Vlasenko &lt;viy@altlinux.ru&gt; 1:1.20200211-alt2
 - consolidated perl(Modern/Perl.pm) versions (closes: #39211)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>