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.
This commit is contained in:
Érico Nogueira 2021-11-03 22:16:03 -03:00 committed by Érico Nogueira Rolim
parent eb874325f2
commit 5ab63bbf68
2 changed files with 10 additions and 2 deletions

1
srcpkgs/chroot-curl Symbolic link
View file

@ -0,0 +1 @@
curl

View file

@ -1,7 +1,7 @@
# Template file for 'curl' # Template file for 'curl'
pkgname=curl pkgname=curl
version=7.79.1 version=7.79.1
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
configure_args="ac_cv_sizeof_off_t=8 --enable-threaded-resolver --enable-ipv6 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) $(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 # openssh isn't in checkdepends, because test 581 locks up
checkdepends="python3 stunnel nghttp2" checkdepends="python3 stunnel nghttp2"
short_desc="Client that groks URLs" short_desc="Client that groks URLs"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Érico Nogueira <ericonr@disroot.org>"
license="MIT" license="MIT"
homepage="https://curl.haxx.se" homepage="https://curl.haxx.se"
changelog="https://curl.haxx.se/changes.html#${version//./_}" changelog="https://curl.haxx.se/changes.html#${version//./_}"
@ -71,3 +71,10 @@ libcurl-devel_package() {
vmove usr/lib/pkgconfig vmove usr/lib/pkgconfig
} }
} }
chroot-curl_package() {
short_desc+=" - for build infra use"
pkg_install() {
vbin $DESTDIR/usr/bin/curl chroot-curl
}
}