HOLD_PKGS not working?

Dave Byrne dave-lists at glynjones.com
Tue Aug 19 14:48:59 PDT 2003


I am trying to disable portupgrade from trying to upgrade my linux ports
(linux-base and linux-sun-jdk) by adding it to pkgtools.conf but it seems to
not be working.

Is adding the package names to HOLD_PKGS the correct way?

% cat /usr/local/etc/pkgtools.conf | grep -A3 -B20 'linux'
  #
  # This is a list of ports you don't want portupgrade(1) to upgrade,
  # portversion(1) to suggest upgrading, or pkgdb(1) to fix.
  # You can use wildcards ("ports glob" and "pkgname glob").
  # -f/--force of each command will force the held status.
  #
  # To completely hide the existence of a package, put a dummy file
  # named "+IGNOREME" in the package directory.
  #
  # cf. pkg_glob(1), ports_glob(1)
  #
  # e.g.:
  #   HOLD_PKGS = [
  #     'bsdpan-*',
  #     'x11*/XFree86*',
  #   ]

  HOLD_PKGS = [
    'bsdpan-*',
    'jdk*',
    'linux-sun-jdk',
    'linux_base'
  ]

  # USE_PKGS: array
% portsdb -fu
[Updating the portsdb <format:bdb1_btree> in /var/tmp ... - 9037 port
entries found .........1000.........2000.........3000.........
4000.........5000.........6000.........7000.........8000.........9000 .....
done]
% portversion | grep 'linux'
linux-sun-jdk               <
linux_base                  <

Shouldnt portversion be ignoring these ports, or do I have pkgtools.conf
incorrectly setup?

Thanks
Dave



More information about the freebsd-ports mailing list