nabijaczleweli / cargo-update

A cargo subcommand for checking and applying updates to installed executables
MIT License
1.22k stars 42 forks source link

Necessary packages removed from Ubuntu repositories #125

Closed denningsrogue closed 4 years ago

denningsrogue commented 4 years ago

After Ubuntu 18.4, the openssl-devel and libssl1.0.0 packages have been removed from the Ubuntu repositories.

nabijaczleweli commented 4 years ago

How about libssl-dev? That's the package that works for me on sid.

denningsrogue commented 4 years ago

Hi there

Libel-dev is in the repository but it uses a later version of libssl.

On Jan 27, 2020, at 06:47, наб notifications@github.com wrote:

How about libssl-dev?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nabijaczleweli/cargo-update/issues/125?email_source=notifications&email_token=AFT6CIKRMPWFAXP6QON43RDQ73QWHA5CNFSM4KLSDBA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ7RJ3A#issuecomment-578753772, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFT6CIKUKZHJAVGVMKQS623Q73QWHANCNFSM4KLSDBAQ.

denningsrogue commented 4 years ago

Sorry about the auto correct: libssl-dev is in the repository.

On Jan 27, 2020, at 07:10, Richard Peters richardpeters@me.com wrote:

Hi there

Libel-dev is in the repository but it uses a later version of libssl.

On Jan 27, 2020, at 06:47, наб <notifications@github.com mailto:notifications@github.com> wrote:

How about libssl-dev?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nabijaczleweli/cargo-update/issues/125?email_source=notifications&email_token=AFT6CIKRMPWFAXP6QON43RDQ73QWHA5CNFSM4KLSDBA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ7RJ3A#issuecomment-578753772, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFT6CIKUKZHJAVGVMKQS623Q73QWHANCNFSM4KLSDBAQ.

nabijaczleweli commented 4 years ago

Going by https://packages.ubuntu.com/search?suite=all&section=all&arch=any&keywords=libssl-dev&searchon=names all repositories package 1.0.x or 1.1.x, so unless you have a concrete build error then I'm not sure how to help you.

Also note: both macOS (openssl 1.1 via brew, #123) and my sid (libssl-dev @ 1.1.1d-2) build, so I'm not sure why it'd fail in the first place?

nabijaczleweli commented 4 years ago

I ran some tests – a clean default and minimal chroot of bionic (current LTS) and eoan (latest); both worked.

My debootstrap needed a sudo ln -s gutsy /usr/share/debootstrap/scripts/eoan, but otherwise, substitute bionic for eoan everywhere and it'll work.

Default:

sudo debootstrap bionic bionic
sudo mount --bind /proc bionic/proc
sudo chroot bionic

apt install wget build-essential libssl-dev pkg-config
wget -O- https://sh.rustup.rs | sh

Minimal:

sudo debootstrap --variant=minbase bionic bionic
sudo mount --bind /proc bionic/proc
sudo chroot bionic

apt install --no-install-{suggest,recommend}s wget build-essential libssl-dev pkg-config ca-certificates
wget https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init && chmod +x rustup-init && ./rustup-init --profile minimal

Then the following works with no problems:

cargo install cargo-update
cargo install-update -a

My packaging woes were answered by these two paragraphs from the openssl-dev error:

Make sure you also have the development packages of openssl installed. For example, libssl-dev on Ubuntu or openssl-devel on Fedora.

It looks like you're compiling on Linux and also targeting Linux. Currently this requires the pkg-config utility to find OpenSSL but unfortunately pkg-config could not be found. If you have OpenSSL installed you can likely fix this by installing pkg-config.

Closing as norepro.