Bug#972936: libgcc-s1 needs Breaks: libgcc1 (<< 1:10)

2020-10-26 Thread Adrian Bunk
Package: libgcc-s1
Version: 10.2.0-15
Severity: grave

On a buster system, with unstable pinned to low priority:

# apt-get install libgcc-s1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  gcc-10-base
The following NEW packages will be installed:
  gcc-10-base libgcc-s1
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/241 kB of archives.
After this operation, 384 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Selecting previously unselected package gcc-10-base:amd64.
(Reading database ... 508501 files and directories currently installed.)
Preparing to unpack .../gcc-10-base_10.2.0-15_amd64.deb ...
Unpacking gcc-10-base:amd64 (10.2.0-15) ...
Selecting previously unselected package libgcc-s1:amd64.
Preparing to unpack .../libgcc-s1_10.2.0-15_amd64.deb ...
Unpacking libgcc-s1:amd64 (10.2.0-15) ...
Replacing files in old package libgcc1:amd64 (1:8.3.0-6) ...
Setting up gcc-10-base:amd64 (10.2.0-15) ...
Setting up libgcc-s1:amd64 (10.2.0-15) ...
Processing triggers for libc-bin (2.28-10) ...
# apt-get remove libgcc-s1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libgcc-s1
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 119 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 508502 files and directories currently installed.)
Removing libgcc-s1:amd64 (10.2.0-15) ...
Processing triggers for libc-bin (2.28-10) ...
# apt-get install libgcc-s1
apt-get: error while loading shared libraries: libgcc_s.so.1: cannot open 
shared object file: No such file or directory
#


libgcc-s1 needs
  Breaks: libgcc1 (<< 1:10)



Bug#972936: libgcc-s1 needs Breaks: libgcc1 (<< 1:10)

2020-10-27 Thread Matthias Klose
Control: severity -1 important

On 10/26/20 1:04 PM, Adrian Bunk wrote:
> Package: libgcc-s1
> Version: 10.2.0-15
> Severity: grave
> 
> On a buster system, with unstable pinned to low priority:

Lowering the severity. Feel free to correct me if this specific configuration
deserves RC severity.



Bug#972936: libgcc-s1 needs Breaks: libgcc1 (<< 1:10)

2020-10-29 Thread Julian Andres Klode
Control: subscribe -1

On Tue, Oct 27, 2020 at 03:45:59PM +0200, Adrian Bunk wrote:
> Control: severity -1 grave
> 
> On Tue, Oct 27, 2020 at 12:44:44PM +0100, Matthias Klose wrote:
> > Control: severity -1 important
> > 
> > On 10/26/20 1:04 PM, Adrian Bunk wrote:
> > > Package: libgcc-s1
> > > Version: 10.2.0-15
> > > Severity: grave
> > > 
> > > On a buster system, with unstable pinned to low priority:
> > 
> > Lowering the severity. Feel free to correct me if this specific 
> > configuration
> > deserves RC severity.
> 
> This is pretty exactly the problem described in
> https://www.debian.org/doc/debian-policy/ch-relationships.html#id11
> 
> Losing libgcc1 is extra bad, since so much (including apt) uses it.
> 
> Hard to recover when you hit the problem, and trivial to fix.

It's not trivial to fix, if it's fixable at all. Adding the Breaks
can cause the library to disappear in the middle of the upgrade,
because libgcc1 is upgraded first or temporarily removed, which
is the reason it's not there.

I thought about hacking a workaround into apt that prevents you
from removing libgcc-s1 if libgcc1 is installed, but that's not
super helpful as you need a current apt.

My suggestion is to set XB-Important: yes and Protected: yes on
libgcc-s1 such that people cannot easily remove it after it's
installed.

We can then remove that bit in bookworm.

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer  i speak de, en



Bug#972936: libgcc-s1 needs Breaks: libgcc1 (<< 1:10)

2021-02-13 Thread Phil Morrell
Thanks to bits from the RT. I can't reproduce this issue on a minimal
installation, and the upgrade path has also been fixed #972820.
--
Phil Morrell (emorrp1)



```
$ sudo sbuild-createchroot --command-prefix=eatmydata --include=eatmydata 
buster --chroot-prefix=temporary /srv/chroot/temporary
...
$ sudo sbuild-shell source:temporary-amd64-sbuild
I: /bin/sh
# echo 'deb http://deb.debian.org/debian bullseye main' >> /etc/apt/sources.list
# cat >> /etc/apt/preferences
Package: *
Pin: release a=testing
Pin-Priority: 1
# apt update
Hit:1 http://deb.debian.org/debian buster InRelease
Get:2 http://deb.debian.org/debian bullseye InRelease [123 kB]
Get:3 http://deb.debian.org/debian buster/main Translation-en [5969 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8214 kB]
Get:5 http://deb.debian.org/debian bullseye/main Translation-en [6266 kB]
Fetched 20.6 MB in 5s (3751 kB/s)  
Reading package lists... Done
Building dependency tree... Done
All packages are up to date.
# apt install libgcc-s1 
Reading package lists... Done
Building dependency tree... Done
The following additional packages will be installed:
  gcc-10-base
The following NEW packages will be installed:
  gcc-10-base libgcc-s1
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 243 kB of archives.
After this operation, 386 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://deb.debian.org/debian bullseye/main amd64 gcc-10-base amd64 
10.2.1-6 [201 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 libgcc-s1 amd64 10.2.1-6 
[41.4 kB]
Fetched 243 kB in 0s (4449 kB/s) 
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package gcc-10-base:amd64.
(Reading database ... 11956 files and directories currently installed.)
Preparing to unpack .../gcc-10-base_10.2.1-6_amd64.deb ...
Unpacking gcc-10-base:amd64 (10.2.1-6) ...
Selecting previously unselected package libgcc-s1:amd64.
Preparing to unpack .../libgcc-s1_10.2.1-6_amd64.deb ...
Unpacking libgcc-s1:amd64 (10.2.1-6) ...
Replacing files in old package libgcc1:amd64 (1:8.3.0-6) ...
Setting up gcc-10-base:amd64 (10.2.1-6) ...
Setting up libgcc-s1:amd64 (10.2.1-6) ...
Processing triggers for libc-bin (2.28-10) ...
# apt remove libgcc-s1
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following packages will be REMOVED:
  libgcc-s1
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  libgcc-s1
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 119 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] 
```


