unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Manolis Ragkousis <manolis837@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>, Guix-devel@gnu.org
Subject: Git fetch method not working right
Date: Mon, 7 Apr 2014 22:57:29 +0000	[thread overview]
Message-ID: <CAFtzXzPdeKn9OnPkCFqEqjSv6-vRQUe7g48Ua7Tw4oLL19_bhQ@mail.gmail.com> (raw)

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

While I pass to it a specific commit, it downloads a different
(older?) version. I have prepared a testcase with the libpthread,
which is the one that this happens. It will download the files and
then the building will fail, so just compare the file
sysdeps/mach/hurd/pt-sysdep.h with the same file from the commit
e2ae1c43d168fc6f8b34332cbb0656e5d107cbf3 in master. They are
different.

Build it with "./pre-inst-env guix build libpthread -K"

[-- Attachment #2: libpthread_test_case.patch --]
[-- Type: text/x-patch, Size: 1795 bytes --]

From e67dcb197cdff59450aa05de6dcdc3f63e22f46e Mon Sep 17 00:00:00 2001
From: Manolis Ragkousis <manolis837@gmail.com>
Date: Tue, 8 Apr 2014 01:41:32 +0000
Subject: [PATCH] Testcase

---
 gnu/packages/hurd.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index f1e7dbc..b23ace3 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -128,4 +128,37 @@ communication.")
      "This package provides C headers of the GNU Hurd, used to build the GNU C
 Library and other user programs.")
     (license gpl2+)))
+
+;;This should download the HEAD of the master branch but it's not
+;;Compare the file sysdeps/mach/hurd/pt-sysdep.h with the same file from 
+;;the commit e2ae1c43d168fc6f8b34332cbb0656e5d107cbf3 in master. They are different
+
+(define-public libpthread 
+  (package
+    (name "libpthread")
+    (version "0.3")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "git://git.sv.gnu.org/hurd/libpthread")
+                    (commit "e2ae1c43d168fc6f8b34332cbb0656e5d107cbf3")))
+              (sha256
+               (base32 
+                "0bb8m0pk7b53sww4ahjds77bvqy0alz54g3aylzwncfca52gacqp"))
+              (file-name "libpthread" )))
+    (build-system gnu-build-system)
+    (arguments
+     '(
+       #:phases
+       (alist-replace
+        'unpack
+        (lambda* (#:key inputs source #:allow-other-keys)                                        
+          (mkdir "source")
+          (chdir "source")
+          (copy-recursively source ".")
+           #t)
+        %standard-phases)))
+    (home-page "Testing")
+    (synopsis "Testing")
+    (description "Testing")
+    (license gpl2+)))
-- 
1.9.0


             reply	other threads:[~2014-04-07 22:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-07 22:57 Manolis Ragkousis [this message]
2014-04-08 11:57 ` Git fetch method not working right Ludovic Courtès
2014-04-08 13:17   ` Manolis Ragkousis
2014-04-08 13:23     ` 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=CAFtzXzPdeKn9OnPkCFqEqjSv6-vRQUe7g48Ua7Tw4oLL19_bhQ@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).