GNU bug report logs - #71146
[PATCH] gnu: kallisto: Update to 0.50.1

Previous Next

Package: guix-patches;

Reported by: guix <at> mawumag.com

Date: Thu, 23 May 2024 13:38:02 UTC

Severity: normal

Tags: patch

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 71146 in the body.
You can then email your comments to 71146 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#71146; Package guix-patches. (Thu, 23 May 2024 13:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to guix <at> mawumag.com:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 23 May 2024 13:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: guix <at> mawumag.com
To: guix-patches <at> gnu.org
Cc: Ricardo Wurmus <rekado <at> elephly.net>
Subject: [PATCH] gnu: kallisto: Update to 0.50.1
Date: Thu, 23 May 2024 09:53:54 +0000
[Message part 1 (text/plain, inline)]
Updated kallisto to 0.50.1, it now supports more single-cell technologies (e.g. SPLiT-seq).

I had to modify the 'do-not-use-bundled-htslib snippet to make one regex more selective---in this new version it the previous regex was mistakenly modifying parts of CMakeLists.txt other than the intended one.
[0001-gnu-kallisto-Update-to-0.50.1.patch (text/x-patch, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#71146; Package guix-patches. (Sat, 01 Jun 2024 19:14:01 GMT) Full text and rfc822 format available.

Message #8 received at 71146 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: guix <at> mawumag.com
Cc: 71146 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: kallisto: Update to 0.50.1
Date: Sat, 01 Jun 2024 21:13:10 +0200
Ricardo Wurmus <rekado <at> elephly.net> writes:

>> I had to modify the 'do-not-use-bundled-htslib snippet to make one
>> regex more selective---in this new version it the previous regex was
>> mistakenly modifying parts of CMakeLists.txt other than the intended
>> one.
>
> It looks like this might not be working as intended.  I used:
>
>     guix gc -R $(./pre-inst-env guix build kallisto)
>
> and it shows me that the newly built kallisto does not link with our
> htslib.  Perhaps it used the static library?

Turns out it's not actually using htslib at all, because USE_BAM is not
set.  It uses a bundled copy of bifrost instead.  If we want to build
kallisto with bifrost only then we should remove htslib from the inputs,
package bifrost (https://github.com/pmelsted/bifrost) and unbundle it
from kallisto, linking with the shared library.

Does this sound like a good plan or should we use htslib instead?

-- 
Ricardo




Information forwarded to guix-patches <at> gnu.org:
bug#71146; Package guix-patches. (Sat, 01 Jun 2024 19:14:02 GMT) Full text and rfc822 format available.

Message #11 received at 71146 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: guix <at> mawumag.com
Cc: 71146 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: kallisto: Update to 0.50.1
Date: Sat, 01 Jun 2024 21:13:30 +0200
Thank you for the patch!

> I had to modify the 'do-not-use-bundled-htslib snippet to make one
> regex more selective---in this new version it the previous regex was
> mistakenly modifying parts of CMakeLists.txt other than the intended
> one.

It looks like this might not be working as intended.  I used:

    guix gc -R $(./pre-inst-env guix build kallisto)

and it shows me that the newly built kallisto does not link with our
htslib.  Perhaps it used the static library?

-- 
Ricardo




Information forwarded to guix-patches <at> gnu.org:
bug#71146; Package guix-patches. (Tue, 04 Jun 2024 18:16:02 GMT) Full text and rfc822 format available.

Message #14 received at 71146 <at> debbugs.gnu.org (full text, mbox):

From: guix <at> mawumag.com
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 71146 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: kallisto: Update to 0.50.1
Date: Tue, 04 Jun 2024 15:36:41 +0000
> Ricardo Wurmus rekado <at> elephly.net writes:
> 
> Turns out it's not actually using htslib at all, because USE_BAM is not
> set. It uses a bundled copy of bifrost instead. If we want to build
> kallisto with bifrost only then we should remove htslib from the inputs,
> package bifrost (https://github.com/pmelsted/bifrost) and unbundle it
> from kallisto, linking with the shared library.
> 
> Does this sound like a good plan or should we use htslib instead?

My initial attempt was to unbundle bifrost from kallisto, but I had two concerns:

- I was not able to determine the exact version of bifrost that was bundled with kallisto (it is definitely not the latest one, as the relevant ext/bifrost directory in kallisto is older).
This is also a problem with htslib, I am sure whoever packaged kallisto 0.48.0 was careful to choose the correct version, but I would not know how to verify this.
This has the potential to lead to mismatches (or even bugs) between the guix version and the official one compiled from their sources.

- Some header files of bifrost appear to be included in kallisto source code directly, but it was not clear to me how to include bifrost in guix in a way that exports its libraries and headers.

Especially for the first reason, I would actually propose to use the bundled htslib and bifrost for kallisto. Both are bundled as source code and are compiled during the build process, so this should not pose a concern (bifrost is released under BSD 2-Clause License, like kallisto, while htslib is released under expat).

Please let me know what you think.

Cheers,
Marco





Reply sent to Ricardo Wurmus <rekado <at> elephly.net>:
You have taken responsibility. (Mon, 04 Nov 2024 14:52:02 GMT) Full text and rfc822 format available.

Notification sent to guix <at> mawumag.com:
bug acknowledged by developer. (Mon, 04 Nov 2024 14:52:02 GMT) Full text and rfc822 format available.

Message #19 received at 71146-done <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: 71146-done <at> debbugs.gnu.org
Cc: guix <at> mawumag.com
Subject: [PATCH] gnu: kallisto: Update to 0.50.1
Date: Mon, 04 Nov 2024 15:51:22 +0100
Hi,

I'm back to work now and just reviewed our discussion on kallisto. 
We
may want to revisit the decision to not unbundle libbifrost and 
htslib
at a later point, but at the moment I agree to keep the bundled
libraries until we've attained more clarity.

I removed the now obsolete build phase completely and I disabled
parallel building (see comment).

Thanks for the patch and my apologies for not being able to merge 
this
sooner!

-- 
Ricardo




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 03 Dec 2024 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 100 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.