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

Re: how to give an older package version a higher priority?

Quoting Arne Goetje <arne@debian.linux.org.tw>:

> On Monday 17 March 2003 20:07, Turbo Fredriksson wrote:
> > > I have an older version of UCD snmp which I need for another program. I
> > > want to use the debian package, but because the version included in
> > > woody is newer, apt-get and aptitude want to automatically install the
> > > newer version.
> >
> > You mean that you've made your own package which you don't want upgraded?
> Exactly. I have my own program and made a debian package for it. I have to 
> make a ready-to-go solution for our customers and my co-workers who are not 
> so firm with linux should be able to install it easily.

Then maybe you should depend on an exact version of UCD snmp.

You probably have something like this in your debian/control file (example from
my Nagios package):

----- s n i p -----
Package: nagios-text
Architecture: any
Pre-Depends: adduser (>= 3.8), debconf (>= 0.2.17)
Depends: ${shlibs:Depends}, fileutils (>=4.0y) | coreutils, httpd
Suggests: netsaint-plugins (>=
----- s n i p -----

This means that 'nagios-text' depend on any version of fileutils newer (or equals)
to 4.0y will suffice. That means that when/if someone release version 5.1,
the depends will be meet. However, if (just for arguments sake), I know that
nagios-text ONLY (!) work with the current version in unstable which is '4.5.9-1',
then I would have written:

----- s n i p -----
Depends: ${shlibs:Depends}, fileutils (= 4.5.9-1) | coreutils, httpd
----- s n i p -----

Or, better:

----- s n i p -----
Depends: ${shlibs:Depends}, fileutils (= 4.5.9) | coreutils, httpd
----- s n i p -----

because then I would accept any Debian GNU/Linux changes to the upstream
version 4.5.9 - the number after the '-' is the debian version...

> So the epoc way would be the right thing to do. I have to 
> change the epoc for the snmp packages.

So in reallity, you're not changing the snmp package, it's just rebuilt to fullfill
YOUR dependency? Then don't change the snmp package(s), change your own as described

> BTW: is there any tool to add changelog entries with the correct timestamp 
> and format?

In emacs there is, it's called 'debian-changeload-mode' (can't remember what package
it's in now, it was in the emacs package previosly).
Semtex radar Panama munitions toluene congress colonel iodine 767
NORAD cracking critical AK-47 nuclear counter-intelligence
[See http://www.aclu.org/echelonwatch/index.html for more about this]

Reply to: