diff mbox

gnu: Simplify dtc package definition.

Message ID 20160908213214.3e61c266@scratchpost.org
State New
Headers show

Commit Message

Danny Milosavljevic Sept. 8, 2016, 7:32 p.m. UTC
Hi,

I think that's because I set it up to use attachments (Luda asked me to).

The E-Mail, raw as git send-email sent it, looks like this:

From 7e7c30119aebab0ee48c4e55d8c7471f0fde487c Mon Sep 17 00:00:00 2001
From: Danny Milosavljevic <dannym@scratchpost.org>
Date: Wed, 7 Sep 2016 09:44:55 +0200
Subject: [PATCH] gnu: Simplify dtc package definition.
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------2.9.1"

This is a multi-part message in MIME format.
--------------2.9.1
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
 gnu/packages/u-boot.scm | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)


--------------2.9.1
Content-Type: text/x-patch; name="0001-gnu-Simplify-dtc-package-definition.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="0001-gnu-Simplify-dtc-package-definition.patch"


--------------2.9.1--

Note the MIME header.

I tried

$ git am ~/src/outgoing-dtc/0001-gnu-Simplify-dtc-package-definition.patch
Applying: gnu: Simplify dtc package definition.

So it seems to work.

Comments

David Craven Sept. 8, 2016, 8:16 p.m. UTC | #1
Hi Danny,

So when there's an attachment I git am the attachment. Don't know if
that's how it's supposed to be done. The attachment starts at
--------------2.9.1, so it doesn't include the commit information.

Thanks for looking into this, hopefully we can move to gitlab soon =P
David
diff mbox

Patch

diff --git a/gnu/packages/u-boot.scm b/gnu/packages/u-boot.scm
index e9a4b90..7949d8a 100644
--- a/gnu/packages/u-boot.scm
+++ b/gnu/packages/u-boot.scm
@@ -47,15 +47,11 @@ 
        ("flex" ,flex)))
     (arguments
      `(#:make-flags
-       (list "CC=gcc" (string-append "PREFIX=" (assoc-ref %outputs "out")))
+       (list "CC=gcc"
+             (string-append "PREFIX=" (assoc-ref %outputs "out"))
+             "INSTALL=install")
        #:phases
        (modify-phases %standard-phases
-         (add-after 'unpack 'patch-paths
-           (lambda _
-             (substitute* "Makefile"
-               (("/usr/bin/install") "install"))
-             (substitute* "Makefile"
-               (("PREFIX = \\$\\(HOME\\)") ""))))
          (delete 'configure))))
     (home-page "https://www.devicetree.org")
     (synopsis "Compiles device tree source files")