The NetBSD Project

CVS log for pkgsrc/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkg_rolling-replace / files

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.43 / (download) - annotate - [select for diffs], Tue Apr 13 17:51:21 2021 UTC (38 hours, 15 minutes ago) by rhialto
Branch: MAIN
CVS Tags: HEAD
Changes since 1.42: +10 -2 lines
Diff to previous 1.42 (colored)

pkg_rolling-replace: catch permission errors from pkg_admin

and print a friendlier warning message instead (only once).
Document that the mismatch state may not persist if permissions are
insufficient.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Jan 15 10:56:52 2021 UTC (2 months, 4 weeks ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1
Changes since 1.41: +3 -2 lines
Diff to previous 1.41 (colored)

pkg_rr: substitute pkg_admin with PKG_ADMIN_CMD. Bump to 0.24.10.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Jan 9 19:12:46 2021 UTC (3 months ago) by rhialto
Branch: MAIN
Changes since 1.40: +24 -15 lines
Diff to previous 1.40 (colored)

pkgtools/pkg_rolling-replace: Update to 0.24.9

When using the -u option to find mismatched packages, mark each affected
package with 'mismatch=YES'. Otherwise, consider such packages as
targets to rebuild.
ok gdt@.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Aug 27 19:30:36 2019 UTC (19 months, 2 weeks ago) by gdt
Branch: MAIN
CVS Tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3
Changes since 1.39: +6 -3 lines
Diff to previous 1.39 (colored)

pkgtools/pkg_rolling-replace: Update to 0.24.8

Be more tolerant of not finding PKGPATH, and basically attempt to skip
the package rather than treating it as a fatal error.  (This was a
stray edit that I've been running with for a while.)

Revision 1.39 / (download) - annotate - [select for diffs], Mon Jul 29 14:48:17 2019 UTC (20 months, 2 weeks ago) by gdt
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

pkgtools/pkg_rollingreplace: Update to 0.24.7

When running pkg_chk, ignore packages marked "missing", which tend to
be the wrong python version.

This is a temporary kludge, but should allow pkg_rr to run on systems
that have changed python versions.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Apr 26 18:14:15 2019 UTC (23 months, 2 weeks ago) by gdt
Branch: MAIN
CVS Tags: pkgsrc-2019Q2-base, pkgsrc-2019Q2
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

pkg_rolling-replace: Update to 0.24.6

When trying to extract PKGPATH from what is believed to be the PKGNAME
of an installed package, do not abort, but merely error (which is
nonfatal with -k).  This is helpful, but not sufficient, when dealing
with pyNN-foo packages where the default version is depended on but
not installed.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Mar 23 17:20:31 2019 UTC (2 years ago) by gdt
Branch: MAIN
CVS Tags: pkgsrc-2019Q1-base, pkgsrc-2019Q1
Changes since 1.36: +3 -2 lines
Diff to previous 1.36 (colored)

pkgtools/pkg_rolling-replace: 0.24.5

In addition to adding in BUILD_DEPENDS, catch up to long-ago
improvements to pkgsrc and also add in TOOL_DEPENDS.

Thanks to Hauke Fath for reporting the issue.

Revision 1.36 / (download) - annotate - [select for diffs], Sun May 6 18:06:18 2018 UTC (2 years, 11 months ago) by gdt
Branch: MAIN
CVS Tags: pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (colored)

pkg_rolling-replace: avoid top-level make clean

In some cases, if an installed package's source directory did not
exist, pkg_rr could invoke "make clean" at top-level of pkgsrc.  Bug
report and fix by Andreas Gustafsson in PR pkg/53157.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Apr 14 11:40:31 2015 UTC (6 years ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

Remove more references to python-2.6.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Feb 12 08:22:16 2015 UTC (6 years, 2 months ago) by abs
Branch: MAIN
CVS Tags: pkgsrc-2015Q1-base, pkgsrc-2015Q1
Changes since 1.33: +5 -3 lines
Diff to previous 1.33 (colored)

Update to pkg_rolling-replace-0.24.2
Add -B - to pass -B to pkg_chk when determining which packages to update

Revision 1.33 / (download) - annotate - [select for diffs], Wed Oct 3 22:14:03 2012 UTC (8 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

Update for python25 removal.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Apr 30 13:59:39 2012 UTC (8 years, 11 months ago) by gdt
Branch: MAIN
CVS Tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

Use " for PKGNAME_REQUIRED, so that ${pkg} is expanded.

Resolves at least some issues with finding the right pyNN-foo, when
replacing packages that don't match PYTHON_VERSION_DEFAULT.

(This was a stray change in my tree not committed for a while, but
it's been working ok.)

Now 0.24.1.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Mar 22 04:04:58 2011 UTC (10 years ago) by obache
Branch: MAIN
CVS Tags: pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1
Changes since 1.30: +8 -8 lines
Diff to previous 1.30 (colored)

Pass MAKE_SET_VARS with environment variables instead of make flags,
or it will be passwd down to subsequent make (ex. installation of dependencies)
and result in unwanted behaviour.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Dec 20 15:39:09 2010 UTC (10 years, 3 months ago) by gdt
Branch: MAIN
CVS Tags: pkgsrc-2010Q4-base, pkgsrc-2010Q4
Changes since 1.29: +15 -8 lines
Diff to previous 1.29 (colored)

0.23: Pass PKGNAME_REQD to make operations.

Set PKGNAME_REQD to give underlying make processes a chance to set
options derived from the package name.  For example, the appropriate
version of Python can be derived from the package name (so, when
building py25-foo, use python-2.5, not python-2.6).   Specifically,
  MAKE_SET_VARS='PKGNAME_REQD=${pkg}-*'

From Alan Barret via pkgsrc-users@.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Dec 20 15:24:24 2010 UTC (10 years, 3 months ago) by gdt
Branch: MAIN
Changes since 1.28: +6 -3 lines
Diff to previous 1.28 (colored)

0.22: Avoid infinite loop in some error cases.

Sometimes, the set of packages to be replaced ($REPLACE_TODO) does not
have any members which are installed (and hence in $TSORTED).  This
caused the loop over $TSORTED to not find any packages to replace.
The check for not having found one was missing, resulting in the last
package in TSORTED being replaced.  Because $REPLACE_TODO is still
non-empty, this repeats.

This patch adds an abort when no packages in $TSORTED are in
$REPLACE_TODO.  Analysis and patch from Ian D. Leroux on
pkgsrc-users@.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Feb 11 12:54:27 2010 UTC (11 years, 2 months ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

fix inverted test

Revision 1.27 / (download) - annotate - [select for diffs], Thu Feb 11 12:17:23 2010 UTC (11 years, 2 months ago) by tnn
Branch: MAIN
Changes since 1.26: +3 -11 lines
Diff to previous 1.26 (colored)

might as well uniqify the FAILED and SUCCEEDED lists

Revision 1.26 / (download) - annotate - [select for diffs], Thu Feb 11 12:07:33 2010 UTC (11 years, 2 months ago) by tnn
Branch: MAIN
Changes since 1.25: +47 -27 lines
Diff to previous 1.25 (colored)

- Clean up the error handling a bit
- Bomb if we couldn't extract the PKGPATH from an installed package.
XXX the pkg_rr main loop has grown too large and should be split into
functions.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Feb 1 19:06:43 2010 UTC (11 years, 2 months ago) by sno
Branch: MAIN
Changes since 1.24: +9 -34 lines
Diff to previous 1.24 (colored)

Updating pkgtools/pkg_rolling-replace/ from 0.19nb1 to 0.20

Improving the variable passing to make by allowing any, not just
MAKE_JOBS and USE_DESTDIR.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Feb 1 10:28:45 2010 UTC (11 years, 2 months ago) by sno
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Fixing a typo and bumping revision (if anyone still had updated)

Revision 1.23 / (download) - annotate - [select for diffs], Mon Feb 1 09:33:21 2010 UTC (11 years, 2 months ago) by sno
Branch: MAIN
Changes since 1.22: +64 -23 lines
Diff to previous 1.22 (colored)

Updating pkg_rolling-replace (set new version 0.19):

- Add option '-D' to tune "USE_DESTDIR=" and set this defaultly to 'NO'
- Add option '-j' to tune "MAKE_JOBS=" (Default: unset)
- Fix an issue with packages with missing origin

Revision 1.22 / (download) - annotate - [select for diffs], Fri Nov 13 19:40:55 2009 UTC (11 years, 5 months ago) by sno
Branch: MAIN
CVS Tags: pkgsrc-2009Q4-base, pkgsrc-2009Q4
Changes since 1.21: +142 -37 lines
Diff to previous 1.21 (colored)

Updating pkgtools/pkg_rolling-replace from 0.17 to 0.18

Changes:
Added 3 new features:
1) Fetch only
2) Keep going after error (skip package)
3) Log output of make steps

Modified verbosity to report what's failed and what succeeds.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jun 17 08:12:18 2009 UTC (11 years, 10 months ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

pkg_rolling-replace-0.17:
Use "pkg_info -Q" to extract PKGPATH from installed packages instead of
"pkg_info -B" coupled with awk magic. The previous regexp didn't account
for packages that have PREV_PKGPATH set, and blew up while replacing
for example mail/sylpheed and multimedia/ffmpeg.

Revision 1.20 / (download) - annotate - [select for diffs], Wed May 13 10:47:35 2009 UTC (11 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Sort options in usage.

Revision 1.19 / (download) - annotate - [select for diffs], Fri May 2 19:04:03 2008 UTC (12 years, 11 months ago) by apb
Branch: MAIN
CVS Tags: pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, cwrapper-base, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.18: +26 -3 lines
Diff to previous 1.18 (colored)

Bump version to pkg_rolling-replace-0.16:
* Look for $MAKECONF in @MAKECONF@, @PREFIX@/etc/mk.conf,
  and /etc/mk.conf, in that order.
* Look for $PKGSRCDIR in the Makefile referred to by $MAKECONF,
  ".", "..", "../..", and "/usr/pkgsrc", in that order.

Proposed in tech-pkg; OK Greg Troxel.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Mar 31 11:41:09 2008 UTC (13 years ago) by gdt
Branch: MAIN
CVS Tags: pkgsrc-2008Q1-base, pkgsrc-2008Q1
Changes since 1.17: +8 -2 lines
Diff to previous 1.17 (colored)

Separate 'make clean' from 'make package', so that clean is not
skipped with -r.  DISTNAME++.  Fixes PR pkg/38283.

Reviewed and tested by tnn@.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Feb 17 10:47:47 2008 UTC (13 years, 2 months ago) by apb
Branch: MAIN
Changes since 1.16: +8 -4 lines
Diff to previous 1.16 (colored)

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.)

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jan 11 13:29:37 2008 UTC (13 years, 3 months ago) by gdt
Branch: MAIN
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

Add patch from Brook Milligan to avoid treating warnings about
non-deletable packages as dependencies.  Bump version to 0.14.

Example problematic output (perhaps should also be fixed in
pkg_install):

     Information for pkg_install-20070810:

     *** PACKAGE MAY NOT BE DELETED ***
     Built using:
     checkperms-1.7

     *** PACKAGE MAY NOT BE DELETED ***

Revision 1.15 / (download) - annotate - [select for diffs], Sun Dec 2 02:11:05 2007 UTC (13 years, 4 months ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2007Q4-base, pkgsrc-2007Q4
Changes since 1.14: +19 -11 lines
Diff to previous 1.14 (colored)

pkg_rolling-replace-0.12:
Replace the nested shell loops in depgraph_installed() with some awk
that only needs to invoke pkg_info once. This gives a ~20x speedup.

Previously, if many packages were installed, depgraph generation took a
considerable amount of time; in the order of 30 seconds even on moderately
fast hardware.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Aug 17 01:19:45 2007 UTC (13 years, 8 months ago) by gdt
Branch: MAIN
CVS Tags: pkgsrc-2007Q3-base, pkgsrc-2007Q3
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Remove leading spaces from PKGNAME, to cope with an old bug.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Aug 8 11:28:04 2007 UTC (13 years, 8 months ago) by tnn
Branch: MAIN
Changes since 1.12: +47 -24 lines
Diff to previous 1.12 (colored)

pkg_rolling-replace-0.10:
- Abort if any of rebuild, unsafe_depends, unsafe_depends_strict are still
  set after "make replace".
- Following changes in pkgsrc, does not replace by default if the
  dependencies' ABI is still compatible.
- Add option -s that retains the old behaviour of always replacing.
- Add option -r for "replace only", this supresses creation of binary pkgs.
- The -n option has not been fully updated for these changes.
- versions 0.[7-9] were skipped to avoid any ambiguity from the 0.04 -> 0.5
  transition.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Aug 6 15:07:56 2007 UTC (13 years, 8 months ago) by tnn
Branch: MAIN
Changes since 1.11: +22 -14 lines
Diff to previous 1.11 (colored)

Update to pkg_rolling-replace-0.6:
- Explicitly unset 'unsafe_depends' and 'rebuild' tags after replacing.
  Needed after changes in pkgsrc/mk/flavor/pkg/replace.mk, fixes PR 36738.
- Introduce ${PKG_ADMIN}, ${PKG_INFO}, ${PKG_CHK} variables instead of
  calling the tools directly by name.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Aug 3 00:55:09 2007 UTC (13 years, 8 months ago) by tnn
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

pkg_rolling-replace-0.5:
Redirecting output to /dev/stderr is not portable and will create a
regular file "stderr" if the device does not exist. Instead use the
portable 1>&2 redirection syntax. PKGREVISION was at nb9; get rid of it
and bump minor version number.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 29 17:16:24 2007 UTC (13 years, 9 months ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2007Q2-base, pkgsrc-2007Q2
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

*really* fix previous.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 29 17:00:44 2007 UTC (13 years, 9 months ago) by tnn
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Convert extended RE into basic RE equivalent, making us portable again.
Noted by Mehul N. Sanghvi on pkgsrc-users@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jun 5 08:22:32 2007 UTC (13 years, 10 months ago) by tnn
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

make(1) variable assignments should go after all command line options.

Revision 1.7 / (download) - annotate - [select for diffs], Wed May 23 18:59:46 2007 UTC (13 years, 10 months ago) by tnn
Branch: MAIN
Changes since 1.6: +4 -5 lines
Diff to previous 1.6 (colored)

simplify previous

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 23 18:11:05 2007 UTC (13 years, 10 months ago) by tnn
Branch: MAIN
Changes since 1.5: +4 -2 lines
Diff to previous 1.5 (colored)

non-current make(1) doesn't support -V.
Provide a target for printing PKGSRCDIR. PKGREVISION++

Revision 1.5 / (download) - annotate - [select for diffs], Sun May 20 13:35:56 2007 UTC (13 years, 10 months ago) by tnn
Branch: MAIN
Changes since 1.4: +9 -9 lines
Diff to previous 1.4 (colored)

- Change the way pkg_rolling-replace parses version numbers. Everything
    after the last hyphen is the version, not everything after the first
    occurence of '-[0-9]'. This allows pkg_rolling-replace users to upgrade
    packages such as font-bitstream-100dpi.
- Use INSTALL_MAN, not INSTALL_SCRIPT. Manpages are not executable.
- Bump PKGREVISION.

Revision 1.4 / (download) - annotate - [select for diffs], Fri May 11 16:48:55 2007 UTC (13 years, 11 months ago) by tnn
Branch: MAIN
Changes since 1.3: +4 -5 lines
Diff to previous 1.3 (colored)

Prepend ${PREFIX} to default location of mk.conf if we're using bmake.

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 10 02:55:31 2007 UTC (13 years, 11 months ago) by tnn
Branch: MAIN
Changes since 1.2: +10 -7 lines
Diff to previous 1.2 (colored)

Get PKGSRCDIR from mk.conf. In turn, Get path of mk.conf from MAKECONF
or default to /etc/mk.conf if unset. Bump PKGREVISON.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Dec 18 12:36:17 2006 UTC (14 years, 4 months ago) by gdt
Branch: MAIN
CVS Tags: pkgsrc-2007Q1-base, pkgsrc-2007Q1, pkgsrc-2006Q4-base, pkgsrc-2006Q4
Changes since 1.1: +3 -9 lines
Diff to previous 1.1 (colored)

SUBST the path to ${MAKE}.
PKGREVISION++.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Tue Dec 5 18:23:52 2006 UTC (14 years, 4 months ago) by gdt
Branch: TNF
CVS Tags: pkgsrc-base
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

pkg_rolling-replace does 'make replace' on one package at a time,
tsorting the packages being replaced according to their
interdependencies, which avoids most duplicate rebuilds.


Revision 1.1 / (download) - annotate - [select for diffs], Tue Dec 5 18:23:52 2006 UTC (14 years, 4 months ago) by gdt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>