On 2024-04-01 16:23 +0200, Alejandro Colomar wrote:

> Package: glibc-doc
> Version: 2.38-6
> Severity: serious
> Justification: Policy 7.4
> X-Debbugs-Cc: a...@kernel.org, mar...@debian.org
>
> Dear Maintainer,
>
> The Linux man-pages project has recently added the pthread_*(3) manual
> pages that were provided by glibc-doc.  The first upstream version of
> the Linux man-pages that includes these pages is man-pages-6.06.  Here's
> what was added:
>
>       $ git diff --stat b06cd070f..128a3ae35
>        man3/pthread_cond_init.3            | 264 ++++++++++++++++++++
>        man3/pthread_condattr_init.3        |  48 ++++
>        man3/pthread_key_create.3           | 178 +++++++++++++
>        man3/pthread_mutex_init.3           | 241 ++++++++++++++++++
>        man3/pthread_mutexattr_setkind_np.3 |  52 ++++
>        man3/pthread_once.3                 |  44 ++++
>        6 files changed, 827 insertions(+)
>
> Debian's manpages-dev_6.7-1_all.deb has been the first package since
> that happened, and I've noticed that dpkg(1) (via apt-get(8)) refuses to
> upgrade manpages-dev due to a conflict with glibc-doc.

>       $ sudo apt-get upgrade -V;
>       [...]
>       Do you want to continue? [Y/n] y
>       Reading changelogs... Done
>       (Reading database ... 404853 files and directories currently installed.)
>       Preparing to unpack .../manpages-dev_6.7-1_all.deb ...
>       Unpacking manpages-dev (6.7-1) over (6.05.01-1) ...
>       dpkg: error processing archive 
> /var/cache/apt/archives/manpages-dev_6.7-1_all.deb (--unpack):
>        trying to overwrite '/usr/share/man/man3/pthread_cond_init.3.gz', 
> which is also in package glibc-doc 2.38-6
>       Errors were encountered while processing:
>        /var/cache/apt/archives/manpages-dev_6.7-1_all.deb
>       needrestart is being skipped since dpkg has failed
>       E: Sub-process /usr/bin/dpkg returned an error code (1)

Obviously the manpages-dev package should not have shipped these files
as long as there are in glibc-doc; this is tracked in #1068166.

> Please, remove from glibc-doc those manual pages that conflict with
> manpages-dev.

Considering that the manpages in glibc-doc are not included upstream and
created via a Debian patch, that makes a lot of sense.  I was not aware
of that fact.

> Marcos, you'll also need to specify a breaks with glibc-doc versions
> up to (and including) 6.38-6 in the next revision of manpages-dev, and
> drop 6.7-1.

Adding a Breaks on glibc-doc (<= 2.38-6) to manpages-dev is no good,
because that version is only in experimental and will remain there for
several weeks if not months.  I think manpages-dev should drop these
files for now and re-include either when glibc 2.38 is in unstable or
when it is in testing.

There is also the problem that some derivatives (most notably Ubuntu)
are already shipping glibc 2.39 and will have to adjust Breaks/Replaces
versions in manpages-dev accordingly.  Thoughts?

Cheers,
       Sven

Reply via email to