Your message dated Mon, 27 Jun 2022 01:48:48 +0000
with message-id <e1o5drs-0003hp...@fasolo.debian.org>
and subject line Bug#1012284: fixed in elan 1.4.1-1
has caused the Debian Bug report #1012284,
regarding elan - FTBFS unsatisfiable cargo dependencies
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1012284: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012284
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: elan
Version: 1.3.1-3
Severity: serious
Tags: patch

A number of rust crates have been updated recently, as a result your package no longer builds, I have updated the patches to relax the dependencies and was able to succesfully build the package, I have not tested it beyond that.
From: Christopher Hoskin <mans0...@debian.org>
Date: Wed, 26 Jan 2022 19:46:47 +0000
Subject: Revert "feat: support tar.zst archives"

This reverts commit 3241c307cfcff08f02ae9856aa505c05fc14fcd7.
---
 Cargo.lock                             | 39 ----------------------------------
 src/elan-dist/Cargo.toml               |  1 -
 src/elan-dist/src/component/package.rs | 16 --------------
 src/elan-dist/src/download.rs          |  4 ++--
 src/elan-dist/src/manifestation.rs     | 25 +++++++++++-----------
 5 files changed, 15 insertions(+), 70 deletions(-)

Index: elan-1.3.1/Cargo.lock
===================================================================
--- elan-1.3.1.orig/Cargo.lock
+++ elan-1.3.1/Cargo.lock
@@ -394,7 +394,6 @@ dependencies = [
  "winapi 0.3.9",
  "winreg 0.8.0",
  "zip",
- "zstd",
 ]
 
 [[package]]
@@ -778,15 +777,6 @@ source = "registry+https://github.com/ru
 checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
 
 [[package]]
-name = "jobserver"
-version = "0.1.24"
-source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "af25a77299a7f711a01975c35a6a424eb6862092cc2d6c72c4ed6cbc56dfc1fa"
-dependencies = [
- "libc",
-]
-
-[[package]]
 name = "js-sys"
 version = "0.3.55"
 source = "registry+https://github.com/rust-lang/crates.io-index";
@@ -1873,32 +1863,3 @@ dependencies = [
  "thiserror",
  "time 0.1.43",
 ]
-
-[[package]]
-name = "zstd"
-version = "0.9.0+zstd.1.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "07749a5dc2cb6b36661290245e350f15ec3bbb304e493db54a1d354480522ccd"
-dependencies = [
- "zstd-safe",
-]
-
-[[package]]
-name = "zstd-safe"
-version = "4.1.1+zstd.1.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "c91c90f2c593b003603e5e0493c837088df4469da25aafff8bce42ba48caf079"
-dependencies = [
- "libc",
- "zstd-sys",
-]
-
-[[package]]
-name = "zstd-sys"
-version = "1.6.1+zstd.1.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "615120c7a2431d16cf1cf979e7fc31ba7a5b5e5707b29c8a99e5dbf8a8392a33"
-dependencies = [
- "cc",
- "libc",
-]
Index: elan-1.3.1/src/elan-dist/Cargo.toml
===================================================================
--- elan-1.3.1.orig/src/elan-dist/Cargo.toml
+++ elan-1.3.1/src/elan-dist/Cargo.toml
@@ -14,7 +14,6 @@ itertools = "0.10.0"
 url = "2.2.1"
 tar = "0.4.33"
 flate2 = "1.0.14"
-zstd = "0.9"
 walkdir = "2.3.1"
 toml = "0.5.8"
 sha2 = ">= 0.9.2, <0.11"
Index: elan-1.3.1/src/elan-dist/src/component/package.rs
===================================================================
--- elan-1.3.1.orig/src/elan-dist/src/component/package.rs
+++ elan-1.3.1/src/elan-dist/src/component/package.rs
@@ -4,7 +4,6 @@
 
 extern crate filetime;
 extern crate flate2;
-extern crate zstd;
 extern crate tar;
 
 use errors::*;
@@ -140,21 +139,6 @@ impl<'a> TarGzPackage<'a> {
 
         TarPackage::unpack(stream, path)
     }
