Debian Bug report logs - #970555
cowdancer: needlessly links with ncurses

version graph

Package: cowdancer; Maintainer for cowdancer is Debian pbuilder maintenance team <team+pbuilder@tracker.debian.org>; Source for cowdancer is src:cowdancer (PTS, buildd, popcon).

Reported by: Bas Couwenberg <sebastic@xs4all.nl>

Date: Fri, 18 Sep 2020 14:57:01 UTC

Severity: important

Merged with 970594, 970688, 970912, 971674

Found in version cowdancer/0.88

Fixed in version cowdancer/0.89

Done: Jessica Clarke <jrtc27@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Craig Small <csmall@debian.org>:
Bug#970555; Package src:ncurses. (Fri, 18 Sep 2020 14:57:03 GMT) (full text, mbox, link).


Acknowledgement sent to Bas Couwenberg <sebastic@xs4all.nl>:
New Bug report received and forwarded. Copy sent to Craig Small <csmall@debian.org>. (Fri, 18 Sep 2020 14:57:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Bas Couwenberg <sebastic@xs4all.nl>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ncurses: Upgrade fails: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
Date: Fri, 18 Sep 2020 16:55:36 +0200
Source: ncurses
Version: 6.2+20200912-1
Severity: serious
Justification: makes the package in question unusable or mostly so

Dear Maintainer,

Upgrading sid & experimental pbuilder chroots fails due to the new ncurses:

 Preparing to unpack .../libncursesw6_6.2+20200912-1_amd64.deb ...
 Unpacking libncursesw6:amd64 (6.2+20200912-1) over (6.2-1) ...
 Preparing to unpack .../libncurses6_6.2+20200912-1_amd64.deb ...
 Unpacking libncurses6:amd64 (6.2+20200912-1) over (6.2-1) ...
 rm: /lib/x86_64-linux-gnu/libtinfo.so.6: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
 dpkg: error while cleaning up:
  rm command for cleanup subprocess returned error exit status 1
 dpkg-split: /lib/x86_64-linux-gnu/libtinfo.so.6: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
 rm: /lib/x86_64-linux-gnu/libtinfo.so.6: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
 dpkg: error processing archive /var/cache/apt/archives/libtinfo6_6.2+20200912-1_amd64.deb (--unpack):
  rm command for cleanup subprocess returned error exit status 1
 Errors were encountered while processing:
  /var/cache/apt/archives/libtinfo6_6.2+20200912-1_amd64.deb
 E: Sub-process /usr/bin/dpkg returned an error code (1)

Kind Regards,

Bas



Information forwarded to debian-bugs-dist@lists.debian.org, Craig Small <csmall@debian.org>:
Bug#970555; Package src:ncurses. (Fri, 18 Sep 2020 16:15:04 GMT) (full text, mbox, link).


Acknowledgement sent to Sven Joachim <svenjoac@gmx.de>:
Extra info received and forwarded to list. Copy sent to Craig Small <csmall@debian.org>. (Fri, 18 Sep 2020 16:15:04 GMT) (full text, mbox, link).


Message #10 received at 970555@bugs.debian.org (full text, mbox, reply):

From: Sven Joachim <svenjoac@gmx.de>
To: Bas Couwenberg <sebastic@xs4all.nl>
Cc: 970555@bugs.debian.org
Subject: Re: Bug#970555: ncurses: Upgrade fails: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
Date: Fri, 18 Sep 2020 18:13:15 +0200
Control: tags -1 moreinfo

On 2020-09-18 16:55 +0200, Bas Couwenberg wrote:

> Source: ncurses
> Version: 6.2+20200912-1
> Severity: serious
> Justification: makes the package in question unusable or mostly so
>
> Dear Maintainer,
>
> Upgrading sid & experimental pbuilder chroots fails due to the new ncurses:
>
>  Preparing to unpack .../libncursesw6_6.2+20200912-1_amd64.deb ...
>  Unpacking libncursesw6:amd64 (6.2+20200912-1) over (6.2-1) ...
>  Preparing to unpack .../libncurses6_6.2+20200912-1_amd64.deb ...
>  Unpacking libncurses6:amd64 (6.2+20200912-1) over (6.2-1) ...
>  rm: /lib/x86_64-linux-gnu/libtinfo.so.6: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
>  dpkg: error while cleaning up:
>   rm command for cleanup subprocess returned error exit status 1
>  dpkg-split: /lib/x86_64-linux-gnu/libtinfo.so.6: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
>  rm: /lib/x86_64-linux-gnu/libtinfo.so.6: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
>  dpkg: error processing archive /var/cache/apt/archives/libtinfo6_6.2+20200912-1_amd64.deb (--unpack):
>   rm command for cleanup subprocess returned error exit status 1
>  Errors were encountered while processing:
>   /var/cache/apt/archives/libtinfo6_6.2+20200912-1_amd64.deb
>  E: Sub-process /usr/bin/dpkg returned an error code (1)

I cannot reproduce this, but my pbuilder chroots do not have libncurses6
installed at all.  What is this rm binary in your chroot, apparently it
is linked to libncurses.so.6?

Cheers,
       Sven



Added tag(s) moreinfo. Request was from Sven Joachim <svenjoac@gmx.de> to 970555-submit@bugs.debian.org. (Fri, 18 Sep 2020 16:15:04 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Craig Small <csmall@debian.org>:
Bug#970555; Package src:ncurses. (Fri, 18 Sep 2020 16:33:03 GMT) (full text, mbox, link).


Acknowledgement sent to Sebastiaan Couwenberg <sebastic@xs4all.nl>:
Extra info received and forwarded to list. Copy sent to Craig Small <csmall@debian.org>. (Fri, 18 Sep 2020 16:33:03 GMT) (full text, mbox, link).


Message #17 received at 970555@bugs.debian.org (full text, mbox, reply):

From: Sebastiaan Couwenberg <sebastic@xs4all.nl>
To: Sven Joachim <svenjoac@gmx.de>
Cc: 970555@bugs.debian.org
Subject: Re: Bug#970555: ncurses: Upgrade fails: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
Date: Fri, 18 Sep 2020 18:22:24 +0200
Control: tags -1 - moreinfo

On 9/18/20 6:13 PM, Sven Joachim wrote:
> On 2020-09-18 16:55 +0200, Bas Couwenberg wrote:
>> Upgrading sid & experimental pbuilder chroots fails due to the new ncurses:
>>
>>  Preparing to unpack .../libncursesw6_6.2+20200912-1_amd64.deb ...
>>  Unpacking libncursesw6:amd64 (6.2+20200912-1) over (6.2-1) ...
>>  Preparing to unpack .../libncurses6_6.2+20200912-1_amd64.deb ...
>>  Unpacking libncurses6:amd64 (6.2+20200912-1) over (6.2-1) ...
>>  rm: /lib/x86_64-linux-gnu/libtinfo.so.6: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
>>  dpkg: error while cleaning up:
>>   rm command for cleanup subprocess returned error exit status 1
>>  dpkg-split: /lib/x86_64-linux-gnu/libtinfo.so.6: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
>>  rm: /lib/x86_64-linux-gnu/libtinfo.so.6: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
>>  dpkg: error processing archive /var/cache/apt/archives/libtinfo6_6.2+20200912-1_amd64.deb (--unpack):
>>   rm command for cleanup subprocess returned error exit status 1
>>  Errors were encountered while processing:
>>   /var/cache/apt/archives/libtinfo6_6.2+20200912-1_amd64.deb
>>  E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> I cannot reproduce this, but my pbuilder chroots do not have libncurses6
> installed at all.

What about cowbuilder chroots?

> What is this rm binary in your chroot, apparently it
> is linked to libncurses.so.6?

 # which rm
 /bin/rm
 # dpkg -S /bin/rm
 coreutils: /bin/rm
 # ldd /bin/rm
         linux-vdso.so.1 (0x00007ffea75fb000)
         /usr/lib/cowdancer/libcowdancer.so (0x00007f2e6a6db000)
         libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2e6a512000)
         libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2e6a50c000)
         libncurses.so.6 => /lib/x86_64-linux-gnu/libncurses.so.6