signature.asc
Description: PGP signature


Bug#972936: libgcc-s1 needs Breaks: libgcc1 (<< 1:10)

2021-02-25 Thread Graham Inggs
Hi

On Mon, 15 Feb 2021 at 10:07, Matthias Klose  wrote:
> On 2/14/21 5:58 PM, Simon McVittie wrote:
>> Obviously, the transitional packages would ideally be built by src:gcc-10
>> rather than being a separate source package, and Ryan only prototyped them
>> as a separate source package to be able to iterate on them without having
>> to rebuild all of gcc.
>
> can somebody confirm that as a working solution?

Is anyone able to confirm this for bullseye?

Regards
Graham



Bug#972936: libgcc-s1 needs Breaks: libgcc1 (<< 1:10)

2021-03-03 Thread Matthias Klose
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964477#69
now claims this is gone with the removal of gcc-8



Bug#972936: libgcc-s1 needs Breaks: libgcc1 (<< 1:10)

2021-03-04 Thread Ivo De Decker
# clarify issue in 972936
retitle 972936 removal of libgcc-s1 breaks the whole system
fixed 972936 10.2.0-16
# 
# purely cosmetic, as this specific issue is fixed
severity 964477 serious
thanks

Hi,

On Wed, Mar 03, 2021 at 11:31:07AM +0100, Matthias Klose wrote:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964477#69
> now claims this is gone with the removal of gcc-8

It seems there is some confusion between #972936 and #964477, as the bug log
of #972936 contains some info that's only relevant for #964477.


First, bug 972936:

The issue as reported in
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=972936#5 was fixed in gcc-10
10.2.0-16 with the change suggested by Julian in
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=972936#24

"Mark libgcc-sN with XB-Important/Protected: yes. Addresses: #972936"

I can reproduce the original issue when installing libgcc-s1 from bullseye
from snapshot based on this link:

deb [check-valid-until=no] 
https://snapshot.debian.org/archive/debian/20201012T00Z/ bullseye main

When installing libgcc-s1 from current bullseye, apt is no longer willing to
remove libgcc-s1 (without 'do as I say').



Now bug 964477:

This bug can be reproduced based on Ryans script:

On a buster system:

apt-get install -y --no-install-recommends gcc-8 libc6-dev libreoffice

Switch the sources.list to a bullseye snapshot from before the removal of
gcc-8 (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964477#64)

Then run
apt-get -y dist-upgrade
to get the error.


When trying to upgrade to a current version of bullseye, the issue doesn't
show up, because gcc-8 is no longer there. So it seems this issue was resolved
with the removal of gcc-8 from testing.


I also can confirm that trying to upgrade to a snapshot of bullseye that has
gcc-8 works with the packages from Ryan based on this sources entry:

deb  
http://download.opensuse.org/repositories/home:/rpavlik:/bullseye-fix/Debian_Testing/
 ./
(which needs
https://salsa.debian.org/rpavlik/gcc-upgrade-testcase/-/blob/main/workaround.asc
to be accepted by apt)

Even though the issue from 964477 is fixed, it's possible that there are
similar issue (not related to gcc-8) we are currently unaware of. So it might
still be useful to reintroduce the transitional packages, as suggested by
David in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964477#41

Finally, I think 964477 should be marked as serious (even though that's purely
cosmetic now, as the bug is fixed).


Cheers,

Ivo



Processed: Re: Bug#972936: libgcc-s1 needs Breaks: libgcc1 (<< 1:10)

2020-10-27 Thread Debian Bug Tracking System
Processing control commands:

> severity -1 important
Bug #972936 [libgcc-s1] libgcc-s1 needs Breaks: libgcc1 (<< 1:10)
Severity set to 'important' from 'grave'

-- 
972936: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=972936
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Processed: Re: Bug#972936: libgcc-s1 needs Breaks: libgcc1 (<< 1:10)

2020-10-27 Thread Debian Bug Tracking System
Processing control commands:

> severity -1 grave
Bug #972936 [libgcc-s1] libgcc-s1 needs Breaks: libgcc1 (<< 1:10)
Severity set to 'grave' from 'important'

-- 
972936: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=972936
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems