Bug#478559: mesa: FTBFS (ppc64): cp: cannot stat `debian/tmp/usr/lib/libGL.so': No such file or directory
Package: mesa
Version: 7.0.3-1
Severity: wishlist
Tags: patch
Hello,
when building 'mesa' on ppc64/unstable, I get the following error:
dh_installdocs -i
dh_installexamples -i
dh_install --sourcedir=debian/tmp --list-missing -i
cp: cannot stat `debian/tmp/usr/lib/libGL.so': No such file or directory
dh_install: command returned error code 256
make: *** [binary-indep] Error 1
dpkg-buildpackage: failure: debian/rules binary gave error exit status 2
This error occurs because the file libGL.so is created in usr/lib64
instead of the correct usr/lib directory.
With the attached patch 'mesa' can be built on ppc64.
The patch does the following:
* Remove 'LIB_DIR = lib64' from config/debian-swx11+glu-ppc64 and
config/debian-swx11-glu-static-ppc64. The Debian ppc64 port uses
basically the same directory structure as the Debian amd64 port
which also does _not_ use 'LIB_DIR = lib64'.
* Add 'ppc64' to the Architecture lines of the libgl1-mesa-dri
and libgl1-mesa-dri-dbg packages.
Regards
Andreas Jochens
diff -urN ../tmp-orig/mesa-7.0.3/configs/debian-swx11+glu-ppc64 ./configs/debian-swx11+glu-ppc64
--- ../tmp-orig/mesa-7.0.3/configs/debian-swx11+glu-ppc64 2008-04-28 13:57:42.000000000 +0000
+++ ./configs/debian-swx11+glu-ppc64 2008-04-28 13:23:44.000000000 +0000
@@ -5,7 +5,6 @@
CONFIG_NAME = debian-swx11+glu-ppc64
-LIB_DIR = lib64
# vim: ft=make
diff -urN ../tmp-orig/mesa-7.0.3/configs/debian-swx11+glu-static-ppc64 ./configs/debian-swx11+glu-static-ppc64
--- ../tmp-orig/mesa-7.0.3/configs/debian-swx11+glu-static-ppc64 2008-04-28 13:57:42.000000000 +0000
+++ ./configs/debian-swx11+glu-static-ppc64 2008-04-28 13:24:00.000000000 +0000
@@ -5,7 +5,6 @@
CONFIG_NAME = debian-swx11+glu-static-ppc64
-LIB_DIR = lib64
# vim: ft=make
diff -urN ../tmp-orig/mesa-7.0.3/debian/control ./debian/control
--- ../tmp-orig/mesa-7.0.3/debian/control 2008-04-28 13:57:42.000000000 +0000
+++ ./debian/control 2008-04-28 05:45:12.000000000 +0000
@@ -158,7 +158,7 @@
Package: libgl1-mesa-dri
Section: libs
Priority: optional
-Architecture: alpha amd64 arm armeb armel hppa i386 ia64 kfreebsd-i386 kfreebsd-amd64 m68k mips mipsel powerpc s390 sparc
+Architecture: alpha amd64 arm armeb armel hppa i386 ia64 kfreebsd-i386 kfreebsd-amd64 m68k mips mipsel powerpc ppc64 s390 sparc
Depends: ${shlibs:Depends}, libgl1-mesa-glx (= ${binary:Version})
Suggests: libglide3
Conflicts: xlibmesa-dri (<< 1:7.0.0)
@@ -179,7 +179,7 @@
Package: libgl1-mesa-dri-dbg
Section: libdevel
Priority: extra
-Architecture: alpha amd64 arm armeb armel hppa i386 ia64 kfreebsd-i386 kfreebsd-amd64 m68k mips mipsel powerpc s390 sparc
+Architecture: alpha amd64 arm armeb armel hppa i386 ia64 kfreebsd-i386 kfreebsd-amd64 m68k mips mipsel powerpc ppc64 s390 sparc
Depends: libgl1-mesa-dri (= ${binary:Version})
Description: Debugging symbols for the Mesa DRI modules
This version of Mesa provides GLX and DRI capabilities: it is capable of
Reply to: