shlomif / perl-XML-SemanticDiff

The XML-SemanticDiff CPAN distribution for semantic (= non-ordered and probably not what you want) comparison of two XML docs
https://metacpan.org/release/XML-SemanticDiff
Other
2 stars 5 forks source link

XML::SemanticDiff::BasicHandler cannot be upgraded over cpan from 1.0006 to 1.0007 #12

Open dilyanpalauzov opened 5 months ago

dilyanpalauzov commented 5 months ago

The problem report is that using utils/cpan, after upgrading successfully XML::SemanticDiff::BasicHandler, it is still shown as not upgraded.

In perl-5.38.2/utils/cpan I do:

cpan shell -- CPAN exploration and modules installation (v2.36)
Enter 'h' for help.

cpan[1]> r
Reading '/root/.cpan/Metadata'
  Database was generated on Fri, 01 Mar 2024 18:29:01 GMT

Package namespace         installed    latest  in CPAN file
Mail::SPF                    v2.009 3.20240206  MBRADSHAW/Mail-SPF-3.20240206.tar.gz
Mail::SpamAssassin::Bayes::CombineChi     undef         1  SIDNEY/Mail-SpamAssassin-4.0.0.tar.gz
Math::Int64::die_on_overflow     undef      0.54  SALVA/Math-Int64-0.54.tar.gz
Types::Serialiser::Error      undef      1.01  MLEHMANN/Types-Serialiser-1.01.tar.gz
XML::DOM::DOMException        undef      1.26  ENNO/libxml-enno-1.00.tar.gz
XML::SemanticDiff::BasicHandler    1.0006    1.0007  PERIGRIN/XML-SemanticDiff-1.0007.tar.gz
688 installed modules have no parsable version number
(use 'o conf show_unparsable_versions 1' to show them)

cpan[2]> upgrade XML::SemanticDiff::BasicHandler

Package namespace         installed    latest  in CPAN file
XML::SemanticDiff::BasicHandler    1.0006    1.0007  PERIGRIN/XML-SemanticDiff-1.0007.tar.gz
Running install for module 'XML::SemanticDiff::BasicHandler'
Checksum for /root/.cpan/sources/authors/id/P/PE/PERIGRIN/XML-SemanticDiff-1.0007.tar.gz ok
Scanning cache /root/.cpan/build for sizes
....................................................------------------------DONE
DEL(1/13): /root/.cpan/build/XML-LibXML-2.0210-0
DEL(2/13): /root/.cpan/build/Data-Printer-1.002001-0
DEL(3/13): /root/.cpan/build/Email-Sender-2.601-0
DEL(4/13): /root/.cpan/build/IPC-Run3-0.049-0
DEL(5/13): /root/.cpan/build/Mail-DKIM-1.20240124-0
DEL(6/13): /root/.cpan/build/Math-Int64-0.57-0
DEL(7/13): /root/.cpan/build/Net-DNS-1.43-0
DEL(8/13): /root/.cpan/build/Test-Warnings-0.033-0
DEL(9/13): /root/.cpan/build/URI-5.25-0
DEL(10/13): /root/.cpan/build/YAML-LibYAML-0.89-0
DEL(11/13): /root/.cpan/build/libwww-perl-6.76-0
DEL(12/13): /root/.cpan/build/DateTime-TimeZone-2.62-0
DEL(13/13): /root/.cpan/build/MIME-Types-2.26-0
'YAML' not installed, will not store persistent state
Configuring P/PE/PERIGRIN/XML-SemanticDiff-1.0007.tar.gz with Build.PL
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'XML-SemanticDiff' version '1.0007'
  PERIGRIN/XML-SemanticDiff-1.0007.tar.gz
  /usr/local/bin/perl Build.PL -- OK
Running Build for P/PE/PERIGRIN/XML-SemanticDiff-1.0007.tar.gz
Building XML-SemanticDiff
  PERIGRIN/XML-SemanticDiff-1.0007.tar.gz
  ./Build -- OK
Running Build test for PERIGRIN/XML-SemanticDiff-1.0007.tar.gz
t/00-compile.t ........................ ok
t/01basic.t ........................... ok
t/02load_xml.t ........................ ok
t/03simple_compare.t .................. ok
t/04namespaces.t ...................... ok
t/05simple_handler.t .................. ok
t/06pass_to_handler.t ................. ok
t/07pitest.t .......................... ok
t/08nonexist_ns.t ..................... ok
t/09two-tags.t ........................ ok
t/10wide-chars.t ...................... ok
t/11tag-in-different-locations.t ...... ok
t/12missing-element-has-o-as-cdata.t .. ok
t/13to-doc-read.t ..................... ok
t/14ignore_xpath.t .................... ok
t/15ignore_multi.t .................... ok
t/16zero_to_empty_str_cmp.t ........... ok
t/style-trailing-space.t .............. skipped: Test::TrailingSpace required for trailing space test.
All tests successful.
Files=18, Tests=47,  4 wallclock secs ( 0.08 usr  0.02 sys +  1.35 cusr  0.31 csys =  1.76 CPU)
Result: PASS
Lockfile removed.
r
  PERIGRIN/XML-SemanticDiff-1.0007.tar.gz
  ./Build test -- OK
Running Build install for PERIGRIN/XML-SemanticDiff-1.0007.tar.gz
Building XML-SemanticDiff
Installing /usr/local/share/man/man3/XML::SemanticDiff::BasicHandler.3
Installing /usr/local/share/man/man3/XML::SemanticDiff.3
  PERIGRIN/XML-SemanticDiff-1.0007.tar.gz
  ./Build install  -- OK

cpan[3]> r

Package namespace         installed    latest  in CPAN file
Mail::SPF                    v2.009 3.20240206  MBRADSHAW/Mail-SPF-3.20240206.tar.gz
Mail::SpamAssassin::Bayes::CombineChi     undef         1  SIDNEY/Mail-SpamAssassin-4.0.0.tar.gz
Math::Int64::die_on_overflow     undef      0.54  SALVA/Math-Int64-0.54.tar.gz
Types::Serialiser::Error      undef      1.01  MLEHMANN/Types-Serialiser-1.01.tar.gz
XML::DOM::DOMException        undef      1.26  ENNO/libxml-enno-1.00.tar.gz
XML::SemanticDiff::BasicHandler    1.0006    1.0007  PERIGRIN/XML-SemanticDiff-1.0007.tar.gz
688 installed modules have no parsable version number
(use 'o conf show_unparsable_versions 1' to show them)

cpan[4]>
shlomif commented 5 months ago

Hi @dilyanpalauzov ! I no longer maintain XML::SemanticDiff (and I also recommend against using it).

dilyanpalauzov commented 5 months ago

The bottom of https://metacpan.org/pod/XML::SemanticDiff says

Source Code … https://github.com/shlomif/perl-XML-SemanticDiff

I have installed the dependencies of SpamAssassin and this has somehow installed XML::SemanticDiff. Now cpan’s “report updates” does all the time say, that this package should be updated from version 1.0006 to 1.0007, but in practice this update is not possible. Only someone with authority in CPAN can fix this problem.

I kindly ask you, or the ones who maintain this package, to do the necessary to resolve this versions discrepancy, so that the fix works globally.