Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Aug 2003 14:49:11 -0700
From:      "Dave Byrne" <dave-lists@glynjones.com>
To:        <freebsd-ports@freebsd.org>
Subject:   HOLD_PKGS not working?
Message-ID:  <009e01c3669b$b9725df0$886ed03f@glynjones.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?009e01c3669b$b9725df0$886ed03f>