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

Homebuilt vs. debian packages, and "apt-get upgrade"



Hi all.

I've just installed a fresh Sarge (stable) to test out a strange problem
that I have. I have two (2) deb files: one is called less_382-1_i386.deb
and was created/compiled by me by downloading debian sources and using
dpkg-buildpackage - the other has the same name (less_382-1_i386.deb)
and was downloaded from
http://ftp.us.debian.org/debian/pool/main/l/less/less_382-1_i386.deb

Now for the weird part:

If I install (using "dpkg -i") the deb file which I downloaded from the
main repository and then issue an "apt-get upgrade", my machine tells me
there's nothing to upgrade. If, however, I install (again using "dpkg
-i") the deb file which I've just created using dpkg-buildpackage, my
next invocation of "apt-get upgrade" tells me that it wants to upgrade
my homebuilt less package to the version available from the main
repository.

Baffled by this behaviour, I've unpacked the control files from the two
debs - here they are:

a) Control file from deb downloaded from main repository (the deb file
that doesn't "need" to be upgraded):

Package: less
Version: 382-1
Section: text
Priority: standard
Architecture: i386
Depends: libc6 (>= 2.3.2.ds1-4), libncurses5 (>= 5.4-1), debianutils (>=
1.8)
Installed-Size: 256
Maintainer: Thomas Schoepf <schoepf@debian.org>
Description: Pager program similar to more
Less is a program similar to more(1), but which allows backward
movement in the file as well as forward movement.  Also, less does not
have to read the entire input file before starting, so with large input
files it starts up faster than text editors like vi(1).  Less uses
termcap (or terminfo on some systems), so it can run on a variety of
terminals.  There is even limited support for hardcopy terminals.
.
Homepage: http://www.greenwoodsoftware.com/less/


b) Control file from deb created by me from debian sources using
dpkg-buildpackage:

Package: less
Version: 382-1
Section: text
Priority: standard
Architecture: i386
Depends: libc6 (>= 2.3.2.ds1-21), libncurses5 (>= 5.4-1), debianutils
(>= 1.8)
Installed-Size: 256
Maintainer: Thomas Schoepf <schoepf@debian.org>
Description: Pager program similar to more
Less is a program similar to more(1), but which allows backward
movement in the file as well as forward movement.  Also, less does not
have to read the entire input file before starting, so with large input
files it starts up faster than text editors like vi(1).  Less uses
termcap (or terminfo on some systems), so it can run on a variety of
terminals.  There is even limited support for hardcopy terminals.
.
Homepage: http://www.greenwoodsoftware.com/less/


Everything apart from the dependant version of libc6 is identical. So
why does apt-get want to upgrade one, but not the other?

Jaime




Reply to: