pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/45562 (print/xpdf does not compile (when using lesstif))



The following reply was made to PR pkg/45562; it has been noted by GNATS.

From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen%uni-bielefeld.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: wiz%NetBSD.org@localhost, pkg-manager%NetBSD.org@localhost, 
pkgsrc-bugs%NetBSD.org@localhost,
 gnats-admin%NetBSD.org@localhost
Subject: Re: pkg/45562 (print/xpdf does not compile (when using lesstif))
Date: Fri, 04 Nov 2011 11:38:12 +0100

 On 11/04/11 11:18 AM, wiz%NetBSD.org@localhost wrote:
 > Do you have patch suggestions? Otherwise we could just remove the option ;)
 
 You mean remove lesstif from pkgsrc?
 
 Just to prevent such drastic measures:
 
 --- xpdf/XPDFViewer.cc.orig     2011-08-15 21:08:53.000000000 +0000
 +++ xpdf/XPDFViewer.cc
 @@ -1803,7 +1803,7 @@ void XPDFViewer::initToolbar(Widget pare
     menuPane = XmCreatePulldownMenu(toolBar, "zoomMenuPane", args, n);
     for (i = 0; i < nZoomMenuItems; ++i) {
       n = 0;
 -    s = XmStringCreateLocalized(zoomMenuInfo[i].label);
 +    s = XmStringCreateLocalized((char *)zoomMenuInfo[i].label);
       XtSetArg(args[n], XmNlabelString, s); ++n;
       XtSetArg(args[n], XmNuserData, (XtPointer)i); ++n;
       sprintf(buf, "zoom%d", i);
 
 The same problem was fixed a few lines above in the top half of an 
 #if/#else block, but obviously missed on the other side. I'll report it 
 upstream.
 
 -- 
   Jörn Clausen                             
joern.clausen%uni-bielefeld.de@localhost
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld
 


Home | Main Index | Thread Index | Old Index