You are not logged in.

#1 2008-04-26 18:16:23

hightower
Member
Registered: 2006-04-02
Posts: 182

makepkg hangs at "Stripping debugging symbols from binaries [...]"

Hi,

I made a PKGBUILD for the io (programming language) virtual machine but makepkg hangs at:

==> Tidying install...
  -> Removing info/doc files...
  -> Compressing man pages...
  -> Stripping debugging symbols from binaries and libraries...

The PKGBUILD:

# Contributor:

pkgname=io
pkgver=2008.03.30
pkgrel=1
pkgdesc="Virtual machine for Io, a small, prototype-based programming language"
url="http://www.iolanguage.com/"
arch=(i686)
license=()
depends=()
makedepends=()
options=()
conflicts=()
source=(http://github.com/tarballs/stevedekorte-io-4debb4b25740b8dd46ad16f43f04f0fc5b4a23e1.tar.gz)
md5sums=('')

build() {
  mv $startdir/src/stevedekorte-io-4debb4b25740b8dd46ad16f43f04f0fc5b4a23e1 $startdir/src/$pkgname-$pkgver
  cd $startdir/src/$pkgname-$pkgver
  
  make vm || return 1
  make INSTALL_PREFIX=${startdir}/pkg/usr install
  rm -rf ${startdir}/src/io-2008.03.30/_build
}

has anyone a hint where to start searching for a solution? Or can anyone explain to me what "Stripping debugging symbols from binaries and libraries ..." in this context means?

Thanks,
hightower

Offline

#2 2008-04-26 18:17:43

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: makepkg hangs at "Stripping debugging symbols from binaries [...]"

You can try options=(!strip)
You can also look at makepkg, it's a simple bash script, to find out which command it uses for stripping.
And then maybe try running it manually in your pkg/ folder.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#3 2008-04-26 21:45:37

hightower
Member
Registered: 2006-04-02
Posts: 182

Re: makepkg hangs at "Stripping debugging symbols from binaries [...]"

Ok,

First of all thanks to shining.

I found the reason. The responsible piece of code:

for file in $(find {,usr/{,local/},opt/*/}{bin,lib,sbin} -type f  2> /dev/null || true); do
                        case "$(file -biz "$file")" in
                                *application/x-sharedlib*)  # Libraries
                                        /usr/bin/strip --strip-debug "$file";;
                                *application/x-executable*) # Binaries
                                        /usr/bin/strip "$file";;
                        esac
                done

As some filenames contain spaces they are split in the wrong way so the "filename storage" contains wrong file names. As several files contain " - " the script tries to read from stdin which causes the hang (I suppose). I'll file a bug report.

hightower

Last edited by hightower (2008-04-26 21:54:48)

Offline

#4 2008-04-30 17:12:29

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: makepkg hangs at "Stripping debugging symbols from binaries [...]"

hightower wrote:

First of all thanks to shining.

And kudos to you for finding out what the problem was and reporting the bug, great work!
Also thanks to Daenyth for his solution which was merged after being reworked by Dan :
http://projects.archlinux.org/git/?p=pa … bcd76cc514


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB