all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] gnu: base: Add Glibc-Hurd Headers.
@ 2014-06-02 21:16 Manolis Ragkousis
  2014-08-29 13:48 ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Manolis Ragkousis @ 2014-06-02 21:16 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Guix-devel

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



[-- Attachment #2: 0001-gnu-base-Add-Glibc-Hurd-Headers.patch --]
[-- Type: text/x-patch, Size: 1934 bytes --]

From 1aa976c666db720008d3e77a7bccdfbae6b01962 Mon Sep 17 00:00:00 2001
From: Manolis Ragkousis <manolis837@gmail.com>
Date: Tue, 3 Jun 2014 00:11:47 +0000
Subject: [PATCH] gnu: base: Add Glibc-Hurd Headers.

* gnu/packages/base.scm (glibc/hurd-headers): New variable.
---
 gnu/packages/base.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 8faf797..ef4c4ae 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -646,6 +646,36 @@ with the Linux kernel.")
                       (zero? (system* "make" "localedata/install-locales")))
                     %standard-phases)))))))
 
+(define-public glibc/hurd-headers
+  (package (inherit glibc/hurd)
+    (name "glibc-hurd-headers")
+    (outputs `("out"))
+    (arguments
+     `(#:tests? #f
+       ,@(substitute-keyword-arguments (package-arguments glibc/hurd)
+           ((#:configure-flags _)
+            `(list "--enable-add-ons"
+                   "--host=i686-pc-gnu"
+                   ;; Installs NIS and RPC related headers that
+                   ;; are not installed by default
+                   "--enable-obsolete-rpc"))
+           ((#:phases _)
+            '(alist-replace
+              'install
+              (lambda* (#:key outputs #:allow-other-keys)
+                (let ((out (assoc-ref outputs "out")))
+                  (zero? (system* "make" "install-headers"))
+                  (close-port (open-output-file 
+                               (string-append out "/include/gnu/stubs.h")))))
+              (alist-delete
+               'build
+               (alist-cons-before
+                'configure 'pre-configure
+                (lambda _
+                  (substitute* "configure"
+                    (("/bin/pwd") "pwd")))
+                %standard-phases)))))))))
+
 (define-public tzdata
   (package
     (name "tzdata")
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-09-28  9:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-02 21:16 [PATCH] gnu: base: Add Glibc-Hurd Headers Manolis Ragkousis
2014-08-29 13:48 ` Ludovic Courtès
2014-09-24 13:01   ` Manolis Ragkousis
2014-09-27  9:31     ` Ludovic Courtès
2014-09-27 13:50       ` Manolis Ragkousis
2014-09-27 17:30         ` Manolis Ragkousis
2014-09-28  9:51           ` Ludovic Courtès

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.