summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_rolling-replace
AgeCommit message (Collapse)AuthorFilesLines
2021-06-28pkg_rolling-replace: use POSIX getopts(1) instead of getopt(1)mcf2-25/+19
2021-04-22Correct the order of redirectionpho2-4/+4
2021-04-13pkg_rolling-replace: catch permission errors from pkg_adminrhialto3-5/+16
and print a friendlier warning message instead (only once). Document that the mismatch state may not persist if permissions are insufficient.
2021-01-15pkg_rr: substitute pkg_admin with PKG_ADMIN_CMD. Bump to 0.24.10.tnn2-5/+6
2021-01-09pkgtools/pkg_rolling-replace: Update to 0.24.9rhialto3-29/+44
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@.
2019-08-27pkgtools/pkg_rolling-replace: Update to 0.24.8gdt2-5/+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.)
2019-07-29pkgtools/pkg_rollingreplace: Update to 0.24.7gdt2-4/+4
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.
2019-04-26pkg_rolling-replace: Update to 0.24.6gdt2-4/+4
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.
2019-03-23pkgtools/pkg_rolling-replace: 0.24.5gdt2-4/+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.
2018-05-06pkg_rolling-replace: avoid top-level make cleangdt2-3/+4
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.
2018-04-07pkgtools/pkg_rolling-replace: update MAINTAINERgson1-2/+2
Mail to ngoffee bounces, and gdt has agreed to take on maintainership.
2018-01-01Sort PLIST files.rillig1-2/+2
Unsorted entries in PLIST files have generated a pkglint warning for at least 12 years. Somewhat more recently, pkglint has learned to sort PLIST files automatically. Since pkglint 5.4.23, the sorting is only done in obvious, simple cases. These have been applied by running: pkglint -Cnone,PLIST -Wnone,plist-sort -r -F
2017-03-31Update "pkg_rolling-replace" to version 0.24.3.tron1-3/+3
- Make sure that installation path gets correctly recorded in the installed shell script to aid detection of the pkgsrc source location
2015-04-14Remove more references to python-2.6.wiz1-2/+2
2015-02-12Update to pkg_rolling-replace-0.24.2abs3-7/+15
Add -B - to pass -B to pkg_chk when determining which packages to update
2014-10-09Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles.wiz1-3/+1
2014-03-03LICENSE=modified-bsdobache1-1/+2
2014-03-03Just define PKGNAME and use it.obache1-4/+2
2012-10-03Update for python25 removal.wiz1-3/+3
2012-09-11"user-destdir" is default these daysasau1-2/+1
2012-04-30Use " for PKGNAME_REQUIRED, so that ${pkg} is expanded.gdt2-4/+4
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.
2012-01-25Add note about use of unsafe_depends_loose, from discussion withgdt1-2/+38
obache@. Note that there is an issue with unsafe_depends not getting set when options change.
2011-03-22Pass MAKE_SET_VARS with environment variables instead of make flags,obache2-11/+11
or it will be passwd down to subsequent make (ex. installation of dependencies) and result in unwanted behaviour.
2010-12-200.23: Pass PKGNAME_REQD to make operations.gdt2-10/+17
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@.
2010-12-200.22: Avoid infinite loop in some error cases.gdt2-5/+8
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@.
2010-04-23Start todo list for pkg_rolling-replace (not installed).gdt1-0/+2
2010-02-11fix inverted testtnn1-2/+2
2010-02-11might as well uniqify the FAILED and SUCCEEDED liststnn1-11/+3
2010-02-11- Clean up the error handling a bittnn2-30/+49
- 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.
2010-02-01Updating pkgtools/pkg_rolling-replace/ from 0.19nb1 to 0.20sno3-62/+28
Improving the variable passing to make by allowing any, not just MAKE_JOBS and USE_DESTDIR.
2010-02-01Sort option descriptions, be more explicit in -D one.wiz1-27/+35
2010-02-01Fixing a typo and bumping revision (if anyone still had updated)sno2-3/+4
2010-02-01Updating pkg_rolling-replace (set new version 0.19):sno3-27/+86
- 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
2009-12-01bump datetnn1-2/+2
2009-11-13Updating pkgtools/pkg_rolling-replace from 0.17 to 0.18sno3-42/+191
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.
2009-06-17pkg_rolling-replace-0.17:tnn2-5/+4
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.
2009-05-13Sort options in usage.wiz1-2/+2
2009-05-13Sort options. Sort sections. Fix xref.wiz1-32/+31
2009-04-09Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions.joerg1-2/+1
2009-02-10DESTDIR supportjoerg1-3/+4
2008-06-22Drop check for 'make replace => unsafe_depends" support being presentgdt1-22/+4
in pkgsrc. It's been 1.75 years, and the benefit of the check is now outweighed by the cruftiness.
2008-06-08Add example showing how to mark all packages depdending on X11 forgdt2-2/+10
rebuild, useful for moving to X11_TYPE=modular. From tnn@.
2008-05-22Fix typotnn1-3/+3
2008-05-02Bump version to pkg_rolling-replace-0.16:apb3-16/+52
* 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.
2008-03-31Separate 'make clean' from 'make package', so that clean is notgdt2-4/+10
skipped with -r. DISTNAME++. Fixes PR pkg/38283. Reviewed and tested by tnn@.
2008-03-11Add an EXAMPLES section.tnn1-2/+19
2008-02-17Bump version to pkg_rolling-replace-0.14:apb3-11/+30
* 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.)
2008-01-11Add patch from Brook Milligan to avoid treating warnings aboutgdt2-3/+4
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 ***
2007-12-02pkg_rolling-replace-0.12:tnn2-14/+22
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.
2007-08-17Remove leading spaces from PKGNAME, to cope with an old bug.gdt2-4/+4