8000 Tealdeer doesn't build with `native-tls` feature in the release workflow · Issue #421 · tealdeer-rs/tealdeer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tealdeer doesn't build with native-tls feature in the release workflow #421

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

Open
niklasmohrin opened this issue Mar 23, 2025 · 1 comment
Labels

Comments

@niklasmohrin
Copy link
Collaborator

Running

podman run --rm -i -v $(pwd):/home/rust/src messense/rust-musl-cross:arm-musleabihf cargo b --release --locked --no-default-features -F native-tls

fails with

  Could not find openssl via pkg-config:
  Could not run `PKG_CONFIG_PATH=/usr/local/musl/arm-unknown-linux-musleabihf/lib/pkgconfig:/usr/local/musl/lib/pkgconfig PKG_CONFIG_LIBDIR=/usr/local/musl/arm-unknown-linux-musleabihf/lib/pkgconfig:/usr/local/musl/lib/pkgconfig PKG_CONFIG_SYSROOT_DIR=/usr/local/musl/arm-unknown-linux-musleabihf PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags openssl`
  The pkg-config command could not be found.

  Most likely, you need to install a pkg-config package for your OS.
  Try `apt install pkg-config`, or `yum install pkg-config`,
  or `pkg install pkg-config`, or `apk add pkgconfig` depending on your distribution.

  If you've already installed it, ensure the pkg-config command is one of the
  directories in the PATH environment variable.

  If you did not expect this build to link to a pre-installed system library,
  then check documentation of the openssl-sys crate for an option to
  build the library from source, or disable features or dependencies
  that require pkg-config.

  cargo:warning=Could not find directory of OpenSSL installation, and this `-sys` crate cannot proceed without this knowledge. If OpenSSL is installed and this crate had trouble finding it,  you can set the `OPENSSL_DIR` environment variable for the compilation process. See stderr section below for further information.

  --- stderr


  Could not find directory of OpenSSL installation, and this `-sys` crate cannot
  proceed without this knowledge. If OpenSSL is installed and this crate had
  trouble finding it,  you can set the `OPENSSL_DIR` environment variable for the
  compilation process.

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

  If you're in a situation where you think the directory *should* be found
  automatically, please open a bug at https://github.com/sfackler/rust-openssl
  and include information about your system as well as this message.

  $HOST = x86_64-unknown-linux-gnu
  $TARGET = arm-unknown-linux-musleabihf
  openssl-sys = 0.9.106

It's possible that just installing pkg-config in the Docker image would fix this.

@niklasmohrin niklasmohrin changed the title Tealdeer doesn't build with native-tls feature on arm Tealdeer doesn't build with native-tls feature in the release workflow Mar 23, 2025
@niklasmohrin
Copy link
Collaborator Author

Alternatively, I would also be open to use https://github.com/cross-rs/cross instead of the image, if it makes the setup easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant
0