From owner-freebsd-ports@FreeBSD.ORG Tue Apr 10 09:10:12 2007 Return-Path: X-Original-To: freebsd-ports@FreeBSD.ORG Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9547416A402 for ; Tue, 10 Apr 2007 09:10:12 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 221CA13C484 for ; Tue, 10 Apr 2007 09:10:11 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (iforgf@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l3A9A4No020107 for ; Tue, 10 Apr 2007 11:10:09 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l3A9A4o6020106; Tue, 10 Apr 2007 11:10:04 +0200 (CEST) (envelope-from olli) Date: Tue, 10 Apr 2007 11:10:04 +0200 (CEST) Message-Id: <200704100910.l3A9A4o6020106@lurza.secnetix.de> From: Oliver Fromme To: freebsd-ports@FreeBSD.ORG X-Newsgroups: list.freebsd-ports User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 10 Apr 2007 11:10:10 +0200 (CEST) Cc: Subject: Printing with Acrobat Reader X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2007 09:10:12 -0000 Hi, I've configured Adobe Reader to use "/usr/bin/lpr -Plaser" for printing ("laser" is the name of the printing queue for my PostScript printer). But when I try to print a document, I get the error message "/usr/bin/lpr not found". Obviously Adobe Reader tries to locate the given binary in /compat/linux. When I copy /usr/bin/lpr (FreeBSD binary) to /compat/linux/usr/bin, printing from Adobe Reader works fine. Now I have a few questions ... :-) First, copying the FreeBSD binary to /compat/linux seems like a dirty hack. Is there a better way to solve the problem? Second, if there's no better way, then shouldn't the port already copy the lpr binary upon install (and remove it upon deinstall), so printing works out of the box? Or install a small shellscript wrapper in /compat/linux that calls /usr/bin/lpr. (Or at least add a message to the FreeBSD port to hint users that they need to copy the binary.) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "The scanf() function is a large and complex beast that often does something almost but not quite entirely unlike what you desired." -- Chris Torek