(0x00007f2e6a4e3000)
         libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6
(0x00007f2e6a4b4000)
         /lib64/ld-linux-x86-64.so.2 (0x00007f2e6a6f9000)
 # aptitude why libncurses6
 i   cowdancer Depends libncurses6 (>= 6)

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



Removed tag(s) moreinfo. Request was from Sebastiaan Couwenberg <sebastic@xs4all.nl> to 970555-submit@bugs.debian.org. (Fri, 18 Sep 2020 16:33:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Craig Small <csmall@debian.org>:
Bug#970555; Package src:ncurses. (Fri, 18 Sep 2020 19:54:02 GMT) (full text, mbox, link).


Acknowledgement sent to Sven Joachim <svenjoac@gmx.de>:
Extra info received and forwarded to list. Copy sent to Craig Small <csmall@debian.org>. (Fri, 18 Sep 2020 19:54:02 GMT) (full text, mbox, link).


Message #24 received at 970555@bugs.debian.org (full text, mbox, reply):

From: Sven Joachim <svenjoac@gmx.de>
To: Sebastiaan Couwenberg <sebastic@xs4all.nl>
Cc: 970555@bugs.debian.org, cowbuilder@packages.debian.org
Subject: Re: Bug#970555: ncurses: Upgrade fails: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
Date: Fri, 18 Sep 2020 21:51:19 +0200
Control: reassign -1 cowdancer 0.88
Control: retitle -1 cowdancer: needlessly links with ncurses
Control: severity -1 important

On 2020-09-18 18:22 +0200, Sebastiaan Couwenberg wrote:

> Control: tags -1 - moreinfo
>
> On 9/18/20 6:13 PM, Sven Joachim wrote:
>> On 2020-09-18 16:55 +0200, Bas Couwenberg wrote:
>>> Upgrading sid & experimental pbuilder chroots fails due to the new ncurses:
>>>
>>>  Preparing to unpack .../libncursesw6_6.2+20200912-1_amd64.deb ...
>>>  Unpacking libncursesw6:amd64 (6.2+20200912-1) over (6.2-1) ...
>>>  Preparing to unpack .../libncurses6_6.2+20200912-1_amd64.deb ...
>>>  Unpacking libncurses6:amd64 (6.2+20200912-1) over (6.2-1) ...
>>>  rm: /lib/x86_64-linux-gnu/libtinfo.so.6: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
>>>  dpkg: error while cleaning up:
>>>   rm command for cleanup subprocess returned error exit status 1
>>>  dpkg-split: /lib/x86_64-linux-gnu/libtinfo.so.6: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
>>>  rm: /lib/x86_64-linux-gnu/libtinfo.so.6: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
>>>  dpkg: error processing archive /var/cache/apt/archives/libtinfo6_6.2+20200912-1_amd64.deb (--unpack):
>>>   rm command for cleanup subprocess returned error exit status 1
>>>  Errors were encountered while processing:
>>>   /var/cache/apt/archives/libtinfo6_6.2+20200912-1_amd64.deb
>>>  E: Sub-process /usr/bin/dpkg returned an error code (1)
>>
>> I cannot reproduce this, but my pbuilder chroots do not have libncurses6
>> installed at all.
>
> What about cowbuilder chroots?

Thanks for the hint, I do not use cowbuilder but had a look at the
manpage where I found this option:

,----
|  --no-cowdancer-update
|         Do  not use cowdancer on cowbuilder update. Please use this
|         option when cowdancer is interfering with upgrade  process,
|         or cowdancer itself is being upgraded within chroot.
`----

Apparently this is what you need to use, for cowdancer seems to bring
libncurses.so.6 into the address space of every binary on the system,
which is "interfering with upgrade process".

>> What is this rm binary in your chroot, apparently it
>> is linked to libncurses.so.6?
>
>  # which rm
>  /bin/rm
>  # dpkg -S /bin/rm
>  coreutils: /bin/rm
>  # ldd /bin/rm
>          linux-vdso.so.1 (0x00007ffea75fb000)
>          /usr/lib/cowdancer/libcowdancer.so (0x00007f2e6a6db000)
>          libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2e6a512000)
>          libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2e6a50c000)
>          libncurses.so.6 => /lib/x86_64-linux-gnu/libncurses.so.6
> (0x00007f2e6a4e3000)
>          libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6
> (0x00007f2e6a4b4000)
>          /lib64/ld-linux-x86-64.so.2 (0x00007f2e6a6f9000)
>  # aptitude why libncurses6
>  i   cowdancer Depends libncurses6 (>= 6)

It seems that cowdancer should not link with ncurses in the first place,
as it only uses the tinfo library.  In fact, rebuilding cowbuilder with
a current toolchain that defaults to the "--as-needed" linker flag
causes cowbuilder and cowdancer to depend on libtinfo6 only.

Cheers,
       Sven



Bug reassigned from package 'src:ncurses' to 'cowdancer'. Request was from Sven Joachim <svenjoac@gmx.de> to 970555-submit@bugs.debian.org. (Fri, 18 Sep 2020 19:54:02 GMT) (full text, mbox, link).


No longer marked as found in versions ncurses/6.2+20200912-1. Request was from Sven Joachim <svenjoac@gmx.de> to 970555-submit@bugs.debian.org. (Fri, 18 Sep 2020 19:54:03 GMT) (full text, mbox, link).


Marked as found in versions cowdancer/0.88. Request was from Sven Joachim <svenjoac@gmx.de> to 970555-submit@bugs.debian.org. (Fri, 18 Sep 2020 19:54:03 GMT) (full text, mbox, link).


Changed Bug title to 'cowdancer: needlessly links with ncurses' from 'ncurses: Upgrade fails: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)'. Request was from Sven Joachim <svenjoac@gmx.de> to 970555-submit@bugs.debian.org. (Fri, 18 Sep 2020 19:54:04 GMT) (full text, mbox, link).


Severity set to 'important' from 'serious' Request was from Sven Joachim <svenjoac@gmx.de> to 970555-submit@bugs.debian.org. (Fri, 18 Sep 2020 19:54:04 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian pbuilder maintenance team <team+pbuilder@tracker.debian.org>:
Bug#970555; Package cowdancer. (Fri, 18 Sep 2020 20:06:02 GMT) (full text, mbox, link).


Acknowledgement sent to Jessica Clarke <jrtc27@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian pbuilder maintenance team <team+pbuilder@tracker.debian.org>. (Fri, 18 Sep 2020 20:06:03 GMT) (full text, mbox, link).


Message #39 received at 970555@bugs.debian.org (full text, mbox, reply):

From: Jessica Clarke <jrtc27@debian.org>
To: Sven Joachim <svenjoac@gmx.de>
Cc: Sebastiaan Couwenberg <sebastic@xs4all.nl>, 970555@bugs.debian.org, cowbuilder@packages.debian.org
Subject: Re: Bug#970555: ncurses: Upgrade fails: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
Date: Fri, 18 Sep 2020 21:01:58 +0100
On 18 Sep 2020, at 20:51, Sven Joachim <svenjoac@gmx.de> wrote:
> 
> Control: reassign -1 cowdancer 0.88
> Control: retitle -1 cowdancer: needlessly links with ncurses
> Control: severity -1 important
> 
> On 2020-09-18 18:22 +0200, Sebastiaan Couwenberg wrote:
> 
>> Control: tags -1 - moreinfo
>> 
>> On 9/18/20 6:13 PM, Sven Joachim wrote:
>>> On 2020-09-18 16:55 +0200, Bas Couwenberg wrote:
>>>> Upgrading sid & experimental pbuilder chroots fails due to the new ncurses:
>>>> 
>>>> Preparing to unpack .../libncursesw6_6.2+20200912-1_amd64.deb ...
>>>> Unpacking libncursesw6:amd64 (6.2+20200912-1) over (6.2-1) ...
>>>> Preparing to unpack .../libncurses6_6.2+20200912-1_amd64.deb ...
>>>> Unpacking libncurses6:amd64 (6.2+20200912-1) over (6.2-1) ...
>>>> rm: /lib/x86_64-linux-gnu/libtinfo.so.6: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
>>>> dpkg: error while cleaning up:
>>>>  rm command for cleanup subprocess returned error exit status 1
>>>> dpkg-split: /lib/x86_64-linux-gnu/libtinfo.so.6: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
>>>> rm: /lib/x86_64-linux-gnu/libtinfo.so.6: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
>>>> dpkg: error processing archive /var/cache/apt/archives/libtinfo6_6.2+20200912-1_amd64.deb (--unpack):
>>>>  rm command for cleanup subprocess returned error exit status 1
>>>> Errors were encountered while processing:
>>>>  /var/cache/apt/archives/libtinfo6_6.2+20200912-1_amd64.deb
>>>> E: Sub-process /usr/bin/dpkg returned an error code (1)
>>> 
>>> I cannot reproduce this, but my pbuilder chroots do not have libncurses6
>>> installed at all.
>> 
>> What about cowbuilder chroots?
> 
> Thanks for the hint, I do not use cowbuilder but had a look at the
> manpage where I found this option:
> 
> ,----
> |  --no-cowdancer-update
> |         Do  not use cowdancer on cowbuilder update. Please use this
> |         option when cowdancer is interfering with upgrade  process,
> |         or cowdancer itself is being upgraded within chroot.
> `----
> 
> Apparently this is what you need to use, for cowdancer seems to bring
> libncurses.so.6 into the address space of every binary on the system,
> which is "interfering with upgrade process".
> 
>>> What is this rm binary in your chroot, apparently it
>>> is linked to libncurses.so.6?
>> 
>> # which rm
>> /bin/rm
>> # dpkg -S /bin/rm
>> coreutils: /bin/rm
>> # ldd /bin/rm
>>         linux-vdso.so.1 (0x00007ffea75fb000)
>>         /usr/lib/cowdancer/libcowdancer.so (0x00007f2e6a6db000)
>>         libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2e6a512000)
>>         libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2e6a50c000)
>>         libncurses.so.6 => /lib/x86_64-linux-gnu/libncurses.so.6
>> (0x00007f2e6a4e3000)
>>         libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6
>> (0x00007f2e6a4b4000)
>>         /lib64/ld-linux-x86-64.so.2 (0x00007f2e6a6f9000)
>> # aptitude why libncurses6
>> i   cowdancer Depends libncurses6 (>= 6)
> 
> It seems that cowdancer should not link with ncurses in the first place,
> as it only uses the tinfo library.  In fact, rebuilding cowbuilder with
> a current toolchain that defaults to the "--as-needed" linker flag
> causes cowbuilder and cowdancer to depend on libtinfo6 only.

