Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-forensics/libewf/, app-forensics/libewf/files/
Date: Thu, 18 Aug 2022 18:12:12
Message-Id: 1660846322.82d8bff402dc1601d6f2a3254883fc90267191f3.sam@gentoo
1 commit: 82d8bff402dc1601d6f2a3254883fc90267191f3
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 18 18:08:42 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 18 18:12:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82d8bff4
7
8 app-forensics/libewf: fix build with OpenSSL 3
9
10 Closes: https://bugs.gentoo.org/805188
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 .../libewf/files/libewf-20171104-openssl-3.patch | 27 +++++++++
14 app-forensics/libewf/libewf-20171104-r2.ebuild | 66 ++++++++++++++++++++++
15 2 files changed, 93 insertions(+)
16
17 diff --git a/app-forensics/libewf/files/libewf-20171104-openssl-3.patch b/app-forensics/libewf/files/libewf-20171104-openssl-3.patch
18 new file mode 100644
19 index 000000000000..2d30da7042f8
20 --- /dev/null
21 +++ b/app-forensics/libewf/files/libewf-20171104-openssl-3.patch
22 @@ -0,0 +1,27 @@
23 +https://bugs.gentoo.org/805188
24 +https://github.com/libyal/libewf/commit/033ea5b4e5f8f1248f74a2ec61fc1be183c6c46b
25 +--- a/ewftools/ewftools_output.c
26 ++++ b/ewftools/ewftools_output.c
27 +@@ -238,12 +238,20 @@ void ewfoutput_version_detailed_fprint(
28 + LIBHMAC_VERSION_STRING );
29 +
30 + #if defined( HAVE_LIBCRYPTO )
31 ++#if defined( SHLIB_VERSION_NUMBER )
32 + fprintf(
33 + stream,
34 + " (libcrypto %s)",
35 + SHLIB_VERSION_NUMBER );
36 +-#endif
37 +-#endif
38 ++#elif defined( OPENSSL_VERSION_MAJOR ) && defined( OPENSSL_VERSION_MINOR )
39 ++ fprintf(
40 ++ stream,
41 ++ " (libcrypto %d.%d)",
42 ++ OPENSSL_VERSION_MAJOR,
43 ++ OPENSSL_VERSION_MINOR );
44 ++#endif
45 ++#endif
46 ++#endif
47 +
48 + #if defined( HAVE_LIBODRAW ) || defined( HAVE_LOCAL_LIBODRAW )
49 + fprintf(
50
51 diff --git a/app-forensics/libewf/libewf-20171104-r2.ebuild b/app-forensics/libewf/libewf-20171104-r2.ebuild
52 new file mode 100644
53 index 000000000000..8f9c065718a9
54 --- /dev/null
55 +++ b/app-forensics/libewf/libewf-20171104-r2.ebuild
56 @@ -0,0 +1,66 @@
57 +# Copyright 1999-2022 Gentoo Authors
58 +# Distributed under the terms of the GNU General Public License v2
59 +
60 +EAPI=7
61 +
62 +DESCRIPTION="Implementation of the EWF (SMART and EnCase) image format"
63 +HOMEPAGE="https://github.com/libyal/libewf"
64 +SRC_URI="https://github.com/libyal/libewf/releases/download/${PV}/${PN}-experimental-${PV}.tar.gz"
65 +
66 +LICENSE="BSD"
67 +SLOT="0/3"
68 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~riscv ~x86"
69 +# Upstream bug #2597171, pyewf has implicit declarations
70 +#IUSE="debug python unicode"
71 +IUSE="bfio bzip2 debug +fuse nls +ssl static-libs +uuid unicode zlib"
72 +
73 +# Uses bundled libbfio until tree version is bumped
74 +RDEPEND="
75 + bzip2? ( app-arch/bzip2 )
76 + fuse? ( sys-fs/fuse:0= )
77 + nls? (
78 + virtual/libintl
79 + virtual/libiconv
80 + )
81 + uuid? ( sys-apps/util-linux )
82 + ssl? ( dev-libs/openssl:0= )
83 + zlib? ( sys-libs/zlib )
84 +"
85 +DEPEND="${RDEPEND}"
86 +BDEPEND="
87 + virtual/pkgconfig
88 + nls? ( sys-devel/gettext )
89 +"
90 +
91 +# Issues finding test executables
92 +RESTRICT="test"
93 +
94 +PATCHES=(
95 + "${FILESDIR}"/${P}-openssl-3.patch
96 +)
97 +
98 +src_configure() {
99 + local econfargs=(
100 + $(use_enable static-libs static)
101 + $(use_enable nls)
102 + $(use_enable debug verbose-output)
103 + $(use_enable debug debug-output)
104 + $(use_enable unicode wide-character-type)
105 + $(use_with bfio libbfio)
106 + $(use_with zlib)
107 + $(use_with bzip2)
108 + $(use_with ssl openssl)
109 + $(use_with uuid libuuid)
110 + $(use_with fuse libfuse)
111 + )
112 +
113 + econf "${econfargs[@]}"
114 +}
115 +
116 +src_install() {
117 + default
118 +
119 + if ! use static-libs ; then
120 + find "${ED}"/usr -name '*.la' -delete || die
121 + fi
122 +}