FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 06-22-2012, 11:15 PM
Andreas Beckmann
 
Default Bug#677582: gcc-4.4-base: upgrade problems since removal of gcj-4.4

severity serious
thanks

Raising the severity to serious as I see now about 60 packages (e.g.
libjboss-*-java) failing the squeeze=>wheezy dist-upgrade test because
of this,
I'm not sure about the correct package to assign this to.


On 2012-06-15 03:10, Andreas Beckmann wrote:
> during piuparts dist-upgrade tests I noticed problems upgrading from
> squeeze if gcj-4.4 is installed. gcj-4.4 was recently removed from sid
> and testing and there is no clean upgrade path and apt decides to keep
> gcc-4.4-base at an old version instead of removing the obsolete gcj-4.4
> packages. Because of


Andreas



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4FE4FCA2.8090801@abeckmann.de">http://lists.debian.org/4FE4FCA2.8090801@abeckmann.de
 
Old 08-02-2012, 11:32 PM
Matthias Klose
 
Default Bug#677582: gcc-4.4-base: upgrade problems since removal of gcj-4.4

reassign 677582 general
thanks

I can't see how this is an issue for the gcc-4.4 source package. Therefore
reassigning to general to find a more appropriate package, maybe apt?


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 501B0DFC.90508@debian.org">http://lists.debian.org/501B0DFC.90508@debian.org
 
Old 08-03-2012, 05:58 AM
Julien Cristau
 
Default Bug#677582: gcc-4.4-base: upgrade problems since removal of gcj-4.4

On Fri, Jun 15, 2012 at 03:10:16 +0200, Andreas Beckmann wrote:

> during piuparts dist-upgrade tests I noticed problems upgrading from
> squeeze if gcj-4.4 is installed. gcj-4.4 was recently removed from sid
> and testing and there is no clean upgrade path and apt decides to keep
> gcc-4.4-base at an old version instead of removing the obsolete gcj-4.4
> packages. Because of
> Package: gcc-4.4-base
> Breaks: gcj-4.4-base (<< 4.4.6-9~)
> and
> $ rmadison gcj-4.4-base
> gcj-4.4-base | 4.4.5-2 | squeeze
> the old version has to be removed.
>
Does it make any difference if you change the Breaks to Conflicts?

Cheers,
Julien
 
Old 08-04-2012, 09:14 AM
Andreas Beckmann
 
Default Bug#677582: gcc-4.4-base: upgrade problems since removal of gcj-4.4

reassign 677582 gcc-4.4-base 4.4.7-1
tag 677582 patch
thanks

On 2012-08-03 07:58, Julien Cristau wrote:
> Does it make any difference if you change the Breaks to Conflicts?

Yes, it does. Therefore assigning the bug back to gcc-4.4

I'm testing a squeeze->wheezy distupgrade of the libgcj-bc package in a
minimal chroot that was created by piuparts.

# apt-cache policy gcc-4.4-base
gcc-4.4-base:
Installed: 4.4.5-8
Candidate: 4.4.7-1
Version table:
4.4.7-1 0
500 http://$MIRROR/debian/ wheezy/main amd64 Packages
*** 4.4.5-8 0
100 /var/lib/dpkg/status

# apt-get --no-y dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
gcc-4.7-base gcj-4.7-base libapt-pkg4.12 libdb5.1 libgcj13 libgmp10
liblzma5 libmount1 libpam-modules-bin libsemanage-common libsemanage1
libssl1.0.0 libtinfo5 libustr-1.0-1
multiarch-support python2.7 python2.7-minimal ucf
The following packages have been kept back:
gcc-4.4-base
The following packages will be upgraded:
apt base-files base-passwd bash bsdutils coreutils dash debconf
debconf-i18n debian-archive-keyring debianutils diffutils dpkg e2fslibs
e2fsprogs findutils gnupg gpgv grep gzip hostname
initscripts insserv libacl1 libasound2 libattr1 libblkid1 libbz2-1.0
libc-bin libc6 libcomerr2 libexpat1 libgcc1 libgcj-bc libgcj-common
liblocale-gettext-perl libncurses5 libncursesw5
libpam-modules libpam-runtime libpam0g libreadline6 libselinux1
libsepol1 libslang2 libsqlite3-0 libss2 libstdc++6
libtext-charwidth-perl libtext-iconv-perl libusb-0.1-4 libuuid1 login
lsb-base mawk mime-support mount ncurses-base ncurses-bin passwd
perl-base python python-minimal python2.6 python2.6-minimal
readline-common sed sensible-utils sysv-rc sysvinit
sysvinit-utils tar tzdata util-linux xz-utils zlib1g
76 upgraded, 18 newly installed, 0 to remove and 1 not upgraded.
[...]

