Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157034 - media-video/goggles and x11-libs/fox-wrapper: WANT_FOX setting required
Summary: media-video/goggles and x11-libs/fox-wrapper: WANT_FOX setting required
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Matti Bickel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-03 16:57 UTC by Martin von Gagern
Modified: 2006-12-05 15:03 UTC (History)
1 user (show)

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


Attachments
Suggested goggles-0.7.10-r1.ebuild (goggles-0.7.10.ebuild,1.51 KB, text/plain)
2006-12-05 02:25 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2006-12-03 16:57:46 UTC
I included no version numbers in the summary, as this about both goggles-0.7.10 (latest x86) and 0.8.0-r1 (latest ~x86) as well as both fox-wrapper-1 (latest x86) and fox-wrapper-2 (latest ~x86).

When I try to emerge goggles, I get the following error message:

 Check FOX Config    : FOUND
fox-wrapper: Set the WANT_FOX variable to the desired version of fox, e.g.:
fox-wrapper: Set the WANT_FOX variable to the desired version of fox, e.g.:
build/foxdetect: line 87: [: too many arguments
build/foxdetect: line 87: [: too many arguments
 Check FOX Library   : Not Found

The ebuild does not specify WANT_FOX.
The fox-wrapper script does not provide any default.
Note also that the goggles ebuilds do not depend on a specific fox slot.

I posted this as one single bug, because fixing either one might perhaps solve the problem. Given the choice, I'd address both, to give the user a working fox-config without the need to modify the environment, and to give ebuilds a clear behaviour in case of fox API changes.

Related bugs:
* bug 141689 about a needed goggles version bump and other ebuild problems
* bug 111209 comment 4 simplified wrapper proposed by me, does defaults
* bug 111209 comment 8 about fox-wrapper checks being overengineering
Comment 1 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2006-12-04 09:47:30 UTC
Same error here:

fox-wrapper: Set the WANT_FOX variable to the desired version of fox, e.g.:
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      OS Name: Linux
   OS Release: 2.6.18-gentoo-r3
   OS Machine: x86_64

 Build Config: build/config.linux
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
fox-wrapper: Set the WANT_FOX variable to the desired version of fox, e.g.:
./gb: line 228: [: WANT_FOX="1: integer expression expected
 Check FOX version   :              WANT_FOX="1.2" fox-config --version (Please install latest FOX 1.2.x release)

!!! ERROR: media-video/goggles-0.7.4-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  goggles-0.7.4-r1.ebuild, line 35:   Called die
Comment 2 Rob 2006-12-04 22:30:03 UTC
This effects all versions of goggles presently in Portage.  I have x11-libs/fox/fox-1.4.34-r1 and x11-libs/fox-wrapper/fox-wrapper-1 installed and tried to install the three versions of goggles in the tree (0.7.4-r1, 0.7.10, and 0.8.0-r1 for future reference.)

It appears that goggles-0.7.10's build/foxdetect happens to like fox-1.2.1, whereas goggles-0.8.0-r1 likes fox-1.4.5 as evident in the beginning of the file:

FOX_VERSION="1.4.5"
FOX_MAJOR=1
FOX_MINOR=4
FOX_RELEASE=5

It appears that changing the 5's into 34's does not fix anything.  I do not know how to go on further, but I'm guessing that the problems lie with foxdetect being built for a specific version of fox....
Comment 3 Martin von Gagern 2006-12-05 02:25:49 UTC
Created attachment 103381 [details]
Suggested goggles-0.7.10-r1.ebuild

You might try this ebuild here.
1. exports WANT_FOX
2. depends on an explicit fox slot
3. fixes some sed command
4. checks each command in the install phase

It did work for me, not only compiled but started the gui all right.
Comment 4 Matti Bickel (RETIRED) gentoo-dev 2006-12-05 15:03:12 UTC
Stuff is now in the tree, track bug #157266 for updates.