Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Dec 2003 22:15:14 -0800 (PST)
From:      John Merryweather Cooper <johnmary@adelphia.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/60355: [SW-BUG] print/hpoj fails to start ptal interface
Message-ID:  <200312180615.hBI6FEJN009799@borgdemon.losaca.adelphia.net>
Resent-Message-ID: <200312180620.hBI6K139014775@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         60355
>Category:       ports
>Synopsis:       [SW-BUG] print/hpoj fails to start ptal interface
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 17 22:20:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     John Merryweather Cooper
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD borgdemon.losaca.adelphia.net 4.9-STABLE FreeBSD 4.9-STABLE #3: Mon Dec 15 22:25:19 PST 2003 root@borgdemon.losaca.adelphia.net:/usr/obj/usr/src/sys/K6-2 i386


	
>Description:
	To interface with CUPS, print/hpoj needs to install a working interface
	script in ${LOCALBASE}/libexec/cups/backend.  The link to
	${LOCALBASE}/sbin/ptal-cups fails to execute.  It has a shell
	reference of #!/bin/bash which does not exist on FreeBSD even if
	shells/bash2 is installed.  Hence, the script crashes.

	Also, the startup script in ${LOCALBASE}/etc/rc.d MUST start before
	cups.sh--but it won't because scripts are executed in alphanumeric
	order.

>How-To-Repeat:
	Install print/cups and print/hpoj.  Execute ptal-init start and then
	try to setup up a printer under CUPS using hpoj.  The PTAL device
	will not be detected.

>Fix:

	Workaround:

	1) install shells/bash2
	2) patch ptal-cups to use #!/usr/local/bin/bash
	3) restart hpoj and then CUPS
	4) the PTAL device will now be detected
	5) also rename the startup script so that it begins with 000.

	Fix:

	Appropriate, trivial patches to print/hpoj should do the trick.
	1) make shells/bash2 a RUN_DEPENDS of print/hpoj OR
	2) patch ptal-cups so it works under /bin/sh
	3) patch ptal-cups anyway so that it runs with an appropriate
	shell
	4) patch the HTML documentation using REINPLACE_CMD so that the
	paths match up with reality on the installed system
	5) change the name of the sample startup script so it will
	start before CUPS

	NOTE:  Because hpijs is NOT enabled (and no switch is provided
	in the port to do so) in print/cups-pstoraster, most of the
	functionality of hpoj is wasted.  Please enable print/hpijs under
	print/cups-pstoraster.


>Release-Note:
>Audit-Trail:
>Unformatted:



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