Re: using cupsd instead of base lpr [was Re: [HEADS UP] Kernel modules don't work properly in FreeBSD 8.1-RC1 (solved)]

From: Tom Evans <tevans.uk_at_googlemail.com>
Date: Thu, 24 Jun 2010 10:32:54 +0100
On Thu, Jun 24, 2010 at 10:21 AM, Andrew Reilly <areilly_at_bigpond.net.au> wrote:
> On Thu, Jun 24, 2010 at 09:23:37AM +0200, Gary Jennejohn wrote:
>> in /etc/src.conf - WITHOUT_LPR=yes
>>
>> and these symbolic links in /usr/bin
>> lrwxr-xr-x  1 root  wheel      17 Mar 18  2009 /usr/bin/lp -> /usr/local/bin/lp
>> lrwxr-xr-x  1 root  wheel      24 Mar 18  2009 /usr/bin/lpoptions -> /usr/local/bin/lpoptions
>> lrwxr-xr-x  1 root  wheel      18 Mar 18  2009 /usr/bin/lpq -> /usr/local/bin/lpq
>> lrwxr-xr-x  1 root  wheel      18 Mar 18  2009 /usr/bin/lpr -> /usr/local/bin/lpr
>> lrwxr-xr-x  1 root  wheel      19 Mar 18  2009 /usr/bin/lprm -> /usr/local/bin/lprm
>> lrwxr-xr-x  1 root  wheel      21 Mar 18  2009 /usr/bin/lpstat -> /usr/local/bin/lpstat
>>
>> and /usr/bin is _before_ /usr/local/bin in my PATH.
>
> Since you have /usr/local/bin in your path, why bother with
> the symlinks at all?  Your shell will find them in their new
> locations just fine.  You'll want to remove the old ones from
> /usr/bin, but make delete-old will probably do that nicely
> anyway.
>
> Cheers,
>
> --
> Andrew

make delete-old removes old deprecated files, not files that weren't
built because of src.conf options. It definitely will not remove the
lpr binaries from /usr/bin if they exist there.

There already is a proper solution for this: if you want to have LPR
from CUPS, and don't want to use LPR from base, then you set these
settings in make.conf:
CUPS_OVERWRITE_BASE=yes
WITHOUT_LPR=yes

With these, lpr in base will not be built, and print/cups-base will
deactivate any base system lpr binaries that are installed. It's
documented in the FreeBSD CUPS article here:
http://www.freebsd.org/doc/en/articles/cups/article.html#PRINTING-CUPS-PORTS-KNOBS

Cheers

Tom
Received on Thu Jun 24 2010 - 07:32:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:05 UTC