Sun Jun 8 17:29:01 2008 UTC ()
Add example showing how to mark all packages depdending on X11 for
rebuild, useful for moving to X11_TYPE=modular.  From tnn@.


(gdt)
diff -r1.19 -r1.20 pkgsrc/pkgtools/pkg_rolling-replace/Makefile
diff -r1.12 -r1.13 pkgsrc/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.8

cvs diff -r1.19 -r1.20 pkgsrc/pkgtools/pkg_rolling-replace/Makefile (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_rolling-replace/Makefile 2008/05/02 19:04:03 1.19
+++ pkgsrc/pkgtools/pkg_rolling-replace/Makefile 2008/06/08 17:29:01 1.20
@@ -1,16 +1,17 @@ @@ -1,16 +1,17 @@
1# $NetBSD: Makefile,v 1.19 2008/05/02 19:04:03 apb Exp $ 1# $NetBSD: Makefile,v 1.20 2008/06/08 17:29:01 gdt Exp $
2 2
3DISTNAME= pkg_rolling-replace-0.16 3DISTNAME= pkg_rolling-replace-0.16
 4PKGREVISION= 1
4CATEGORIES= pkgtools 5CATEGORIES= pkgtools
5MASTER_SITES= # empty 6MASTER_SITES= # empty
6DISTFILES= # empty 7DISTFILES= # empty
7 8
8MAINTAINER= ngoffee@bbn.com 9MAINTAINER= ngoffee@bbn.com
9COMMENT= Replace/upgrade packages in-place 10COMMENT= Replace/upgrade packages in-place
10 11
11DEPENDS+= pkg_chk>=1.76:../../pkgtools/pkg_chk 12DEPENDS+= pkg_chk>=1.76:../../pkgtools/pkg_chk
12DEPENDS+= pkg_tarup>=1.6.6:../../pkgtools/pkg_tarup 13DEPENDS+= pkg_tarup>=1.6.6:../../pkgtools/pkg_tarup
13 14
14PKG_INSTALLATION_TYPES= overwrite pkgviews 15PKG_INSTALLATION_TYPES= overwrite pkgviews
15 16
16USE_TOOLS+= patch 17USE_TOOLS+= patch

cvs diff -r1.12 -r1.13 pkgsrc/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.8 (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.8 2008/05/22 13:48:36 1.12
+++ pkgsrc/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.8 2008/06/08 17:29:01 1.13
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: pkg_rolling-replace.8,v 1.12 2008/05/22 13:48:36 tnn Exp $ 1.\" $NetBSD: pkg_rolling-replace.8,v 1.13 2008/06/08 17:29:01 gdt Exp $
2.Dd May 22, 2008 2.Dd May 22, 2008
3.Dt PKG_ROLLING-REPLACE 8 3.Dt PKG_ROLLING-REPLACE 8
4.Os 4.Os
5.Sh NAME 5.Sh NAME
6.Nm pkg_rolling-replace 6.Nm pkg_rolling-replace
7.Nd rebuild or update packages using 'make replace' in tsorted order 7.Nd rebuild or update packages using 'make replace' in tsorted order
8.Sh SYNOPSIS 8.Sh SYNOPSIS
9.Nm 9.Nm
10.Op Fl hnrsuv 10.Op Fl hnrsuv
11.Op Fl x Ar pkgs 11.Op Fl x Ar pkgs
12.Op Fl X Ar pkgs 12.Op Fl X Ar pkgs
13.Sh DESCRIPTION 13.Sh DESCRIPTION
14.Nm 14.Nm
@@ -120,26 +120,33 @@ pkg_rolling-replace -rsuv @@ -120,26 +120,33 @@ pkg_rolling-replace -rsuv
120.Ed 120.Ed
121.Pp 121.Pp
122To update all packages on the system, do as little rebuilding as possible, 122To update all packages on the system, do as little rebuilding as possible,
123and also produce binary packages: 123and also produce binary packages:
124.Bd -literal -offset indent 124.Bd -literal -offset indent
125pkg_rolling-replace -uv 125pkg_rolling-replace -uv
126.Ed 126.Ed
127.Pp 127.Pp
128To update gtk2+ and all packages that depend on it, except openoffice2: 128To update gtk2+ and all packages that depend on it, except openoffice2:
129.Bd -literal -offset indent 129.Bd -literal -offset indent
130pkg_admin set rebuild=YES gtk2+ 130pkg_admin set rebuild=YES gtk2+
131pkg_rolling-replace -rsv -X openoffice2 131pkg_rolling-replace -rsv -X openoffice2
132.Ed 132.Ed
 133.Pp
 134To mark all packages that compiled against X11 as needing rebuild
 135(used after switching to X11_TYPE=modular):
 136.Bd -literal -offset indent
 137cd /var/db/pkg && grep "blddep x11-links" */* | cut -d/ -f1 | \\
 138sort -u | xargs pkg_admin set rebuild=YES
 139.Ed
133.Sh ENVIRONMENT 140.Sh ENVIRONMENT
134.Nm 141.Nm
135uses the following environment variables. 142uses the following environment variables.
136.Bl -tag -width xxxx 143.Bl -tag -width xxxx
137.It Ev MAKECONF 144.It Ev MAKECONF
138Path to 145Path to
139.Pa mk.conf . 146.Pa mk.conf .
140Defaults to 147Defaults to
141.Pa @MAKECONF@ , @PREFIX@/etc/mk.conf , 148.Pa @MAKECONF@ , @PREFIX@/etc/mk.conf ,
142or 149or
143.Pa /etc/mk.conf . 150.Pa /etc/mk.conf .
144.It Ev PKGSRCDIR 151.It Ev PKGSRCDIR
145Base of pkgsrc tree. 152Base of pkgsrc tree.