Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to update 6.3.1 -> 6.5.0 on Linux #198

Closed
ctsstc opened this issue Mar 16, 2023 · 1 comment
Closed

Unable to update 6.3.1 -> 6.5.0 on Linux #198

ctsstc opened this issue Mar 16, 2023 · 1 comment

Comments

@ctsstc
Copy link
Member

ctsstc commented Mar 16, 2023

╰─❯ brew upgrade
                                                                                                                                                
==> Upgrading 1 outdated package:
uptech/oss/git-ps-rs 6.3.1 -> 6.5.0
==> Fetching uptech/oss/git-ps-rs
==> Cloning https://github.com/uptech/git-ps-rs.git
Updating /home/kumoricon/.cache/Homebrew/git-ps-rs--git
==> Checking out tag 6.5.0
HEAD is now at 3e3a1e5 Bump version to v6.5.0
HEAD is now at 3e3a1e5 Bump version to v6.5.0
==> Upgrading uptech/oss/git-ps-rs
  6.3.1 -> 6.5.0 

==> cargo install
Last 15 lines from /home/coder/.cache/Homebrew/Logs/git-ps-rs/01.cargo:

  $HOST = x86_64-unknown-linux-gnu
  $TARGET = x86_64-unknown-linux-gnu
  openssl-sys = 0.9.74


  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`.

  ', /home/coder/.cache/Homebrew/cargo_cache/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.74/build/find_normal.rs:191:5
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `gps v6.5.0 (/tmp/git-ps-rs-20230316-41823-5rb6wd)`, intermediate artifacts can be found at `/tmp/git-ps-rs-20230316-41823-5rb6wd/target`

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/uptech/homebrew-oss/issues

Brew list includes: openssl@3 openssl@1.1 pkg-config

brew list

bdw-gc
berkeley-db
berkeley-db@5
binutils
bison
brotli
bzip2
ca-certificates
cmake
curl
expat
fzf
gcc
gcc@11
gdbm
gettext
gh
git
git-ps-rs
glib
glibc
gmp
gnupg
gnutls
gperf
gpgme
guile
icu4c
isl
krb5
libassuan
libcap
libedit
libevent
libffi
libgcrypt
libgpg-error
libidn
libidn2
libksba
libmpc
libnghttp2
libnsl
libsecret
libssh2
libtasn1
libtirpc
libtool
libunistring
libusb
libxcrypt
libxml2
linux-headers@4.4
linux-headers@5.15
lz4
m4
mpdecimal
mpfr
ncurses
nettle
npth
openldap
openssl@1.1
openssl@3
p11-kit
pcre
pcre2
perl
pinentry
pkg-config
python@3.10
python@3.11
readline
rtmpdump
rust
sqlite
systemd
texinfo
tree
unbound
unzip
util-linux
xz
zlib
zsh
zstd

I tried with the environment variable: RUST_BACKTRACE=1 and did not notice any different output.

The file throwing this error is from:
/home/coder/.cache/Homebrew/cargo_cache/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.74/build/find_normal.rs

    if host.contains("unknown-linux")
        && target.contains("unknown-linux-gnu")
        && Command::new("pkg-config").output().is_err()
    {
        msg.push_str(
            "
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`.

",
        );
    }

So this must be true: Command::new("pkg-config").output().is_err()

@ctsstc
Copy link
Member Author

ctsstc commented Mar 16, 2023

Resolved by installing pkg-config through apt instead of brew.

ie:

sudo apt install pkg-config

Note: I did not remove pkg-config from brew.

PS: Not sure if something changed between these versions that provoked this?

Helpful resources:

@ctsstc ctsstc closed this as completed Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant