Sun Mar 5 20:23:59 2023 UTC ()
pkg_rolling-replace: Fix PKG_DBDIR in manpage


(triaxx)
diff -r1.50 -r1.51 pkgsrc/pkgtools/pkg_rolling-replace/Makefile
diff -r1.22 -r1.23 pkgsrc/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.8

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

--- pkgsrc/pkgtools/pkg_rolling-replace/Makefile 2021/06/28 19:33:23 1.50
+++ pkgsrc/pkgtools/pkg_rolling-replace/Makefile 2023/03/05 20:23:58 1.51
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.50 2021/06/28 19:33:23 mcf Exp $ 1# $NetBSD: Makefile,v 1.51 2023/03/05 20:23:58 triaxx Exp $
2 2
3PKGNAME= pkg_rolling-replace-0.24.13 3PKGNAME= pkg_rolling-replace-0.24.13
4CATEGORIES= pkgtools 4CATEGORIES= pkgtools
5 5
6MAINTAINER= gdt@NetBSD.org 6MAINTAINER= gdt@NetBSD.org
7COMMENT= Replace/upgrade packages in-place 7COMMENT= Replace/upgrade packages in-place
8LICENSE= modified-bsd 8LICENSE= modified-bsd
9 9
10DEPENDS+= pkg_chk>=1.76:../../pkgtools/pkg_chk 10DEPENDS+= pkg_chk>=1.76:../../pkgtools/pkg_chk
11DEPENDS+= pkg_tarup>=1.6.6:../../pkgtools/pkg_tarup 11DEPENDS+= pkg_tarup>=1.6.6:../../pkgtools/pkg_tarup
12 12
13USE_TOOLS+= patch 13USE_TOOLS+= patch
14 14
@@ -20,27 +20,27 @@ INSTALLATION_DIRS= sbin ${PKGMANDIR}/man @@ -20,27 +20,27 @@ INSTALLATION_DIRS= sbin ${PKGMANDIR}/man
20 20
21PKG_CHK?= ${PREFIX}/sbin/pkg_chk 21PKG_CHK?= ${PREFIX}/sbin/pkg_chk
22 22
23SUBST_CLASSES+= tools 23SUBST_CLASSES+= tools
24SUBST_STAGE.tools= pre-configure 24SUBST_STAGE.tools= pre-configure
25SUBST_MESSAGE.tools= Substituting tool locations. 25SUBST_MESSAGE.tools= Substituting tool locations.
26SUBST_FILES.tools= pkg_rolling-replace.sh 26SUBST_FILES.tools= pkg_rolling-replace.sh
27SUBST_VARS.tools= PREFIX PKG_ADMIN_CMD PKG_INFO_CMD MAKE PKG_CHK AWK MKDIR SETENV 27SUBST_VARS.tools= PREFIX PKG_ADMIN_CMD PKG_INFO_CMD MAKE PKG_CHK AWK MKDIR SETENV
28 28
29SUBST_CLASSES+= prefix 29SUBST_CLASSES+= prefix
30SUBST_STAGE.prefix= pre-configure 30SUBST_STAGE.prefix= pre-configure
31SUBST_MESSAGE.prefix= Substituting PREFIX location. 31SUBST_MESSAGE.prefix= Substituting PREFIX location.
32SUBST_FILES.prefix= pkg_rolling-replace.8 32SUBST_FILES.prefix= pkg_rolling-replace.8
33SUBST_VARS.prefix= PREFIX 33SUBST_VARS.prefix= PKG_DBDIR PREFIX
34 34
35SUBST_CLASSES+= makeconf 35SUBST_CLASSES+= makeconf
36SUBST_STAGE.makeconf= pre-configure 36SUBST_STAGE.makeconf= pre-configure
37SUBST_MESSAGE.makeconf= Recording default path of mk.conf. 37SUBST_MESSAGE.makeconf= Recording default path of mk.conf.
38SUBST_FILES.makeconf= pkg_rolling-replace.sh pkg_rolling-replace.8 38SUBST_FILES.makeconf= pkg_rolling-replace.sh pkg_rolling-replace.8
39SUBST_SED.makeconf= -e 's,@MAKECONF@,${MAKE:T:Mbmake:S/bmake/${PREFIX}/g}/etc/mk.conf,g' 39SUBST_SED.makeconf= -e 's,@MAKECONF@,${MAKE:T:Mbmake:S/bmake/${PREFIX}/g}/etc/mk.conf,g'
40 40
41REPLACE_SH+= pkg_rolling-replace.sh 41REPLACE_SH+= pkg_rolling-replace.sh
42 42
43.include "../../mk/bsd.prefs.mk" 43.include "../../mk/bsd.prefs.mk"
44 44
45do-extract: 45do-extract:
46 cp ${FILESDIR}/pkg_rolling-replace.sh ${WRKSRC} 46 cp ${FILESDIR}/pkg_rolling-replace.sh ${WRKSRC}