Hm, that only defers the problem until libtinfo6 is similarly broken
mid-upgrade, no? It seems to me like dpkg has done a very dodgy
sequence of events that have resulted in the system being broken for a
short period and, whilst most don't notice, cowdancer does. Why is this
not a dpkg (or apt) bug? It should be possible to do that sequence in a
way that preserves the system as working, no?

But yes, there is the separate _minor_ issue that cowdancer is linking
against more than it needs to. I don't know why I made it pull in all
of ncurses, maybe an earlier version of the patch needed it and it no
longer does, but it's been too long to have any hope of remembering
what past me was thinking.

Jess




Information forwarded to debian-bugs-dist@lists.debian.org, Debian pbuilder maintenance team <team+pbuilder@tracker.debian.org>:
Bug#970555; Package cowdancer. (Fri, 18 Sep 2020 20:45:07 GMT) (full text, mbox, link).


Acknowledgement sent to Sven Joachim <svenjoac@gmx.de>:
Extra info received and forwarded to list. Copy sent to Debian pbuilder maintenance team <team+pbuilder@tracker.debian.org>. (Fri, 18 Sep 2020 20:45:07 GMT) (full text, mbox, link).


Message #44 received at 970555@bugs.debian.org (full text, mbox, reply):

From: Sven Joachim <svenjoac@gmx.de>
To: 970555@bugs.debian.org
Subject: Re: Bug#970555: ncurses: Upgrade fails: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
Date: Fri, 18 Sep 2020 22:40:30 +0200
On 2020-09-18 21:51 +0200, Sven Joachim wrote:

