From 8a6e3e88aeeef23cd25bfa124535778f6af9fa53 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 | 7 +++++++ 2 files changed, 8 insertions(+) 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..0d7ea1d62610 100644 --- a/srcpkgs/curl/template +++ b/srcpkgs/curl/template @@ -71,3 +71,10 @@ libcurl-devel_package() { vmove usr/lib/pkgconfig } } + +chroot-curl_package() { + short_desc+=" - for build infra use" + pkg_install() { + cp $DESTDIR/usr/bin/curl $PKGDESTDIR/usr/bin/chroot-curl + } +}