Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 2010 10:32:54 +0100
From:      Tom Evans <tevans.uk@googlemail.com>
To:        Andrew Reilly <areilly@bigpond.net.au>
Cc:        freebsd-hackers@freebsd.org, freebsd-current@freebsd.org, Ted Faber <faber@isi.edu>
Subject:   Re: using cupsd instead of base lpr [was Re: [HEADS UP] Kernel  modules don't work properly in FreeBSD 8.1-RC1 (solved)]
Message-ID:  <AANLkTikGXVmrFxgd_C9eA3-sFaeVKbmfgZG_tGIXSab6@mail.gmail.com>
In-Reply-To: <20100624092148.GA6948@duncan.reilly.home>
References:  <201006230238.06831.hselasky@c2i.net> <4C21AE18.4050400@icyb.net.ua> <201006230852.26536.hselasky@c2i.net> <4C21B170.2030903@icyb.net.ua> <4C21B383.2000602@icyb.net.ua> <AANLkTilZfLDUKzMe-B9kqWCnr1trjvPUoLrqFaVbK78R@mail.gmail.com> <20100623154531.GB31578@zod.isi.edu> <20100624011509.GI31578@zod.isi.edu> <20100624092337.6bed1f45@ernst.jennejohn.org> <20100624092148.GA6948@duncan.reilly.home>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 24, 2010 at 10:21 AM, Andrew Reilly <areilly@bigpond.net.au> wr=
ote:
> On Thu, Jun 24, 2010 at 09:23:37AM +0200, Gary Jennejohn wrote:
>> in /etc/src.conf - WITHOUT_LPR=3Dyes
>>
>> and these symbolic links in /usr/bin
>> lrwxr-xr-x =C2=A01 root =C2=A0wheel =C2=A0 =C2=A0 =C2=A017 Mar 18 =C2=A0=
2009 /usr/bin/lp -> /usr/local/bin/lp
>> lrwxr-xr-x =C2=A01 root =C2=A0wheel =C2=A0 =C2=A0 =C2=A024 Mar 18 =C2=A0=
2009 /usr/bin/lpoptions -> /usr/local/bin/lpoptions
>> lrwxr-xr-x =C2=A01 root =C2=A0wheel =C2=A0 =C2=A0 =C2=A018 Mar 18 =C2=A0=
2009 /usr/bin/lpq -> /usr/local/bin/lpq
>> lrwxr-xr-x =C2=A01 root =C2=A0wheel =C2=A0 =C2=A0 =C2=A018 Mar 18 =C2=A0=
2009 /usr/bin/lpr -> /usr/local/bin/lpr
>> lrwxr-xr-x =C2=A01 root =C2=A0wheel =C2=A0 =C2=A0 =C2=A019 Mar 18 =C2=A0=
2009 /usr/bin/lprm -> /usr/local/bin/lprm
>> lrwxr-xr-x =C2=A01 root =C2=A0wheel =C2=A0 =C2=A0 =C2=A021 Mar 18 =C2=A0=
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? =C2=A0Your shell will find them in their new
> locations just fine. =C2=A0You'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=3Dyes
WITHOUT_LPR=3Dyes

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-PORT=
S-KNOBS

Cheers

Tom



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikGXVmrFxgd_C9eA3-sFaeVKbmfgZG_tGIXSab6>