| @@ -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 |
170 | Base of pkgsrc tree. | | 170 | Base of pkgsrc tree. |
171 | If not set in the environment, then this variable is read from | | 171 | If not set in the environment, then this variable is read from |
172 | .Pa ${MAKECONF} . | | 172 | .Pa ${MAKECONF} . |
173 | If it is still not set, and if the current working directory | | 173 | If it is still not set, and if the current working directory |
174 | appears to be inside a pkgsrc tree, then this variable | | 174 | appears to be inside a pkgsrc tree, then this variable |
175 | is set to the base of that pkgsrc tree. | | 175 | is set to the base of that pkgsrc tree. |
176 | Finally, if | | 176 | Finally, if |
177 | .Pa /usr/pkgsrc | | 177 | .Pa /usr/pkgsrc |
178 | appears to contain a pkgsrc tree, then that is used as a last resort. | | 178 | appears to contain a pkgsrc tree, then that is used as a last resort. |
179 | .It Ev PKG_DBDIR | | 179 | .It Ev PKG_DBDIR |
180 | pkgsrc database directory. | | 180 | pkgsrc database directory. |
181 | If not set in environment then defaults to | | 181 | If 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 |
185 | To update all packages on the system and ensure correct shared library | | 185 | To update all packages on the system and ensure correct shared library |
186 | dependencies: | | 186 | dependencies: |
187 | .Bd -literal -offset indent | | 187 | .Bd -literal -offset indent |
188 | pkg_rolling-replace -rsuv | | 188 | pkg_rolling-replace -rsuv |
189 | .Ed | | 189 | .Ed |
190 | .Pp | | 190 | .Pp |
191 | To update all packages on the system, do as little rebuilding as possible, | | 191 | To update all packages on the system, do as little rebuilding as possible, |
192 | and also produce binary packages: | | 192 | and also produce binary packages: |
193 | .Bd -literal -offset indent | | 193 | .Bd -literal -offset indent |
194 | pkg_rolling-replace -uv | | 194 | pkg_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 |
209 | To force rebuild of gtk2+ and all packages that depend on it, keep | | 209 | To force rebuild of gtk2+ and all packages that depend on it, keep |
210 | going on even if one package fails, except openoffice2 - log to | | 210 | going 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 |
213 | pkg_admin set rebuild=YES gtk2+ | | 213 | pkg_admin set rebuild=YES gtk2+ |
214 | pkg_rolling-replace -krsv -L /var/log/pkg_rr -X openoffice2 | | 214 | pkg_rolling-replace -krsv -L /var/log/pkg_rr -X openoffice2 |
215 | .Ed | | 215 | .Ed |
216 | .Pp | | 216 | .Pp |
217 | To mark all packages that compiled against X11 as needing rebuild | | 217 | To 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 |
220 | cd /var/db/pkg \*[Am]\*[Am] grep "blddep x11-links" */* | cut -d/ -f1 | \\ | | 220 | cd @PKG_DBDIR@ \*[Am]\*[Am] grep "blddep x11-links" */* | cut -d/ -f1 | \\ |
221 | sort -u | xargs pkg_admin set rebuild=YES | | 221 | sort -u | xargs pkg_admin set rebuild=YES |
222 | .Ed | | 222 | .Ed |
223 | .Pp | | 223 | .Pp |
224 | To compile all packages heavily parallel, use | | 224 | To compile all packages heavily parallel, use |
225 | .Bd -literal -offset indent | | 225 | .Bd -literal -offset indent |
226 | pkg_rolling-replace -D MAKE_JOBS=8 | | 226 | pkg_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 , |
232 | with initial idea and many suggestions from | | 232 | with initial idea and many suggestions from |
233 | .An Greg Troxel | | 233 | .An Greg Troxel |