pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/58506: lang/rust-1.79 build fails due to APIs removed in curl-8.8
The following reply was made to PR pkg/58506; it has been noted by GNATS.
From: Phil Krylov <phil+netbsd%krylov.eu@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/58506: lang/rust-1.79 build fails due to APIs removed in
curl-8.8
Date: Mon, 29 Jul 2024 20:38:47 +0200
On 2024-07-29 14:35, Tobias Nygren wrote:
> It is wrong in principle because cargo should still link against the
> library in /usr/pkg and will need the lib buildlinked for that.
> But all this points to the curl crate using it's bundled headers
> regardless which doesn't sound safe on any pkgsrc platform so we'll
> need to have a closer look at what it does.
Thank you! In Linux pbulk logs, there is the following fragment:
> ===============================<
Couldn't find libcurl from pkgconfig (
pkg-config exited with status code 1
> PKG_CONFIG_PATH=
PKG_CONFIG_LIBDIR=/home/pbulk/build/lang/rust/work/.buildlink/lib64/pkgconfig:/home/pbulk/build/lang/rust/work/.buildlink/lib/pkgconfig:/home/pbulk/build/lang/rust/work/.buildlink/share/pkgconfig
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
/home/pbulk/build/lang/rust/work/.tools/bin/pkg-config --libs --cflags
libcurl
The system library `libcurl` required by crate `curl-sys` was not
found.
The file `libcurl.pc` needs to be installed and the PKG_CONFIG_PATH
environment variable must contain its parent directory.
PKG_CONFIG_PATH contains the following:
-
HINT: you may need to install a package such as libcurl, libcurl-dev
or libcurl-devel.
), compiling it from source...
> ===============================<
Ok, I have removed my patch, started the build and stopped it with ^Z,
and tried this command (which is approximately how cargo finds libcurl):
$ PKG_CONFIG_PATH=
PKG_CONFIG_LIBDIR=work/.buildlink/lib64/pkgconfig:work/.buildlink/lib/pkgconfig:work/.buildlink/share/pkgconfig
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
work/.tools/bin/pkg-config --libs --cflags libcurl
Package libssh2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libssh2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libssh2', required by 'libcurl', not found
So, `BUILDLINK_FILES_CMD.libssh2= ${TRUE}` is guilty then? The
question is how to make it build with bundled libssh2 and pkgsrc's curl.
And if it is needed/possible at all.
Now I am trying to build without `BUILDLINK_FILES_CMD.libssh2=
${TRUE}` .
-- Ph.
Home |
Main Index |
Thread Index |
Old Index