Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37111 - A second emerge of xpdf doesn't recognize openmotif so xpdf isn't build
Summary: A second emerge of xpdf doesn't recognize openmotif so xpdf isn't build
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-03 08:49 UTC by Sebastian
Modified: 2004-02-07 10:44 UTC (History)
3 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 Sebastian 2004-01-03 08:49:55 UTC
When you emerge xpdf for the first time and use 'USE="motif" emerge xpdf' everything is ok and pdftops etc. and xpdf get build.
When you try to emerge it a second time even though openmotif is still installed and you use 'USE="motif" emerge xpdf' its configure script looks for openmotif but can't find it anymore. So only pdftops etc. get build, but xpdf itself gets not. 

Reproducible: Always
Steps to Reproduce:
1. USE="motif" emerge xpdf
2. USE="motif" emerge xpdf

Actual Results:  
xpdf is not build

Expected Results:  
xpdf is build

I would just unmerge xpdf and related software. But I haven't found any other
opensource pdf viewer for use with fluxbox.
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-01-03 10:48:03 UTC
What Xpdf version are you trying?
Comment 2 Sebastian 2004-01-03 14:11:46 UTC
The stable marked:

Calculating dependencies ...done! 
[ebuild  N    ] app-text/xpdf-2.02.1  +motif 

Sebastian
Comment 3 Sebastian 2004-01-03 15:11:28 UTC
I just tried it again to give you more infos. So I unmerge xpdf, openmotif, ghostscript and z1lib and then emerged xpdf again. Openmotif was the first thing that got reemerged.

The xpdf .configure scripts states this:

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

Sebastian
Comment 4 Sebastian 2004-01-03 15:39:07 UTC
Hello again,

I found out what was going wrong. I had mounted my /tmp directory noexec. I removed noexec from fstab and afterwards compiling xpdf was no problem. So some part of xpdf's configure script must be depending on script executions in /tmp allthough gentoo's ebuilds should build in /var/tmp/portage, right? Is this a bug? 

Sebastian
Comment 5 bartron 2004-01-04 18:07:21 UTC
  That looks like an odd one...the warning in commant #3 is always 
printed if the `xpdf' binary will not be built (no_x="yes"), regardless
of whether the problem is Motif or X...but it's not reproducible here.
What would be helpful is

- the output of `emerge --info'
- contents of some environment vars that may confuse `configure'
  (LANG, LC_*)
- contents of `config.log' (found in `/var/tmp/portage/xpdf-*/work/xpdf-*')
  after `configure' is finished running
Comment 6 bartron 2004-01-04 18:09:44 UTC
[er, of course I mean comment #3...]

Could this be related to the tar problem some users seem to be having?
Comment 7 Olivier Castan 2004-01-12 13:56:58 UTC
The problem comes from configure with seems assume that /usr/X11R6/include is among the defaults include search paths (which is not the case for my gcc version 3.3.2 20031218). Adding "--x-includes=/usr/X11R6/include" in econf command line (depending on motif USE variable), in the ebuild solves the problem.
Comment 8 Heinrich Wendel (RETIRED) gentoo-dev 2004-01-13 07:10:49 UTC
anyone knows if the default include path has changed?
Comment 9 Sebastian 2004-01-13 10:47:09 UTC
Hello,

please read comment #4 again. I said I solved the problem. It occured because my /tmp directory was mounted noexec.

Sebastian
Comment 10 bartron 2004-01-13 18:07:28 UTC
  Looks like we're talking about two different things here:


comment #4: mounting `/tmp' NOEXEC is a workaround at best, not a
solution.  Portage is supposed to set $TEMPDIR to a subdir in 
`/var/tmp', and all involved build tools are supposed to honor it
(except of course `/var/tmp' is on the same partition as `/tmp',
in which case there is no other way than to mount `/tmp' NOEXEC.
Still does not explain why only the second emerge fails).


comment #7: Plain X11 headers are also available via the 
`/usr/include/X11' symlink.  This does not help with motif headers, 
but then `configure' should be able to figure that out by itself.
Again, not reproducible here, and `emerge --info' and the output
of the failed test in config.log would be a big help.
Comment 11 bartron 2004-01-13 18:36:58 UTC
[Grrr...inversed logic! Please read `NOEXEC' above as `!NOEXEC']
Comment 12 Sebastian 2004-01-13 22:18:59 UTC
Hi Bartron,

sorry, I was wrong. Now I see your point. You're saying that ebuilds shouldn't depend on the /tmp directory. Sorry!

But I think the first emerge of xpdf was just succesful because back then I didn't have /tmp mounted noexec. I emerged xpdf right at that point where I installed Gentoo on this box. Afterwards I configured the box and next to other things I changed the fstab to mount the /tmp directory noexec. I hope that helps. 

But I can't help you much further because I'm a user and not a dev. But if you think of something that I can help you with then tell me and I will.

Thanks

Sebastian
Comment 13 bartron 2004-01-16 20:33:36 UTC
[sorry for the long delay]

  No...actually looks a lot more like my fault.  My point was that
many users may have `/tmp' mounted NOEXEC and, even if it seems to
fix the problem at first, it just shouldn't be necessary to change
basic settings like mount options to get one single package to build
(ouch, I should have been a bit clearer, sorry for the confusion).

  A program that is known to create and execute test progs in `/tmp'
are some versions of imake...that may explain why X is detected
correctly if `--x-includes=' is specified (configure does not use
imake if it is told where x-includes are)...but then xfree's imake
is patched to create it's temporary files in a directory in 
/var/tmp/portage passed via the environment.

  Could anyone seeing this check the output of
  
    qpkg -f /usr/X11R6/bin/imake

please?
Comment 14 Heinrich Wendel (RETIRED) gentoo-dev 2004-01-27 13:00:35 UTC
please provide qpkg -f /usr/X11R6/bin/imake
Comment 15 Sebastian 2004-01-27 14:15:43 UTC
micmobil root # /usr/portage/app-portage/gentoolkit/files/scripts/qpkg -f /usr/X11R6/bin/imake
x11-base/xfree *
micmobil root #
Comment 16 Heinrich Wendel (RETIRED) gentoo-dev 2004-01-27 22:55:12 UTC
thx, which version of xfree do you have installed?
Comment 17 Sebastian 2004-01-28 06:23:08 UTC
Hello,

at that moment I had xfree-4.3.0-r3. Now I'm using 4.4.0rc2. I just reemerged xpdf again, /tmp was still mounted 'noexec' and it worked. So did emergin xpdf 3.0. Some things must have changed.

Thankx
Comment 18 Heinrich Wendel (RETIRED) gentoo-dev 2004-02-01 03:52:37 UTC
strange, i'll set it worksforme for now, if somebody experience this problem again, please reopen the bug
Comment 19 Ivan Todorovic 2004-02-07 10:44:26 UTC
I had this problem today. Previously I had updated xpdf from 2.02 -> 2.03 which went ok. The problem occured after unmerging xpdf 2.03 and then re-emerging it .

I solved is as described in comment #7.

using
gcc-3.3.2-r5
xfree-4.3.0-r3

Portage 2.0.50 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r2)
=================================================================
System uname: 2.4.22-gentoo-r2 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.4.3.10
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.linux.no ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi apm avi berkdb cdr crypt cups dvd encode esd fbcon foomaticdb gdbm gif gpm gtk gtk2 guile imlib java jpeg libg++ libwww mad matrox mikmod motif mozilla mpeg ncurses oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcpd truetype usb wmf x86 xml2 xmms xv zlib"