Thanks Brad for submitting this report.

Note to the readers: Please pay attention to the "related questions"
link. The issue has been discussed there before.

Here are the answers to C, Cooke's questions:

C. Cooke> The output of 'apt-cache policy gcc'
 
$ apt-cache policy gcc
gcc:
  Installed: 4:4.2.3-1ubuntu6
  Candidate: 4:4.2.3-1ubuntu6
  Version table:
 *** 4:4.2.3-1ubuntu6 0
        500 http://fi.archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     4:4.2.3-1ubuntu3 0
        500 http://fi.archive.ubuntu.com hardy/main Packages


I don't think this information reveals anything, because gcc is only a 
dependency package.

$ dpkg-query -s gcc
Package: gcc
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 64
Maintainer: Ubuntu Core developers <ubuntu-devel-disc...@lists.ubuntu.com>
Architecture: i386
Source: gcc-defaults (1.62ubuntu6)
Version: 4:4.2.3-1ubuntu6
Provides: c-compiler
Depends: cpp (>= 4:4.2.3-1ubuntu6), gcc-4.2 (>= 4.2.3-1)
Recommends: libc6-dev | libc-dev
Suggests: autoconf, automake1.9, bison, flex, gcc-doc, gcc-multilib, gdb, 
libtool, make, manpages-dev
Conflicts: gcc-doc (<< 1:2.95.3)
Description: The GNU C compiler
 This is the GNU C compiler, a fairly portable optimizing compiler for C.
 .
 This is a dependency package providing the default GNU C compiler.
Original-Maintainer: Debian GCC Maintainers <debian-...@lists.debian.org>


So the real beef is in gcc-4.2

$ apt-cache policy gcc-4.2
gcc-4.2:
  Installed: 4.2.4-1ubuntu3
  Candidate: 4.2.4-1ubuntu3
  Version table:
 *** 4.2.4-1ubuntu3 0
        500 http://fi.archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     4.2.3-2ubuntu7 0
        500 http://fi.archive.ubuntu.com hardy/main Packages


So you get a different gcc version depending on whether you follow 
hardy-updates or not.

C. Cooke> The output of 'dpkg -l linux-image*'

$ dpkg-query -l linux-image* | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                                       Version                          
 Description
+++-==========================================-=================================-============================================
un  linux-image                                <none>                           
 (no description available)
un  linux-image-2.6                            <none>                           
 (no description available)
ii  linux-image-2.6.24-19-generic              2.6.24-19.41                     
 Linux kernel image for version 2.6.24 on x86
ii  linux-image-2.6.24-22-generic              2.6.24-22.45                     
 Linux kernel image for version 2.6.24 on x86
ii  linux-image-2.6.24-23-generic              2.6.24-23.48                     
 Linux kernel image for version 2.6.24 on x86
ii  linux-image-generic                        2.6.24.23.25                     
 Generic Linux kernel image

(I piped through cat in order to avoid truncation)


C. Cooke> The output of 'uname -a'

$ uname -a
Linux uwe-desktop 2.6.24-23-generic #1 SMP Mon Jan 26 00:13:11 UTC 2009 i686 
GNU/Linux


I use the newest of my installed kernels, 2.6.24-23. 

$ apt-cache policy linux-image-2.6.24-23-generic
linux-image-2.6.24-23-generic:
  Installed: 2.6.24-23.48
  Candidate: 2.6.24-23.48
  Version table:
 *** 2.6.24-23.48 0
        500 http://fi.archive.ubuntu.com hardy-updates/main Packages
        500 http://security.ubuntu.com hardy-security/main Packages
        100 /var/lib/dpkg/status

You get the same one from hardy-security and hardy-updates.


$ cat /proc/version
Linux version 2.6.24-23-generic (bui...@vernadsky) (gcc version 4.2.3 (Ubuntu 
4.2.3-2ubuntu7)) #1 SMP Mon Jan 26 00:13:11 UTC 2009

It's build using gcc 4.2.3

But:

$ gcc --version
gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Summary: Those who follow hardy-updates (and security, of course), have a 
version mismatch whenever the the newest
kernel comes from security.

Solution: If

a.) the compiler in hardy-updates is different in hardy-main & hardy-security
than the one in hardy-updates

and

b.) the newest kernel comes from hardy-security

then

hardy-updates must provide a kernel compiled with the compiler in hardy-
updates.


** Changed in: linux (Ubuntu)
       Status: Incomplete => New

-- 
hardy-updates needs a new linux-image
https://bugs.launchpad.net/bugs/328178
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to