Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys-fs/dislocker: bump to version 0.7.3
This version includes a fix to prevent dislocker from segfaulting when reading bitlocker-encrypted partitions created by recent versions of Windows 10: Aorimn/dislocker#185 Closes: https://bugs.gentoo.org/766540 Package-Manager: Portage-3.0.13, Repoman-3.0.2
- Loading branch information
Showing
2 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
DIST dislocker-0.7.1-fix-find-ruby.patch 25942 BLAKE2B bd9d93c5eddcbade0039c1787dae36f5dd01f91cd435dfb9dbcfcb16f0f09cba7e73a3221c8b2f3843d0a68199fb9e38bdb91428fa784442659f7af53ab6d4dd SHA512 70f5a628659ef4645d757b899f3e6310e3a4d2ab89f429748c711177a0944e9b0eabf5341e394ab09216b0fa18e3c2b0832406b27f40c04510df937ffe5f65ef | ||
DIST dislocker-0.7.1.tar.gz 103194 BLAKE2B 05421b0d3e7686480e40a41e67086017c454b76e0852fef78a7b5d10134cf388b4bf7b9669d87b867418f4c074cc023ea9b0260dbdbc837322d04f217aa40b28 SHA512 8852ba3e363fdea992eebecfe1e4dad2b85404f57c57ce6b2937a9859d03cfa88d969926c9e11e6d22596c6d96805b7d1737893ae2c5a957448ab26708bce226 | ||
DIST dislocker-0.7.3.tar.gz 111257 BLAKE2B ba8403facfef04f5194a22421d2010d472b073d6dce03c9f457d7661de11bb818782cc66bfee8cd88fe72af7ac127bbbcbe1a01c5c35f0cf054f282b3208c3ea SHA512 c62241d70d51f6445a2f6d0f08e099bbc1a4257ca98232471fc43ec63e69d62ae5f702c995ec00b7e1db7d33f4bb3a31ea05bc13862bf3b539feb301a0e034ff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Copyright 1999-2021 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
inherit cmake flag-o-matic | ||
|
||
DESCRIPTION="Dislocker is used to read BitLocker encrypted partitions." | ||
HOMEPAGE="https://github.com/Aorimn/dislocker" | ||
|
||
if [[ ${PV} == *9999* ]]; then | ||
EGIT_REPO_URI="https://github.com/Aorimn/dislocker.git" | ||
inherit git-r3 | ||
else | ||
SRC_URI="https://github.com/Aorimn/dislocker/archive/v${PV}.tar.gz -> ${P}.tar.gz | ||
https://dev.gentoo.org/~juippis/distfiles/tmp/dislocker-0.7.1-fix-find-ruby.patch" | ||
KEYWORDS="~amd64 ~x86" | ||
fi | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
IUSE="ruby" | ||
|
||
DEPEND=" | ||
sys-fs/fuse:0= | ||
net-libs/mbedtls:0= | ||
ruby? ( dev-lang/ruby:* ) | ||
" | ||
RDEPEND="${DEPEND}" | ||
|
||
CMAKE_REMOVE_MODULES_LIST="${CMAKE_REMOVE_MODULES_LIST} FindRuby" | ||
|
||
src_prepare() { | ||
if use ruby && [[ ${PV} == "0.7.1" ]]; then | ||
PATCHES=( "${DISTDIR}/${P}-fix-find-ruby.patch" ) | ||
fi | ||
cmake_src_prepare | ||
|
||
# We either need to change Werror to Wno-error or remove the multiple declarations of FORTIFY_SOURCE | ||
# sed 's:Werror:Wno-error:g' -i "${S}/src/CMakeLists.txt" || die | ||
sed 's:-D_FORTIFY_SOURCE=2::g' -i "${S}/src/CMakeLists.txt" || die | ||
|
||
# sed 's:\.\./man:'../../${P}/man':g' -i "${S}/src/CMakeLists.txt" || die | ||
# Do not process compressed versions of the manuals | ||
sed -r 's:( create_symlink \$\{BIN_FUSE\}\.1)\.gz (.+\.1)\.gz\\:\1 \2\\:' -i "${S}/src/CMakeLists.txt" || die | ||
sed -r 's:^(.+\.1\.gz):#\1:' -i "${S}/src/CMakeLists.txt" || die | ||
} | ||
|
||
src_configure() { | ||
mycmakeargs=( | ||
$(cmake_use_find_package ruby Ruby) | ||
) | ||
cmake_src_configure | ||
} | ||
|
||
src_install() { | ||
if ! use ruby; then | ||
rm "${S}/man/linux/${PN}-find.1" || die | ||
fi | ||
find "${S}/man/linux" -name '*.1' -exec doman '{}' + | ||
cmake_src_install | ||
} |