Package Details: dislocker-noruby 0.7.3-3

Git Clone URL: https://aur.archlinux.org/dislocker-noruby.git (read-only, click to copy)
Package Base: dislocker-noruby
Description: Read/write BitLocker-encrypted volumes (no ruby bindings/dependency)
Upstream URL: https://github.com/Aorimn/dislocker
Licenses: GPL-2.0-or-later
Conflicts: dislocker, dislocker-git
Provides: dislocker
Submitter: aswild
Maintainer: aswild
Last Packager: aswild
Votes: 2
Popularity: 0.21
First Submitted: 2019-04-01 03:02 (UTC)
Last Updated: 2025-05-14 00:11 (UTC)

Dependencies (6)

Required by (0)

Sources (2)

Latest Comments

korimitsu commented on 2025-05-19 21:25 (UTC)

@aswild thank you very much!

aswild commented on 2025-05-14 00:13 (UTC)

Well this was a bit of a doozy to fix, but it compiles again in 0.7.3-3. Had to fix compatibility with new cmake and gcc versions, but I also found an mbedtls 3 patch upstream to backport so no more need for the legacy mbedtls2 package.

korimitsu commented on 2025-05-06 21:03 (UTC)

Does not compile:

$ paru -S dislocker-noruby
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

:: Conflicts found:
    dislocker-noruby: dislocker  

:: Conflicting packages will have to be confirmed manually

Aur (1) dislocker-noruby-0.7.3-2

:: Proceed to review? [Y/n]: 

:: Downloading PKGBUILDs...
/home/korimitsu/.cache/paru/clone/dislocker-noruby/PKGBUILD-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------]
# Maintainer: Allen Wild <allenwild93 at gmail dot com>
# Contributor: mrxx <mrxx at cyberhome dot at>

_name=dislocker
pkgname=${_name}-noruby
pkgver=0.7.3
pkgrel=2
pkgdesc="Read/write BitLocker-encrypted volumes (no ruby bindings/dependency)"
arch=('i686' 'x86_64')
url="https://github.com/Aorimn/dislocker"
license=('GPL2')
depends=('fuse' 'mbedtls2')
makedepends=('make' 'cmake')
provides=('dislocker')
conflicts=('dislocker' 'dislocker-git')
optdepends=('ntfs-3g: NTFS file system support')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
        "no-ruby.patch::${url}/commit/05cd96b1890d3bd4c6ea472edcc2e7b329e4e2e4.patch")
sha256sums=('8d5275577c44f2bd87f6e05dd61971a71c0e56a9cbedf000bd38deadd8b6c1e6'
            '6c911d7ba4c66ec1e97f63caed3e84be75188c7ff5fbcf6b834047068aec8952')

prepare() {
  cd "$srcdir/$_name-$pkgver"

  patch -p1 -i "$srcdir/no-ruby.patch"
}

build() {
  cd "$srcdir/$_name-$pkgver"

  cmake -S. -Bbuild \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -Dlibdir=/usr/lib \
        -DWITH_RUBY=OFF \
        -DPOLARSSL_INCLUDE_DIRS=/usr/include/mbedtls2 \
        -DPOLARSSL_LIBRARIES=/usr/lib/mbedtls2/libmbedcrypto.so
  cmake --build build
}

package() {
  cd "$srcdir/$_name-$pkgver"
  DESTDIR="$pkgdir" cmake --install build

  install -Dm644 README.md ${pkgdir}/usr/share/doc/${_name}/README
  install -Dm644 CHANGELOG.md ${pkgdir}/usr/share/doc/${_name}/CHANGELOG
  install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${_name}/LICENSE
}

# vim: ft=sh et sw=2 sts=2


/home/korimitsu/.cache/paru/clone/dislocker-noruby/.gitignore
*.tar.gz
*.pkg.tar.*
/no-ruby.patch
/pkg/
/src/


:: Accept changes? [Y/n]: 
fetching devel info...
==> Making package: dislocker-noruby 0.7.3-2 (Tue 06 May 2025 10:58:54 PM)
==> Retrieving sources...
  -> Downloading dislocker-noruby-0.7.3.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  108k    0  108k    0     0   151k      0 --:--:-- --:--:-- --:--:--  151k
  -> Downloading no-ruby.patch...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2236  100  2236    0     0   5949      0 --:--:-- --:--:-- --:--:--  5946
==> Validating source files with sha256sums...
    dislocker-noruby-0.7.3.tar.gz ... Passed
    no-ruby.patch ... Passed
==> Making package: dislocker-noruby 0.7.3-2 (Tue 06 May 2025 10:58:56 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found dislocker-noruby-0.7.3.tar.gz
  -> Found no-ruby.patch
==> Validating source files with sha256sums...
    dislocker-noruby-0.7.3.tar.gz ... Passed
    no-ruby.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting dislocker-noruby-0.7.3.tar.gz with bsdtar
==> Starting prepare()...
patching file src/CMakeLists.txt
Hunk #2 succeeded at 127 (offset 2 lines).
==> Sources are ready.
dislocker-noruby-0.7.3-2: parsing pkg list...
==> Making package: dislocker-noruby 0.7.3-2 (Tue 06 May 2025 10:58:58 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
CMake Error at CMakeLists.txt:20 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'dislocker-noruby-0.7.3-2': 
error: packages failed to build: dislocker-noruby-0.7.3-2

lpzantony commented on 2023-07-17 22:31 (UTC)

Updated my system today, broke when updating to version 0.7.3-1. libmbedcrypto.so.7 was missing on my system. Fixed it by installing mbedtls2 package (which provides such lib).

aswild commented on 2021-07-15 14:56 (UTC)

@BenSYZ, that's a common thing that happens with AUR packages. When system shared libraries get updated with soname bumps, AUR packages that depend on them need to be rebuilt. Either run "pacman -Syud" to ignore the dependency version and upgrade everything else anyway, or just uninstall the AUR package before updating, then rebuild/reinstall the package as usual.

BenSYZ commented on 2021-07-15 06:22 (UTC)

A dependency problem raised:

:: Installing mbedtls (2.27.0-1) will break the dependency required by dislocker-noruby'libmbedcrypto.so=6-64'

I don't know if its OK to post here or should I post at up-stream.