unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: goodoldpaul@autistici.org
To: Marius Bakke <mbakke@fastmail.com>
Cc: 41053@debbugs.gnu.org
Subject: [bug#41053] [PATCH 1/2] gnu: Add ableton-link.
Date: Tue, 05 May 2020 20:19:05 +0000	[thread overview]
Message-ID: <fa6c6341ba351ae13d4f68e8c273fbaa@autistici.org> (raw)
In-Reply-To: <87368ez3nq.fsf@devup.no>

Hi Marius,

>> +    (arguments
>> +     `(#:configure-flags
>> +       '("-DBUILD_TYPE=Release"
> 
> You can use #:build-type instead of passing -DCMAKE_BUILD_TYPE.  Is
> there a particular reason why the default "RelWithDebInfo" does not cut
> it?

It's just because I read on CMake's website that it's supposed to enable 
"-O3" flags, but I'm no expert. Also, reading further, it seems that too 
much aggressive optimizations can sometimes break software. For now I 
removed it and if there will ever be the need it can be easily 
reinstated.

>> +                                                "-checkout/")))
>> +               (substitute* (string-append source
>> +                                           
>> "cmake_include/AsioStandaloneConfig.cmake")
> 
> Note: if you run this phase immediately after 'unpack, you don't have 
> to
> add a binding for the source directory as you can refer to this file by
> just (substitute* "cmake_include/AsioStandaloneConfig.cmake").  But
> perhaps that will break things?

Yes sadly it does, because it makes CMake think that the headers will be 
in "../../../include" while they are at the same level.

>> +               (for-each (lambda (test-file)
>> +                           (delete-file test-file))
>> +                         '("bin/LinkDiscoveryTest" 
>> "bin/LinkCoreTest"))
>> +               (copy-recursively "bin" bin)
>> +               (copy-recursively (string-append source 
>> "/include/ableton")
>> +                                 (string-append out 
>> "/include/ableton"))
>> +               (install-file (string-append source 
>> "/AbletonLinkConfig.cmake")
>> +                             lib-cmake)
>> +               (install-file (string-append source
>> +                                            
>> "/cmake_include/AsioStandaloneConfig.cmake")
>> +                             (string-append lib-cmake 
>> "/cmake_include"))
> 
> Terrible that we have to install "manually" here!  But oh well.
> 

Yes it is, upstream seems to not provide a "make install" target :(

>> diff --git 
>> a/gnu/packages/patches/ableton-link-system-libraries-debian.patch 
>> b/gnu/packages/patches/ableton-link-system-libraries-debian.patch
>> new file mode 100644
>> index 0000000000..0c12c62546
>> --- /dev/null
>> +++ b/gnu/packages/patches/ableton-link-system-libraries-debian.patch
>> @@ -0,0 +1,27 @@
>> +Description: Drop dependencies on included 3rd-party libs
>> + upstream includes git-submodules for Catch and ASIO (not found in 
>> the tarball).
>> + on Debian we want to use the system provided libraries.
>> +Author: IOhannes m zmölnig
>> +Origin: Debian
>> +Forwarded: not-needed
>> +Last-Update: 2016-10-26
>> +---
>> +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
> 
> Great that you took care to unbundle dependencies.  Can you add a link
> to where you found this patch?

I got it from Debian's package, I now added a link in the patch header.

Thanks for your patience,

Giacomo




  reply	other threads:[~2020-05-05 20:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-03 16:03 [bug#41053] [PATCH] gnu: supercollider: Update to 3.11.0 goodoldpaul
2020-05-03 16:06 ` [bug#41053] [PATCH 1/2] gnu: Add ableton-link Giacomo Leidi
2020-05-03 16:06   ` [bug#41053] [PATCH 2/2] gnu: supercollider: Update to 3.11.0 Giacomo Leidi
2020-05-05 17:39     ` Marius Bakke
2020-05-05 20:19       ` goodoldpaul
2020-05-06 20:44         ` bug#41053: " Marius Bakke
2020-05-05 17:34   ` [bug#41053] [PATCH 1/2] gnu: Add ableton-link Marius Bakke
2020-05-05 20:19     ` goodoldpaul [this message]
2020-05-05 20:27 ` Giacomo Leidi
2020-05-05 20:27   ` [bug#41053] [PATCH 2/2] gnu: supercollider: Update to 3.11.0 Giacomo Leidi

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=fa6c6341ba351ae13d4f68e8c273fbaa@autistici.org \
    --to=goodoldpaul@autistici.org \
    --cc=41053@debbugs.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).