Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#27917 - [ghemical] crash on startup

Attached to Project: Community Packages
Opened by Triston J. Taylor (pc.wiz.tt) - Thursday, 12 January 2012, 21:26 GMT
Last edited by Xyne (Xyne) - Monday, 16 January 2012, 00:59 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Xyne (Xyne)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description: ghemical crashes on startup due to a missing font notably 'courier 12' which is an 'industry standard' monospace fixed pitch font.


Additional info:

As per Arch Linux BBS user 'karol' here is a modified PKGBUILD that changes the font to 'monospace' which corrects the problem.

# Maintainer: Xyne <ac xunilhcra enyx, backwards>
# Contributor: Abhishek Dasgupta <abhidg@gmail.com>

pkgname=ghemical
pkgver=3.0.0
pkgrel=1
pkgdesc="Computational chemistry package."
license=("GPL")
arch=(i686 x86_64)
url="http://bioinformatics.org/ghemical/ghemical/"
depends=('libghemical>=3.0' 'liboglappth>=1.0' 'mesa' 'libglade' 'libxmu' 'ttf-dejavu' 'gtkglext' 'openbabel')
makedepends=('pkgconfig' 'intltool>=0.40.0' 'gettext')
source=(http://bioinformatics.org/ghemical/download/release20111012/${pkgname}-${pkgver}.tar.gz ghemical.desktop)
md5sums=('becf98626f0eba73f7f042bc92aa60ac'
'7e8789d42d1318a427a30f3bf64cb5a6')

build() {
cd -- "$srcdir/$pkgname-$pkgver/"
./configure --prefix=/usr
sed -i 's/courier 12/monospace/g' ./src/*.cpp
make
}

package() {
install -D -m644 "$srcdir"/ghemical.desktop "$pkgdir"/usr/share/applications/ghemical.desktop
cd -- "$srcdir/$pkgname-$pkgver/"
make DESTDIR="$pkgdir" install
}

The only modification required is as follows:
sed -i 's/courier 12/monospace/g' ./src/*.cpp

Steps to reproduce: install ghemical using pacman
This task depends upon

Closed by  Xyne (Xyne)
Monday, 16 January 2012, 00:59 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in ghemical-3.0.0-2

Loading...