OK, that's not what we want. There shouln't be packages "kept back".

Then I rebuilt gcc-4.4 with s/Breaks/Conflicts/ on gcj-4.4-base in the
gcc-4.4-base package:

Package: gcc-4.4-base
Source: gcc-4.4
Version: 4.4.7-2.1
Conflicts: gcj-4.4-base (<< 4.4.6-9~)
Breaks: gnat-4.4-base (<< 4.4.6-3~)

# apt-cache policy gcc-4.4-base
gcc-4.4-base:
Installed: 4.4.5-8
Candidate: 4.4.7-2.1
Version table:
4.4.7-2.1 0
500 file:/tmp/debs/ ./ Packages
4.4.7-1 0
500 http://$MIRROR/debian/ wheezy/main amd64 Packages
*** 4.4.5-8 0
100 /var/lib/dpkg/status

# apt-get --no-y dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
gcj-4.4-base libgcj10
The following NEW packages will be installed:
gcc-4.7-base gcj-4.7-base libapt-pkg4.12 libdb5.1 libgcj13 libgmp10
liblzma5 libmount1 libpam-modules-bin libsemanage-common libsemanage1
libssl1.0.0 libtinfo5 libustr-1.0-1
multiarch-support python2.7 python2.7-minimal ucf
The following packages will be upgraded:
apt base-files base-passwd bash bsdutils coreutils dash debconf
debconf-i18n debian-archive-keyring debianutils diffutils dpkg e2fslibs
e2fsprogs findutils gcc-4.4-base gnupg gpgv grep gzip
hostname initscripts insserv libacl1 libasound2 libattr1 libblkid1
libbz2-1.0 libc-bin libc6 libcomerr2 libexpat1 libgcc1 libgcj-bc
libgcj-common liblocale-gettext-perl libncurses5
libncursesw5 libpam-modules libpam-runtime libpam0g libreadline6
libselinux1 libsepol1 libslang2 libsqlite3-0 libss2 libstdc++6
libtext-charwidth-perl libtext-iconv-perl libusb-0.1-4
libuuid1 login lsb-base mawk mime-support mount ncurses-base
ncurses-bin passwd perl-base python python-minimal python2.6
python2.6-minimal readline-common sed sensible-utils sysv-rc
sysvinit sysvinit-utils tar tzdata util-linux xz-utils zlib1g
77 upgraded, 18 newly installed, 2 to remove and 0 not upgraded.
[...]

That looks much better!

Update is successful, afterwards:

# apt-cache policy gcc-4.4-base
gcc-4.4-base:
Installed: 4.4.7-2.1
Candidate: 4.4.7-2.1
Version table:
*** 4.4.7-2.1 0
500 file:/tmp/debs/ ./ Packages
100 /var/lib/dpkg/status
4.4.7-1 0
500 http://$MIRROR/debian/ wheezy/main amd64 Packages


So, please switch that Breaks to a Conflicts. I'm attaching the patch I
used in my test.


