From 256581946093902c61c12c0c578eddbf48e300bd Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 2 Sep 2022 09:00:44 +0300 Subject: [PATCH] gc: Update to 8.2.2 Other cleanups: * Remove --enable-mmap (which is the default configure option now) * No longer depends on libatomic_ops (provided the compiler is gcc or clang) * Fix license (it is MIT, not GPL) * Remove unneeded CFLAGS * Set maintainer * Specify README.QUICK as license file --- srcpkgs/gc/template | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/srcpkgs/gc/template b/srcpkgs/gc/template index 3e00fa2ab468..a62033103920 100644 --- a/srcpkgs/gc/template +++ b/srcpkgs/gc/template @@ -1,28 +1,24 @@ # Template file for 'gc' pkgname=gc -version=8.0.6 +version=8.2.2 revision=1 build_style=gnu-configure -configure_args="--enable-static --enable-mmap" +# libatomic_ops is replaced by C11 atomic +configure_args="--enable-static --with-libatomic-ops=none" hostmakedepends="pkg-config" -makedepends="libatomic_ops-devel" short_desc="Garbage collector for C and C++" -maintainer="Orphaned " -license="GPL-2.0-or-later" +maintainer="Ivan Maidanski " +license="MIT" homepage="https://www.hboehm.info/gc/" distfiles="https://github.com/ivmai/bdwgc/releases/download/v${version}/gc-${version}.tar.gz" -checksum=3b4914abc9fa76593596773e4da671d7ed4d5390e3d46fbf2e5f155e121bea11 - -case "$XBPS_TARGET_MACHINE" in -*-musl) - CFLAGS='-D_GNU_SOURCE -DNO_GETCONTEXT -DSEARCH_FOR_DATA_START -DUSE_MMAP -DHAVE_DL_ITERATE_PHDR' -esac +checksum=f30107bcb062e0920a790ffffa56d9512348546859364c23a14be264b38836a0 post_install() { mkdir -p ${DESTDIR}/usr/include/gc/ mv ${wrksrc}/include/* ${DESTDIR}/usr/include/gc/ mv ${DESTDIR}/usr/include/gc/extra/* ${DESTDIR}/usr/include/ rmdir ${DESTDIR}/usr/include/gc/extra + vlicense README.QUICK } gc-devel_package() {