Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport Erlang time64 patch #715

Merged
merged 1 commit into from
Jul 31, 2024
Merged

Conversation

tianon
Copy link
Member

@tianon tianon commented Jul 30, 2024

This is currently causing build failures on 32bit architectures for 4.0 (where we updated to Ubuntu 24.04):

/usr/include/features-time64.h:26:5: error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"

This is the same patch applied by Debian and Ubuntu to fix the same problem (and applied there in both Erlang 25 and 26, as we have here, so I've applied it across both for simplicity/consistency).

See also:

This is currently causing build failures on 32bit architectures for 4.0 (where we updated to Ubuntu 24.04):

    /usr/include/features-time64.h:26:5: error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"

This is the same patch applied by Debian and Ubuntu to fix the same problem (and applied there in both Erlang 25 and 26, as we have here, so I've applied it across both for simplicity/consistency).
@lukebakken lukebakken self-assigned this Jul 30, 2024
Copy link
Collaborator

@lukebakken lukebakken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@michaelklishin
Copy link
Collaborator

That's extremely generous of the maintainers of this image to care even one bit about 32-bit environments.

@tianon
Copy link
Member Author

tianon commented Jul 30, 2024

A perfectly reasonable alternative would be to amend our generate-stackbrew-library.sh script to simply exclude all 32bit architectures, but this fix seems relatively unobtrusive, and it's not like we really prioritized even looking into it (it's been failing since we merged 4.x, but other versions will be failing once they update to Ubuntu 24.04). 😄

@michaelklishin
Copy link
Collaborator

It's your call but Team RabbitMQ has stopped caring about 32-bit Erlang runtime support years ago.

@tianon
Copy link
Member Author

tianon commented Jul 30, 2024

Definitely worth considering -- IMO, it'd make sense to use 4.0 as a turning point if we want to do that. 🤔

Concretely, this is i386, arm32v6, and arm32v7. Raspberry Pi users tend to be very vocal, so I have some concern about that, but if we do it only for 4.0+ I think we can communicate that effectively.

@tianon
Copy link
Member Author

tianon commented Jul 31, 2024

@yosifkit @lukebakken thoughts? If we want to update the older versions to Ubuntu 24.04 as well we'll either need this patch (if we remove 32bit arches from only 4.0+) or to go for a broader breaking change (removing 32bit arches from all versions).

I'm happy to make the changes, but I don't think I should be the sole decision maker -- I don't mind keeping them and deciding to remove them only if/when the next build issue requires more than one simple backported patch, but I also don't feel strongly about keeping them around if y'all think we should follow suit and remove them here too. 👍

@michaelklishin
Copy link
Collaborator

If supporting 32-bit is primarily for Raspberry Pi, I guess it'd make sense to keep it. In fact, that would explain some of the questions about 32-bit Debian packages we get from time to time, and indeed those folks are usually much more vocal than "average."

@yosifkit yosifkit merged commit 4fb9e46 into docker-library:master Jul 31, 2024
11 checks passed
@yosifkit yosifkit deleted the time64 branch July 31, 2024 16:27
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jul 31, 2024
Changes:

- docker-library/rabbitmq@4fb9e46: Merge pull request docker-library/rabbitmq#715 from infosiftr/time64
- docker-library/rabbitmq@b957ccb: Backport Erlang time64 patch
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jul 31, 2024
Changes:

- docker-library/rabbitmq@bcdd23c: Merge pull request docker-library/rabbitmq#716 from infosiftr/more-github
- docker-library/rabbitmq@fc362c9: Upgrade to git ls-remote for openssl releases
- docker-library/rabbitmq@4fb9e46: Merge pull request docker-library/rabbitmq#715 from infosiftr/time64
- docker-library/rabbitmq@b957ccb: Backport Erlang time64 patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants