From 5ab63bbf68e98aa24b44347ab43760e2ccd19519 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, adopt. 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 | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 120000 srcpkgs/chroot-curl diff --git a/srcpkgs/chroot-curl b/srcpkgs/chroot-curl new file mode 120000 index 00000000000..8b258ec3343 --- /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 1ccf71d6d3d..abc91167ee8 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) @@ -19,7 +19,7 @@ depends="ca-certificates" # openssh isn't in checkdepends, because test 581 locks up checkdepends="python3 stunnel nghttp2" short_desc="Client that groks URLs" -maintainer="Orphaned " +maintainer="Érico Nogueira " license="MIT" homepage="https://curl.haxx.se" changelog="https://curl.haxx.se/changes.html#${version//./_}" @@ -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 + } +}