You are not logged in.

#1 2004-08-27 19:23:47

thegnu
Member
From: Brooklyn, NY
Registered: 2004-05-04
Posts: 280
Website

How to undo post_install{import filelib} in pre_remove?

During the install I need to add /usr/share/mftrace to python path.  I've succeeded in the post_install.  I need to remove the path on uninstall, and I don't know how to do it.  Any help?  The mftrace.install file is below:

post_install() {
   cd /usr/share/mftrace/
   import filelib
 }
 
 post_upgrade() {
   /bin/true
 }
 
 pre_remove() {
   /bin/true
 }
 
 op=$1
 shift
 
 $op $*

fffft!

Offline

#2 2004-08-28 22:18:12

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: How to undo post_install{import filelib} in pre_remove?

The import command is used to take a screenshot... are you sure you're using it right and that the mftrace python scripts aren't just adding /usr/share/mftrace to the python path?  In that case, it's added every time.  I don't know of an easy way to add something to the python import path permanently, it's actually compiled in when you compile python.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#3 2004-08-29 14:10:06

thegnu
Member
From: Brooklyn, NY
Registered: 2004-05-04
Posts: 280
Website

Re: How to undo post_install{import filelib} in pre_remove?

OK, I'm not really sure what I'm doing. smile

The problem is when I install mftrace and use it (compiling ec-fonts-mftraced, or lilypond) I get an error: module afm not found.  I found a response to the same question elsewhere on the web suggesting running import filelib.

It seemed to work, but I'm not sure what it's doing or if on reboot it will work.  Do you know how I would resolve this?

When I get back to my house I'll post the mftrace PKGBUILD.  I did upload the mftrace package to ftp.archlinux.org/incoming, if you have access.


fffft!

Offline

#4 2004-08-30 14:37:54

thegnu
Member
From: Brooklyn, NY
Registered: 2004-05-04
Posts: 280
Website

Re: How to undo post_install{import filelib} in pre_remove?

Here's the PKGBUILD:

 # Contributor: Nathan Curry <thegnu@nathancurry.com>

 pkgname=mftrace
 pkgver=1.0.34
 pkgrel=1
 install="$pkgname.install"
 pkgdesc="a small Python program that traces TeX bitmap fonts into scalable PS or TTF fonts"
 url="http://www.xs4all.nl/~hanwen/mftrace/"
 depends=('potrace' 'python>=2.1' 't1utils' 'tetex')
 source=(http://www.cs.uu.nl/~hanwen/mftrace/$pkgname-$pkgver.tar.gz)
 md5sums=('c290633ac31c29fbc6a0deeaff97e7e7')

 build() {
   cd $startdir/src/$pkgname-$pkgver
   ./configure --prefix=/usr
   make || return 1
   make DESTDIR=$startdir/pkg install
 }

fffft!

Offline

Board footer

Powered by FluxBB