Re: cproto.deb for potato not available?

2001-10-30 Thread J.H.M. Dassen \(Ray\)
On Mon, Oct 29, 2001 at 17:12:39 -0700, Kris Huber wrote:
 I see one under 'unstable' but from what I read, application binaries need
 to be compiled for the kernel you are running.

Regular applications (assuming they're well-written) do not depend on
particular kernel versions.

The reason running binaries from unstable on a stable system is tricky,
is that such binaries are often compiled against newer versions of
particular libraries than are available as part of stable.

 More generally, when binaries of a Debian package aren't available for my
 kernel, can I put another distribution (e.g., unstable) in my sources.list
 temporarily and do an 'apt-get sources' to compile an application for my
 kernel?

Yes, but a more comfortable way is to have them in your sources.list
permanently and use the apt_preferences(5) mechanism.

HTH,
Ray
-- 
Gartner Group ?!?   Never heard of them. What did they do in computing
except manage to put on their tie without accidentaly killing themselves ?!? 
Mark Veltzer explains the value of industry analysts in
http://linuxtoday.com/news_story.php3?ltsn=2001-06-21-006-21-NW-EL-MR



RE: cproto.deb for potato not available?

2001-10-30 Thread Kris Huber
Here's what I found (thanks to those who replied):

It seems the /etc/apt/preferences file is a feature not yet in the stable
release of apt-get (version 0.3.19).  I found some information about the
preferences file in a how-to document based on version 0.5.3 (chapter 3 of
http://www.debian.org/doc/manuals/apt-howto/), although I was still a little
unclear about how to selectively upgrade a package using this feature.  My
guess is to use the example in the document for how to downgrade all
packages to the stable release versions, then insert a specific entry for
the latest version of, in my case, cproto.

Anyway, this is what I did that worked:
1.  Added following line to sources.list:
deb http://http.us.debian.org/debian unstable main contrib non-free
2.  apt-get -s update
The -s (=--dry_run) above seemed to have no effect because the cproto
package *was* found in the next step (without update it is not found).
3.  apt-get -s install cproto
This showed me that apt-get would not upgrade or install any new packages
except for cproto.
4.  apt-get install cproto
This installed the new package.
5.  Commented out the line added in #1 
I did this so that the next 'apt-get upgrade' won't upgrade me to the
unstable release of all the packages I have installed.

-Kris



Re: cproto.deb for potato not available?

2001-10-29 Thread Colin Watson
On Mon, Oct 29, 2001 at 05:12:39PM -0700, Kris Huber wrote:
 I'm wondering if a 'cproto' debian package is available for the Linux 2.2
 kernel.  I see one under 'unstable' but from what I read, application
 binaries need to be compiled for the kernel you are running.

No, there's no kernel dependency except for a small number of
specialized programs, which is unlikely to include cproto. In fact, the
cproto package from unstable should install fine on a stable system.

 Cproto has been around for several years; I'm surprised it's not there
 (so I suspect I'm wrong).

Judging from the changelog, it made it into unstable shortly before
potato was released, but too late to make it into that release.

 More generally, when binaries of a Debian package aren't available for my
 kernel, can I put another distribution (e.g., unstable) in my sources.list
 temporarily and do an 'apt-get sources' to compile an application for my
 kernel?

Don't worry about the kernel, but you might need it compiled against the
libraries you currently have installed. Yes. You can just change over
the deb-src lines rather than having to change everything.

-- 
Colin Watson  [EMAIL PROTECTED]