Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13087 - xpdf-2.01 depends not necessarily on lesstif
Summary: xpdf-2.01 depends not necessarily on lesstif
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-02 07:48 UTC by Andreas Simon
Modified: 2003-08-03 13:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Simon 2003-01-02 07:48:50 UTC
xpdf-2.01 has a hard dependency on lesstif but
it works with OpenMotif too. Thus it should'nt
depend on lesstif, but on lesstif OR openmotif
instead.

I have tested it with x11-libs/openmotif-2.2.2-r1
(without any lesstif on the system) and encountered
no failures.

Possible bad behaivior when emerging this ebuild:
Also I think this ebuild will overwrite many openmotif
files (i.e. includes etc.) with lesstif files if installed on
a openmotif system. But I guess this is more a openmotif/
lesstif problem.
Comment 1 Ian Smith 2003-01-03 06:11:46 UTC
according to the home page it _should_ be built against motif now
Comment 2 Thomas Jäger 2003-01-03 12:03:09 UTC
I tried to compile xpdf with x11-libs/openmotif (2.2.2-r1), 
but i wasn't able to compile /usr/bin/xpdf 
  (other programs pdfimages, pdfinfo, etc. without problems)

any special changes to the ebuild file? 
 (except removing line --with-freetype2-library=/usr/lib, see comments #13091)
Comment 3 Klaus Kusche 2003-01-03 13:26:55 UTC
Same here:
I need to have "the real thing" (openmotif) installed and permanently loaded
(for nedit, xplore and some other apps I heavily use).
I do not want to mess up my system with the clone (lesstif).

As there is a security alert against the old xpdf version, having a new xpdf
emerge which does not depend on lesstif is *urgent*. Please increase
severity/priority!
Comment 4 Andreas Simon 2003-01-03 13:56:29 UTC
"I tried to compile xpdf with x11-libs/openmotif (2.2.2-r1),   
but i wasn't able to compile /usr/bin/xpdf"  
  
I didn't made any changes to the ebuild to compile it against  
OpenMotif at all. I just used the --nodeps switch from emerge to  
disable the installation of lesstif, so 'emerge --nodeps xpdf'  
was all I did.  
  
I guess the problems you had (you never mentionen  
what problems) have nothing to do with OpenMotif,  
as according to comment #1 using Motif is the official  
way to build xpdf.  
 
Comment 5 Andreas Simon 2003-01-03 14:04:54 UTC
I set Daniel Ahlberg into the CC field, he did the security update. 
Comment 6 Thomas Jäger 2003-01-04 05:26:54 UTC
the problem is a warning during configure...

configure: WARNING: Couldn't find X / Motif -- you will be able to 
        pdftops, pdftotext, pdfinfo, pdffonts, and pdfimages, but not xpdf


at the moment i have only openmotif installed, no lesstif.
i had installed both, but then removed lesstif and openmotif, installed
openmotif again and then tried to build xpdf

to get the new version of xpdf i reinstalled lesstif, installed xpd and removed
lesstif. after that i reinstalled openmotif due to compatibility issues
openmotif/lesstif


Comment 7 Andreas Simon 2003-01-04 07:14:53 UTC
Well, I guess if the ebuild doesn't work for some people with openmotif it's a good reason to require lesstif and not openmotif until this issue is debugged. 
Comment 8 Daniel Ahlberg (RETIRED) gentoo-dev 2003-01-04 11:12:04 UTC
As soon as virtual/motif is in place the dependency will be changed. This shouldn't 
take more than a couple of days. 
Comment 9 Daniel Ahlberg (RETIRED) gentoo-dev 2003-01-04 19:07:51 UTC
virtual/motif is in place. If you have installed lesstif just becuse of the dependency in 
xpdf you can unmerge lesstif and re-emerge xpdf. 
Comment 10 Thomas Jäger 2003-01-08 04:39:44 UTC
still not able to compile /usr/bin/xpdf


configure: WARNING: Couldn't find X / Motif -- you will be able to compile
        pdftops, pdftotext, pdfinfo, pdffonts, and pdfimages, but not xpdf


i have installed openmotif (virtual/motif), no lesstif installed...


# emerge -p motif

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R  ] x11-libs/openmotif-2.2.2-r1 


maybe it's a local problem, but this warning will be prompted even after
uninstalling xpdf & openmotif and reinstalling both packages
Comment 11 Thomas Jäger 2003-01-08 05:30:35 UTC
checking whether to use Xm library... (cached) /usr/X11R6/lib
checking where to find the Xm header files... (cached) /usr/X11R6/include/Xm
checking Xm/XmAll.h usability... no
checking Xm/XmAll.h presence... no
checking for Xm/XmAll.h... no
configure: WARNING: requested Xm library not found!
Comment 12 Thomas Jäger 2003-01-08 05:49:54 UTC
adding --with-Xm-includes=/usr/X11R6/include 
will resolve the Xm checking problems for openmotif 
 (see comment #11, 
  there i added the wrong Xm include directory, 
  xpdf configure is checking Xm/XmAll.h)



--- changed ebuild file ---

src_compile() {
    ./configure --enable-freetype2 \
        --with-freetype2-includes=/usr/include/freetype2 \
        --with-Xm-includes=/usr/X11R6/include \
        --prefix=/usr \
        --mandir=/usr/share/man \
        --sysconfdir=/etc \
        --with-gzip || die


lesstif and openmotif are using different Xm include directories...
Comment 13 Seemant Kulleen (RETIRED) gentoo-dev 2003-08-03 13:18:37 UTC
this can be closed now.