Package Details: med 5.0.0-1

Git Clone URL: https://aur.archlinux.org/med.git (read-only, click to copy)
Package Base: med
Description: MED: interoperable format for data interchange between mesh based solvers
Upstream URL: https://www.salome-platform.org/downloads
Licenses: LGPL-3.0
Submitter: xantares
Maintainer: xantares
Last Packager: xantares
Votes: 0
Popularity: 0.000000
First Submitted: 2024-06-14 15:31 (UTC)
Last Updated: 2025-03-07 18:05 (UTC)

Latest Comments

xantares commented on 2025-03-07 18:05 (UTC)

should be fixed now

trougnouf commented on 2025-03-06 14:22 (UTC)

I get the following error:

/home/trougnouf/Downloads/med/src/med-5.0.0/python/med/medinterp_modulePYTHON_wrap.cxx:21415:39: error: too few arguments to function ‘PyObject* SWIG_Python_AppendOutput(PyObject*, PyObject*, int)’
21415 |     resultobj=SWIG_Python_AppendOutput(resultobj, o6);
      |               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/home/trougnouf/Downloads/med/src/med-5.0.0/python/med/medinterp_modulePYTHON_wrap.cxx:1259:1: note: declared here
 1259 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void) {
      | ^~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [python/CMakeFiles/_medfile.dir/build.make:79: python/CMakeFiles/_medfile.dir/med/medfile_modulePYTHON_wrap.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2481: python/CMakeFiles/_medfile.dir/all] Error 2
[ 98%] Built target _medenum
make[2]: *** [python/CMakeFiles/_medinterp.dir/build.make:79: python/CMakeFiles/_medinterp.dir/med/medinterp_modulePYTHON_wrap.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2611: python/CMakeFiles/_medinterp.dir/all] Error 2
[ 98%] Linking CXX shared module med/_medfilter.so
[ 98%] Built target _medfilter
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

I can build the med-openmpi package after removing every reference to openmpi, maybe use that base instead?

trougnouf@l ~/t/med-openmpi (main) [1]> cat PKGBUILD 
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Guilhem Saurel <guilhem@saurel.me>
# Contributor: Michel Zou
# Contributor: Oliver Goethel
# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
#
# Upstream disappeared:
#     https://www.salome-platform.org/downloads
#     https://files.salome-platform.org/Salome/other/med-4.1.1.tar.gz
#
# Using a fork on GitHub by one of the FreeCAD developers instead.

pkgname=med
pkgver=5.0.0
pkgrel=1
pkgdesc='Library for reading and writing MED files'
url='https://github.com/chennes/med'
license=(LGPL)
arch=(x86_64)
provides=(med)
conflicts=(med)
replaces=(med)
depends=(hdf5 python tk)
makedepends=(cmake gcc-fortran git ninja swig)
source=("git+$url#commit=621956ec1a18d66346b40e91679021e4595ffa1b"
        hdf5-1.12.patch
        https://src.fedoraproject.org/rpms/med/raw/rawhide/f/med-swig-4.3.0.patch
        https://src.fedoraproject.org/rpms/med/raw/rawhide/f/med-py3.13.patch)
b2sums=('93fdb2cf5d2a44a67fd8bdebccb70491728b0d0c0ce88f7a0164048096f44451df39ff169dd6fde1831d714ddf97459c8d8e04c492a32443612d2a6637e969b6'
        '9fb63135d64d7a905cfad012a5d5fc2ecc8605ea0e30adeeb21d29d5e36ecedbe91f7b6254a53ae11d74336633c352b7021bdebda8d772640b5fafb70ad6796f'
        '4af313c4b9e867f67c2cb4a91c48922fdf9c678158dd815f76232076c519783f3960e88d44a1f47e3b452b08e897da085813354b94400bfbc4052d29bee09c61'
        'd9f156d822a4ff07d1634cb03dd88ae12d3c174903babdf190f6ccaed6252aeab905df1689351dc2ec8d7e9b04b3974dd05b00b6ea83ffb8396fb5766a33152e')

prepare() {
  cd med
  patch -p1 -i ../hdf5-1.12.patch # Fix build with hdf5 1.12 (Fedora)
  patch -p1 -i ../med-swig-4.3.0.patch
  patch -p1 -i ../med-py3.13.patch
  sed -i 's/if H5_VERS_MINOR > 10/if 0/g' src/ci/MEDfileCompatibility.c
  # install cmake files to /usr/lib${LIB_SUFFIX}/cmake
  sed -i 's,share/cmake,lib${LIB_SUFFIX}/cmake,g' CMakeLists.txt
}

build() {
  export CPPFLAGS+=' -DH5_USE_110_API'
  cmake \
    -B build \
    -D CMAKE_BUILD_TYPE=Release \
    -D CMAKE_INSTALL_PREFIX=/usr \
    -D CMAKE_SKIP_RPATH=ON \
    -D MEDFILE_BUILD_PYTHON=ON \
    -D MEDFILE_BUILD_TESTS=OFF \
    -D MEDFILE_INSTALL_DOC=OFF \
    -G Ninja \
    -S med
  ninja -C build
}

check() {
  cd build
  LD_LIBRARY_PATH="$srcdir/build/src" ctest -E '._Python' --output-on-failure
}

package() {
  DESTDIR="$pkgdir" ninja -C build install
}