From ca0cc668690296180d5d814e92c827c64f9c2d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Wed, 3 Nov 2021 22:16:03 -0300 Subject: [PATCH] chroot: create chroot-curl subpackage. The new potential build infrastructure needs a curl binary to send build results to outside the chroot, but we don't want it to be picked up by build systems. libcurl is part of the masterdir environment already, through binutils -> libdebuginfod -> libcurl, so we can simply copy the binary with a different name, and have the package also depend on libcurl. --- srcpkgs/chroot-curl | 1 + srcpkgs/curl/template | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 120000 srcpkgs/chroot-curl diff --git a/srcpkgs/chroot-curl b/srcpkgs/chroot-curl new file mode 120000 index 000000000000..8b258ec33430 --- /dev/null +++ b/srcpkgs/chroot-curl @@ -0,0 +1 @@ +curl \ No newline at end of file diff --git a/srcpkgs/curl/template b/srcpkgs/curl/template index 1ccf71d6d3d7..901f674b8c18 100644 --- a/srcpkgs/curl/template +++ b/srcpkgs/curl/template @@ -1,7 +1,7 @@ # Template file for 'curl' pkgname=curl version=7.79.1 -revision=1 +revision=2 build_style=gnu-configure configure_args="ac_cv_sizeof_off_t=8 --enable-threaded-resolver --enable-ipv6 $(vopt_with rtmp) $(vopt_with gssapi) $(vopt_enable ldap) $(vopt_with gnutls) @@ -71,3 +71,10 @@ libcurl-devel_package() { vmove usr/lib/pkgconfig } } + +chroot-curl_package() { + short_desc+=" - for build infra use" + pkg_install() { + vbin $DESTDIR/usr/bin/curl chroot-curl + } +}