You are not logged in.

#1 2006-02-06 11:04:30

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Weird ABS problem - it's changing the size of a file

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

#2 2006-02-06 11:13:26

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Weird ABS problem - it's changing the size of a file

makepkg strips the binaries of debug symbols and such.

Offline

#3 2006-02-06 11:28:04

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Weird ABS problem - it's changing the size of a file

Thanks - completely forgot about that. roll

Offline

Board footer

Powered by FluxBB