pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/pkgtools/pkgin



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Tue Oct 12 12:46:14 UTC 2021

Modified Files:
        pkgsrc/pkgtools/pkgin: Makefile distinfo
Added Files:
        pkgsrc/pkgtools/pkgin: options.mk

Log Message:
pkgin: Update to 21.10.0.

Add new pkgin-prefer-gzip option to support the feature listed below, and
activate it by default on what I believe are MACHINE_ARCH that would most
benefit from it - no offence intended ;)

## Version 21.10.0 (2021-10-12)

 * Support building with -DPREFER_GZIP_SUMMARY which will attempt to fetch
   pkg_summary.gz first, useful on slower machines with limited memory.


To generate a diff of this commit:
cvs rdiff -u -r1.114 -r1.115 pkgsrc/pkgtools/pkgin/Makefile
cvs rdiff -u -r1.71 -r1.72 pkgsrc/pkgtools/pkgin/distinfo
cvs rdiff -u -r0 -r1.3 pkgsrc/pkgtools/pkgin/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/pkgin/Makefile
diff -u pkgsrc/pkgtools/pkgin/Makefile:1.114 pkgsrc/pkgtools/pkgin/Makefile:1.115
--- pkgsrc/pkgtools/pkgin/Makefile:1.114        Thu Jul 22 14:47:46 2021
+++ pkgsrc/pkgtools/pkgin/Makefile      Tue Oct 12 12:46:14 2021
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.114 2021/07/22 14:47:46 jperkin Exp $
+# $NetBSD: Makefile,v 1.115 2021/10/12 12:46:14 jperkin Exp $
 
-DISTNAME=              pkgin-21.7.0
+DISTNAME=              pkgin-21.10.0
 CATEGORIES=            pkgtools
 MASTER_SITES=          ${MASTER_SITE_GITHUB:=NetBSDfr/}
 GITHUB_TAG=            v${PKGVERSION_NOREV}
@@ -47,6 +47,8 @@ CFLAGS.SunOS+=                -D_FILE_OFFSET_BITS=64
 
 DEPENDS+=              pkg_install>=20200701:../../pkgtools/pkg_install
 
+.include "options.mk"
+
 # those have official repositories
 .if !empty(PKGIN_REPOSITORY_URL)
 pre-install:

Index: pkgsrc/pkgtools/pkgin/distinfo
diff -u pkgsrc/pkgtools/pkgin/distinfo:1.71 pkgsrc/pkgtools/pkgin/distinfo:1.72
--- pkgsrc/pkgtools/pkgin/distinfo:1.71 Thu Oct  7 14:47:19 2021
+++ pkgsrc/pkgtools/pkgin/distinfo      Tue Oct 12 12:46:14 2021
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.71 2021/10/07 14:47:19 nia Exp $
+$NetBSD: distinfo,v 1.72 2021/10/12 12:46:14 jperkin Exp $
 
-RMD160 (pkgin-21.7.0.tar.gz) = 733f23427ad5e6194b8dd4b2ebaedb0d6fb4197a
-SHA512 (pkgin-21.7.0.tar.gz) = c68fd8f247e8bde4c2dc2b1cd16ce3eaf8fa419838c41ca691f4f157e2560ba63e3e6770cac0130a325aee0f10579e7f3e0f32df90fdb8f976d5800a0bde5813
-Size (pkgin-21.7.0.tar.gz) = 247438 bytes
+RMD160 (pkgin-21.10.0.tar.gz) = 6c57a928384d76af60a299cad396622aa8974d31
+SHA512 (pkgin-21.10.0.tar.gz) = f2b2efc2b4172db0a0055fecf306f067e0bcd2ac1eea41e38df44afde9d91cefe6131d72d854762642de61750ee3cd1482b9108dd9ae21daca34fda1b2920b62
+Size (pkgin-21.10.0.tar.gz) = 247816 bytes

Added files:

Index: pkgsrc/pkgtools/pkgin/options.mk
diff -u /dev/null pkgsrc/pkgtools/pkgin/options.mk:1.3
--- /dev/null   Tue Oct 12 12:46:14 2021
+++ pkgsrc/pkgtools/pkgin/options.mk    Tue Oct 12 12:46:14 2021
@@ -0,0 +1,21 @@
+# $NetBSD: options.mk,v 1.3 2021/10/12 12:46:14 jperkin Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.pkgin
+PKG_SUPPORTED_OPTIONS= pkgin-prefer-gzip
+
+.include "../../mk/bsd.prefs.mk"
+
+#
+# Prefer pkg_summary.gz instead of .bz2 or .xz on hosts that are likely to be
+# slower or have limited memory where the higher compression can cause issues.
+#
+PROBABLY_SLOW_ARCHS=   alpha hppa m68k sparc vax
+.if !empty(PROBABLY_SLOW_ARCHS:M${MACHINE_ARCH})
+PKG_SUGGESTED_OPTIONS= pkgin-prefer-gzip
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mpkgin-prefer-gzip)
+CPPFLAGS+=     -DPREFER_GZIP_SUMMARY
+.endif



Home | Main Index | Thread Index | Old Index