Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197666 - www-client/mozilla-firefox needs USE=X x11-libs/pango
Summary: www-client/mozilla-firefox needs USE=X x11-libs/pango
Status: RESOLVED DUPLICATE of bug 2272
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-31 17:37 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2008-03-20 21:41 UTC (History)
1 user (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 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2007-10-31 17:37:15 UTC
This is a request to put in some sort of check to the mozilla-firefox ebuild. I just spent some time trying to figure out why mozilla-firefox was failing during the configure. firefox said that it couldn't find pangoxft.pc anywhere and I traced that down to pango not having the USE=X set. I re-merged pango and firefox then worked.

This might work:
if ! built_with_use x11-libs/pango X; then
eerror "Please re-emerge x11-libs/pango with the X USE flag set"
die "pango needs the X USE flag set."

Reproducible: Always

Steps to Reproduce:
1. USE="-X" emerge -av1 pango
2. USE="-X" emerge -av mozilla-firefox




Work around is simple: emerge pango with USE=X then emerge mozilla-firefox.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-31 21:53:06 UTC

*** This bug has been marked as a duplicate of bug 2272 ***
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2007-11-01 16:39:51 UTC
Jakub,
Since the firefox ebuild already has a check to see if cairo was built with X can we also get a check for pango in there. It doesn't look like bug 2272 is getting resolved anytime soon.

I also just looked at some of the other duplicate bugs and my bug here is not exactly the same as them. My issue is that the ebuild *doesn't check at all* and it should (for now, until portage has a better solution)

Do you agree?
Comment 3 Bartek 'Paczesiowa' Cwiklowski 2008-03-20 21:41:15 UTC
I have different problem (but cause and solution remain the same):

i686-pc-linux-gnu-g++ -o nsDeviceContextGTK.o -c -fvisibility=hidden -DNATIVE_THEME_SUPPORT -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=2008032021 -DUSE_POSTSCRIPT -I../.. -I./. -I./.. -I./../shared -I./../x11shared -I/usr/include/freetype2    -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/widget -I../../../dist/include/view -I../../../dist/include/util -I../../../dist/include/pref -I../../../dist/include/uconv -I../../../dist/include/unicharutil -I../../../dist/include/locale -I../../../dist/include/necko -I../../../dist/include/content -I../../../dist/include/layout -I../../../dist/include/gfx -I../../../dist/include -I/usr/include/nspr    -I../../../dist/sdk/include    -fPIC  -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"  -fno-rtti -fno-handle-exceptions  -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=athlon-xp -pipe -Wno-return-type -w -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1    -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"  -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsDeviceContextGTK.pp nsDeviceContextGTK.cpp
nsDeviceContextGTK.cpp:70:26: error: pango/pangox.h: No such file or directory
gmake[4]: *** [nsDeviceContextGTK.o] Error 1

even if built_with_use is considered a hack, it's better than forcing user (me) to guess the cause and find a solution. besides as Jeremy already pointed out, there is already hack for cairo, so...