You are not logged in.
I'm putting together this PKGBUILD:
# Contributor: Tom K <tomk@runbox.com>
pkgname=mach64-dri
pkgver=20060205
pkgrel=1
pkgdesc="Kernel and xorg modules for mach64 DRI"
depends=('x-server')
source=(http://dri.freedesktop.org/snapshots/mach64-$pkgver-linux.i386.tar.bz2)
md5sums=('a5dc9f5097decf25df5b4225acdf116d')
install=$pkgname.install
url="http://dri.freedesktop.org"
_kernel=`uname -r`
build() {
mkdir -p $startdir/pkg/lib/modules/$_kernel/kernel/drivers/char/drm
$startdir/pkg/usr/lib/xorg/modules/dri
cd $startdir/src/mach64-$pkgver-linux.i386/drm/linux-core
make LINUXDIR=/lib/modules/$_kernel/build DRM_MODULES="mach64"
cp *ko $startdir/pkg/lib/modules/$_kernel/kernel/drivers/char/drm
cd $startdir/src/mach64-$pkgver-linux.i386/mach64
cp mach64_dri.so $startdir/pkg/usr/lib/xorg/modules/dri
}
It builds and installs two kernel modules, and installs a pre-compiled xorg dri module. The kernel modules are fine, but bearing in mind that the xorg module, mach64_dri.so, is simply copied over, can anyone explain this?
Source file in $startdir/src/mach64-20060205-linux.i386/mach64
-rwxr-xr-x 1 tomk users 5.1M 2006-02-05 16:16 mach64_dri.so
Package file in $startdir/pkg/usr/lib/xorg/modules/dri
-rwxr-xr-x 1 tomk users 2.2M 2006-02-06 10:45 mach64_dri.so
If I install the package, the file remains at the lower (wrong) size. And to cap it all, after the build completes, I can do the exact same copy command manually, and it copies over at the right size! :evil:
Any ideas, anyone? :? I think I'll try a CVS checkout instead of the snapshot tarball, but logically, I don't see it helping. It comes down to this - if ABS does the copy command, I get one result; if I do it, I get another. wtf?
Offline
makepkg strips the binaries of debug symbols and such.
Offline
Thanks - completely forgot about that.
Offline