You are not logged in.

#1 2007-05-02 18:45:58

mykhal
Member
Registered: 2007-04-03
Posts: 35

incorrect symlinked package size 0.1 MB

For my local custom packages generated using makepkg from pkgbuild I use symlinking. gensync script does not dereference them, therefore pacman always tells during installation of such packages that their size is 0.1 MB instead of real size. Solution is a simple modification of gensync script:

--- /usr/bin/gensync_orig    2007-05-02 20:34:20.000000000 +0200
+++ /usr/bin/gensync    2007-05-02 20:34:36.000000000 +0200
@@ -182,7 +182,7 @@
         pkgfile="$destdir/$pkgname-$pkgver-$pkgrel.pkg.tar.gz"
     fi
     if [ -f $pkgfile ]; then
-        csize=`du -b $pkgfile | cut -f1`
+        csize=`du -b -L $pkgfile | cut -f1`
         pkgmd5sum=`get_md5checksum $pkgfile`
         [ -z $pkgmd5sum ] && die "error generating checksum for $pkgfile"
         db_write_entry $file || die "error writing entry for $file"

Edit: above is about pacman 2.9.8, I did not check 3.0

Last edited by mykhal (2007-05-02 18:57:23)

Offline

#2 2007-05-02 23:35:29

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: incorrect symlinked package size 0.1 MB

Please post this to the bug tracker, or else it will get lost in the forums somewhere

Offline

#3 2007-05-03 00:10:06

mykhal
Member
Registered: 2007-04-03
Posts: 35

Re: incorrect symlinked package size 0.1 MB

ok,  FS#7054

Offline

Board footer

Powered by FluxBB