1 |
commit: b99b21377e23907dcb9986ef1ebfdc30b931c235 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 15 03:19:32 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 15 03:20:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b99b2137 |
7 |
|
8 |
sys-fs/squashfs-tools: add 4.5_p20210914 |
9 |
|
10 |
Contains a fix for a CVE (CVE-2021-41072) but |
11 |
also a few regressions and follow up fixes. |
12 |
|
13 |
Upstream say there's a new version coming |
14 |
soon but best not to wait. |
15 |
|
16 |
Closes: https://bugs.gentoo.org/811474 |
17 |
Bug: https://bugs.gentoo.org/811474 |
18 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
19 |
|
20 |
sys-fs/squashfs-tools/Manifest | 1 + |
21 |
.../squashfs-tools-4.5_p20210914.ebuild | 59 ++++++++++++++++++++++ |
22 |
2 files changed, 60 insertions(+) |
23 |
|
24 |
diff --git a/sys-fs/squashfs-tools/Manifest b/sys-fs/squashfs-tools/Manifest |
25 |
index 30d14da8e10..2f241ef9a54 100644 |
26 |
--- a/sys-fs/squashfs-tools/Manifest |
27 |
+++ b/sys-fs/squashfs-tools/Manifest |
28 |
@@ -1 +1,2 @@ |
29 |
DIST squashfs-tools-4.5.tar.gz 250471 BLAKE2B 2fc8ab9bb6565b97656afd63b76bfd7449d96b83697286e88b55a8cd82957b395df17a707ee93e8a99ed19dc5ba73966ce33530ef6c35797924dad4e3f16ed3b SHA512 e00610487d24eed9e5dadcf84014a3d7faa9815d8ce00fd4660e6c8ce394dccf185ed9f387f4fa1313b9812fe770f802bdcbaef87887f2bcefacf234594a72e0 |
30 |
+DIST squashfs-tools-4.5_p20210914.tar.gz 252104 BLAKE2B f3e2e281c30464b3c2e9b2a3520979f90ccb83665ac61a2f68513b402d8ef658621fc75c782c2f42da20ddf51f884e2ccc6217df941790fd45b41f3f4e3ec970 SHA512 a814092be787bbcbd4115f87493a63b67caa364ad88fe5a3c82808083343cbcbc22b4617bd5c72d65d8abe2b11eb77853bcc55c11f5cd5dc3edf24bd27cbd135 |
31 |
|
32 |
diff --git a/sys-fs/squashfs-tools/squashfs-tools-4.5_p20210914.ebuild b/sys-fs/squashfs-tools/squashfs-tools-4.5_p20210914.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..66c6618def0 |
35 |
--- /dev/null |
36 |
+++ b/sys-fs/squashfs-tools/squashfs-tools-4.5_p20210914.ebuild |
37 |
@@ -0,0 +1,59 @@ |
38 |
+# Copyright 1999-2021 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=8 |
42 |
+inherit flag-o-matic toolchain-funcs |
43 |
+ |
44 |
+MY_COMMIT="19fcc9365dcdb2c22d232d42d11012940df64b7c" |
45 |
+MY_P=${P/_p/-git.} |
46 |
+DESCRIPTION="tools to create and extract Squashfs filesystems" |
47 |
+HOMEPAGE="https://github.com/plougher/squashfs-tools/" |
48 |
+SRC_URI="https://github.com/plougher/squashfs-tools/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" |
49 |
+S=${WORKDIR}/${PN}-${MY_COMMIT} |
50 |
+ |
51 |
+#SRC_URI=" |
52 |
+# https://github.com/plougher/squashfs-tools/archive/${PV/_p/-git.}.tar.gz |
53 |
+# -> ${MY_P}.tar.gz" |
54 |
+#S=${WORKDIR}/${MY_P} |
55 |
+ |
56 |
+LICENSE="GPL-2" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
59 |
+IUSE="debug lz4 lzma lzo xattr zstd" |
60 |
+ |
61 |
+RDEPEND=" |
62 |
+ sys-libs/zlib |
63 |
+ lz4? ( app-arch/lz4 ) |
64 |
+ lzma? ( app-arch/xz-utils ) |
65 |
+ lzo? ( dev-libs/lzo ) |
66 |
+ xattr? ( sys-apps/attr ) |
67 |
+ zstd? ( app-arch/zstd ) |
68 |
+" |
69 |
+DEPEND=${RDEPEND} |
70 |
+ |
71 |
+use10() { usex "${1}" 1 0; } |
72 |
+ |
73 |
+src_configure() { |
74 |
+ # set up make command line variables in EMAKE_SQUASHFS_CONF |
75 |
+ EMAKE_SQUASHFS_CONF=( |
76 |
+ LZMA_XZ_SUPPORT=$(use10 lzma) |
77 |
+ LZO_SUPPORT=$(use10 lzo) |
78 |
+ LZ4_SUPPORT=$(use10 lz4) |
79 |
+ XATTR_SUPPORT=$(use10 xattr) |
80 |
+ XZ_SUPPORT=$(use10 lzma) |
81 |
+ ZSTD_SUPPORT=$(use10 zstd) |
82 |
+ ) |
83 |
+ |
84 |
+ tc-export CC |
85 |
+ use debug && append-cppflags -DSQUASHFS_TRACE |
86 |
+} |
87 |
+ |
88 |
+src_compile() { |
89 |
+ emake "${EMAKE_SQUASHFS_CONF[@]}" -C squashfs-tools |
90 |
+} |
91 |
+ |
92 |
+src_install() { |
93 |
+ dobin squashfs-tools/{mksquashfs,unsquashfs} |
94 |
+ dodoc ACKNOWLEDGEMENTS CHANGES README* |
95 |
+ dodoc -r RELEASE-READMEs |
96 |
+} |