mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: musl@lists.openwall.com
Subject: Re: Revisiting 64-bit time_t
Date: Tue, 2 Jul 2019 11:35:25 +0200	[thread overview]
Message-ID: <CAK8P3a0zW9gU+ZZtyS29hesoQTO4DLzVAwK7uVnE6To2_WydGw@mail.gmail.com> (raw)
In-Reply-To: <20190701160744.GT1506@brightrain.aerifal.cx>

On Mon, Jul 1, 2019 at 6:08 PM Rich Felker <dalias@libc.org> wrote:
>
> On Mon, Jul 01, 2019 at 04:41:51PM +0200, Arnd Bergmann wrote:
> > c) Keep backwards compatibility in libraries, but convert the
> >    distro one package at a time.
> >    Advantage: If done right, users can upgrade over rolling
> >    releases without ABIs breaking
> >    Disadvantage: very hard to get right, and much more work
> >    than the other two.
>
> I'm confused how "convert the distro one package at a time" comes up.
> The only packages potentially affected are ones that provide or
> consume a non-libc API with time_t or derived types as inputs or
> outputs. Such providers and consumers would have to be updated in sync
> with each other, but otherwise there should be no constraints about
> updating packages. I think this could be implemented with distros'
> standard "depends on" and "conflicts with" mechanics.

The difference to b) would be that one allows single package updates
at all, within the constraints of the distro dependency system.
Actually figuring the dependencies and documenting them is most of
the work here.

> > unrelated reasons. Debian will probably want c), but might also
> > be convinced to replace the existing 32-bit ports with musl based
> > ones to avoid the effort and reduce RAM usage at the same
> > time ;-)
>
> Replacing libc is like the polar opposite of option (c) here... :-)

Correct, this would basically put debian-i386 and debian-armhf into
category a), and create a new debian-musl-386 and debian-musl-armhf
that starts out with time64, and have these maintained in parallel
for as long as there is demand for both.

One reason why this may be interesting is that it reduces the
impact on the 64-bit Debian ports, which don't have to go through
the pain of a rebuild with new package versions and dependencies
when the actual ABI never changes for them.

It depends a bit on what approach Debian chooses for upgrading
some of the key packages, but if they determine that e.g. libcurl,
libssl, libgtk, libpng and libreadline would all need a new soname
for their library because of unfixable ABI incompatibility, *and* they
want to keep the soname the same between 32 and 64 bit at all cost,
then a new incompatible distro port can be the easier way out.
(it's clearly too early to know what it will take to rebuild 32-bit
debian fro time64, but we an think about the possible alternatives).

Side question for this: do you have an estimate of the potential
RAM saving when comparing glibc with musl builds of the same
software?

           Arnd


  reply	other threads:[~2019-07-02  9:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-28 15:06 Rich Felker
2019-06-29  8:36 ` A. Wilcox
2019-06-29 16:21   ` Rich Felker
2019-07-01 14:41     ` Arnd Bergmann
2019-07-01 14:50       ` A. Wilcox
2019-07-01 15:41         ` Rich Felker
2019-07-01 15:55           ` A. Wilcox
2019-07-01 15:57       ` Florian Weimer
2019-07-01 16:07       ` Rich Felker
2019-07-02  9:35         ` Arnd Bergmann [this message]
2019-07-02 21:09           ` Rich Felker
2019-06-29 16:35 ` Rich Felker
2019-07-01 14:42 ` Arnd Bergmann
2019-07-01 15:31   ` Rich Felker
2019-07-01 21:12     ` Arnd Bergmann
2019-07-01 22:07       ` Rich Felker
2019-07-02  8:28         ` Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAK8P3a0zW9gU+ZZtyS29hesoQTO4DLzVAwK7uVnE6To2_WydGw@mail.gmail.com \
    --to=arnd@arndb.de \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).