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

2010-06-24 Thread Gary Jennejohn
On Wed, 23 Jun 2010 18:15:09 -0700
Ted Faber fa...@isi.edu wrote:

 (/usr/local/bin/ preceeds /usr/bin in my path so I can use the lpr
 commands from cupsd, though it's evidently a bit of a dangerous idea.)
 
[trimmed Cc]

I use cupsd and have these settings to get around using the base system
lp stuff:

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.

 ---
Gary Jennejohn
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


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

2010-06-24 Thread Gary Jennejohn
On Thu, 24 Jun 2010 10:30:26 +0200
Alban Hertroys dal...@solfertje.student.utwente.nl wrote:

 On 24 Jun 2010, at 9:23, Gary Jennejohn wrote:
 
  On Wed, 23 Jun 2010 18:15:09 -0700
  Ted Faber fa...@isi.edu wrote:
  
  (/usr/local/bin/ preceeds /usr/bin in my path so I can use the lpr
  commands from cupsd, though it's evidently a bit of a dangerous idea.)
  
  [trimmed Cc]
  
  I use cupsd and have these settings to get around using the base system
  lp stuff:
  
  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.
 
 
 Wouldn't it be easier to alias those commands instead of physically replacing 
 them?
 In my .tcshrc I have:
 
 alias lp/usr/local/bin/lp
 alias lpq   /usr/local/bin/lpq
 alias lpr   /usr/local/bin/lpr
 alias lprm  /usr/local/bin/lprm
 
 I only have /usr/local/bin/lpoptions on my system (7-STABLE), so I guess 
 that's exclusive to CUPS, hence no need for me to alias it.
 

That's a valid option, of course.  My thought was that the base lp isn't
being installed anyway so it's just as simple to use symbolic links.

--
Gary Jennejohn
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


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

2010-06-24 Thread Tom Evans
On Thu, Jun 24, 2010 at 8:23 AM, Gary Jennejohn
gljennj...@googlemail.com wrote:
 On Wed, 23 Jun 2010 18:15:09 -0700
 Ted Faber fa...@isi.edu wrote:

 (/usr/local/bin/ preceeds /usr/bin in my path so I can use the lpr
 commands from cupsd, though it's evidently a bit of a dangerous idea.)

 [trimmed Cc]

 I use cupsd and have these settings to get around using the base system
 lp stuff:

 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.

  ---
 Gary Jennejohn

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.

Cheers

Tom
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: [HEADS UP] Kernel modules don't work properly in FreeBSD 8.1-RC1

2010-06-24 Thread Dag-Erling Smørgrav
Andriy Gapon a...@icyb.net.ua writes:
 Yes, you are absolutely correct.  This comes from the fact that amd64 uses 
 simple
 objects files (aka .o) as kernel modules and i386 uses full-blow dso.

The obvious question is: since, as I understand, amd64's solution is
superior, what would it take to switch to .o on other platforms?

DES
-- 
Dag-Erling Smørgrav - d...@des.no
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


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

2010-06-24 Thread Tom Evans
On Thu, Jun 24, 2010 at 10:21 AM, Andrew Reilly arei...@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
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


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

2010-06-24 Thread Alex Dupre
Tom Evans ha scritto:
 make delete-old removes old deprecated files, not files that weren't
 built because of src.conf options.

I think you are wrong:
http://www.freebsd.org/cgi/cvsweb.cgi/src/tools/build/mk/OptionalObsoleteFiles.inc?rev=1.66

-- 
Alex Dupre
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


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

2010-06-24 Thread Tom Evans
On Thu, Jun 24, 2010 at 10:45 AM, Alex Dupre a...@freebsd.org wrote:
 Tom Evans ha scritto:
 make delete-old removes old deprecated files, not files that weren't
 built because of src.conf options.

 I think you are wrong:
 http://www.freebsd.org/cgi/cvsweb.cgi/src/tools/build/mk/OptionalObsoleteFiles.inc?rev=1.66

 --
 Alex Dupre


Meh, OK. It didn't used to, there was a discussion about this about 6
months ago, and yes, check the history of that file. This support was
added in February, nothing in /usr/src/UPDATING about it..

Still, besides the point. There is one supported way to get cups-base
lpr used instead of base lpr, and it's got not much to do with 'make
delete-old'.

http://www.freebsd.org/doc/en/articles/cups/article.html#PRINTING-CUPS-PORTS-KNOBS

Cheers

Tom
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


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

2010-06-24 Thread Alban Hertroys
On 24 Jun 2010, at 9:23, Gary Jennejohn wrote:

 On Wed, 23 Jun 2010 18:15:09 -0700
 Ted Faber fa...@isi.edu wrote:
 
 (/usr/local/bin/ preceeds /usr/bin in my path so I can use the lpr
 commands from cupsd, though it's evidently a bit of a dangerous idea.)
 
 [trimmed Cc]
 
 I use cupsd and have these settings to get around using the base system
 lp stuff:
 
 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.


Wouldn't it be easier to alias those commands instead of physically replacing 
them?
In my .tcshrc I have:

alias lp/usr/local/bin/lp
alias lpq   /usr/local/bin/lpq
alias lpr   /usr/local/bin/lpr
alias lprm  /usr/local/bin/lprm

I only have /usr/local/bin/lpoptions on my system (7-STABLE), so I guess that's 
exclusive to CUPS, hence no need for me to alias it.

Alban Hertroys

--
Screwing up is an excellent way to attach something to the ceiling.


!DSPAM:,4c2317b8286214077543485!


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


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

2010-06-24 Thread Andrew Reilly
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
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


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

2010-06-24 Thread Ed Schouten
* Andrew Reilly arei...@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.

In theory, yes. In practice, no. Just for fun, remove your
/usr/sbin/sendmail while having Postfix's /usr/local/sbin/sendmail
installed. It simply won't work. If I remember correctly, you won't even
receive the periodic(8) emails.

Nowadays it's probably better, but I remember in the old days GNOME
would always print through /usr/bin/lpr, even when CUPS is installed.

-- 
 Ed Schouten e...@80386.nl
 WWW: http://80386.nl/


pgpNgoKSxOgsT.pgp
Description: PGP signature


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

2010-06-24 Thread Ed Schouten
* Mike Meyer m...@mired.org wrote:
 Maybe it's time for /usr/sbin/lpwrapper, to do the same thing for
 print systems?

In my opinion, we should just rename mailwrapper to whateverwrapper and
list the lpr programs in there as well.

-- 
 Ed Schouten e...@80386.nl
 WWW: http://80386.nl/


pgpn1LzLEWm9v.pgp
Description: PGP signature


Re: using cupsd instead of base lpr

2010-06-24 Thread Dag-Erling Smørgrav
Ed Schouten e...@80386.nl writes:
 In my opinion, we should just rename mailwrapper to whateverwrapper
 and list the lpr programs in there as well.

Take a look at /etc/alternatives in any Debian-based Linux distro...

DES
-- 
Dag-Erling Smørgrav - d...@des.no
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


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

2010-06-24 Thread Ted Faber
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.


-- 
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


pgpBnQb7UNzNh.pgp
Description: PGP signature


Re: using cupsd instead of base lpr

2010-06-24 Thread Peter Pentchev
On Thu, Jun 24, 2010 at 03:56:56PM +0200, Dag-Erling Smørgrav wrote:
 Ed Schouten e...@80386.nl writes:
  In my opinion, we should just rename mailwrapper to whateverwrapper
  and list the lpr programs in there as well.
 
 Take a look at /etc/alternatives in any Debian-based Linux distro...

Yeah, that's actually something I've long wondered about implementing;
shouldn't be too hard, really.

Never found the tuits, though :)

For those who don't know what the idea is: /usr/bin/ftp is a symlink to
/etc/alternatives/ftp, which in its turn is a symlink to /usr/bin/tnftp.
The /etc/alternatives/ links are maintained by the update-alternatives
utility which knows about priorities, defaults, slave symlinks (e.g. if
the ftp(1) utility's symlink changes, it would be best to also change
the ftp.1.gz manpage symlink, wouldn't it?), and a whole lot more.

From a user's standpoint, all you have to do is install a package that
declares a higher-priority alternative, and update-alternatives switches
the symlink behind the scenes (unless you have explicitly specified one
of the choices).  If you don't like that, run update-alternatives by hand,
and your choice is honored even if later a package with an even higher
priority is installed.

G'luck,
Peter

-- 
Peter Pentchev  r...@space.bgr...@ringlet.netr...@freebsd.org
PGP key:http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
Hey, out there - is it *you* reading me, or is it someone else?


signature.asc
Description: Digital signature


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

2010-06-24 Thread Ted Faber
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  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


pgpJ2UHzloYfq.pgp
Description: PGP signature