pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg pkg: fix build with developer checks enabled



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a43e44d5a1f3
branches:  trunk
changeset: 427025:a43e44d5a1f3
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Fri Apr 10 23:28:32 2020 +0000

description:
pkg: fix build with developer checks enabled

This adds a patch to fix a portability check.

Bumps PKGREVISION.

diffstat:

 pkgtools/pkg/Makefile                                         |   4 +-
 pkgtools/pkg/distinfo                                         |   3 +-
 pkgtools/pkg/patches/patch-scripts_periodic_411.pkg-backup.in |  15 +++++++++++
 3 files changed, 19 insertions(+), 3 deletions(-)

diffs (44 lines):

diff -r 53e589ebd9f1 -r a43e44d5a1f3 pkgtools/pkg/Makefile
--- a/pkgtools/pkg/Makefile     Fri Apr 10 22:44:37 2020 +0000
+++ b/pkgtools/pkg/Makefile     Fri Apr 10 23:28:32 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2019/09/07 23:30:45 nia Exp $
+# $NetBSD: Makefile,v 1.25 2020/04/10 23:28:32 khorben Exp $
 
 DISTNAME=      pkg-1.9.99.4
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    pkgtools
 MASTER_SITES=  http://files.etoilebsd.net/pkg/
 EXTRACT_SUFX=  .tar.xz
diff -r 53e589ebd9f1 -r a43e44d5a1f3 pkgtools/pkg/distinfo
--- a/pkgtools/pkg/distinfo     Fri Apr 10 22:44:37 2020 +0000
+++ b/pkgtools/pkg/distinfo     Fri Apr 10 23:28:32 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.11 2017/08/19 00:24:13 jlam Exp $
+$NetBSD: distinfo,v 1.12 2020/04/10 23:28:32 khorben Exp $
 
 SHA1 (pkg-1.9.99.4.tar.xz) = e7f2f5c9481c6a4f5e05e08818ea8f114fc1bfcf
 RMD160 (pkg-1.9.99.4.tar.xz) = 320f9866503d028f4f54f466a9ebc86cc9378331
 SHA512 (pkg-1.9.99.4.tar.xz) = eb4b01e26cffec6b6cd5604a81ba515eadcce09b4742876285bf8f510591c122665a1e598c100266f943439d0b2867b5a6e5702bc174ea302688bb73e0128d8b
 Size (pkg-1.9.99.4.tar.xz) = 1923452 bytes
+SHA1 (patch-scripts_periodic_411.pkg-backup.in) = ec4ff8991b79608c448739b693b2eb527b646c63
diff -r 53e589ebd9f1 -r a43e44d5a1f3 pkgtools/pkg/patches/patch-scripts_periodic_411.pkg-backup.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/pkg/patches/patch-scripts_periodic_411.pkg-backup.in     Fri Apr 10 23:28:32 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-scripts_periodic_411.pkg-backup.in,v 1.1 2020/04/10 23:28:32 khorben Exp $
+
+Pass the portability test
+
+--- scripts/periodic/411.pkg-backup.in.orig    2020-04-10 23:10:58.674050832 +0000
++++ scripts/periodic/411.pkg-backup.in
+@@ -25,7 +25,7 @@ backup_pkg() {
+       for i in $(jot ${count} ${lower} 0); do
+               local higher=$(( ${i} + 1 ))
+               local file
+-              if [ ${i} == 0 ]; then
++              if [ ${i} = 0 ]; then
+                       file=${bak_file}
+               else
+                       file=${bak_file}.${i}



Home | Main Index | Thread Index | Old Index