diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index f26145cb0b..747ec7c594 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -816,6 +816,33 @@ with the Linux kernel.") (license lgpl2.0+) (home-page "https://www.gnu.org/software/libc/"))) +(define-public glibc-sans-python + (package + (inherit glibc) + (name "glibc-with-guile-python") + (arguments + (substitute-keyword-arguments (package-arguments glibc) + ((#:phases phases) + `(modify-phases ,phases + (add-after 'unpack 'patch-configure + (lambda _ + ;; Relax Python version check. + (substitute* "configure" + (("\\$critic_missing python") "") + (("\\$PYTHON_PROG -B") "$PYTHON_PROG")) + #t)))))) + (native-inputs `(("texinfo" ,texinfo) + ("perl" ,perl) + ("bison" ,bison) + ("gettext" ,gettext-minimal) + ("python" ,(@ (gnu packages guile-xyz) python-on-guile)) + ,@(if (hurd-target?) + `(("mig" ,mig) + ("perl" ,perl)) + '()))))) + + + ;; Below are old libc versions, which we use mostly to build locale data in ;; the old format (which the new libc cannot cope with.)