Package Details: foonathan_memory-shared 0.7.2-1

Git Clone URL: https://aur.archlinux.org/foonathan_memory-shared.git (read-only, click to copy)
Package Base: foonathan_memory-shared
Description: STL compatible C++ memory allocator library build with BUILD_SHARED_LIBS=ON
Upstream URL: https://www.jonathanmueller.dev/project/#memory
Licenses: zlib
Conflicts: foonathan_memory
Submitter: dennisschagt
Maintainer: dennisschagt (kistlin)
Last Packager: dennisschagt
Votes: 0
Popularity: 0.000000
First Submitted: 2020-08-26 20:16 (UTC)
Last Updated: 2022-08-11 22:01 (UTC)

Latest Comments

kistlin commented on 2022-05-14 17:13 (UTC)

And for the CMakeLists.txt patch there is an issue open, that is currently blocked upstream.

https://github.com/foonathan/memory/issues/135

kistlin commented on 2022-05-14 17:07 (UTC)

@dennisschagt I'm in a similar position. I don't use DDS actively but I try to keep some packages up-to-date. You can add me if you want and if I see a new release and have time, I'll do it. If you want to be added on mine, just tell me :).

dennisschagt commented on 2022-05-14 09:13 (UTC)

Looks good, thank you! Sorry for the delay.

At the moment, I don't work with DDS. I still try to update the packages when new versions are released, but that might get delayed sometimes when I'm busy.

@kistlin: I see you also maintain several eprosima/DDS packages. If you want, I can add you as a co-maintainer on the eprosima packages.

kistlin commented on 2022-05-07 06:36 (UTC)

If you use it in an update, please change pkgrel. I forgot that.

kistlin commented on 2022-05-07 06:35 (UTC)

This package no longer builds.

While looking into it, I found that the package version is a bit misleading. The title says foonathan_memory-shared 0.7.1-2 and in Sources foonathan_memory-shared-0.7.1.tar.gz is listed. But fetched is actually 0.6-2.

The latest version can be build with applying this patch to PKGBUILD.

--- PKGBUILD    2022-05-07 08:14:29.720031346 +0200
+++ PKGBUILD.new        2022-05-07 08:24:27.320058327 +0200
@@ -3,30 +3,24 @@

 pkgname=foonathan_memory-shared
 pkgver=0.7.1
-_pkgver=0.6-2
+_pkgver=0.7-1
 pkgrel=2
 pkgdesc="STL compatible C++ memory allocator library build with BUILD_SHARED_LIBS=ON"
-url="http://foonathan.net/memory"
+url="https://www.jonathanmueller.dev/project/#memory"
 arch=('x86_64')
 license=('ZLIB')
 makedepends=('cmake' 'git')
 conflicts=('foonathan_memory')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/foonathan/memory/archive/v${_pkgver}.tar.gz"
-        'git+https://github.com/foonathan/compatibility.git#commit=cd14212'
-        'pin-catch-version.patch')
-sha256sums=('cf302578f3b6721707b8428fd9b97182ada1970ce56f8881ea0b3390b97e66e3'
-            'SKIP'
-            'a9736f5561bcf58981513142ccf1a1bed85259dd4bd5bc515860a519648b5484')
+        'CMakeLists.txt.patch')
+sha256sums=('19eb61c5cba6ccc40b8ee741350fd29402a46641ba752c30b7079528d87dbc79'
+            'cde9ea8ec2ebe61e42f7ed3113a9d7ef776fc420b14dbf1b50d0d5a770ea4447')

 prepare() {
     cd "${srcdir}/memory-${_pkgver}/"

-    patch --forward --strip=1 --input="${srcdir}/pin-catch-version.patch"
-
     rm -rf build && mkdir build
-
-    cd cmake/comp
-    ln -sf "${srcdir}/compatibility/comp_base.cmake"
+    patch -u test/CMakeLists.txt -i "${srcdir}/../CMakeLists.txt.patch"
 }

 build() {

And creating a file named CMakeLists.txt.patch with content

--- src/memory-0.7-1/test/CMakeLists.txt        2021-09-05 19:18:55.000000000 +0200
+++ src/memory-0.7-1/test/CMakeLists.txt.new    2022-05-07 07:53:30.779974479 +0200
@@ -12,7 +12,7 @@
 # Fetch doctest.
 message(STATUS "Fetching doctest")
 include(FetchContent)
-FetchContent_Declare(doctest URL https://github.com/onqtam/doctest/archive/2.4.5.zip)
+FetchContent_Declare(doctest URL https://github.com/doctest/doctest/archive/refs/tags/v2.4.8.zip)
 FetchContent_MakeAvailable(doctest)

 set(tests

This is required that it builds, else there are errors because of doctest.