Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85315 - app-text/xpdf-3.00-r8 could not find X / Motif and its not able to compile xpdf
Summary: app-text/xpdf-3.00-r8 could not find X / Motif and its not able to compile xpdf
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-15 01:16 UTC by Octavio Ruiz (Ta^3)
Modified: 2005-03-15 13:13 UTC (History)
1 user (show)

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


Attachments
xpdf.ebuild.diff (xpdf.ebuild.diff,1.08 KB, patch)
2005-03-15 01:19 UTC, Octavio Ruiz (Ta^3)
Details | Diff
xpdf-3.00-r9.ebuild (xpdf-3.00-r9.ebuild,3.63 KB, text/plain)
2005-03-15 01:22 UTC, Octavio Ruiz (Ta^3)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Octavio Ruiz (Ta^3) 2005-03-15 01:16:50 UTC
configure: WARNING: Couldn't find X / Motif -- you will be able to compile
        pdftops, pdftotext, pdfinfo, pdffonts, pdftoppm, and pdfimages,
        but not xpdf


Since openmottif (>=2.2.3-r5  >=2.1.30-r11) "fix includes" moving everything to 
/usr/include/openmotif-2.2 instead of /usr/include (which is good) xpdf 
configure script can not find Xm headers/libraries... I added this to the
ebuild and then xpdf can be compiled.. 

+               --with-Xm-library=`/usr/bin/motif-config -L` \
+               --with-Xm-includes=`/usr/bin/motif-config -I` \

Also I like that behaviour.. cos in this way bug 83317 can be fixed/closed.

Diff and ebuild will be attached., They should be keyworded ~ because depends on a keyworded ebuild (motif-config and openmotif >=2.2.3-r5  >=2.1.30-r11).
Comment 1 Octavio Ruiz (Ta^3) 2005-03-15 01:19:45 UTC
Created attachment 53505 [details, diff]
xpdf.ebuild.diff
Comment 2 Octavio Ruiz (Ta^3) 2005-03-15 01:22:18 UTC
Created attachment 53506 [details]
xpdf-3.00-r9.ebuild
Comment 3 Octavio Ruiz (Ta^3) 2005-03-15 01:43:48 UTC
For tracking-bug purposes:

===================
Bug 49026 (Where is /usr/bin/xpdf ?)
Bug 73985 (xpdf needs better warning about missing xpdf program)
Bug 79959 (xpdf uses "nomotif" USE flag instead of checking against "motif" USE flag)
Bug 83317 (xpdf uses "nomotif" use flags although there already is "motif")
Bug 85315 (app-text/xpdf-3.00-r8 could not find X / Motif and its not able to compile xpdf)
===================

Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2005-03-15 01:44:08 UTC
This is not related to bug #83317. xpdf should find motif, because motif-config creates the links to /usr/include and /usr/lib. try to remerge motif-config/openmotif and then xpdf.
Comment 5 Octavio Ruiz (Ta^3) 2005-03-15 12:20:30 UTC
     Tue Mar 15 04:25:15 2005 >>> x11-libs/motif-config-0.5
     Tue Mar 15 04:26:07 2005 >>> x11-libs/motif-config-0.5
     Tue Mar 15 04:37:56 2005 >>> x11-libs/openmotif-2.2.3-r5
     Tue Mar 15 04:38:53 2005 >>> app-text/xpdf-3.00-r8

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

motif-config creates the links, yea... but xpdf still not working.

 Xm -> /usr/include/openmotif-2.2/Xm
 Mrm -> /usr/include/openmotif-2.2/Mrm
 uil -> /usr/include/openmotif-2.2/uil


Comment 6 Heinrich Wendel (RETIRED) gentoo-dev 2005-03-15 12:25:26 UTC
`motif-config -l`?
Comment 7 Octavio Ruiz (Ta^3) 2005-03-15 12:36:47 UTC
motif-config -l
[1] openmotif-2.2 *

There are just symlinks.. ok.. but I was having this problem

motif-config --install openmotif-2.2
 * /usr/bin/motif-config: Installing Profile: openmotif-2.2
rm: cannot remove `/usr/include/Mrm': Is a directory
rm: cannot remove `/usr/include/Xm': Is a directory
rm: cannot remove `/usr/include/uil': Is a directory
ln: `/usr/include/Mrm/Mrm': File exists
ln: `/usr/include/Xm/Xm': File exists
ln: `/usr/include/uil/uil': File exists
 * /usr/bin/motif-config: New default Profile is: openmotif-2.2

Also the ebuild showed that.

Weird because rm should not (?) output anything with `-f` argument.. so well, I deleted by hand `/usr/include/{Mrm,Xm,uil}' reemerged (motif-config,openmotif,xpdf) and works now.

It Was a `migration` issue?
Comment 8 Heinrich Wendel (RETIRED) gentoo-dev 2005-03-15 12:51:47 UTC
yes, migration issue. unmerge openmotif-2.2.3-r3 and try again
Comment 9 Octavio Ruiz (Ta^3) 2005-03-15 13:13:05 UTC
I have x11-libs/openmotif-2.2.3-r5. I'm on ~arch. It work (xpdf) before deleted symlinks and emerged openmotif again. 

Thanks :-)