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

From: Ted Faber <faber_at_isi.edu>
Date: Thu, 24 Jun 2010 09:54:45 -0700
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.

-- 
Ted Faber
http://www.isi.edu/~faber           PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG

Received on Thu Jun 24 2010 - 14:54:46 UTC

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