[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: v1.5.27a 'syntax error' in numerous packages
From: |
Brian Dessent |
Subject: |
Re: v1.5.27a 'syntax error' in numerous packages |
Date: |
Sun, 09 Mar 2008 21:45:57 -0700 |
snowcrash+libtool wrote:
> i'm guessing the nomially required rm-ing is somewhere inbetween the
> two actions; likely at least (just?) the aforementioned
> 'ltoptions.m4'?
If you keep your build dirs around you can do a much better job of
surgically removing a package:
make install DESTDIR=/tmp/deleteme && \
find /tmp/deleteme \( -type f -o -type l \) -printf '/%P\0' | \
xargs -0 rm; rm -rf /tmp/deleteme
This simply installs the package again in an empty throwaway dir and
uses the resulting filelist to delete from the live system. Of course,
you may want to fortify this in various ways: pick a more appropriately
named temp dir, make sure it's empty at first, sanity check the list of
files to delete, ensure the package supports DESTDIR (vs. prefix
overriding) etc. But you get the general idea of the method. Some
packages generalize this with a "make uninstall" rule.
Brian