all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marius Bakke <mbakke@fastmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: Re: 'core-updates' spring 2018
Date: Tue, 27 Mar 2018 19:43:06 +0200	[thread overview]
Message-ID: <87po3ph0t1.fsf@fastmail.com> (raw)
In-Reply-To: <87a7uuhejf.fsf@elephly.net>

[-- Attachment #1: Type: text/plain, Size: 2456 bytes --]

Ricardo Wurmus <rekado@elephly.net> writes:

> Hi Marius,
>
>> 'core-updates' has seen a lot of changes recently.  Some of the goodies
>> include […] glibc 2.27 […]
>>
>> Are there other things that should go in?
>
> I would really like to see a patch applied to glibc that ensures that
> the “prlimit64” syscall is not used when running on the RHEL 6 kernel
> (2.6.32).  The lack of this syscall on that kernel means that getrlimits
> fails, which makes it impossible to start the JVM.
>
> This problem appeared with the upgrade to glibc 2.26 already, and ever
> since I’ve been trying to minimize the damage for RHEL 6 systems where
> Guix is used as a package manager (such as the MDC).
>
> A work-around for glibc 2.27 that makes things work fine with the RHEL 6
> kernel would be very welcome!  I’ve started a branch “rhel6” where the
> default glibc has been bumped back to version 2.25 but I really don’t
> want it to be a long-lived branch; one of the reasons is that building
> all packages for this old glibc version (even just on x86_64) puts our
> build farms under extra stress that I would like to avoid.

Are you sure prlimit64 is the only syscall that needs to be adjusted?  A
quick grep through through the commit log reveals some other interfaces
that may need to be restored.

Here is the commit that removes the fallback code for missing prlimit64:
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=695d7d138eda449678a1650a8b8b58181033353f

And here are similar commits I found by grepping the log for '3.2':
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=e92030239abb4038d4f915d47021d6c037239309
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1721145f0341d70a6d7807b172c5eb400b508fc0
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=9a45f54310573c190fa270e1f80d8307750305e9
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=e8f1225ca4d4afa4043c5267ae6dbe12268e2637

Since it's fairly late in the core-updates cycle, I think it would be
better to try restoring the prlimit64 fallback on the "rhel6" branch and
then revisit this during the next core-updates.

This got me thinking, perhaps it's possible to run Guix through a thin
hypervisor layer that uses the host virtualization facilities, or a Qemu
built against glibc 2.25.  This is similar to how "Docker" runs on
macOS, maybe it could be used for Guix in "hostile environments" too?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  parent reply	other threads:[~2018-03-27 17:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-26 10:29 'core-updates' spring 2018 Marius Bakke
2018-03-26 14:09 ` Ludovic Courtès
2018-03-26 18:34 ` Ricardo Wurmus
2018-03-27 12:03   ` Gábor Boskovits
2018-03-28 19:46     ` Ricardo Wurmus
2018-03-27 17:43   ` Marius Bakke [this message]
2018-03-28 13:32     ` Ricardo Wurmus
2018-03-29 11:29       ` Ludovic Courtès
2018-03-30  9:26       ` glibc fallback code when ‘prlimit64’ is missing Ludovic Courtès
2018-04-01 10:37         ` Ludovic Courtès
2018-03-27 20:28 ` 'core-updates' spring 2018 Mark H Weaver

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=87po3ph0t1.fsf@fastmail.com \
    --to=mbakke@fastmail.com \
    --cc=guix-devel@gnu.org \
    --cc=rekado@elephly.net \
    /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 external index

	https://git.savannah.gnu.org/cgit/guix.git

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.