all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marius Bakke <mbakke@fastmail.com>
To: goodoldpaul@autistici.org, 38128-done@debbugs.gnu.org
Subject: bug#38128: [PATCH] gnu: Add boost-with-python3
Date: Sun, 10 Nov 2019 22:50:18 +0100	[thread overview]
Message-ID: <87d0dzl7tx.fsf@devup.no> (raw)
In-Reply-To: <2894916c81c703293e028556070cd964@autistici.org>

[-- Attachment #1: Type: text/plain, Size: 2459 bytes --]

Giacomo,

goodoldpaul@autistici.org writes:

> Hello Guixers!
>
> Given the recent discussion about dropping python 2 completely I thought 
> it's time to build our libboost against python 3. I didn't have the time 
> to check if every boost dependency (there are a lot ;) ) supported 
> python 3, so I added a new variable "boost-with-python3". I'm not sure 
> if I should have made it hidden or if I should have update directly 
> boost definition so any feedback is welcome.

Thank you for this patch!  Have you tried building anything with this
new Boost yet?

Boost has 4623 dependent packages according to 'guix refresh -l boost',
so we can not change the package definition on the master branch.  Such
changes has to go through the 'core-updates' branch.  Adding a separate
variable was the right choice.

It would be great if you could work on a follow-up patch for
'core-updates' that merges this variant with the regular 'Boost'.  I
left that as a TODO comment.  :-)

> From 6eef72ea2bc904ff1371fbbe1211a3890625d99c Mon Sep 17 00:00:00 2001
> From: Giacomo Leidi <goodoldpaul@autistici.org>
> Date: Fri, 8 Nov 2019 11:52:42 +0100
> Subject: [PATCH] gnu: Add boost-with-python3.
>
> * gnu/packages/boost.scm (boost-with-python3): New variable.

[...]
  
> +(define-public boost-with-python3
> +  (package
> +    (inherit boost)
> +    (source (origin
> +              (inherit (package-source boost))))

I removed this part, as the source is already inherited.

I also gave it a different name (boost-python3) to avoid a naming
conflict on the CLI.

[...]

> +                     (replace 'provide-libboost_python
> +                       (lambda* (#:key outputs #:allow-other-keys)
> +                         (let ((out (assoc-ref outputs "out")))
> +                           (with-directory-excursion (string-append out "/lib")
> +                             ;; Boost can build support for both Python 2 and Python 3 since
> +                             ;; version 1.67.0, and suffixes each library with the Python
> +                             ;; version.  Many consumers only check for libboost_python
> +                             ;; however, so we provide it here as suggested in
> +                             ;; <https://github.com/boostorg/python/issues/203>.

...and dropped this comment, since it is already explained in the
regular Boost package.

Applied, thanks!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2019-11-10 21:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-08 10:59 [bug#38128] [PATCH] gnu: Add boost-with-python3 goodoldpaul
2019-11-10 21:50 ` Marius Bakke [this message]
2019-11-11  9:36   ` Efraim Flashner
2019-11-12  0:06     ` goodoldpaul
2019-11-16  9:04       ` [bug#38228] Fwd: [PATCH] gnu: boost: Build with python3 goodoldpaul
2019-11-20  0:01         ` Marius Bakke
2019-12-09 11:24           ` goodoldpaul
2020-01-08 21:11             ` bug#38228: " Marius Bakke

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d0dzl7tx.fsf@devup.no \
    --to=mbakke@fastmail.com \
    --cc=38128-done@debbugs.gnu.org \
    --cc=goodoldpaul@autistici.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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.