Commit graph

70 commits

Author SHA1 Message Date
mcf
65ec8f812b pkg_rolling-replace: use POSIX getopts(1) instead of getopt(1) 2021-06-28 19:33:23 +00:00
pho
f8858c6a62 Correct the order of redirection 2021-04-22 08:54:18 +00:00
rhialto
5b2c612bfe 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.
2021-04-13 17:51:21 +00:00
tnn
f82f98a0c5 pkg_rr: substitute pkg_admin with PKG_ADMIN_CMD. Bump to 0.24.10. 2021-01-15 10:56:52 +00:00
rhialto
fd4ea6db8e 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@.
2021-01-09 19:12:46 +00:00
gdt
e0be187af7 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.)
2019-08-27 19:30:36 +00:00
gdt
4123a0828c 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.
2019-07-29 14:48:17 +00:00
gdt
3c20c936cf 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.
2019-04-26 18:14:15 +00:00
gdt
10c674be3c 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.
2019-03-23 17:20:31 +00:00
gdt
28bf35b8c1 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.
2018-05-06 18:06:18 +00:00
gson
a56e6cdcf6 pkgtools/pkg_rolling-replace: update MAINTAINER
Mail to ngoffee bounces, and gdt has agreed to take on maintainership.
2018-04-07 11:04:30 +00:00
rillig
b381c6e2f3 Sort PLIST files.
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
2018-01-01 22:29:15 +00:00
tron
79671d3350 Update "pkg_rolling-replace" to version 0.24.3.
- Make sure that installation path gets correctly recorded in the installed
  shell script to aid detection of the pkgsrc source location
2017-03-31 07:10:58 +00:00
wiz
fe0d9a87aa Remove more references to python-2.6. 2015-04-14 11:40:31 +00:00
abs
60f166cc87 Update to pkg_rolling-replace-0.24.2
Add -B - to pass -B to pkg_chk when determining which packages to update
2015-02-12 08:22:16 +00:00
wiz
cda18437be Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles. 2014-10-09 14:05:50 +00:00
obache
86e92d379a LICENSE=modified-bsd 2014-03-03 04:48:46 +00:00
obache
34637a70ac Just define PKGNAME and use it. 2014-03-03 03:30:52 +00:00
wiz
79434c2ac7 Update for python25 removal. 2012-10-03 22:14:00 +00:00
asau
5c2dd9e784 "user-destdir" is default these days 2012-09-11 23:19:33 +00:00
gdt
7d59f91b4d 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.
2012-04-30 13:59:38 +00:00
gdt
d07cfa08b4 Add note about use of unsafe_depends_loose, from discussion with
obache@.

Note that there is an issue with unsafe_depends not getting set when
options change.
2012-01-25 15:20:35 +00:00
obache
44736878b8 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.
2011-03-22 04:04:58 +00:00
gdt
fd0c4fecfb 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@.
2010-12-20 15:39:09 +00:00
gdt
a4866d94d3 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@.
2010-12-20 15:24:24 +00:00
gdt
238a61c28c Start todo list for pkg_rolling-replace (not installed). 2010-04-23 17:11:12 +00:00
tnn
abc7c42575 fix inverted test 2010-02-11 12:54:27 +00:00
tnn
f49194b52b might as well uniqify the FAILED and SUCCEEDED lists 2010-02-11 12:17:23 +00:00
tnn
c000c3ae33 - 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.
2010-02-11 12:07:33 +00:00
sno
4225841e3c 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.
2010-02-01 19:06:42 +00:00
wiz
0073cb0571 Sort option descriptions, be more explicit in -D one. 2010-02-01 12:25:07 +00:00
sno
578fadf392 Fixing a typo and bumping revision (if anyone still had updated) 2010-02-01 10:28:45 +00:00
sno
89efac344b 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
2010-02-01 09:33:21 +00:00
tnn
7160745e3b bump date 2009-12-01 14:26:08 +00:00
sno
b2c8aad6ff 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.
2009-11-13 19:40:55 +00:00
tnn
e3ebd56cf2 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.
2009-06-17 08:12:18 +00:00
wiz
29fd77355e Sort options in usage. 2009-05-13 10:47:35 +00:00
wiz
b5abe92626 Sort options. Sort sections. Fix xref. 2009-05-13 10:47:02 +00:00
joerg
368d71b62e Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions. 2009-04-09 00:48:06 +00:00
joerg
de7d5abdaa DESTDIR support 2009-02-10 00:15:20 +00:00
gdt
665a3a92c4 Drop check for 'make replace => unsafe_depends" support being present
in pkgsrc.  It's been 1.75 years, and the benefit of the check is now
outweighed by the cruftiness.
2008-06-22 12:49:53 +00:00
gdt
b1df4d999d Add example showing how to mark all packages depdending on X11 for
rebuild, useful for moving to X11_TYPE=modular.  From tnn@.
2008-06-08 17:29:01 +00:00
tnn
54d5395f8f Fix typo 2008-05-22 13:48:36 +00:00
apb
590058d9b8 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.
2008-05-02 19:04:03 +00:00
gdt
205b55abd1 Separate 'make clean' from 'make package', so that clean is not
skipped with -r.  DISTNAME++.  Fixes PR pkg/38283.

Reviewed and tested by tnn@.
2008-03-31 11:41:09 +00:00
tnn
bcc3a75940 Add an EXAMPLES section. 2008-03-11 01:53:05 +00:00
apb
7a43c660cf 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.)
2008-02-17 10:47:47 +00:00
gdt
1dfd5850bd 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 ***
2008-01-11 13:29:37 +00:00
tnn
2e9b188782 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.
2007-12-02 02:11:05 +00:00
gdt
785779a3cc Remove leading spaces from PKGNAME, to cope with an old bug. 2007-08-17 01:19:45 +00:00