You are not logged in.

#1 2009-05-07 13:37:19

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Segfault while downloading with pacman

Hello y'all,

The headline pretty much says it. I tried writing up a PKGBUILD for CCP4 which involved sourcing an install script (which changed some environment variables, nothing that should have an effect on pacman usage after restart IMHO) and screwing around with make and (accidentally) sudo make. After that, I realized that I couldn't download anything using pacman. Refreshing the master package list showed me the

core 0.0 K 0.0 K/s 00:00:00 [---] 0%

line for a few seconds, followed by said segfault. The same happens when pacman tries downloading a package without refreshing the master package list.

Neither I nor the script changed anything in /etc/pacman*, though I had several problems with libraries while writing the CCP4 PKGBUILD. All other pacman functions that do not involve downloading work fine. PKGBUILD (in case anyone is interested) is attached.

Does anyone have an idea how I could solve this (apart from reinstalling)?

PKGBUILD:

#CAUTION: NOT WORKING YET. Also, licenses not yet included.
# Contributor: Patrice Peterson <runiq@archlinux.us>
pkgname=ccp4
pkgver=6.1.1
pkgrel=1
pkgdesc="Suite for crystallographic structure solution. Includes Phaser + CCTBX"
arch=(i686 x86_64)
url="http://www.ccp4.ac.uk/"
license=('custom')
depends=('tcl' 'tk' 'blt' 'graphviz' 'fasta' 'clustalw' 'python>=2.4.2')
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(zipman)
install=
phaser_ver=2.1.4
source=(ftp://ftp.ccp4.ac.uk/ccp4/${pkgver}/ccp4-${pkgver}-core-src.tar.gz
        ftp://ftp.ccp4.ac.uk/ccp4/${pkgver}/phaser-${phaser_ver}-cctbx-src.tar.gz)
md5sums=('aeb3eed9f789b3a60894b2d9be8ed43a'
         'eb6371d4a7339fe81e71a9170fea614d')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  # CCP4 comes with install scripts for several shells (csh natively)
  # Keep ccp4.setup-bash unchanged as a reference, use ccp4.setup as setup script
  cp include/ccp4.setup-bash include/ccp4.setup
  case $SHELL in
    /bin/bash)
      sed "s/\/xtal/\$\{srcdir\}/" -i include/ccp4.setup
      sed "s/\/tmp\/\$USER/\/tmp\/ccp4\-\$USER/" -i include/ccp4.setup
      sed "s/\/usr\/local\/bin/\/usr\/bin/" -i include/ccp4.setup
      ;;
    *)
      echo "This shell isn't supported yet."  # Placeholder
      exit 1
      ;;
  esac
  source include/ccp4.setup

  ./configure --prefix=/usr --with-shared-libs linux
  make || return 1
  make DESTDIR="${pkgdir}/" install
}

# vim:set ts=2 sw=2 et:

Offline

Board footer

Powered by FluxBB