Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] rawtherapee: remove tcmalloc to fix crash on musl
@ 2024-06-26 23:08 Calandracas606
  2024-06-27  9:00 ` [PR PATCH] [Merged]: rawtherapee: remove tcmalloc to fix crash on aarch64-musl sgn
  0 siblings, 1 reply; 2+ messages in thread
From: Calandracas606 @ 2024-06-26 23:08 UTC (permalink / raw)
  To: ml

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

There is a new pull request by Calandracas606 against master on the void-packages repository

https://github.com/Calandracas606/void-packages rawtherapee-dont-use-tcmalloc
https://github.com/void-linux/void-packages/pull/51021

rawtherapee: remove tcmalloc to fix crash on musl
<!-- Uncomment relevant sections and delete options which are not applicable -->

The application fails to start on my aarch64-musl device. I discovered that this is likely caused by tcmalloc.

Using tcmalloc doesn't seem to make a significant difference on other platforms, and its not enabled by default `CMakeLists.txt` so I think its best to remove it on all platforms

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc, aarch64-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686
  - aarch64 (native + cross)
  - aarch64-musl (native + cross)
  - armv7l (cross)
  - armv7l-musl (cross)
  - armv6l (cross)
  - armv6l-musl (cross)



A patch file from https://github.com/void-linux/void-packages/pull/51021.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-rawtherapee-dont-use-tcmalloc-51021.patch --]
[-- Type: text/x-diff, Size: 1212 bytes --]

From 1dd36f04f9c382c03b50e5055cdbb6a4a21b2ab7 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Wed, 26 Jun 2024 18:55:47 -0400
Subject: [PATCH] rawtherapee: remove tcmalloc to fix crash on musl

---
 srcpkgs/rawtherapee/template | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/rawtherapee/template b/srcpkgs/rawtherapee/template
index 8732e39b4fcf78..51ce756718b37d 100644
--- a/srcpkgs/rawtherapee/template
+++ b/srcpkgs/rawtherapee/template
@@ -1,15 +1,12 @@
 # Template file for 'rawtherapee'
 pkgname=rawtherapee
 version=5.10
-revision=2
+revision=3
 build_style=cmake
-configure_args="-DCACHE_NAME_SUFFIX=\"\"
- -DWITH_LTO=ON
- -DENABLE_TCMALLOC=ON"
+configure_args="-DCACHE_NAME_SUFFIX=\"\" -DWITH_LTO=ON"
 hostmakedepends="pkg-config"
 makedepends="fftw-devel gtkmm-devel lensfun-devel
- libcanberra-devel libgomp-devel libiptcdata-devel librsvg-devel
- exiv2-devel gperftools-devel"
+ libcanberra-devel libgomp-devel libiptcdata-devel librsvg-devel exiv2-devel"
 depends="desktop-file-utils hicolor-icon-theme"
 short_desc="Free RAW converter and digital photo processing software"
 maintainer="Daniel Martinez <danielmartinez@cock.li>"

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: rawtherapee: remove tcmalloc to fix crash on aarch64-musl
  2024-06-26 23:08 [PR PATCH] rawtherapee: remove tcmalloc to fix crash on musl Calandracas606
@ 2024-06-27  9:00 ` sgn
  0 siblings, 0 replies; 2+ messages in thread
From: sgn @ 2024-06-27  9:00 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

rawtherapee: remove tcmalloc to fix crash on aarch64-musl
https://github.com/void-linux/void-packages/pull/51021

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

The application fails to start on my aarch64-musl device. I discovered that this is likely caused by tcmalloc.

Using tcmalloc doesn't seem to make a significant difference on other platforms, and its not enabled by default `CMakeLists.txt` so I think its best to remove it on all platforms

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc, aarch64-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686
  - aarch64 (native + cross)
  - aarch64-musl (native + cross)
  - armv7l (cross)
  - armv7l-musl (cross)
  - armv6l (cross)
  - armv6l-musl (cross)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-27  9:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-26 23:08 [PR PATCH] rawtherapee: remove tcmalloc to fix crash on musl Calandracas606
2024-06-27  9:00 ` [PR PATCH] [Merged]: rawtherapee: remove tcmalloc to fix crash on aarch64-musl sgn

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 NNTP newsgroup(s).