From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: Re: Problem updating python3-cryptography Date: Wed, 15 Jun 2022 22:02:03 +0200 Message-ID: In-Reply-To: <681f6cb5-ab2c-8c34-9404-6909584b7798@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7286164944480607631==" List-Id: --===============7286164944480607631== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Michael, I added the rust-indoc and rust-paste packages as explicitly defined versions= to deal with the requirement for an older version. After another couple of c= hanges I have been able to get python3-cryptography to build successfully. However, the build ended up requiring three packages that seem totally redund= ant to me as they are related to windows but I can't figure out how to elimin= ate them. Do these have to stay being included or is there a way to stop them= being required. The packages are:- rust-winapi rust-winapi-i686-pc-windows-gnu rust-winapi-x86_64-pc-windows-gnu Regards, Adolf On 03/05/2022 23:02, Adolf Belka wrote: > Hi Michael, > > On 03/05/2022 12:32, Michael Tremer wrote: >> Hello Adolf, >> >> It looks like it is looking for a Rust package called asn1. >> >> You can create this in a very simple way by running: >> >> =C2=A0=C2=A0 tools/download-rust-crate asn1 >> >> That will create a new LFS file for this package and automatically downloa= d any sources. You will only need to add this to make.sh and build it. > That is a very nice script. Worked very well. >> >> You might need some further dependencies later on. > That is an understatement. > I am at the stage where python3-cryptography has required asn1, ouroboros a= nd pem and each of then has had additional dependencies. so I have reached an= additional 20 new rust packages. 5 of those had to be separately re-download= ed as specific versions were required and not the latest version. > > Then python3-cryptography indicated that a newer rust-pyo3 was required but= not the most up to date version. I added that version in and then rust-pyo3 = flagged up that the requirement was for indoc to be at version 0.3.6 but the = currently installed version is 1.0.3. That would mean reverting indoc to a mu= ch older version than the one already installed and running. The log file for= this is below. > > I am not sure what to do now. > > Regards, > Adolf. > > > Building rust-pyo3 log > > May=C2=A0 3 17:30:37: Building rust-pyo3 pyo3-0.15.1.tar.gz checksum OK > + cd /usr/src/lfs > + make -f rust-pyo3 LFS_BASEDIR=3D/usr/src install > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Installing pyo3-0.15.1 ... > Install started; saving file list to /usr/src/lsalr ... > cd /usr/src/pyo3-0.15.1 &&=C2=A0=C2=A0=C2=A0=C2=A0 mkdir -p /usr/src/pyo3-0= .15.1/.cargo && echo "${CARGO_CONFIG}" > /usr/src/pyo3-0.15.1/.cargo/config &= & rm -f Cargo.lock > cd /usr/src/pyo3-0.15.1 && CARGOPATH=3D/usr/src/pyo3-0.15.1/.cargo RUSTC_BO= OTSTRAP=3D1 cargo --offline build --release -Z avoid-dev-deps -j6 > error: failed to select a version for the requirement `indoc =3D "^0.3.6"` > candidate versions found which didn't match: 1.0.3 > location searched: directory source `/usr/share/cargo/registry` (which is r= eplacing registry `crates-io`) > required by package `pyo3 v0.15.1 (/usr/src/pyo3-0.15.1)` > perhaps a crate was updated and forgotten to be re-vendored? > As a reminder, you're using offline mode (--offline) which can sometimes ca= use surprising resolution failures, if this error is too confusing you may wi= sh to retry without the offline flag. > make: *** [rust-pyo3:77: /usr/src/log/pyo3-0.15.1] Error 101 > > > >> >> -Michael >> >>> On 10 Apr 2022, at 12:32, Adolf Belka wrote: >>> >>> Hi All, >>> >>> >>> I have gone through and updated all python3 modules that I found with a n= ew version. Everything built fine except for python3-cryptography. >>> >>> I have gone through the log info and it seems to me, but I might be wrong= , that wants pyasnl1 but it seems to be looking for asnl1. >>> >>> However I have not been able to figure out where it should be changed to = correct this, if my interpretation is even right. >>> >>> >>> I would appreciate any guidance/suggestions of what to look for. >>> >>> >>> Log feedback for the build of cryptography is attached below. >>> >>> >>> Regards, >>> >>> Adolf. >>> <_build.ipfire.log> >> --===============7286164944480607631==--