From: paper42 <paper42@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] ART: update to 1.20, New package: mimalloc-2.1.2
Date: Sun, 18 Jun 2023 16:31:44 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-44503@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1338 bytes --]
There is a new pull request by paper42 against master on the void-packages repository
https://github.com/paper42/void-packages art-1.20
https://github.com/void-linux/void-packages/pull/44503
ART: update to 1.20, New package: mimalloc-2.1.2
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
the mimalloc commit is taken from #37688, updated and fixed
cc @wangp
<!--
#### 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, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/44503.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-art-1.20-44503.patch --]
[-- Type: text/x-diff, Size: 4756 bytes --]
From 4faf5044ecddb6e17fc591d58497942cfe91f151 Mon Sep 17 00:00:00 2001
From: Peter Wang <novalazy@gmail.com>
Date: Sun, 8 Jan 2023 11:21:49 +1100
Subject: [PATCH 1/2] New package: mimalloc-2.1.2
---
common/shlibs | 1 +
srcpkgs/mimalloc-devel | 1 +
.../mimalloc/patches/unify-library-name.patch | 20 +++++++++++
srcpkgs/mimalloc/template | 36 +++++++++++++++++++
4 files changed, 58 insertions(+)
create mode 120000 srcpkgs/mimalloc-devel
create mode 100644 srcpkgs/mimalloc/patches/unify-library-name.patch
create mode 100644 srcpkgs/mimalloc/template
diff --git a/common/shlibs b/common/shlibs
index 494e99b89550..320e9f68e308 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4272,3 +4272,4 @@ libplayerctl.so.2 playerctl-2.4.1_1
libwireplumber-0.4.so.0 wireplumber-0.4.14_1
libjodycode.so.2 libjodycode-2.0.1_1
libgsoapssl++-2.8.124.so gsoap-2.8.124_1
+libmimalloc.so.2 mimalloc-2.0.9_1
diff --git a/srcpkgs/mimalloc-devel b/srcpkgs/mimalloc-devel
new file mode 120000
index 000000000000..9af584a917a5
--- /dev/null
+++ b/srcpkgs/mimalloc-devel
@@ -0,0 +1 @@
+mimalloc
\ No newline at end of file
diff --git a/srcpkgs/mimalloc/patches/unify-library-name.patch b/srcpkgs/mimalloc/patches/unify-library-name.patch
new file mode 100644
index 000000000000..c8cddbef17b8
--- /dev/null
+++ b/srcpkgs/mimalloc/patches/unify-library-name.patch
@@ -0,0 +1,20 @@
+make sure the library name is the same no matter whether is't built as
+secure or not
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -343,15 +343,6 @@ else()
+ endif()
+
+ set(mi_basename "mimalloc")
+-if(MI_SECURE)
+- set(mi_basename "${mi_basename}-secure")
+-endif()
+-if(MI_TRACK_VALGRIND)
+- set(mi_basename "${mi_basename}-valgrind")
+-endif()
+-if(MI_TRACK_ASAN)
+- set(mi_basename "${mi_basename}-asan")
+-endif()
+ string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LC)
+ if(NOT(CMAKE_BUILD_TYPE_LC MATCHES "^(release|relwithdebinfo|minsizerel|none)$"))
+ set(mi_basename "${mi_basename}-${CMAKE_BUILD_TYPE_LC}") #append build type (e.g. -debug) if not a release version
diff --git a/srcpkgs/mimalloc/template b/srcpkgs/mimalloc/template
new file mode 100644
index 000000000000..1c8872823b15
--- /dev/null
+++ b/srcpkgs/mimalloc/template
@@ -0,0 +1,36 @@
+# Template file for 'mimalloc'
+pkgname=mimalloc
+version=2.1.2
+revision=1
+build_style=cmake
+configure_args="$(vopt_bool secure MI_SECURE)"
+short_desc="General purpose allocator with excellent performance characteristics"
+maintainer="Peter Wang <novalazy@gmail.com>"
+license="MIT"
+homepage="https://github.com/microsoft/mimalloc"
+distfiles="https://github.com/microsoft/mimalloc/archive/v${version}.tar.gz"
+checksum=2b1bff6f717f9725c70bf8d79e4786da13de8a270059e4ba0bdd262ae7be46eb
+
+build_options="secure"
+build_options_default="secure"
+desc_option_secure="Build mimalloc in secure mode"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+ makedepends+=" libatomic-devel"
+fi
+
+post_install() {
+ vlicense LICENSE
+}
+
+mimalloc-devel_package() {
+ depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/cmake
+ vmove usr/lib/libmimalloc.so
+ vmove usr/lib/mimalloc-${version%.*}
+ vmove usr/lib/pkgconfig
+ }
+}
From b23b1d52630d1d54c4bb589e511a837762e1fb2b Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Fri, 2 Jun 2023 20:26:08 +0200
Subject: [PATCH 2/2] ART: update to 1.20.
---
srcpkgs/ART/template | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/srcpkgs/ART/template b/srcpkgs/ART/template
index a15bf7a9bdd1..a94c90455303 100644
--- a/srcpkgs/ART/template
+++ b/srcpkgs/ART/template
@@ -1,15 +1,16 @@
# Template file for 'ART'
pkgname=ART
-version=1.13
-revision=2
+version=1.20
+revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="fftw-devel gtkmm-devel lensfun-devel libatomic-devel
- libcanberra-devel libgomp-devel libiptcdata-devel librsvg-devel exiv2-devel"
+ libcanberra-devel libgomp-devel libiptcdata-devel librsvg-devel exiv2-devel
+ mimalloc-devel libraw-devel opencolorio-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="Fork of RawTherapee with additional features"
maintainer="notthewave <winklbauer_m@zoho.eu>"
license="GPL-3.0-or-later"
homepage="https://bitbucket.org/agriggio/art/wiki/Home"
-distfiles="https://bitbucket.org/agriggio/art/downloads/${pkgname}-${version}.tar.xz"
-checksum=7a6ade552c42d45970fe6618be61e61621e0867a7a2baef2d3d7092badba36e5
+distfiles="https://bitbucket.org/agriggio/art/downloads/ART-${version}.tar.xz"
+checksum=ab89138288b9213b46de9e8172f262a6164f7565893a7b1b7c6e1e24df2fa020
next reply other threads:[~2023-06-18 14:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-18 14:31 paper42 [this message]
2023-06-20 7:43 ` wangp
2023-08-26 8:03 ` sgn
2023-08-26 8:37 ` paper42
2023-09-23 13:13 ` [PR PATCH] [Updated] " paper42
2023-09-25 9:12 ` [PR PATCH] [Merged]: " paper42
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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-44503@inbox.vuxu.org \
--to=paper42@users.noreply.github.com \
--cc=ml@inbox.vuxu.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.
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).