> It seems that cowdancer should not link with ncurses in the first place,
> as it only uses the tinfo library.  In fact, rebuilding cowbuilder with
> a current toolchain that defaults to the "--as-needed" linker flag
> causes cowbuilder and cowdancer to depend on libtinfo6 only.

Since cowdancer does not actually use any curses functions and makes do
with the terminfo library, it seems logical to link with it.  I have
created a merge request on Salsa:

https://salsa.debian.org/pbuilder-team/cowdancer/-/merge_requests/4

Cheers,
       Sven



Merged 970555 970594 Request was from Sven Joachim <svenjoac@gmx.de> to 970594-submit@bugs.debian.org. (Sat, 19 Sep 2020 16:39:03 GMT) (full text, mbox, link).


Merged 970555 970594 970688 Request was from Sven Joachim <svenjoac@gmx.de> to 970688-submit@bugs.debian.org. (Mon, 21 Sep 2020 16:36:04 GMT) (full text, mbox, link).


Merged 970555 970594 970688 970912 Request was from Sven Joachim <svenjoac@gmx.de> to 970912-submit@bugs.debian.org. (Fri, 25 Sep 2020 14:18:06 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian pbuilder maintenance team <team+pbuilder@tracker.debian.org>:
Bug#970555; Package cowdancer. (Sun, 27 Sep 2020 12:24:03 GMT) (full text, mbox, link).


Acknowledgement sent to "Rebecca N. Palmer" <rebecca_palmer@zoho.com>:
Extra info received and forwarded to list. Copy sent to Debian pbuilder maintenance team <team+pbuilder@tracker.debian.org>. (Sun, 27 Sep 2020 12:24:03 GMT) (full text, mbox, link).


Message #55 received at 970555@bugs.debian.org (full text, mbox, reply):

From: "Rebecca N. Palmer" <rebecca_palmer@zoho.com>
To: 970555@bugs.debian.org
Subject: Re: libncurses upgrade fails in cowbuilder chroots
Date: Sun, 27 Sep 2020 13:21:00 +0100
Jessica Clarke wrote:
> It seems to me like dpkg has done a very dodgy
> sequence of events that have resulted in the system being broken for a
> short period and, whilst most don't notice, cowdancer does. Why is this
> not a dpkg (or apt) bug? It should be possible to do that sequence in a
> way that preserves the system as working, no?

Upgrading libtinfo6 before libncurses(w)6 works - but dpkg/apt have no 
way to know that.  libncurses(w)6 declares a same-exact-version 
dependency on libtinfo6, so any upgrade order temporarily violates the 
declared dependencies.

This _might_ be the first time we noticed because it's the first time 
the symbol version changed without also changing the library filename:
https://sources.debian.org/src/ncurses/6.2+20200918-1/package/ncurses.map



Information forwarded to debian-bugs-dist@lists.debian.org, Debian pbuilder maintenance team <team+pbuilder@tracker.debian.org>:
Bug#970555; Package cowdancer. (Thu, 01 Oct 2020 08:12:03 GMT) (full text, mbox, link).


Acknowledgement sent to Sven Joachim <svenjoac@gmx.de>:
Extra info received and forwarded to list. Copy sent to Debian pbuilder maintenance team <team+pbuilder@tracker.debian.org>. (Thu, 01 Oct 2020 08:12:03 GMT) (full text, mbox, link).


Message #60 received at 970555@bugs.debian.org (full text, mbox, reply):

From: Sven Joachim <svenjoac@gmx.de>
To: Jessica Clarke <jrtc27@debian.org>
Cc: 970555@bugs.debian.org
Subject: Re: Bug#970555: ncurses: Upgrade fails: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncurses.so.6)
Date: Thu, 01 Oct 2020 10:10:14 +0200
On 2020-09-18 21:01 +0100, Jessica Clarke wrote:

> On 18 Sep 2020, at 20:51, Sven Joachim <svenjoac@gmx.de> wrote:
>>
>> It seems that cowdancer should not link with ncurses in the first place,
>> as it only uses the tinfo library.  In fact, rebuilding cowbuilder with
>> a current toolchain that defaults to the "--as-needed" linker flag
>> causes cowbuilder and cowdancer to depend on libtinfo6 only.
>
> Hm, that only defers the problem until libtinfo6 is similarly broken
> mid-upgrade, no?

It is certainly possible that one day libtinfo6 needs a new symbol from
libc6 and is unpacked before the new libc6 package that provides it,
albeit far less likely than the current situation.

> It seems to me like dpkg has done a very dodgy
> sequence of events that have resulted in the system being broken for a
> short period and, whilst most don't notice, cowdancer does. Why is this
> not a dpkg (or apt) bug? It should be possible to do that sequence in a
> way that preserves the system as working, no?

Well, dpkg ensures atomic upgrades, but only on the package level.
Unpacking all packages to be installed simultaneously is currently not
supported (and might not be feasible due to Conflicts+Replaces).

> But yes, there is the separate _minor_ issue that cowdancer is linking
> against more than it needs to.

That would normally a minor issue, but putting it into LD_PRELOAD makes
it a major one, as seen in this bug report.

> I don't know why I made it pull in all
> of ncurses, maybe an earlier version of the patch needed it and it no
> longer does, but it's been too long to have any hope of remembering
> what past me was thinking.

Pretty much every terminal supports colors these days, so maybe it would
be best to use them by default if stdout is a tty.  AFAIK this is what
everybody else does.

Cheers,
       Sven



Merged 970555 970594 970688 970912 971674 Request was from Sven Joachim <svenjoac@gmx.de> to 971674-submit@bugs.debian.org. (Sun, 04 Oct 2020 19:39:03 GMT) (full text, mbox, link).


Message sent on to Bas Couwenberg <sebastic@xs4all.nl>:
Bug#970555. (Thu, 08 Oct 2020 21:24:05 GMT) (full text, mbox, link).


Message #65 received at 970555-submitter@bugs.debian.org (full text, mbox, reply):

From: Jessica Clarke <noreply@salsa.debian.org>
To: 970555-submitter@bugs.debian.org
Subject: Bug#970555 marked as pending in cowdancer
Date: Thu, 08 Oct 2020 21:21:38 +0000
Control: tag -1 pending

Hello,

Bug #970555 in cowdancer reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/pbuilder-team/cowdancer/-/commit/e60e69623f096a9121ce9cebb6e53421e39ed3ed

------------------------------------------------------------------------
Check isatty(3) rather than rely on ncurses/tinfo

Using libraries other than libc can cause issues due to LD_PRELOAD'ing
during dpkg operations that temporarily break cowdancer, since dpkg is
unaware that cowdancer is in use at the time (and dpkg transactions are
sadly not atomic but instead do cause brief system-wide breakage).
Checking isatty(3) and filtering out a few common TERM names should be
good enough for our purposes and much more robust.

Closes: #970555
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/970555



Added tag(s) pending. Request was from Jessica Clarke <noreply@salsa.debian.org> to 970555-submitter@bugs.debian.org. (Thu, 08 Oct 2020 21:24:05 GMT) (full text, mbox, link).


Reply sent to Jessica Clarke <jrtc27@debian.org>:
You have taken responsibility. (Thu, 08 Oct 2020 21:51:05 GMT) (full text, mbox, link).


Notification sent to Bas Couwenberg <sebastic@xs4all.nl>:
Bug acknowledged by developer. (Thu, 08 Oct 2020 21:51:05 GMT) (full text, mbox, link).


Message #72 received at 970555-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 970555-close@bugs.debian.org
Subject: Bug#970555: fixed in cowdancer 0.89
Date: Thu, 08 Oct 2020 21:48:33 +0000
Source: cowdancer
Source-Version: 0.89
Done: Jessica Clarke <jrtc27@debian.org>

We believe that the bug you reported is fixed in the latest version of
cowdancer, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 970555@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jessica Clarke <jrtc27@debian.org> (supplier of updated cowdancer package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 08 Oct 2020 22:12:49 +0100
Source: cowdancer
Architecture: source
Version: 0.89
Distribution: unstable
Urgency: medium
Maintainer: Debian pbuilder maintenance team <team+pbuilder@tracker.debian.org>
Changed-By: Jessica Clarke <jrtc27@debian.org>
Closes: 932465 970555
Changes:
 cowdancer (0.89) unstable; urgency=medium
 .
   [ Jessica Clarke ]
   * parameter.c: Sync options with pbuilder 0.230.4.
     This adds support for --use-cgroup and --no-source-only-changes.
     Closes: #932465
   * Update my name.
 .
   [ Debian Janitor ]
   * Use correct machine-readable copyright file URI.
   * Update standards version to 4.5.0, no changes needed.
 .
   [ Thorsten Glaser ]
   * Check isatty(3) rather than rely on ncurses/tinfo (Closes: #970555)
   * Revert "Don't deadlock initialization"
 .
   [ Joao Eriberto Mota Filho ]
   * Update distributions and allow options without '--'
Checksums-Sha1:
 8d3f595ec56514e28469eb04d25fa0989e5cfd31 1786 cowdancer_0.89.dsc
 a85a406566f20a9d500dea462a5669600b7aed3f 71932 cowdancer_0.89.tar.xz
 b85ba1a61d7162cf647c017451f960d51635d9c0 7297 cowdancer_0.89_amd64.buildinfo
Checksums-Sha256:
 663d0e7cf8ef56a2ecb0e172c5c6bd70d8efabadb8494acd3fd2ea93d833cdd3 1786 cowdancer_0.89.dsc
 9c55432561b67e493bd48eba131ed871cd6c30e64537496af48cc2ae47bd5be3 71932 cowdancer_0.89.tar.xz
 a74ced689b2538e31279b080fc3668b54cd4f5ad44d64ef0f05b17d4cbc8555c 7297 cowdancer_0.89_amd64.buildinfo
Files:
 b3a0a031f98145fa2111ff1681856c84 1786 utils optional cowdancer_0.89.dsc
 8bc1a7a480da9a6f4b3e83957bf255fa 71932 utils optional cowdancer_0.89.tar.xz
 494ea6ccae20790f9432d8faff726656 7297 utils optional cowdancer_0.89_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEj1g0K+q+HvQ3lVH7sZN3DBhqHH0FAl9/ha0ACgkQsZN3DBhq
HH0FLw/+NrUFTPAAeOfDPbGnUPEnerAN8iD5/HTccC0G6NtJLb/jarLlulKGWMpD
QFosOSRqZsUY8XY/2tAAX6mhEpfblOtJQSRgc/Ku6yf7daoMPsRGM6dZ1CEuAb4t
mt5xc7AMDluxAKxV/upWnEcYBclVhShTd8ihCM+CZlUfqQ9oauxsLEyDxVOxe7Kv
SzMC8WBxQe5mO2LBu3FN+gUC61E1ekyY+2PG89UqfsDoUJf7tFLiv2vY46rTRItt
93NWzqG8a/3R/7X4UqAjgGQ18ZEHpwEF8Dz2RQxbio70xZtcMJEci3M6kiXd9CZG
ft1ODeUwf6x2k6KwCAkIgEIm0IvF40oVdWtSPUndLnqLaz6a2gKXkjP7mFNYCYJT
/uKqby6wNI56EhRYv+GAU9Yf2vPoXoKRz1fWwf3Vcd9zi7vfANqlgulTs9bs0ark
v9Esj/H/VnaoK9Fs6J14UEhugBsdhhOKvycPg2Tw5UJJw6m4pR+O0OYVEY4DhsR8
yrJtVQIaqerKku7fmf2Hqy0NqFaJGuxjCw8Zbr4CLRwTyQLXJd4/jd90U5cSqsVw
EYm2Jlf6zimcay2JMwc/o09wMQ1qe+0Gr7uWlFlLzCS12J41sIoCXIACzgLhfFxW
xthf1Mv9LDI+T33VJzbyiP/7L530Y6NrxsXgqhI/viuYXvNJWLA=
=ExCB
-----END PGP SIGNATURE-----




Reply sent to Jessica Clarke <jrtc27@debian.org>:
You have taken responsibility. (Thu, 08 Oct 2020 21:51:06 GMT) (full text, mbox, link).


Notification sent to Hideki Yamane <henrich@debian.org>:
Bug acknowledged by developer. (Thu, 08 Oct 2020 21:51:06 GMT) (full text, mbox, link).


Reply sent to Jessica Clarke <jrtc27@debian.org>:
You have taken responsibility. (Thu, 08 Oct 2020 21:51:06 GMT) (full text, mbox, link).


Notification sent to Rene Engelhard <rene@debian.org>:
Bug acknowledged by developer. (Thu, 08 Oct 2020 21:51:07 GMT) (full text, mbox, link).


Reply sent to Jessica Clarke <jrtc27@debian.org>:
You have taken responsibility. (Thu, 08 Oct 2020 21:51:07 GMT) (full text, mbox, link).


Notification sent to Michael Biebl <biebl@debian.org>:
Bug acknowledged by developer. (Thu, 08 Oct 2020 21:51:07 GMT) (full text, mbox, link).


Reply sent to Jessica Clarke <jrtc27@debian.org>:
You have taken responsibility. (Thu, 08 Oct 2020 21:51:08 GMT) (full text, mbox, link).


Notification sent to Thorsten Glaser <t.glaser@tarent.de>:
Bug acknowledged by developer. (Thu, 08 Oct 2020 21:51:08 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 11 Nov 2020 07:24:47 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 12 16:30:43 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.