All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Alexander Kanavin <alex.kanavin@gmail.com>
Cc: Ola x Nilsson <ola.x.nilsson@axis.com>,
	Niko Mauno <niko.mauno@vaisala.com>,
	openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [RFC PATCH 2/3] kbd: Disable 64 bit time with 32 bit glibc
Date: Wed, 9 Nov 2022 16:42:01 +0100	[thread overview]
Message-ID: <Y2vKSQoHb+7DMHcz@mail.local> (raw)
In-Reply-To: <CANNYZj8wUXkx2c9zvVEds+FvrA0hGvHyDACsjLRy4zzr28ne-g@mail.gmail.com>

On 08/11/2022 19:38:06+0100, Alexander Kanavin wrote:
> Thanks. But: face, meet palm.
> 
> "If _TIME_BITS is undefined, the bit size of time_t is architecture
> dependent. Currently it defaults to 64 bits on most architectures.
> Although it defaults to 32 bits on some traditional architectures
> (i686, ARM), this is planned to change and applications should not
> rely on this. "
> 
> No one needs to know or care about this, they should just set it to 64
> for all targets, break all the badly written userspace and move on.
> 

Note that this may build but not run properly as there is no way to know
whether userspace stores a time_t in an int at some point.

> Anyway, rather than add exceptions all over the core layers, I'd
> suggest that you set it to 64, 'bitbake world' with all of meta-oe,
> then send fixes upstream for everything that breaks. Rinse, repeat.
> Then when the 'planned to change' actually happens we should be ready
> for it.
> 

So we may not be ready unless the rinse/repeat also includes runtime
testing.

On Monday, I was suggesting to RP that we should probably have a poky
distro with _TIME_BITS set to 64 and run that on the autobuilders.
I don't think we can just add the flag and be done and this is a flag
day and may break existing users.
I'm usually getting customers to define their own distro and stop
depending on poky but it is not the case of everyone.

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


  parent reply	other threads:[~2022-11-09 15:42 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-08  0:08 [RFC PATCH 1/3] Try to ensure 64 bit time on 32 bit glibcful hosts Niko Mauno
2022-11-08  0:08 ` [RFC PATCH 2/3] kbd: Disable 64 bit time with 32 bit glibc Niko Mauno
2022-11-08  9:14   ` [OE-core] " Alexander Kanavin
2022-11-08 11:48     ` Niko Mauno
2022-11-08 11:50       ` Alexander Kanavin
2022-11-08 12:04         ` Niko Mauno
2022-11-08 12:18           ` Alexander Kanavin
     [not found]           ` <17259B3874804FB3.24550@lists.openembedded.org>
2022-11-08 12:57             ` Alexander Kanavin
2022-11-08 14:56               ` Ola x Nilsson
2022-11-08 15:00                 ` Ola x Nilsson
     [not found]                 ` <1725A47F2FC9966F.2170@lists.openembedded.org>
2022-11-08 17:56                   ` Ola x Nilsson
2022-11-08 18:38                     ` Alexander Kanavin
2022-11-09  7:44                       ` Ola x Nilsson
2022-11-09 15:42                       ` Alexandre Belloni [this message]
2022-11-08 16:40     ` Khem Raj
2022-11-08 16:45       ` Alexander Kanavin
2022-11-08  0:08 ` [RFC PATCH 3/3] pulseaudio: " Niko Mauno
2022-11-08 10:17   ` [OE-core] " Peter Kjellerstedt
2022-11-08  3:30 ` [OE-core] [RFC PATCH 1/3] Try to ensure 64 bit time on 32 bit glibcful hosts Khem Raj
2022-11-08 10:51 ` Ola x Nilsson
2022-11-08 16:38   ` Khem Raj
2022-11-09  6:33   ` Niko Mauno
2022-11-09 15:47   ` Alexandre Belloni

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=Y2vKSQoHb+7DMHcz@mail.local \
    --to=alexandre.belloni@bootlin.com \
    --cc=alex.kanavin@gmail.com \
    --cc=niko.mauno@vaisala.com \
    --cc=ola.x.nilsson@axis.com \
    --cc=openembedded-core@lists.openembedded.org \
    /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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.