pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_rolling-replace Bump version to pkg_rolli...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0a31ddfa5b8a
branches:  trunk
changeset: 538711:0a31ddfa5b8a
user:      apb <apb%pkgsrc.org@localhost>
date:      Sun Feb 17 10:47:47 2008 +0000

description:
Bump version to pkg_rolling-replace-0.14:
* Clarify that the -x option takes package base names, not full package
  names.
* Clarify that the -x option excluded packages only from the outdated
  check, not from being rebuilt for any any other reason.
* Add a -X option that excludes a package from being rebuilt for any
  reason.  (I have had this as a private patch for a long time, and
  never run pkg_rolling-replace without "-X openoffice2", because
  openoffice requires so much time and disk space to build.)

diffstat:

 pkgtools/pkg_rolling-replace/Makefile                     |   4 +-
 pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.8  |  25 ++++++++++++---
 pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh |  12 ++++--
 3 files changed, 30 insertions(+), 11 deletions(-)

diffs (116 lines):

diff -r b34bd1941055 -r 0a31ddfa5b8a pkgtools/pkg_rolling-replace/Makefile
--- a/pkgtools/pkg_rolling-replace/Makefile     Sun Feb 17 10:20:56 2008 +0000
+++ b/pkgtools/pkg_rolling-replace/Makefile     Sun Feb 17 10:47:47 2008 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.16 2008/01/11 13:29:37 gdt Exp $
+# $NetBSD: Makefile,v 1.17 2008/02/17 10:47:47 apb Exp $
 
-DISTNAME=      pkg_rolling-replace-0.13
+DISTNAME=      pkg_rolling-replace-0.14
 CATEGORIES=    pkgtools
 MASTER_SITES=  # empty
 DISTFILES=     # empty
diff -r b34bd1941055 -r 0a31ddfa5b8a pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.8
--- a/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.8  Sun Feb 17 10:20:56 2008 +0000
+++ b/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.8  Sun Feb 17 10:47:47 2008 +0000
@@ -1,5 +1,5 @@
-.\" $NetBSD: pkg_rolling-replace.8,v 1.8 2007/08/08 22:00:40 wiz Exp $
-.Dd August 8, 2007
+.\" $NetBSD: pkg_rolling-replace.8,v 1.9 2008/02/17 10:47:47 apb Exp $
+.Dd February 17, 2008
 .Dt PKG_ROLLING-REPLACE 8
 .Os
 .Sh NAME
@@ -9,6 +9,7 @@
 .Nm
 .Op Fl hnrsuv
 .Op Fl x Ar pkgs
+.Op Fl X Ar pkgs
 .Sh DESCRIPTION
 .Nm
 runs
@@ -91,10 +92,24 @@
 .It Fl v
 Verbose output.
 .It Fl x Ar pkgs
-Exclude the comma-separated list of packages from the update check
-when
+Exclude the comma-separated list of package base names
+from the check for outdated packages.
+This has no effect if the
 .Fl u
-is given (does not exclude unsafe or rebuild-requested packages).
+flag is not given,
+and does not prevent packages from being rebuilt for any other reason
+(such as being a dependency of another package that is also rebuilt,
+or having any of the
+.Xr pkg_admin 8
+.Dq unsafe_depends ,
+.Dq unsafe_depends_strict ,
+or
+.Dq rebuild
+variables set to
+.Dq YES ) .
+.It Fl X Ar pkgs
+Exclude the comma-separated list of package base names
+from being rebuilt for any reason.
 .El
 .Sh ENVIRONMENT
 .Nm
diff -r b34bd1941055 -r 0a31ddfa5b8a pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh
--- a/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh Sun Feb 17 10:20:56 2008 +0000
+++ b/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh Sun Feb 17 10:47:47 2008 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: pkg_rolling-replace.sh,v 1.16 2008/01/11 13:29:37 gdt Exp $
+# $NetBSD: pkg_rolling-replace.sh,v 1.17 2008/02/17 10:47:47 apb Exp $
 #<license>
 # Copyright (c) 2006 BBN Technologies Corp.  All rights reserved.
 #
@@ -82,9 +82,10 @@
         -n         Don't actually do make replace
         -r         Just replace, don't create binary packages
         -s         Replace even if the ABIs are still compatible ("strict")
-        -u         Update mismatched packages
+        -u         Update outdated packages
         -v         Verbose
-        -x <pkg>   exclude <pkg> from update check
+        -x <pkg>   exclude <pkg> from outdated check
+        -X <pkg>   exclude <pkg> from being rebuilt
 
 pkg_rolling-replace does 'make replace' on one package at a time,
 tsorting the packages being replaced according to their
@@ -252,7 +253,7 @@
 
 EXCLUDE=
 
-args=$(getopt hnursvx: $*)
+args=$(getopt hnursvx:X: $*)
 if [ $? -ne 0 ]; then
     opt_h=1
 fi
@@ -266,6 +267,7 @@
         -u) opt_u=1 ;;
         -v) opt_v=1 ;;
         -x) EXCLUDE="$EXCLUDE $(echo $2 | sed 's/,/ /g')" ; shift ;;
+        -X) REALLYEXCLUDE="$REALLYEXCLUDE $(echo $2 | sed 's/,/ /g')" ; shift ;;
         --) shift; break ;;
     esac
     shift
@@ -312,6 +314,7 @@
 vsleep 2
 
 REPLACE_TODO=$(uniqify $MISMATCH_TODO $REBUILD_TODO $UNSAFE_TODO)
+REPLACE_TODO=$(exclude $REALLYEXCLUDE --from $REPLACE_TODO)
 depgraph_built=0
 
 while [ -n "$REPLACE_TODO" ]; do
@@ -433,6 +436,7 @@
     vsleep 4
 
     REPLACE_TODO=$(uniqify $MISMATCH_TODO $REBUILD_TODO $UNSAFE_TODO)
+    REPLACE_TODO=$(exclude $REALLYEXCLUDE --from $REPLACE_TODO)
     depgraph_built=0
 done
 



Home | Main Index | Thread Index | Old Index