Re: The new cups ports seem to not recognize usb printers on FreeBSD 7.2-STABLE
On Sunday 06 Dec 2009 11:17:52 you wrote: On Sunday 06 Dec 2009 00:00:03 freebsd-ports-requ...@freebsd.org wrote: An option WITH_LIBUSB was added to the cups-base/Makefile. That's probably what Dirk meant. Thanks for the explanation, Gary. I have it set with make config but just hardcoded it into the Makefile and am recompiling but I doubt it will change but there is still hope. ;) The attached patch works on 8.0-RELEASE for me, restoring the non-libusb functionality. Leave the libusb option disabled and just compile as normal. Gah, sorry about the subject line. Won't happen again. -- Matt Dawson MTD15-RIPE m...@chronos.org.uk signature.asc Description: This is a digitally signed message part.
Re: The new cups ports seem to not recognize usb printers on FreeBSD 7.2-STABLE
On Sunday 06 Dec 2009 12:00:23 freebsd-ports-requ...@freebsd.org wrote: On Sunday 06 Dec 2009 00:00:03 freebsd-ports-requ...@freebsd.org wrote: An option WITH_LIBUSB was added to the cups-base/Makefile. That's probably what Dirk meant. Thanks for the explanation, Gary. I have it set with make config but just hardcoded it into the Makefile and am recompiling but I doubt it will change but there is still hope. ;) The attached patch works on 8.0-RELEASE for me, restoring the non-libusb functionality. Leave the libusb option disabled and just compile as normal. The attached couple of patches fix this port in all cases, tested with tinderbox. Since libusb is in base for FBSD8 it needs handling differently. Note well that if you use libusb, you need to NOT attach the ulpt* driver to the device, i.e. remove ulpt from your kernel or don't load it at boot. Also fixed is the CUPS_OVERWRITE_BASE case deinstall, restoring the correct permissions to lp and friends. -- Matt Dawson MTD15-RIPE m...@chronos.org.uk --- ./ports/print/cups-base/Makefile.orig 2009-12-06 11:02:46.0 + +++ ./ports/print/cups-base/Makefile 2009-12-06 12:21:21.0 + @@ -173,8 +173,13 @@ RUN_DEPENDS+= xdg-open:${PORTSDIR}/devel/xdg-utils .endif -.if !defined(CUPS_CLIENT) !defined(CUPS_IMAGE) defined(WITH_LIBUSB) +.if !defined(CUPS_CLIENT) !defined(CUPS_IMAGE) defined(WITH_LIBUSB) ${OSVERSION}80 +CPPFLAGS+= -I/usr/include +LDFLAGS+= -L/usr/lib +.elif !defined(CUPS_CLIENT) !defined(CUPS_IMAGE) defined(WITH_LIBUSB) ${OSVERSION}79 LIB_DEPENDS+= usb:${PORTSDIR}/devel/libusb +.else +CONFIGURE_ARGS+= --disable-libusb .endif .if defined(CUPS_CLIENT) --- ./ports/print/cups-base/pkg-plist.orig 2009-12-06 12:23:00.0 + +++ ./ports/print/cups-base/pkg-plist 2009-12-06 12:24:18.0 + @@ -20,6 +20,11 @@ %%overwrit...@exec if test -e /usr/bin/lpr; then chmod -h 0 /usr/bin/lpr; fi %%overwrit...@exec if test -e /usr/bin/lprm; then chmod -h 0 /usr/bin/lprm; fi %%overwrit...@exec if test -e /usr/sbin/lpc; then chmod -h 0 /usr/sbin/lpc; fi +%%overwrit...@unexec if test -e /usr/bin/lp; then chmod -h 0555 /usr/bin/lp; fi +%%overwrit...@unexec if test -e /usr/bin/lpq; then chmod -h 06555 /usr/bin/lpq; fi +%%overwrit...@unexec if test -e /usr/bin/lpr; then chmod -h 06555 /usr/bin/lpr; fi +%%overwrit...@unexec if test -e /usr/bin/lprm; then chmod -h 06555 /usr/bin/lprm; fi +%%overwrit...@unexec if test -e /usr/sbin/lpc; then chmod -h 02555 /usr/sbin/lpc; fi @unexec if cmp -s %D/etc/cups/cupsd.conf.N %D/etc/cups/cupsd.conf; then rm -f %D/etc/cups/cupsd.conf; fi etc/cups/cupsd.conf.N @exec if test ! -f %D/etc/cups/cupsd.conf; then cp -p %D/etc/cups/cupsd.conf.N %D/etc/cups/cupsd.conf; fi signature.asc Description: This is a digitally signed message part.
Re: The new cups ports seem to not recognize usb printers on FreeBSD 7.2-STABLE
End of Story. I recompiled cups without LIBUSB and the 7.2 servers can now print. Such a simple solution still makes me think that a note in ports/UPDATING could be a real time saver. I want to thank Matt, Gary, Steve and Brian for their help. have a great weekend, ed Quoting Matt Dawson m...@chronos.org.uk: On Sunday 06 Dec 2009 11:17:52 you wrote: On Sunday 06 Dec 2009 00:00:03 freebsd-ports-requ...@freebsd.org wrote: An option WITH_LIBUSB was added to the cups-base/Makefile. That's probably what Dirk meant. Thanks for the explanation, Gary. I have it set with make config but just hardcoded it into the Makefile and am recompiling but I doubt it will change but there is still hope. ;) The attached patch works on 8.0-RELEASE for me, restoring the non-libusb functionality. Leave the libusb option disabled and just compile as normal. Gah, sorry about the subject line. Won't happen again. -- Matt Dawson MTD15-RIPE m...@chronos.org.uk ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: The new cups ports seem to not recognize usb printers on FreeBSD 7.2-STABLE
Quoting Brian W. br...@brianwhalen.net: Dirk Meyer wrote: eculp schrieb:, would seem that I'm going to have to upgrade all my 7.2-STABLE servers to either 8.0 or 9.0 that all have usb printers that are being shared by others through cups. Please update the ports and try again. I would like to know if using libusb solves your problems. Thanks, Dirk. My ports, src, kernel, lib, are completely up to date on all my 7.2 machines. Daily, I' ve been cvsuping and rebuilding all for the last week. cvsup - make buildworld - make buildkernel - make installkernel - make installworld - portmaster -a This is in addition to having rebuild all cups related ports multiple times. If I need to do something to use libusb, I haven't. maybe that is the problem. Thanks again, ed kind regards Dirk - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany - [dirk.me...@dinoex.sub.org],[dirk.me...@guug.de],[din...@freebsd.org] http://people.freebsd.org/~dinoex/errorlogs/ ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org I have been having a different cups problem related to the man page portion of this on a FreeBSD 8 system. This has been a problem that I believe appeared early this week. Compiling mantohtml.c... cc -Wall -Wno-format-y2k -fPIC -Os -g -fstack-protector -I.. -D_CUPS_SOURCE -I/usr/local/include -O2 -pipe -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -c mantohtml.c cc -L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -L/usr/local/lib -Wl,-R/usr/local/lib -pie -fPIE -Wall -Wno-format-y2k -fPIC -Os -g -fstack-protector -o mantohtml mantohtml.o echo Converting man pages to HTML... Converting man pages to HTML... for file in cancel.1 cupstestdsc.1 cupstestppd.1 lp.1 lpoptions.1 lppasswd.1 lpq.1 lprm.1 lpr.1 lpstat.1 ppdc.1 ppdhtml.1 ppdi.1 ppdmerge.1 ppdpo.1; do \ echo $file...; \ ./mantohtml `basename $file .1`.man ../doc/help/man-`basename $file .1`.html; \ done cancel.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR cupstestdsc.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR cupstestppd.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR lp.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR lpoptions.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR lppasswd.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR lpq.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR lprm.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR lpr.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR lpstat.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR ppdc.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR ppdhtml.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR ppdi.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR ppdmerge.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR ppdpo.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR gmake[1]: *** [html] Error 1 gmake[1]: Leaving directory `/usr/ports/print/cups-base/work/cups-1.4.2/man' gmake: *** [all] Error 1 *** Error code 1 Stop in /usr/ports/print/cups-base. *** Error code 1 Stop in /usr/ports/print/cups-base. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20091204-2776-1rxg9wx-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=cups-base-1.3.10_4 UPGRADE_PORT_VER=1.3.10_4 make ** Fix the problem and try again. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: The new cups ports seem to not recognize usb printers on FreeBSD 7.2-STABLE
On Sat, 05 Dec 2009 07:41:38 -0600 eculp ec...@encontacto.net wrote: Quoting Brian W. br...@brianwhalen.net: Dirk Meyer wrote: eculp schrieb:, would seem that I'm going to have to upgrade all my 7.2-STABLE servers to either 8.0 or 9.0 that all have usb printers that are being shared by others through cups. Please update the ports and try again. I would like to know if using libusb solves your problems. libusb is the cause of the problem. Thanks, Dirk. My ports, src, kernel, lib, are completely up to date on all my 7.2 machines. Daily, I' ve been cvsuping and rebuilding all for the last week. cvsup - make buildworld - make buildkernel - make installkernel - make installworld - portmaster -a This is in addition to having rebuild all cups related ports multiple times. If I need to do something to use libusb, I haven't. maybe that is the problem. I should have thought of this sooner. The best and final (I think) solution is to add --disable-libusb to the configuration options in cups-base/Makefile and rebuild. I tested this on 8.0 rather than 7, and didn't try printing, but I verified that the USB backend sees the traditional /dev/ulptx device rather than using libusb, so I think it will work for you. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: The new cups ports seem to not recognize usb printers on FreeBSD 7.2-STABLE
On Sat, 05 Dec 2009 07:41:38 -0600 eculp ec...@encontacto.net wrote: Quoting Brian W. br...@brianwhalen.net: Dirk Meyer wrote: eculp schrieb:, would seem that I'm going to have to upgrade all my 7.2-STABLE servers to either 8.0 or 9.0 that all have usb printers that are being shared by others through cups. Please update the ports and try again. I would like to know if using libusb solves your problems. Thanks, Dirk. My ports, src, kernel, lib, are completely up to date on all my 7.2 machines. Daily, I' ve been cvsuping and rebuilding all for the last week. cvsup - make buildworld - make buildkernel - make installkernel - make installworld - portmaster -a This is in addition to having rebuild all cups related ports multiple times. If I need to do something to use libusb, I haven't. maybe that is the problem. An option WITH_LIBUSB was added to the cups-base/Makefile. That's probably what Dirk meant. --- Gary Jennejohn ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: The new cups ports seem to not recognize usb printers on FreeBSD 7.2-STABLE
Quoting Gary Jennejohn gary.jennej...@freenet.de: On Sat, 05 Dec 2009 07:41:38 -0600 eculp ec...@encontacto.net wrote: Quoting Brian W. br...@brianwhalen.net: Dirk Meyer wrote: eculp schrieb:, would seem that I'm going to have to upgrade all my 7.2-STABLE servers to either 8.0 or 9.0 that all have usb printers that are being shared by others through cups. Please update the ports and try again. I would like to know if using libusb solves your problems. Thanks, Dirk. My ports, src, kernel, lib, are completely up to date on all my 7.2 machines. Daily, I' ve been cvsuping and rebuilding all for the last week. cvsup - make buildworld - make buildkernel - make installkernel - make installworld - portmaster -a This is in addition to having rebuild all cups related ports multiple times. If I need to do something to use libusb, I haven't. maybe that is the problem. An option WITH_LIBUSB was added to the cups-base/Makefile. That's probably what Dirk meant. Thanks for the explanation, Gary. I have it set with make config but just hardcoded it into the Makefile and am recompiling but I doubt it will change but there is still hope. ;) Thanks again. Have a great weekend ed --- Gary Jennejohn ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: The new cups ports seem to not recognize usb printers on FreeBSD 7.2-STABLE
Quoting Steve Randall srandal...@gmail.com: On Sat, 05 Dec 2009 07:41:38 -0600 eculp ec...@encontacto.net wrote: Quoting Brian W. br...@brianwhalen.net: Dirk Meyer wrote: eculp schrieb:, would seem that I'm going to have to upgrade all my 7.2-STABLE servers to either 8.0 or 9.0 that all have usb printers that are being shared by others through cups. Please update the ports and try again. I would like to know if using libusb solves your problems. libusb is the cause of the problem. Thanks, Dirk. My ports, src, kernel, lib, are completely up to date on all my 7.2 machines. Daily, I' ve been cvsuping and rebuilding all for the last week. cvsup - make buildworld - make buildkernel - make installkernel - make installworld - portmaster -a This is in addition to having rebuild all cups related ports multiple times. If I need to do something to use libusb, I haven't. maybe that is the problem. I should have thought of this sooner. The best and final (I think) solution is to add --disable-libusb to the configuration options in cups-base/Makefile and rebuild. I tested this on 8.0 rather than 7, and didn't try printing, but I verified that the USB backend sees the traditional /dev/ulptx device rather than using libusb, so I think it will work for you. That certainly make sense to me. I am now recompiling without libusb. I'll let the list know as soon as I can. Thanks, ed ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
The new cups ports seem to not recognize usb printers on FreeBSD 7.2-STABLE
At the end of this email I'm referencing a previous email that I sent about this before checking if the problem was the new BSD stack and it appears that it is. I just checked with my FreeBSD 9.0-CURRENT laptop and it finds the USB printer perfectly and prints as expected. It would seem that I'm going to have to upgrade all my 7.2-STABLE servers to either 8.0 or 9.0 that all have usb printers that are being shared by others through cups. I assume that either of the two would be equally problematic. I hadn't wanted to upgrade just yet but now I see little choice. I've almost always run current on them and upgrade less than on my laptop and have never had any major problem since 4.0 or maybe before. That makes my upgrading seamless although a bit risky. I wonder, if anyone who has upgraded, could give me a suggestion as to which method to use cvsup or burn a cd/dvd and I will need to recompile all ports and the first thing that pops into my mind is the example in the portmaster manual page. One other question, Shouldn't this have a notation in UPGRADING and maybe a work around? Thanks for any suggestions, ed Reference: Re: The new cups ports seem to not recognize or I don't know how to configure usb printers. Quoting eculp ec...@encontacto.net: I haven't had a problem like this with cups in years. I updated cups yesterday and can no longer print, install, reinstall usb printers. In admin/add a printer I have no local options only: Other Network Printers: Internet Printing Protocol (http) Internet Printing Protocol (ipp) LPD/LPR Host or Printer AppSocket/HP JetDirect No input for discription, location, etc. The usb printers are recognized when connected or disconnected by the kernel. I am seeing this on both up to date current and 7.2 Stable. I am going through the documentation hoping to find the problem. If not, what is the best way to go back to the previous port? Thanks, ed ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: The new cups ports seem to not recognize usb printers on FreeBSD 7.2-STABLE
On Fri, 04 Dec 2009 12:49:10 -0600 eculp ec...@encontacto.net wrote: At the end of this email I'm referencing a previous email that I sent about this before checking if the problem was the new BSD stack and it appears that it is. I just checked with my FreeBSD 9.0-CURRENT laptop and it finds the USB printer perfectly and prints as expected. It would seem that I'm going to have to upgrade all my 7.2-STABLE servers to either 8.0 or 9.0 that all have usb printers that are being shared by others through cups. I assume that either of the two would be equally problematic. I hadn't wanted to upgrade just yet but now I see little choice. I've almost always run current on them and upgrade less than on my laptop and have never had any major problem since 4.0 or maybe before. That makes my upgrading seamless although a bit risky. I took me some time, but I can confirm that the new CUPS does not see USB printers on a GENERIC 7.2 kernel. It does, however, if you delete the ulpt driver from the kernel. Which you don't need anymore anyway. HTH ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: The new cups ports seem to not recognize usb printers on FreeBSD 7.2-STABLE
Dirk Meyer wrote: eculp schrieb:, would seem that I'm going to have to upgrade all my 7.2-STABLE servers to either 8.0 or 9.0 that all have usb printers that are being shared by others through cups. Please update the ports and try again. I would like to know if using libusb solves your problems. kind regards Dirk - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany - [dirk.me...@dinoex.sub.org],[dirk.me...@guug.de],[din...@freebsd.org] http://people.freebsd.org/~dinoex/errorlogs/ ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org I have been having a different cups problem related to the man page portion of this on a FreeBSD 8 system. This has been a problem that I believe appeared early this week. Compiling mantohtml.c... cc -Wall -Wno-format-y2k -fPIC -Os -g -fstack-protector -I.. -D_CUPS_SOURCE -I/usr/local/include -O2 -pipe -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -c mantohtml.c cc -L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -L/usr/local/lib -Wl,-R/usr/local/lib -pie -fPIE -Wall -Wno-format-y2k -fPIC -Os -g -fstack-protector -o mantohtml mantohtml.o echo Converting man pages to HTML... Converting man pages to HTML... for file in cancel.1 cupstestdsc.1 cupstestppd.1 lp.1 lpoptions.1 lppasswd.1 lpq.1 lprm.1 lpr.1 lpstat.1 ppdc.1 ppdhtml.1 ppdi.1 ppdmerge.1 ppdpo.1; do \ echo $file...; \ ./mantohtml `basename $file .1`.man ../doc/help/man-`basename $file .1`.html; \ done cancel.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR cupstestdsc.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR cupstestppd.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR lp.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR lpoptions.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR lppasswd.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR lpq.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR lprm.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR lpr.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR lpstat.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR ppdc.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR ppdhtml.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR ppdi.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR ppdmerge.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR ppdpo.1... /libexec/ld-elf.so.1: ./mantohtml: invalid PT_PHDR gmake[1]: *** [html] Error 1 gmake[1]: Leaving directory `/usr/ports/print/cups-base/work/cups-1.4.2/man' gmake: *** [all] Error 1 *** Error code 1 Stop in /usr/ports/print/cups-base. *** Error code 1 Stop in /usr/ports/print/cups-base. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20091204-2776-1rxg9wx-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=cups-base-1.3.10_4 UPGRADE_PORT_VER=1.3.10_4 make ** Fix the problem and try again. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org