* Re: [ptxdist] websocat rust package
[not found] <CAMwGMjzhLtP33wbTzT_e+eTfXpecM8h2rKaJEJ7SwsbxTmfFZw@mail.gmail.com>
@ 2023-08-04 19:00 ` Ladislav Michl
2023-08-04 19:32 ` Jon Ringle
0 siblings, 1 reply; 2+ messages in thread
From: Ladislav Michl @ 2023-08-04 19:00 UTC (permalink / raw)
To: ptxdist
Hi,
On Fri, Aug 04, 2023 at 10:54:59AM -0400, Jon Ringle wrote:
> I'm trying to create a new package to build websocat (
> https://github.com/vi/websocat).
> Here is the websocat.make file I have now:
it seems something eat your whitespace, so output is a bit hard to read.
As you didn't provide complete patch, I can only guess websocat.in is
not selecting OPENSSL...
> #
> # We provide this package
> #
> PACKAGES-$(PTXCONF_WEBSOCAT) += websocat
>
> #
>
> # Paths and names
>
> #
>
> WEBSOCAT_VERSION := 1.11.0
> WEBSOCAT_MD5 := 2a43004dc1c256119089994b5ddb414b
> WEBSOCAT := websocat-$(WEBSOCAT_VERSION)
> WEBSOCAT_SUFFIX := tar.gz
> WEBSOCAT_URL :=
> https://github.com/vi/websocat/archive/refs/tags/v${WEBSOCAT_VERSION}.$(WEBSOCAT_SUFFIX)
> WEBSOCAT_SOURCE := $(SRCDIR)/$(WEBSOCAT).$(WEBSOCAT_SUFFIX)
> WEBSOCAT_DIR := $(BUILDDIR)/$(WEBSOCAT)
> WEBSOCAT_LICENSE := MIT
> WEBSOCAT_LICENSE_FILES :=
> file://LICENSE;md5=240269ccb62c2c66a81d8fdd094dd69f
>
> WEBSOCAT_MAKE_ENV := \
> $(CROSS_CARGO_ENV) \
> $(CROSS_ENV_PKG_CONFIG) \
> PKG_CONFIG_SYSROOT_DIR=/.
>
> WEBSOCAT_CONF_TOOL := cargo
> WEBSOCAT_CONF_OPT := \
> $(CROSS_CARGO_OPT) \
> --features=ssl
>
>
> It is failing in the compile stage:
>
> ------------------------
> target: websocat.compile
> ------------------------
>
> ptxdist: executing: cd
> /home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/build-target/websocat-1.11.0
> && PATH=/home/local/GRIDPOINT/jringle/git/gridpoint-com/gp
> ec2phx/ptxdist/platform-ec2k/sysroot-cross/usr/bin:/home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/sysroot-cross/usr/sbin:/home/local/GRIDPOINT/jringle/git/gr
> idpoint-com/gpec2phx/ptxdist/platform-ec2k/sysroot-host/usr/lib/wrapper:/home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/sysroot-host/usr/bin:/home/local/GRIDP
> OINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/sysroot-host/usr/sbin:/home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/selected_toolchain:/usr/local/lib/ptxdis
> t-2023.08.1_GP/bin:/opt/bin:/home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> HTTPS_PROXY=PTXDIST-UNALLOWED-DOWNLOAD
> HTTP_PROXY=PTXDIST-UNALLOWED-DOWNLOAD
> https_proxy=PTXDIST-UNALLOWED-DOWNLOAD
> http_proxy=PTXDIST-UNALLOWED-DOWNLOAD PKGCONFIG_WHITELIST_HOST='libcrypto
> libssl openssl' PKGCONFIG_WHITELIST_TA
> RGET='' PKGCONFIG_WHITELIST_SRC='websocat'
> SYSROOT='/home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/sysroot-target'
> V=1 VERBOSE=1 KBUILD_BUILD_TIMESTAMP=2022-
> 04-13T00:00:00+00:00 KBUILD_BUILD_USER=ptxdist KBUILD_BUILD_HOST=ptxdist
> CARGO_HOME='/home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/build-target/websocat-1.1
> 1.0/ptxdist-cargo-home' CARGO_BUILD_TARGET="arm-v7a-linux-gnueabihf"
> RUST_TARGET_PATH=/home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/selected_toolchain
> PKG_C
> ONFIG=arm-v7a-linux-gnueabihf-pkg-config PKG_CONFIG_SYSROOT_DIR=/. cargo
> build --target "arm-v7a-linux-gnueabihf" --release --frozen -j16
>
> [...snip...]
>
> error: failed to run custom build command for `openssl-sys v0.9.75`
>
> Caused by:
> process didn't exit successfully:
> `/home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/build-target/websocat-1.11.0/target/release/build/openssl-sys-62d0d30c1c7
> 985aa/build-script-main` (exit status: 101)
> --- stdout
> cargo:rustc-cfg=const_fn
> cargo:rerun-if-env-changed=ARM_V7A_LINUX_GNUEABIHF_OPENSSL_LIB_DIR
> ARM_V7A_LINUX_GNUEABIHF_OPENSSL_LIB_DIR unset
> cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
> OPENSSL_LIB_DIR unset
> cargo:rerun-if-env-changed=ARM_V7A_LINUX_GNUEABIHF_OPENSSL_INCLUDE_DIR
> ARM_V7A_LINUX_GNUEABIHF_OPENSSL_INCLUDE_DIR unset
> cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
> OPENSSL_INCLUDE_DIR unset
> cargo:rerun-if-env-changed=ARM_V7A_LINUX_GNUEABIHF_OPENSSL_DIR
> ARM_V7A_LINUX_GNUEABIHF_OPENSSL_DIR unset
> cargo:rerun-if-env-changed=OPENSSL_DIR
> OPENSSL_DIR unset
> cargo:rerun-if-env-changed=OPENSSL_NO_PKG_CONFIG
> cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_arm-v7a-linux-gnueabihf
> cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_arm_v7a_linux_gnueabihf
> cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_ALLOW_CROSS
> cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS
> cargo:rerun-if-env-changed=PKG_CONFIG_arm-v7a-linux-gnueabihf
> cargo:rerun-if-env-changed=PKG_CONFIG_arm_v7a_linux_gnueabihf
> cargo:rerun-if-env-changed=TARGET_PKG_CONFIG
> cargo:rerun-if-env-changed=PKG_CONFIG
> cargo:rerun-if-env-changed=PKG_CONFIG_arm-v7a-linux-gnueabihf
> cargo:rerun-if-env-changed=PKG_CONFIG_arm_v7a_linux_gnueabihf
> cargo:rerun-if-env-changed=TARGET_PKG_CONFIG
> cargo:rerun-if-env-changed=PKG_CONFIG
> cargo:rerun-if-env-changed=OPENSSL_STATIC
> cargo:rerun-if-env-changed=OPENSSL_DYNAMIC
> cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
> cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
> cargo:rerun-if-env-changed=PKG_CONFIG_PATH_arm-v7a-linux-gnueabihf
> cargo:rerun-if-env-changed=PKG_CONFIG_PATH_arm_v7a_linux_gnueabihf
> cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_PATH
> cargo:rerun-if-env-changed=PKG_CONFIG_PATH
> cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_arm-v7a-linux-gnueabihf
> cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_arm_v7a_linux_gnueabihf
> cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_LIBDIR
> cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_arm-v7a-linux-gnueabihf
> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_arm_v7a_linux_gnueabihf
> cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_SYSROOT_DIR
> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
> run pkg_config fail: "`PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=\"1\"
> PKG_CONFIG_SYSROOT_DIR=\"/.\" \"arm-v7a-linux-gnueabihf-pkg-config\"
> \"--libs\" \"--cflags\" \"openssl\"` did not exit successf
> ully: exit status: 1\nerror: could not find system library 'openssl'
> required by the 'openssl-sys' crate\n\n---
> stderr\narm-v7a-linux-gnueabihf-pkg-config: warning: blocking 'openssl': not
> selected by 'websocat'\n"
Above suggest no target openssl is selected by websocat.in
> --- stderr
> warning: target json file contains unused fields: ar, cc, cxx,
> has-elf-tls, ranlib, unsupported-abis
>
> thread 'main' panicked at '
>
> 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-v7a-linux-gnueabihf
> openssl-sys = 0.9.75
>
> ',
> /home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/build-target/websocat-1.11.0/ptxdist-cargo-home/source/openssl-sys-0.9.75/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...
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] websocat rust package
2023-08-04 19:00 ` [ptxdist] websocat rust package Ladislav Michl
@ 2023-08-04 19:32 ` Jon Ringle
0 siblings, 0 replies; 2+ messages in thread
From: Jon Ringle @ 2023-08-04 19:32 UTC (permalink / raw)
To: ptxdist
On Fri, Aug 4, 2023 at 3:01 PM Ladislav Michl <oss-lists@triops.cz> wrote:
>
> Hi,
>
> On Fri, Aug 04, 2023 at 10:54:59AM -0400, Jon Ringle wrote:
> > I'm trying to create a new package to build websocat (
> > https://github.com/vi/websocat).
> > Here is the websocat.make file I have now:
>
> it seems something eat your whitespace, so output is a bit hard to read.
> As you didn't provide complete patch, I can only guess websocat.in is
> not selecting OPENSSL...
Thank you. That was it. Patch coming up shortly...
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-04 19:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CAMwGMjzhLtP33wbTzT_e+eTfXpecM8h2rKaJEJ7SwsbxTmfFZw@mail.gmail.com>
2023-08-04 19:00 ` [ptxdist] websocat rust package Ladislav Michl
2023-08-04 19:32 ` Jon Ringle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox