* [PATCH] gnu: Simplify dtc package definition.
@ 2016-09-07 7:46 Danny Milosavljevic
2016-09-07 8:15 ` David Craven
0 siblings, 1 reply; 10+ messages in thread
From: Danny Milosavljevic @ 2016-09-07 7:46 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 99 bytes --]
---
gnu/packages/u-boot.scm | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Simplify-dtc-package-definition.patch --]
[-- Type: text/x-patch; name="0001-gnu-Simplify-dtc-package-definition.patch", Size: 887 bytes --]
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")
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] gnu: Simplify dtc package definition.
2016-09-07 7:46 [PATCH] gnu: Simplify dtc package definition Danny Milosavljevic
@ 2016-09-07 8:15 ` David Craven
2016-09-07 9:01 ` Danny Milosavljevic
0 siblings, 1 reply; 10+ messages in thread
From: David Craven @ 2016-09-07 8:15 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
LGTM. Are these changes part of the debian patchset?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] gnu: Simplify dtc package definition.
2016-09-07 8:15 ` David Craven
@ 2016-09-07 9:01 ` Danny Milosavljevic
2016-09-08 15:09 ` David Craven
0 siblings, 1 reply; 10+ messages in thread
From: Danny Milosavljevic @ 2016-09-07 9:01 UTC (permalink / raw)
To: David Craven; +Cc: guix-devel
Hi David,
On Wed, 7 Sep 2016 10:15:29 +0200
David Craven <david@craven.ch> wrote:
> LGTM. Are these changes part of the debian patchset?
No, I found out that GNU make allows you to override variables used inside Makefiles from make's command line.
To test:
write a Makefile containing:
#-----
PREFIX = /foo
all:
echo $(PREFIX)
#-----
Then try
$ make PREFIX=/bar
.
It will override the variable.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] gnu: Simplify dtc package definition.
2016-09-07 9:01 ` Danny Milosavljevic
@ 2016-09-08 15:09 ` David Craven
2016-09-08 17:55 ` Danny Milosavljevic
0 siblings, 1 reply; 10+ messages in thread
From: David Craven @ 2016-09-08 15:09 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
Why aren't you using git format-patch? :)
git format-patch -1
git send-email *.patch --to guix-devel@gnu.org
is what I do...
From what I can tell you are doing git diff > file.patch?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] gnu: Simplify dtc package definition.
2016-09-08 15:09 ` David Craven
@ 2016-09-08 17:55 ` Danny Milosavljevic
2016-09-08 18:45 ` David Craven
0 siblings, 1 reply; 10+ messages in thread
From: Danny Milosavljevic @ 2016-09-08 17:55 UTC (permalink / raw)
To: David Craven; +Cc: guix-devel
Hi David,
On Thu, 8 Sep 2016 17:09:12 +0200
David Craven <david@craven.ch> wrote:
> Why aren't you using git format-patch? :)
>
> git format-patch -1
> git send-email *.patch --to guix-devel@gnu.org
>
> is what I do...
That's exactly what I do too - the exact same commands. I don't know what magical options other people use but that's how it always comes out for me. I usually manually copy&paste the subject back down into the body - but this time I forgot. Regardless, that was a bona fide git format-patch AND git send-email E-Mail.
On the other hand, Linux people also told me about my git format-patch settings being "wrong" - and indeed they are different than the ones I use to submit to Guix.
What are the settings you use / we should use?
Mine are:
$ git config --global -l |grep ^format
format.subjectprefix=FIXME
format.numbered=auto
format.signoff=false
format.coverletter=auto
format.signature=
format.attach=
And the git-format-patch executable is built from GuixSD svn master hydra from a few days ago...
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] gnu: Simplify dtc package definition.
2016-09-08 17:55 ` Danny Milosavljevic
@ 2016-09-08 18:45 ` David Craven
2016-09-08 19:32 ` Danny Milosavljevic
2016-09-10 18:19 ` Leo Famulari
0 siblings, 2 replies; 10+ messages in thread
From: David Craven @ 2016-09-08 18:45 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
Hi Danny,
I don't have any special settings configured, just the default.
Your patches are missing a header like this one:
From fc0e6e2ae96b0586035de96c65cfd08186ceb28a Mon Sep 17 00:00:00 2001
From: Efraim Flashner <efraim@flashner.co.il>
Date: Wed, 7 Sep 2016 21:02:28 +0300
Subject: [PATCH] gnu: lightweight-desktop.tmpl: Fix typo.
* gnu/system/examples/lightweight-desktop.tmpl: While it is currently
unknown if Bob has a brother, it is sufficiently documented that Alice
is, in fact, Bob's sister.
---
gnu/system/examples/lightweight-desktop.tmpl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Does `git format-patch -1 && git checkout HEAD~ && git am *.patch` work for you?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] gnu: Simplify dtc package definition.
2016-09-08 18:45 ` David Craven
@ 2016-09-08 19:32 ` Danny Milosavljevic
2016-09-08 20:16 ` David Craven
2016-09-10 18:19 ` Leo Famulari
1 sibling, 1 reply; 10+ messages in thread
From: Danny Milosavljevic @ 2016-09-08 19:32 UTC (permalink / raw)
To: David Craven; +Cc: guix-devel
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"
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")
--------------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.
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] gnu: Simplify dtc package definition.
2016-09-08 18:45 ` David Craven
2016-09-08 19:32 ` Danny Milosavljevic
@ 2016-09-10 18:19 ` Leo Famulari
2016-09-10 18:22 ` David Craven
1 sibling, 1 reply; 10+ messages in thread
From: Leo Famulari @ 2016-09-10 18:19 UTC (permalink / raw)
To: David Craven; +Cc: guix-devel
On Thu, Sep 08, 2016 at 08:45:26PM +0200, David Craven wrote:
> Hi Danny,
>
> I don't have any special settings configured, just the default.
>
> Your patches are missing a header like this one:
>
> From fc0e6e2ae96b0586035de96c65cfd08186ceb28a Mon Sep 17 00:00:00 2001
> From: Efraim Flashner <efraim@flashner.co.il>
> Date: Wed, 7 Sep 2016 21:02:28 +0300
> Subject: [PATCH] gnu: lightweight-desktop.tmpl: Fix typo.
Danny's message was not missing the header. You should use `git am` to
apply the email itself.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2016-09-10 18:22 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-07 7:46 [PATCH] gnu: Simplify dtc package definition Danny Milosavljevic
2016-09-07 8:15 ` David Craven
2016-09-07 9:01 ` Danny Milosavljevic
2016-09-08 15:09 ` David Craven
2016-09-08 17:55 ` Danny Milosavljevic
2016-09-08 18:45 ` David Craven
2016-09-08 19:32 ` Danny Milosavljevic
2016-09-08 20:16 ` David Craven
2016-09-10 18:19 ` Leo Famulari
2016-09-10 18:22 ` David Craven
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).