unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Marius Bakke <mbakke@fastmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 1/2] gnu: lvtk: Build UI library.
Date: Sat, 03 Dec 2016 23:32:07 +0100	[thread overview]
Message-ID: <87eg1o3aqg.fsf@elephly.net> (raw)
In-Reply-To: <87k2bgbu6r.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me>


Marius Bakke <mbakke@fastmail.com> writes:

> Ricardo Wurmus <rekado@elephly.net> writes:
>
>> * gnu/packages/audio.scm (lvtk)[inputs]: Add gtkmm-2.
>> [arguments]: Pass "-std=c++11" flag.
>> ---
>>  gnu/packages/audio.scm | 9 ++++++++-
>>  1 file changed, 8 insertions(+), 1 deletion(-)
>>
>> diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
>> index 5de0681..d7bdc01 100644
>> --- a/gnu/packages/audio.scm
>> +++ b/gnu/packages/audio.scm
>> @@ -1653,9 +1653,16 @@ software.")
>>                       (setenv "LDFLAGS"
>>                               (string-append
>>                                "-L" (assoc-ref inputs "boost") "/lib "
>> -                              "-lboost_system")))))))
>> +                              "-lboost_system"))
>> +                     ;; Needed for gtkmm
>> +                     (substitute* '("src/wscript_build"
>> +                                    "examples/wscript_build")
>> +                       (("cxxflags.*= \\[" line)
>> +                        (string-append line "\"-std=c++11\", ")))
>> +                     #t)))))
>
> Is it not possible to pass this through #:make-flags? If not this LGTM,
> but would be nice with a comment about why make-flags won't work.

The waf-build-system doesn’t have any support for make-flags.  It flat
out ignores them and only runs “waf build”.  Whenever we want to change
flags in projects using waf we usually need to patch up the wscript(s).

I don’t know if there’s a standard way to amend certain flags.  If there
is we should add it to the waf-build-system.

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
http://elephly.net

      reply	other threads:[~2016-12-03 23:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-03 19:42 [PATCH 1/2] gnu: lvtk: Build UI library Ricardo Wurmus
2016-12-03 19:42 ` [PATCH 2/2] gnu: Add ams-lv2 Ricardo Wurmus
2016-12-03 21:08   ` Marius Bakke
2016-12-03 22:39     ` Ricardo Wurmus
2016-12-03 21:04 ` [PATCH 1/2] gnu: lvtk: Build UI library Marius Bakke
2016-12-03 22:32   ` Ricardo Wurmus [this message]

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=87eg1o3aqg.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@gnu.org \
    --cc=mbakke@fastmail.com \
    /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).