Re: sane 0.72pre meets FreeBSD [my system of package control]

Michael Polo (mikep@Polo.NET)
Sun, 5 Apr 1998 17:21:40 -0700

>
> On Sun, 5 Apr 1998, [ISO-8859-1] Mikko Työläjärvi wrote:
>
> > Question 1:
> >
> > Is it necessary to keep all the loadable backends in the standard
> > library path? I'm getting an uneasy feeling when sane singlehandedly
> > doubles the number of entries in my /usr/local/lib, with something
> > that could be considered as internal to sane.
> >
> > Am I missing something, or could they be moved to (for example)
> > /usr/local/lib/sane/? Aren't the backends just dlopen()ed?
>
> Aren't you at liberty to use another path? Just add the proper parameter
> when runing ./configure should do the trick.
>
> Hugo.

I think having a /usr/local/lib/sane is a good idea. Perl, xemacs
and gimp do this.

I have 84 entries for sane out of 140 total, and every backend
seems to have 5 entries!

By the way, I tried using 'the proper parameter' for configure for a
long time before I just gave up and put everything in /usr/local.
I hate having to doctor up LD_LIBRARY_PATH (on solaris) before running
an executable.

My trick for keeping track of what installed and what's not installed
is to make /usr/local owned by group 'build'. When I add a new
package, I create a new user for that package.

my script to create a user (on solaris anyway) is:

useradd -d /export/home/build -g build -s /usr/local/bin/bash u_$1

for sane, I created a user u_sane.

I also did a 'chmod g+s /usr/local' a while back - when a new
subdirectory anyway under /usr/local is created, the group is
set to build.

So any new package I get can be built and installed in /usr/local
with 'make install'.

Install a package:

log in as root:
# INSTALL_SETUP gcc

(my one-line script above executes - user u_gcc is added with the
next available user id and groupid build)

# su - u_gcc
u_gcc:~> gtar xvfz gcc-2.7.2.3.tar.gz
u_gcc:~> cd gcc-2.7.2.3
u_gcc:~/gcc-2.7.2.3> ./configure ...blah blah...; make install

Find out what was installed:

find /usr/local -user u_gcc

Remove a package:

find /usr/local -user u_gcc | xargs rm

sometimes you need a:

find /usr/local -user u_gcc -depth | xargs rmdir

And nothing can install in /etc, /var or /bin other such crap
because there aren't permissions.

Anyway, that's my system. Maybe it'll help someone.

Mike

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com