From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
To: Mark H Weaver <mhw@netris.org>
Cc: guix-devel@gnu.org
Subject: Re: RFC: Build system hacks for Guix do not belong in 'source'
Date: Tue, 10 Mar 2015 09:31:45 +0100 [thread overview]
Message-ID: <87vbi96yoe.fsf@mango.localdomain> (raw)
In-Reply-To: <87oao7guh3.fsf_-_@netris.org>
[-- Attachment #1: Type: text/plain, Size: 264 bytes --]
Mark H Weaver writes:
> I think that both the 'ldconfig -> true' hack and the LIBDIR
> substitution should be moved to a build phase for both of these
> packages.
Attached are updated patches, moving the build hacks from snippets to a
build phase.
~~ Ricardo
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-zita-alsa-pcmi-set-LIBDIR-to-lib.patch --]
[-- Type: text/x-patch, Size: 1542 bytes --]
From abdbfec11164c61cfdb6fc88ddf9abd2e58aa027 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
Date: Wed, 4 Mar 2015 11:50:26 +0100
Subject: [PATCH 1/2] gnu: zita-alsa-pcmi: set LIBDIR to "lib".
* gnu/packages/audio.scm (zita-alsa-pcmi)[source, arguments]: Set LIBDIR to
"lib" in build phase. Remove snippet.
---
gnu/packages/audio.scm | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 64bde2e..c440c4a 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -1032,11 +1032,7 @@ interface.")
version ".tar.bz2"))
(sha256
(base32
- "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))
- (modules '((guix build utils)))
- (snippet
- '(substitute* "libs/Makefile"
- (("ldconfig") "true")))))
+ "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
(build-system gnu-build-system)
(arguments
`(#:tests? #f ; no "check" target
@@ -1044,8 +1040,12 @@ interface.")
#:phases
(alist-cons-after
'unpack
- 'enter-directory
- (lambda _ (chdir "libs"))
+ 'fix-makefile
+ (lambda _
+ (substitute* "libs/Makefile"
+ (("ldconfig") "true")
+ (("^LIBDIR =.*") "LIBDIR = lib\n"))
+ (chdir "libs"))
(alist-cons-after
'install
'install-symlink
--
2.1.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-clalsadrv-set-LIBDIR-to-lib.patch --]
[-- Type: text/x-patch, Size: 1562 bytes --]
From c114d1fbeda081c13e60a0ec1f776fcf783f1c48 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
Date: Wed, 4 Mar 2015 11:52:07 +0100
Subject: [PATCH 2/2] gnu: clalsadrv: set LIBDIR to "lib".
* gnu/packages/audio.scm (clalsadrv)[source, arguments]: Set LIBDIR to "lib"
in build phase. Remove snippet.
---
gnu/packages/audio.scm | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index c440c4a..ebbf728 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -244,11 +244,7 @@ plugins are provided.")
version ".tar.bz2"))
(sha256
(base32
- "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))
- (modules '((guix build utils)))
- (snippet
- '(substitute* "libs/Makefile"
- (("/sbin/ldconfig") "true")))))
+ "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
(build-system gnu-build-system)
(arguments
`(#:tests? #f ; no "check" target
@@ -256,8 +252,12 @@ plugins are provided.")
#:phases
(alist-cons-after
'unpack
- 'enter-directory
- (lambda _ (chdir "libs"))
+ 'fix-makefile
+ (lambda _
+ (substitute* "libs/Makefile"
+ (("/sbin/ldconfig") "true")
+ (("^LIBDIR =.*") "LIBDIR = lib\n"))
+ (chdir "libs"))
(alist-cons-after
'install
'install-symlink
--
2.1.0
next prev parent reply other threads:[~2015-03-10 8:32 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-21 20:54 [PATCH 1/2] gnu: Add zita-alsa-pcmi Ricardo Wurmus
2015-02-21 20:54 ` [PATCH 2/2] gnu: Add AlsaModularSynth Ricardo Wurmus
2015-02-21 21:09 ` Ricardo Wurmus
2015-02-22 20:54 ` Ricardo Wurmus
2015-02-25 14:00 ` Ludovic Courtès
2015-02-25 22:03 ` Ricardo Wurmus
2015-02-26 17:08 ` Ludovic Courtès
2015-03-01 13:49 ` Ricardo Wurmus
2015-03-01 14:59 ` Ludovic Courtès
2015-03-02 6:14 ` Mark H Weaver
2015-03-04 7:08 ` Ricardo Wurmus
2015-03-04 7:14 ` Ricardo Wurmus
2015-03-04 11:09 ` Ricardo Wurmus
2015-03-05 18:38 ` RFC: Build system hacks for Guix do not belong in 'source' Mark H Weaver
2015-03-05 19:30 ` Thompson, David
2015-03-05 22:05 ` Ludovic Courtès
2015-03-05 23:10 ` Ricardo Wurmus
2015-03-10 8:31 ` Ricardo Wurmus [this message]
2015-03-10 16:23 ` Mark H Weaver
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=87vbi96yoe.fsf@mango.localdomain \
--to=ricardo.wurmus@mdc-berlin.de \
--cc=guix-devel@gnu.org \
--cc=mhw@netris.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).