unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: RFC: Build system hacks for Guix do not belong in 'source'
Date: Thu, 05 Mar 2015 13:38:48 -0500	[thread overview]
Message-ID: <87oao7guh3.fsf_-_@netris.org> (raw)
In-Reply-To: <87wq2x81dr.fsf@mango.localdomain> (Ricardo Wurmus's message of "Wed, 04 Mar 2015 12:09:52 +0100")

Hi Ricardo,

Thanks for investigating.  Please see below for comments.

Ricardo Wurmus <rekado@elephly.net> writes:

> From f5e35f488fd1b4f5d916476d7c522783809b0f82 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]: Set LIBDIR to "lib".
> ---
>  gnu/packages/audio.scm | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
> index 2783643..66bcdcc 100644
> --- a/gnu/packages/audio.scm
> +++ b/gnu/packages/audio.scm
> @@ -1119,7 +1119,8 @@ interface.")
>                (modules '((guix build utils)))
>                (snippet
>                 '(substitute* "libs/Makefile"
> -                  (("ldconfig") "true")))))
> +                  (("ldconfig") "true")
> +                  (("^LIBDIR =.*") "LIBDIR = lib\n")))))
>      (build-system gnu-build-system)
>      (arguments
>       `(#:tests? #f ; no "check" target
> -- 
> 2.1.0
>
> From e2f8a5cdbfb490c1d3c180c58fcf990ca403bd90 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]: Set LIBDIR to "lib".
> ---
>  gnu/packages/audio.scm | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
> index 66bcdcc..29f08ff 100644
> --- a/gnu/packages/audio.scm
> +++ b/gnu/packages/audio.scm
> @@ -254,7 +254,8 @@ plugins are provided.")
>                (modules '((guix build utils)))
>                (snippet
>                 '(substitute* "libs/Makefile"
> -                  (("/sbin/ldconfig") "true")))))
> +                  (("/sbin/ldconfig") "true")
> +                  (("^LIBDIR =.*") "LIBDIR = lib\n")))))
>      (build-system gnu-build-system)
>      (arguments
>       `(#:tests? #f ; no "check" target

I don't think we should be making these kinds of changes in 'snippets'.

When I ask for the source code via "guix build -S <package>", I expect
freedom fixes and other bug fixes, and maybe even enhancements needed
for Guix that would also work fine on other systems (e.g. adding an
environment variable).

However, the package 'source' should not include build system hacks that
are specific to Guix and would interfere with the package functionality
on other platforms, IMO.

I think that both the 'ldconfig -> true' hack and the LIBDIR
substitution should be moved to a build phase for both of these
packages.

Other opinions?

     Mark

  reply	other threads:[~2015-03-05 18:38 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                       ` Mark H Weaver [this message]
2015-03-05 19:30                         ` RFC: Build system hacks for Guix do not belong in 'source' Thompson, David
2015-03-05 22:05                         ` Ludovic Courtès
2015-03-05 23:10                           ` Ricardo Wurmus
2015-03-10  8:31                         ` Ricardo Wurmus
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=87oao7guh3.fsf_-_@netris.org \
    --to=mhw@netris.org \
    --cc=guix-devel@gnu.org \
    --cc=rekado@elephly.net \
    /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).