Andreas
diff -u gcc-4.4-4.4.7/debian/control gcc-4.4-4.4.7/debian/control
--- gcc-4.4-4.4.7/debian/control
+++ gcc-4.4-4.4.7/debian/control
@@ -17,7 +17,8 @@
Priority: required
Depends: ${miscepends}
Replaces: ${base:Replaces}
-Breaks: gcj-4.4-base (<< 4.4.6-9~), gnat-4.4-base (<< 4.4.6-3~)
+Breaks: gnat-4.4-base (<< 4.4.6-3~)
+Conflicts: gcj-4.4-base (<< 4.4.6-9~)
Description: GCC, the GNU Compiler Collection (base package)
This package contains files common to all languages and libraries
contained in the GNU Compiler Collection (GCC).
diff -u gcc-4.4-4.4.7/debian/control.m4 gcc-4.4-4.4.7/debian/control.m4
--- gcc-4.4-4.4.7/debian/control.m4
+++ gcc-4.4-4.4.7/debian/control.m4
@@ -109,7 +109,8 @@
Priority: PRI(required)
Depends: ${miscepends}
Replaces: ${base:Replaces}
-Breaks: gcj-4.4-base (<< 4.4.6-9~), gnat-4.4-base (<< 4.4.6-3~)
+Breaks: gnat-4.4-base (<< 4.4.6-3~)
+Conflicts: gcj-4.4-base (<< 4.4.6-9~)
Description: GCC, the GNU Compiler Collection (base package)
This package contains files common to all languages and libraries
contained in the GNU Compiler Collection (GCC).
 
Old 08-04-2012, 09:42 AM
Julien Cristau
 
Default Bug#677582: gcc-4.4-base: upgrade problems since removal of gcj-4.4

On Sat, Aug 4, 2012 at 11:14:15 +0200, Andreas Beckmann wrote:

> # apt-get --no-y dist-upgrade
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Calculating upgrade... Done
> The following NEW packages will be installed:
> gcc-4.7-base gcj-4.7-base libapt-pkg4.12 libdb5.1 libgcj13 libgmp10
> liblzma5 libmount1 libpam-modules-bin libsemanage-common libsemanage1
> libssl1.0.0 libtinfo5 libustr-1.0-1
> multiarch-support python2.7 python2.7-minimal ucf
> The following packages have been kept back:
> gcc-4.4-base
> The following packages will be upgraded:
[...]
> 76 upgraded, 18 newly installed, 0 to remove and 1 not upgraded.
> [...]
>
> OK, that's not what we want. There shouln't be packages "kept back".
>
FWIW that result doesn't seem all that bad to me. If that's the only
problem I wouldn't consider this bug RC. I guess there might be more
issues (or in any case a different result) with libc6-dev on top though,
since libc6-dev Breaks squeeze's gcc-4.4. Any chance you could test
that?

Thanks,
Julien
 
Old 08-04-2012, 11:39 AM
Andreas Beckmann
 
Default Bug#677582: gcc-4.4-base: upgrade problems since removal of gcj-4.4

On 2012-08-04 11:42, Julien Cristau wrote:
> On Sat, Aug 4, 2012 at 11:14:15 +0200, Andreas Beckmann wrote:
>> OK, that's not what we want. There shouln't be packages "kept back".
>>
> FWIW that result doesn't seem all that bad to me.

In squeeze2wheezy/main piuparts test I currently see 172 passed logs and
68 failed logs with the string 'packages have been kept back' (there are
a total of 122 failing packages currently and 234 packages that cannot
be tested due to dependencies failing), something that should not happen
on squeeze->wheezy updates if all upgrade paths are well defined. Some
of these may be due to insufficiencies in apt in squeeze, but that means
the packages in wheezy will have to work around this to ensure clean
upgrades without keeping old package versions.

And my proposed patch is a minimal change that seems to be sufficient to
push apt a little bit into the right direction in some corner cases
where apt wouldn't decide correctly otherwise ...
I expect about 60 piuparts failures to be fixed by my patch (this would
be verified in squeeze2sid once an updated gcc-4.4 enters sid).

> If that's the only
> problem I wouldn't consider this bug RC. I guess there might be more
> issues (or in any case a different result) with libc6-dev on top though,
> since libc6-dev Breaks squeeze's gcc-4.4. Any chance you could test
> that?

piuparts ... -d squeeze -d wheezy
--extra-old-packages=gcc-4.4,libgcj-bc --apt libc6-dev

passes without problems, and there apt decides correctly to remove the
old gcj-4.4-base and libgcj10.

Andreas


--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 501D0A06.4050007@abeckmann.de">http://lists.debian.org/501D0A06.4050007@abeckmann.de
 

Thread Tools




All times are GMT. The time now is 12:40 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org