From: Manolis Ragkousis <manolis837@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Guix-devel@gnu.org
Subject: Re: [PATCH] gnu: base: Add Hurd glibc headers.
Date: Fri, 25 Apr 2014 18:06:55 +0000 [thread overview]
Message-ID: <CAFtzXzOZA1_s+cBkMW3SBxbDMSdtMz6fewZ=Hsa1GWzSV6GRWw@mail.gmail.com> (raw)
In-Reply-To: <87bnvtkns5.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 165 bytes --]
> It may be enough to create an empty gnu/stubs.h. Could you try that
> instead?
Updated the patch with creating an empty gnu/stubs.h file. It seems to
be enough.
[-- Attachment #2: gnu_add_hurd_glibc_headers.patch --]
[-- Type: text/x-patch, Size: 1571 bytes --]
From de09416868b7dab1d44313bf2b9ab201efe16e62 Mon Sep 17 00:00:00 2001
From: Manolis Ragkousis <manolis837@gmail.com>
Date: Fri, 25 Apr 2014 20:56:23 +0000
Subject: [PATCH] gnu: base: Add Hurd glibc headers.
* gnu/packages/base.scm (glibc/hurd-headers): New variable.
---
gnu/packages/base.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 09cbe89..142e2f8 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -508,6 +508,29 @@ with the Linux kernel.")
(license lgpl2.0+)
(home-page "http://www.gnu.org/software/libc/")))
+(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)
+ ((#: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.2
next prev parent reply other threads:[~2014-04-25 18:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-22 20:03 [PATCH] gnu: base: Add Hurd glibc headers Manolis Ragkousis
2014-04-22 22:22 ` Ludovic Courtès
2014-04-25 18:06 ` Manolis Ragkousis [this message]
2014-04-26 8:54 ` Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFtzXzOZA1_s+cBkMW3SBxbDMSdtMz6fewZ=Hsa1GWzSV6GRWw@mail.gmail.com' \
--to=manolis837@gmail.com \
--cc=Guix-devel@gnu.org \
--cc=ludo@gnu.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).