1 |
commit: e4954b9e8904d7f42041f0f747d438f326b0f814 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 14 14:46:10 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 14 14:47:30 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4954b9e |
7 |
|
8 |
sys-fs/squashfs-tools: Version 4.3_p11 |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Fixes: https://bugs.gentoo.org/680330 |
12 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
13 |
|
14 |
sys-fs/squashfs-tools/Manifest | 1 + |
15 |
.../squashfs-tools/squashfs-tools-4.3_p11.ebuild | 82 ++++++++++++++++++++++ |
16 |
2 files changed, 83 insertions(+) |
17 |
|
18 |
diff --git a/sys-fs/squashfs-tools/Manifest b/sys-fs/squashfs-tools/Manifest |
19 |
index e1aeb832119..97b189ae5c9 100644 |
20 |
--- a/sys-fs/squashfs-tools/Manifest |
21 |
+++ b/sys-fs/squashfs-tools/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
+DIST squashfs-tools_4.3-11.debian.tar.xz 27108 BLAKE2B 948a69f79fbec6af2467a56457410253676d693e1d67efef034f85523c17e6db6d85f1f9e9b2f8ae391ac5783d37b7d2cdb3434acee96c19880bbf6a5b771e40 SHA512 ef22436a6da925f8ac0c61ae4450b4cc9a87930b456035dd2588c3edf0d7530cd1a9d1e7bde90c9462e39687a9a8d0caedea5f181cd2414e4caa8af1d3965b0a |
24 |
DIST squashfs-tools_4.3-3.debian.tar.xz 15252 BLAKE2B 5273eb8007192190786513f49be68eded38a7acae80d0c84067e8d239d53304a79be454cc4970af0d1c1eff6e58b75403201497dfd18d175f9d5aae5e0102834 SHA512 ab1a707e04e92697549f7e7c667c5da835d39d5e2cb791e47bf549b232e7173e6981c33a87cd373c4a7a4815e4af1b7294fe13e54422a5ccdcff90904bfc51ae |
25 |
DIST squashfs-tools_4.3-6.debian.tar.xz 19060 BLAKE2B 4fc28fae1da2bd1bfbf774acd4f4b29e382760078efd16c655a9178633a58e1ab15fb0203a626dc6353df8ff6860f7da5f9369fd920cf773dd53f8b90cffe13c SHA512 e2f64cdcfe01696980a45d4d6ec50e82626cb3e25e8c98d63b68c9754f519171fcfc4586b4ef88104e28275e1daf94a23f5b7dd08d37fe6e8417b054954de1e7 |
26 |
DIST squashfs-tools_4.3-7.debian.tar.xz 19612 BLAKE2B 7894b6fa27e7e46aec82b680a1ce521c895436ccb1cafcfd3d95e09f56546e08539a7c152854ee14e9516e217339617d25e68c0cc1a4c41b3bdd689caeefa94a SHA512 88df37e0c13483c5591f925156628b3ae27279f56d2453f7f1f82558da1bc3338e23e9481d704b785a40846c6dedc6b0a0e1dd2ea70fe26ea2f1e855fd6d6fdf |
27 |
|
28 |
diff --git a/sys-fs/squashfs-tools/squashfs-tools-4.3_p11.ebuild b/sys-fs/squashfs-tools/squashfs-tools-4.3_p11.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..8565685e580 |
31 |
--- /dev/null |
32 |
+++ b/sys-fs/squashfs-tools/squashfs-tools-4.3_p11.ebuild |
33 |
@@ -0,0 +1,82 @@ |
34 |
+# Copyright 1999-2019 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+inherit flag-o-matic toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="tools to create and extract Squashfs filesystems" |
41 |
+HOMEPAGE="http://squashfs.sourceforge.net" |
42 |
+SRC_URI=" |
43 |
+ mirror://sourceforge/squashfs/squashfs${PV/_p*}.tar.gz |
44 |
+ mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-${PV/*_p}.debian.tar.xz |
45 |
+" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
50 |
+IUSE="debug lz4 lzma lzo static xattr +xz" |
51 |
+ |
52 |
+LIB_DEPEND=" |
53 |
+ sys-libs/zlib[static-libs(+)] |
54 |
+ !xz? ( !lzo? ( sys-libs/zlib[static-libs(+)] ) ) |
55 |
+ lz4? ( app-arch/lz4[static-libs(+)] ) |
56 |
+ lzma? ( app-arch/xz-utils[static-libs(+)] ) |
57 |
+ lzo? ( dev-libs/lzo[static-libs(+)] ) |
58 |
+ xattr? ( sys-apps/attr[static-libs(+)] ) |
59 |
+ xz? ( app-arch/xz-utils[static-libs(+)] ) |
60 |
+" |
61 |
+RDEPEND=" |
62 |
+ !static? ( ${LIB_DEPEND//\[static-libs(+)]} ) |
63 |
+" |
64 |
+DEPEND=" |
65 |
+ ${RDEPEND} |
66 |
+ static? ( ${LIB_DEPEND} ) |
67 |
+" |
68 |
+PATCHES=( |
69 |
+ "${FILESDIR}"/${P/_p*}-sysmacros.patch |
70 |
+ "${FILESDIR}"/${P/_p*}-aligned-data.patch |
71 |
+ "${FILESDIR}"/${P/_p*}-local-cve-fix.patch |
72 |
+ "${FILESDIR}"/${P/_p*}-mem-overflow.patch |
73 |
+ "${FILESDIR}"/${P/_p*}-extmatch.patch |
74 |
+ "${FILESDIR}"/${P/_p*}-musl.patch |
75 |
+) |
76 |
+ |
77 |
+S="${WORKDIR}/squashfs${PV/_p*}/${PN}" |
78 |
+ |
79 |
+src_prepare() { |
80 |
+ eapply -p2 "${WORKDIR}"/debian/patches/*.patch |
81 |
+ eapply -p2 ${PATCHES[@]} |
82 |
+ eapply_user |
83 |
+} |
84 |
+ |
85 |
+use10() { usex $1 1 0 ; } |
86 |
+ |
87 |
+src_configure() { |
88 |
+ # restore GNU89 inline semantics to |
89 |
+ # emit function symbols, bug 595290 |
90 |
+ append-cflags -std=gnu89 |
91 |
+ |
92 |
+ # set up make command line variables in EMAKE_SQUASHFS_CONF |
93 |
+ EMAKE_SQUASHFS_CONF=( |
94 |
+ LZMA_XZ_SUPPORT=$(use10 lzma) |
95 |
+ LZO_SUPPORT=$(use10 lzo) |
96 |
+ LZ4_SUPPORT=$(use10 lz4) |
97 |
+ XATTR_SUPPORT=$(use10 xattr) |
98 |
+ XZ_SUPPORT=$(use10 xz) |
99 |
+ ) |
100 |
+ |
101 |
+ tc-export CC |
102 |
+ use debug && append-cppflags -DSQUASHFS_TRACE |
103 |
+ use static && append-ldflags -static |
104 |
+} |
105 |
+ |
106 |
+src_compile() { |
107 |
+ emake "${EMAKE_SQUASHFS_CONF[@]}" |
108 |
+} |
109 |
+ |
110 |
+src_install() { |
111 |
+ dobin mksquashfs unsquashfs |
112 |
+ cd .. |
113 |
+ dodoc CHANGES PERFORMANCE.README pseudo-file.example README* OLD-READMEs/* |
114 |
+ doman "${WORKDIR}"/debian/manpages/*.[0-9] |
115 |
+} |