using cupsd instead of base lpr [was Re: [HEADS UP] Kernel
modules don't work properly in FreeBSD 8.1-RC1 (solved)]
Gary Jennejohn
gljennjohn at googlemail.com
Fri Jun 25 09:03:44 UTC 2010
On Thu, 24 Jun 2010 09:54:45 -0700
Ted Faber <faber at isi.edu> wrote:
> On Thu, Jun 24, 2010 at 08:29:57AM -0700, Ted Faber wrote:
> > On Thu, Jun 24, 2010 at 09:40:00AM +0100, Tom Evans wrote:
> > > I also have this in make.conf:
> > > CUPS_OVERWRITE_BASE=yes
> > > WITHOUT_LPR=yes
> > >
> > > which print/cups-base uses to do make any lpr related binaries in
> > > /usr/bin non-executable, so they are skipped over and the cups
> > > specific ones in /usr/loca/bin are used instead. WITHOUT_LPR just
> > > stops LPR being built by buildworld.
> >
> > The clear winner, and one I was unaware of.
> >
> > Thanks, Tom.
>
> CUPS_OVERWRITE_BASE seems to do an odd thing. It doesn't install the
> cups binaries in /usr/bin, but it does do a chmod 0000 on everything it
> replaces in /usr/bin . For example
>
> praxis:~$ ls -l /usr/bin/lpr
> -r-sr-sr-x 1 root daemon 29876 Jun 24 09:16 /usr/bin/lpr
> # portupgrade -f cups-base-1.4.3
> praxis:~$ ls -l /usr/bin/lpr
> ---------- 1 root daemon 29876 Jun 24 09:16 /usr/bin/lpr
>
> I'll still use it, but interesting behavior.
>
IMO if you're going to make the binaries in base non-executable you might
just as well delete them.
But CUPS_OVERWRITE_BASE does have the advantage that it works without
(active) user intervention.
--
Gary Jennejohn
More information about the freebsd-current
mailing list