cvs diff -r1.22 -r1.23 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 2021/04/13 17:51:21 1.22
+++ pkgsrc/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.8 2023/03/05 20:23:59 1.23
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: pkg_rolling-replace.8,v 1.22 2021/04/13 17:51:21 rhialto Exp $ 1.\" $NetBSD: pkg_rolling-replace.8,v 1.23 2023/03/05 20:23:59 triaxx Exp $
2.Dd February 1, 2010 2.Dd February 1, 2010
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 BFhknrsuv 10.Op Fl BFhknrsuv
11.Op Fl D Ar VARIABLE=VALUE 11.Op Fl D Ar VARIABLE=VALUE
12.Op Fl L Ar path 12.Op Fl L Ar path
13.Op Fl X Ar pkgs 13.Op Fl X Ar pkgs
14.Op Fl x Ar pkgs 14.Op Fl x Ar pkgs
@@ -169,27 +169,27 @@ or @@ -169,27 +169,27 @@ or
169.It Ev PKGSRCDIR 169.It Ev PKGSRCDIR
170Base of pkgsrc tree. 170Base of pkgsrc tree.
171If not set in the environment, then this variable is read from 171If not set in the environment, then this variable is read from
172.Pa ${MAKECONF} . 172.Pa ${MAKECONF} .
173If it is still not set, and if the current working directory 173If it is still not set, and if the current working directory
174appears to be inside a pkgsrc tree, then this variable 174appears to be inside a pkgsrc tree, then this variable
175is set to the base of that pkgsrc tree. 175is set to the base of that pkgsrc tree.
176Finally, if 176Finally, if
177.Pa /usr/pkgsrc 177.Pa /usr/pkgsrc
178appears to contain a pkgsrc tree, then that is used as a last resort. 178appears to contain a pkgsrc tree, then that is used as a last resort.
179.It Ev PKG_DBDIR 179.It Ev PKG_DBDIR
180pkgsrc database directory. 180pkgsrc database directory.
181If not set in environment then defaults to 181If not set in environment then defaults to
182.Pa /var/db/pkg . 182.Pa @PKG_DBDIR@ .
183.El 183.El
184.Sh EXAMPLES 184.Sh EXAMPLES
185To update all packages on the system and ensure correct shared library 185To update all packages on the system and ensure correct shared library
186dependencies: 186dependencies:
187.Bd -literal -offset indent 187.Bd -literal -offset indent
188pkg_rolling-replace -rsuv 188pkg_rolling-replace -rsuv
189.Ed 189.Ed
190.Pp 190.Pp
191To update all packages on the system, do as little rebuilding as possible, 191To update all packages on the system, do as little rebuilding as possible,
192and also produce binary packages: 192and also produce binary packages:
193.Bd -literal -offset indent 193.Bd -literal -offset indent
194pkg_rolling-replace -uv 194pkg_rolling-replace -uv
195.Ed 195.Ed
@@ -207,27 +207,27 @@ pkg_rolling-replace -rsv -X openoffice2 @@ -207,27 +207,27 @@ pkg_rolling-replace -rsv -X openoffice2
207.Ed 207.Ed
208.Pp 208.Pp
209To force rebuild of gtk2+ and all packages that depend on it, keep 209To force rebuild of gtk2+ and all packages that depend on it, keep
210going on even if one package fails, except openoffice2 - log to 210going on even if one package fails, except openoffice2 - log to
211.Dq /var/log/pkg_rr : 211.Dq /var/log/pkg_rr :
212.Bd -literal -offset indent 212.Bd -literal -offset indent
213pkg_admin set rebuild=YES gtk2+ 213pkg_admin set rebuild=YES gtk2+
214pkg_rolling-replace -krsv -L /var/log/pkg_rr -X openoffice2 214pkg_rolling-replace -krsv -L /var/log/pkg_rr -X openoffice2
215.Ed 215.Ed
216.Pp 216.Pp
217To mark all packages that compiled against X11 as needing rebuild 217To mark all packages that compiled against X11 as needing rebuild
218(used after switching to X11_TYPE=modular): 218(used after switching to X11_TYPE=modular):
219.Bd -literal -offset indent 219.Bd -literal -offset indent
220cd /var/db/pkg \*[Am]\*[Am] grep "blddep x11-links" */* | cut -d/ -f1 | \\ 220cd @PKG_DBDIR@ \*[Am]\*[Am] grep "blddep x11-links" */* | cut -d/ -f1 | \\
221sort -u | xargs pkg_admin set rebuild=YES 221sort -u | xargs pkg_admin set rebuild=YES
222.Ed 222.Ed
223.Pp 223.Pp
224To compile all packages heavily parallel, use 224To compile all packages heavily parallel, use
225.Bd -literal -offset indent 225.Bd -literal -offset indent
226pkg_rolling-replace -D MAKE_JOBS=8 226pkg_rolling-replace -D MAKE_JOBS=8
227.Ed 227.Ed
228.Sh AUTHORS 228.Sh AUTHORS
229.An -nosplit 229.An -nosplit
230.An Nick Goffee 230.An Nick Goffee
231.Aq ngoffee@bbn.com , 231.Aq ngoffee@bbn.com ,
232with initial idea and many suggestions from 232with initial idea and many suggestions from
233.An Greg Troxel 233.An Greg Troxel