[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Building packages from source (pcmcia-cs)



Bill Moseley <moseley@hank.org> writes:
> At 04:00 PM 07/08/02 -0400, David Z Maze wrote:
>>Bill Moseley <moseley@hank.org> writes:
>>> I'm about to build a new kernel and pcmcia-cs from sourceforge.  I have the
>>> debian package pcmcia-cs installed.  I'm not clear what I need to do to the
>>> existing package.  Should it be removed or placed on hold?
>>
>>Why do you think you need the version from sourceforge?
>
> It was suggested to me on debian-laptop, although I now remember that was
> to correct a problem I was having with another wireless card.

Check.  You also might try identifying the particular files you care
about and manually patching the contents of pcmcia-source; I've done
this with the orinoco driver on my laptop.  You want to install
pcmcia-source as normal in this case; that produces
/usr/src/pcmcia-cs.tar.gz.  Unpack that, then change the resulting
directory at will and build.  (Don't expect the pcmcia-cs maintainer
to love you, though, unless you're reporting wishlist bugs like "the
normal sources don't work but this patch fixes it".)

> Anyway, in the general case, if I were to install something like pcmcia-cs
> from source I would want to my package "on-hold".  Right?
>
> Also, IIRC, installing pcmcia-cs from source would have installed to /usr
> not /usr/local.  Is that OK, or should all source packages be set to
> install to /usr/local (ignoring reasons related to how the disk might be
> partitioned)?

If you install things under /usr/local, you're guaranteed that
policy-conformant Debian packages won't stomp on them (they're only
allowed to install empty directories there).  I suspect in this case
you don't actually care about the user-space parts of pcmcia-cs, but
rather the kernel modules, and there you're forced to install files
under /lib/modules/$KVERS.  Probably installing a module package,
putting it on hold and overwriting the files is the best thing to do
*in this specific case* since that way dpkg will know not to overwrite
your custom files.  (Normally I'd recommend using /usr/local.)

-- 
David Maze         dmaze@debian.org      http://people.debian.org/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
	-- Abra Mitchell


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: