Red Hat Bugzilla – Bug 191967
mesa Missing BuildRequire on makedepend
Last modified: 2007-11-30 17:11:32 EST
current rawhide mesa-6.5-4 fails to build in mock:
make: Entering directory `/builddir/build/BUILD/Mesa-6.5/src/glx/x11'
Makefile:93: depend: No such file or directory
makedepend -fdepend -I. -I../../../include -I../../../include/GL/internal
-I../../../src/mesa/drivers/dri/common `pkg-config --cflags libdrm`
glcontextmodes.c clientattrib.c compsize.c eval.c glxcmds.c glxext.c
glxextensions.c indirect.c indirect_init.c indirect_size.c indirect_window_pos.c
indirect_transpose_matrix.c indirect_vertex_array.c indirect_vertex_program.c
pixel.c pixelstore.c render2.c renderpix.c single2.c singlepix.c vertarr.c
xfont.c glx_pbuffer.c glx_query.c glx_texture_compression.c dri_glx.c XF86dri.c \
/bin/sh: makedepend: command not found
make: *** [depend] Error 127
make: Leaving directory `/builddir/build/BUILD/Mesa-6.5/src/glx/x11'
make: *** [subdirs] Error 1
make: Leaving directory `/builddir/build/BUILD/Mesa-6.5/src'
make: *** [default] Error 1
make: Leaving directory `/builddir/build/BUILD/Mesa-6.5'
make: *** [linux-dri-x86-64] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.42010 (%build)
Attached is a patch adding the necessary BuildRequire: imake line.
Created attachment 129226 [details]
Patch, adding the missing buildreqs
This is not quite correct. In the error output, it is "makedepend" that it
is invoking and can not find. Mesa does not appear to use "imake" anywhere.
The correct dependency is:
Note: Each of the modular X packages contains a virtual provide for each
binary that is in the package which another package may potentially depend
upon. The purpose of this is to allow other packages to depend on the
individual binaries they require, which will follow the binary from package
to package if it is later moved to some other package - rather than depending
on the package the binary currently happens to be contained within.
In other words, do not depend on "imake" unless a package actually invokes
the "imake" binary itself. Depend on the specific binary you require. If
it turns out that a package is missing a virtual provide for a given binary,
file another bug report for that, and we can add the missing virtual provide
in the next build, for other packages to depend upon.
Fixed in 6.5-6 in rawhide.
Also checked into FC-5 CVS branch head.
mesa-6.4.2-6.FC5.3 has been pushed for fc5, which should resolve this issue. If these problems are still present in this version, then please make note of it in this bug report.