-    pub fn unpack_file(path: &Path, into: &Path) -> Result<()> {
-        let file = File::open(path).chain_err(|| ErrorKind::ExtractingPackage)?;
-        Self::unpack(file, into)
-    }
-}
-
-#[derive(Debug)]
-pub struct TarZstdPackage<'a>(TarPackage<'a>);
-
-impl<'a> TarZstdPackage<'a> {
-    pub fn unpack<R: Read>(stream: R, path: &Path) -> Result<()> {
-        let stream = zstd::stream::read::Decoder::new(stream)?;
-
-        TarPackage::unpack(stream, path)
-    }
     pub fn unpack_file(path: &Path, into: &Path) -> Result<()> {
         let file = File::open(path).chain_err(|| ErrorKind::ExtractingPackage)?;
         Self::unpack(file, into)
Index: elan-1.3.1/src/elan-dist/src/download.rs
===================================================================
--- elan-1.3.1.orig/src/elan-dist/src/download.rs
+++ elan-1.3.1/src/elan-dist/src/download.rs
@@ -99,9 +99,9 @@ impl<'a> DownloadCfg<'a> {
         Ok(())
     }
 
-    pub fn download_and_check(&self, url_str: &str) -> Result<temp::File<'a>> {
+    pub fn download_and_check(&self, url_str: &str, ext: &str) -> Result<temp::File<'a>> {
         let url = utils::parse_url(url_str)?;
-        let file = self.temp_cfg.new_file()?;
+        let file = self.temp_cfg.new_file_with_ext("", ext)?;
 
         utils::download_file(&url, &file, None, &|n| (self.notify_handler)(n.into()))?;
 
Index: elan-1.3.1/src/elan-dist/src/manifestation.rs
===================================================================
--- elan-1.3.1.orig/src/elan-dist/src/manifestation.rs
+++ elan-1.3.1/src/elan-dist/src/manifestation.rs
@@ -1,6 +1,6 @@
 //! Manifest a particular Lean version by installing it from a distribution server.
 
-use component::{TarGzPackage, TarZstdPackage, ZipPackage};
+use component::{TarGzPackage, ZipPackage};
 use download::DownloadCfg;
 use elan_utils::utils;
 use errors::*;
@@ -57,15 +57,20 @@ impl Manifestation {
         } else {
             unreachable!();
         };
-        let url_substring = informal_target.clone() + ".";
+        let ext = if cfg!(target_os = "linux") {
+            ".tar.gz"
+        } else {
+            ".zip"
+        };
+        let url_suffix = informal_target.clone() + ext;
         let re = Regex::new(format!(r#"/{}/releases/download/[^"]+"#, origin).as_str()).unwrap();
-        let download_page_file = dlcfg.download_and_check(&url)?;
+        let download_page_file = dlcfg.download_and_check(&url, "")?;
         let mut html = String::new();
         fs::File::open(&download_page_file as &::std::path::Path)?.read_to_string(&mut html)?;
         let url = re
             .find_iter(&html)
             .map(|m| m.as_str().to_string())
-            .find(|m| m.contains(&url_substring));
+            .find(|m| m.contains(&url_suffix));
         if url.is_none() {
             return Err(
                 format!("binary package was not provided for '{}'", informal_target).into(),
@@ -73,7 +78,7 @@ impl Manifestation {
         }
         let url = format!("https://github.com/{}";, url.unwrap());
 
-        let installer_file = dlcfg.download_and_check(&url)?;
+        let installer_file = dlcfg.download_and_check(&url, ext)?;
 
         let prefix = self.prefix.path();
 
@@ -91,15 +96,11 @@ impl Manifestation {
         })?;
 
         // Extract new files
-        if url.ends_with(".tar.gz") {
+        if cfg!(target_os = "linux") {
             TarGzPackage::unpack_file(&installer_file, prefix)?
-        } else if url.ends_with(".tar.zst") {
-            TarZstdPackage::unpack_file(&installer_file, prefix)?
-        } else if url.ends_with(".zip") {
-            ZipPackage::unpack_file(&installer_file, prefix)?
         } else {
-            return Err(format!("unsupported archive format: {}", url).into())
-        }
+            ZipPackage::unpack_file(&installer_file, prefix)?
+        };
 
         Ok(())
     }
From: Christopher Hoskin <mans0...@debian.org>
Date: Wed, 26 Jan 2022 19:36:13 +0000
Subject: dependencies

Forwarded: not-needed
---
 Cargo.toml                | 19 +++++++------------
 src/elan-dist/Cargo.toml  | 11 +++--------
 src/elan-utils/Cargo.toml | 15 +++++----------
 3 files changed, 15 insertions(+), 30 deletions(-)

Index: elan-1.3.1/Cargo.toml
===================================================================
--- elan-1.3.1.orig/Cargo.toml
+++ elan-1.3.1/Cargo.toml
@@ -32,30 +32,25 @@ error-chain = "0.12.4"
 itertools = "0.10.0"
 libc = "0.2.82"
 markdown = "0.3.0"
-rand = "0.8.2"
+rand = "^0.8.2"
 regex = "1.4.3"
-remove_dir_all = "0.6.1"
+remove_dir_all = ">= 0.5.2, < 0.8.0"
 same-file = "1.0.6"
 scopeguard = "1.1.0"
 serde = "1.0.119"
 serde_derive = "1.0.119"
-serde_json = "1.0.61"
-sha2 = "0.9.2"
-tempfile = "3.2.0"
-term = "0.7.0"
+serde_json = "^1.0.41"
+sha2 = ">= 0.9.2, < 0.11.0"
+tempfile = "^3.1.0"
+term = "^0.5.2"
 time = "0.3.4"
 toml = "0.5.8"
 url = "2.2.0"
-wait-timeout = "0.2.0"
+wait-timeout = "^0.1.5"
 zip = "0.5.9"
 tar = ">=0.4.36"
 flate2 = "1.0.14"
-json = "0.12.4"
-
-[target."cfg(windows)".dependencies]
-winapi = { version = "0.3.9", features = ["jobapi", "jobapi2", "processthreadsapi", "psapi", "synchapi", "winuser"] }
-winreg = "0.8.0"
-gcc = "0.3.55"
+json = "0.12.0"
 
 [workspace]
 members = ["src/download", "src/elan-dist", "src/elan-utils"]
Index: elan-1.3.1/src/elan-dist/Cargo.toml
===================================================================
--- elan-1.3.1.orig/src/elan-dist/Cargo.toml
+++ elan-1.3.1/src/elan-dist/Cargo.toml
@@ -11,25 +11,20 @@ license = "MIT OR Apache-2.0"
 [dependencies]
 regex = "1.4.3"
 itertools = "0.10.0"
-ole32-sys = "0.2.0"
 url = "2.2.1"
 tar = "0.4.33"
 flate2 = "1.0.14"
 zstd = "0.9"
 walkdir = "2.3.1"
 toml = "0.5.8"
-sha2 = "0.9.3"
-remove_dir_all = "0.7.0"
+sha2 = ">= 0.9.2, <0.11"
+remove_dir_all = ">= 0.5.2, <0.8"
 elan-utils = { path = "../elan-utils" }
 error-chain = "0.12.4"
-json = "0.12.4"
+json = "^0.12.0"
 zip = "0.5.13"
 filetime = "0.2.14"
 
-[target."cfg(windows)".dependencies]
-winapi = { version = "0.3.9", features = ["handleapi", "sysinfoapi", "tlhelp32", "winnt"] }
-winreg = "0.8.0"
-
 [target."cfg(not(windows))".dependencies]
 libc = "0.2.88"
 
Index: elan-1.3.1/src/elan-utils/Cargo.toml
===================================================================
--- elan-1.3.1.orig/src/elan-utils/Cargo.toml
+++ elan-1.3.1/src/elan-utils/Cargo.toml
@@ -11,19 +11,14 @@ license = "MIT OR Apache-2.0"
 download = { path = "../download" }
 error-chain = "0.12.4"
 libc = "0.2.88"
-rand = "0.8.3"
-remove_dir_all = "0.7.0"
+rand = "^0.8.3"
+remove_dir_all = ">= 0.5.2, <0.8"
 scopeguard = "1.1.0"
-semver = "0.11.0"
-sha2 = "0.9.3"
+semver = "0.9.0"
+sha2 = ">= 0.9.2, < 0.11"
 toml = "0.5.8"
 url = "2.2.1"
 curl = "0.4.34"
-openssl = { version = "0.10", features = ["vendored"] }
+openssl = { version = "0.10" }
 regex = "1.4.3"
 dirs = "3.0.1"
-
-[target."cfg(windows)".dependencies]
-winapi = { version = "0.3.9", features = ["combaseapi", "errhandlingapi", "fileapi", "handleapi", 
-    "ioapiset", "minwindef", "processthreadsapi", "shlobj", "shtypes", "userenv", "winbase", "winerror", "winnt", "winioctl"] }
-winreg = "0.8.0"

--- End Message ---
--- Begin Message ---
Source: elan
Source-Version: 1.4.1-1
Done: Christopher Hoskin <mans0...@debian.org>

We believe that the bug you reported is fixed in the latest version of
elan, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1012...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christopher Hoskin <mans0...@debian.org> (supplier of updated elan package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 27 Jun 2022 02:29:35 +0100
Source: elan
Architecture: source
Version: 1.4.1-1
Distribution: unstable
Urgency: medium
Maintainer: Christopher Hoskin <mans0...@debian.org>
Changed-By: Christopher Hoskin <mans0...@debian.org>
Closes: 1012284
Changes:
 elan (1.4.1-1) unstable; urgency=medium
 .
   * Fix malformed changelog
   * Import new upstream version (1.4.1)
   * Fix "elan - FTBFS unsatisfiable cargo dependencies" updated dependencies
     patch (Closes: #1012284)
   * Bump Standards-Version from 4.6.0.1 to 4.6.1.0 (no change required)
   * Uncomment VCS links
Checksums-Sha1:
 bab0587e0168a62f0e48ea9befba8b682a3a61bd 2663 elan_1.4.1-1.dsc
 ac0cac5c545ac739786972120eff84f4f1da84b0 96616 elan_1.4.1.orig.tar.gz
 3bc7c719c0122411f3092b08c3d81b0cf5768809 7176 elan_1.4.1-1.debian.tar.xz
 304e281d2b61672b24e46dd5c79afd74611487f4 14482 elan_1.4.1-1_amd64.buildinfo
Checksums-Sha256:
 9255d76e6deb5495fdacdee45efa5f1aed873dacf6b099a19e559785cf754616 2663 
elan_1.4.1-1.dsc
 eac4925100624e1d77d70a35408805fb88672e87b60a44fd93c31e8cfa4bfa91 96616 
elan_1.4.1.orig.tar.gz
 8cc93ba232ae721c4536ea10d9191efb23115af71b335faf29b3d3bf4778a625 7176 
elan_1.4.1-1.debian.tar.xz
 f418bd7112717e7d0d7e627763393bcf215a04f8c608d43ee8e74cc242b2b369 14482 
elan_1.4.1-1_amd64.buildinfo
Files:
 f0160e6d90a0ee0d23bae9bfea322776 2663 math optional elan_1.4.1-1.dsc
 e0c6617b0ebde2143ac76382cd579923 96616 math optional elan_1.4.1.orig.tar.gz
 c0e2fe2758cbbbe8831a1e6a8c8d2499 7176 math optional elan_1.4.1-1.debian.tar.xz
 de1401c0b0751ae6265dc2367e06452d 14482 math optional 
elan_1.4.1-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEbctJ5K6JlvFsvhGhf6qUsnUUSpoFAmK5CNoACgkQf6qUsnUU
Spo/+A/9GBWfQj3QcGKZYSdliLTCSq/qOQc4WcFOPelNJCbxek6SVb4VdK0gap6V
ygqCQmY+X206fH0XlqCF+baCFyYalaajQOCvm2aNUpkUVqkymhFyK9N/Sku3BV7Q
H4BdJh0mSCUoeajfyKt33kpJ7khAt0oWOZLgToSaNRg3mhYOiP7uM0IRePf1CPAh
53pE7DLmyOWXaXpqv5KnzN2cclxxI8kCTBrtE5gr3J5yxDIom/3Y8b12aiqW6huy
q3LVVyEUNJC+IPNEMRAtTJGeESbH03nYy3WESI4Sw7DC8tNSezYTyUPH+1ZIsoGg
b0UZYUSeLlh/8WenpAeZahzwa8gDH4J8GffjwScTz51IYDxXeP1B9c1MQU31mIUp
NeX6gpunWkZ87xPtrKphYbC0TqjrszruYUoQy3i+QaiBBvxkVueoh6LJNoW3RcXA
/L3FStrxhjPPw+4MoHK10fEYNSXdkwTXpSd/SQKdITXPE/hvnlD4mhqrJf4vNOGM
Nzos7T828wvpB2QSR7CHb+0iKP7FIagNy8hYqJEpeYAHNsUbtWMEMMKlIcW73u6u
G/dbjd6+eXBwjaR4XVSqLILmJ6AY6N6kITDt76FZoRBWSk1GXahs/jweILHw5/0x
dt1WucgC5RIIK39DEqnnDQ6s3yzxlB6lP1d9XmcTlkAZMf/f37M=
=Os9i
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to