Re: [LFS Trac] #5912: openssl-4.0.0

"LFS Trac" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <[email protected]>
#5912: openssl-4.0.0
-------------------------+-----------------------
 Reporter:  Bruce Dubbs  |       Owner:  lfs-book
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  13.1
Component:  Book         |     Version:  git
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+-----------------------
Comment (by Xi Ruoyao):

 rustc is a little complicated, we need to update (or patch but I don't
 think patching is easier than updating) the shipped openssl and openssl-
 sys crates (used by cargo) to support openssl-4.0.0.

 {{{
 curl https://github.com/lfs-book/rust-openssl/archive/v0.10.77+openssl4
 /rust-openssl-0.10.77+openssl4.tar.gz -LO

 cd rustc-1.94.1-src
 tar xf ../rust-openssl-0.10.77+openssl4.tar.gz
 mv rust-openssl-0.10.77+openssl4 rust-openssl

 cat >> Cargo.toml << EOF
 [patch.crates-io]
 openssl = { path = "../../../rust-openssl/openssl" }
 openssl-sys = { path = "../../../rust-openssl/openssl-sys" }
 EOF

 sed -ri src/tools/cargo/Cargo.lock.orig \
     -e '/name = "openssl-
 sys"/,/^$/{/source|checksum/d;s/0.9.111/0.9.113/}' \
     -e '/name = "openssl"/,/^$/{/source|checksum/d;s/0.10.75/0.10.77/}'
 \
     -e '/name = "openssl-macros"/,/^$/{/source|checksum/d}'
 }}}

 I guess cargo-c needs something similar as it ships some code from cargo.
-- 
Ticket URL: <https://wiki.linuxfromscratch.org/lfs/ticket/5912#comment:18>
LFS Trac <https://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.