[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#786401: dose: Fatal error: exception Parsing.Parse_error



Hi,

Quoting Paul Wise (2015-05-31 12:53:34)
> I've reactivated the check, the errors are now:
> 
> Fatal error in module deb/debcudf.ml: 
>  Unable to get real version for arm64 (15212)
>  All Known versions for this package are (cpp-4.9-aarch64-linux-gnu,4.9.2-18),(cpp-4.9-arm-linux-gnueabi,4.9.2-18),(cpp-4.9-arm-linux-gnueabihf,4.9.2-18),(cpp-4.9-powerpc-linux-gnu,4.9.2-18),(cpp-4.9-powerpc64le-linux-gnu,4.9.2-18),(g++-4.9-aarch64-linux-gnu,4.9.2-18),(g++-4.9-arm-linux-gnueabi,4.9.2-18),(g++-4.9-arm-linux-gnueabihf,4.9.2-18),(g++-4.9-powerpc-linux-gnu,4.9.2-18),(g++-4.9-powerpc64le-linux-gnu,4.9.2-18),(gcc-4.9-aarch64-linux-gnu,4.9.2-18),(gcc-4.9-arm-linux-gnueabi,4.9.2-18),(gcc-4.9-arm-linux-gnueabihf,4.9.2-18),(gcc-4.9-powerpc-linux-gnu,4.9.2-18),(gcc-4.9-powerpc64le-linux-gnu,4.9.2-18),(gccgo-4.9,4.9.2-18),(gfortran-4.9-aarch64-linux-gnu,4.9.2-18),(gfortran-4.9-arm-linux-gnueabi,4.9.2-18),(gfortran-4.9-arm-linux-gnueabihf,4.9.2-18),(gfortran-4.9-powerpc-linux-gnu,4.9.2-18),(gfortran-4.9-powerpc64le-linux-gnu,4.9.2-18),(libgcc-4.9-dev,4.9.2-18),(libgfortran-4.9-dev,4.9.2-18),(libstdc++-4.9-dev,4.9.2-18)
> Fatal error in module deb/debcudf.ml: 
>  Unable to get real version for arm64 (15218)
>  All Known versions for this package are (cpp-4.9-aarch64-linux-gnu,4.9.2-16),(cpp-4.9-arm-linux-gnueabi,4.9.2-16),(cpp-4.9-arm-linux-gnueabihf,4.9.2-16),(cpp-4.9-powerpc64le-linux-gnu,4.9.2-16),(g++-4.9-aarch64-linux-gnu,4.9.2-16),(g++-4.9-arm-linux-gnueabi,4.9.2-16),(g++-4.9-arm-linux-gnueabihf,4.9.2-16),(g++-4.9-powerpc64le-linux-gnu,4.9.2-16),(gcc-4.9-aarch64-linux-gnu,4.9.2-16),(gcc-4.9-arm-linux-gnueabi,4.9.2-16),(gcc-4.9-arm-linux-gnueabihf,4.9.2-16),(gcc-4.9-powerpc64le-linux-gnu,4.9.2-16),(gccgo-4.9,4.9.2-16),(gfortran-4.9-aarch64-linux-gnu,4.9.2-16),(gfortran-4.9-arm-linux-gnueabi,4.9.2-16),(gfortran-4.9-arm-linux-gnueabihf,4.9.2-16),(gfortran-4.9-powerpc64le-linux-gnu,4.9.2-16),(libgcc-4.9-dev,4.9.2-16),(libgfortran-4.9-dev,4.9.2-16),(libstdc++-4.9-dev,4.9.2-16)

thanks to pabs I was able to reproduce the problem like this:

$ wget http://snapshot.debian.org/archive/debian/20150531T102322Z/dists/sid/main/binary-amd64/Packages.gz
$ dose-debcheck -e -f --latest --fg Packages.gz | tail
Fatal error in module deb/debcudf.ml: 
 Unable to get real version for arm64 (15212)
 All Known versions for this package are (cpp-4.9-aarch64-linux-gnu,4.9.2-18),(cpp-4.9-arm-linux-gnueabi,4.9.2-18),(cpp-4.9-arm-linux-gnueabihf,4.9.2-18),(cpp-4.9-powerpc-linux-gnu,4.9.2-18),(cpp-4.9-powerpc64le-linux-gnu,4.9.2-18),(g++-4.9-aarch64-linux-gnu,4.9.2-18),(g++-4.9-arm-linux-gnueabi,4.9.2-18),(g++-4.9-arm-linux-gnueabihf,4.9.2-18),(g++-4.9-powerpc-linux-gnu,4.9.2-18),(g++-4.9-powerpc64le-linux-gnu,4.9.2-18),(gcc-4.9-aarch64-linux-gnu,4.9.2-18),(gcc-4.9-arm-linux-gnueabi,4.9.2-18),(gcc-4.9-arm-linux-gnueabihf,4.9.2-18),(gcc-4.9-powerpc-linux-gnu,4.9.2-18),(gcc-4.9-powerpc64le-linux-gnu,4.9.2-18),(gccgo-4.9,4.9.2-18),(gfortran-4.9-aarch64-linux-gnu,4.9.2-18),(gfortran-4.9-arm-linux-gnueabi,4.9.2-18),(gfortran-4.9-arm-linux-gnueabihf,4.9.2-18),(gfortran-4.9-powerpc-linux-gnu,4.9.2-18),(gfortran-4.9-powerpc64le-linux-gnu,4.9.2-18),(libgcc-4.9-dev,4.9.2-18),(libgfortran-4.9-dev,4.9.2-18),(libstdc++-4.9-dev,4.9.2-18)
  status: broken
  reasons:
   -
    missing:
     pkg:
      package: g++-4.9-aarch64-linux-gnu
      version: 4.9.2-18
      architecture: amd64
      essential: false
      unsat-dependency: 

The bad news is, that this error also affects dose-distcheck 3.3-3 in unstable.

The good news is, that I fixed the problem shortly after the 3.3 release.

The bad news is, that there is no release of dose3 with the fix yet. It is only
in git and part of commit 42623133.

The good news is, that I backported the fix to dose3 3.3~beta1-3 in jessie.
Please find the debdiff attached.

It would probably be possible to have the fixed dose3 version in backports or a
stable update?

cheers, josch
diff -Nru dose3-3.3~beta1/debian/changelog dose3-3.3~beta1/debian/changelog
--- dose3-3.3~beta1/debian/changelog	2014-12-12 16:41:11.000000000 +0100
+++ dose3-3.3~beta1/debian/changelog	2015-05-31 15:25:09.000000000 +0200
@@ -1,3 +1,10 @@
+dose3 (3.3~beta1-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * add patch fix_get_real_version (closes: #786401)
+
+ -- Johannes Schauer <josch@debian.org>  Sun, 31 May 2015 15:03:06 +0200
+
 dose3 (3.3~beta1-3) unstable; urgency=medium
 
   [ Stefano Zacchiroli ]
diff -Nru dose3-3.3~beta1/debian/patches/fix_get_real_version dose3-3.3~beta1/debian/patches/fix_get_real_version
--- dose3-3.3~beta1/debian/patches/fix_get_real_version	1970-01-01 01:00:00.000000000 +0100
+++ dose3-3.3~beta1/debian/patches/fix_get_real_version	2015-05-31 15:25:09.000000000 +0200
@@ -0,0 +1,18 @@
+Subject: fix function fix_get_real_version
+Origin: backport, commit:42623133af91ee7d88dab2d057435b0409b2217d
+
+diff --git a/deb/debcudf.ml b/deb/debcudf.ml
+index 6906cd4..afde8f2 100644
+--- a/deb/debcudf.ml
++++ b/deb/debcudf.ml
+@@ -226,7 +226,9 @@ let get_real_version tables (name,cudfversion) =
+   let package = 
+     (* XXX this is a hack. I should record the name with the architecture *)
+     let n = CudfAdd.decode name in
+-    try let (n,a) = ExtString.String.split n ":" in if a <> "any" then a else n
++    try
++      let (n,a) = ExtString.String.split n ":" in
++      if n = "src" then a else n
+     with Invalid_string -> n
+   in
+   try
diff -Nru dose3-3.3~beta1/debian/patches/series dose3-3.3~beta1/debian/patches/series
--- dose3-3.3~beta1/debian/patches/series	2014-12-12 16:41:11.000000000 +0100
+++ dose3-3.3~beta1/debian/patches/series	2015-05-31 15:25:09.000000000 +0200
@@ -4,3 +4,4 @@
 installcudf-target
 build-cmx
 manpages-typos
+fix_get_real_version

Attachment: signature.asc
Description: signature


Reply to: