Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/parted/, sys-block/parted/files/
Date: Fri, 03 Jan 2020 14:49:25
Message-Id: 1578062957.1af57544e419afdbc54cb6dc76e053593e4bb088.jer@gentoo
1 commit: 1af57544e419afdbc54cb6dc76e053593e4bb088
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 3 14:47:20 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 3 14:49:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1af57544
7
8 sys-block/parted: Fix segfault when USE=-debug
9
10 PED_ASSERT does funky stuff to atr_c_locale when USE=-debug, causing
11 freelocale() to fail on exiting labels/atari.c.
12
13 Package-Manager: Portage-2.3.84, Repoman-2.3.20
14 Closes: https://bugs.gentoo.org/704704
15 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
16
17 sys-block/parted/files/parted-3.3-atari.patch | 11 +++++++++++
18 sys-block/parted/{parted-3.3.ebuild => parted-3.3-r1.ebuild} | 3 ++-
19 2 files changed, 13 insertions(+), 1 deletion(-)
20
21 diff --git a/sys-block/parted/files/parted-3.3-atari.patch b/sys-block/parted/files/parted-3.3-atari.patch
22 new file mode 100644
23 index 00000000000..41771d02d4e
24 --- /dev/null
25 +++ b/sys-block/parted/files/parted-3.3-atari.patch
26 @@ -0,0 +1,11 @@
27 +--- a/libparted/labels/atari.c
28 ++++ b/libparted/labels/atari.c
29 +@@ -1957,7 +1957,7 @@
30 + PED_ASSERT (sizeof (AtariRawPartition) == 12);
31 + PED_ASSERT (sizeof (AtariRawTable) == 512);
32 + /* GNU Libc doesn't support NULL instead of the locale name */
33 +- PED_ASSERT ((atr_c_locale = newlocale(LC_ALL_MASK, "C", NULL)) != NULL);
34 ++ atr_c_locale = newlocale(LC_ALL_MASK, "C", NULL);
35 +
36 + ped_disk_type_register (&atari_disk_type);
37 + }
38
39 diff --git a/sys-block/parted/parted-3.3.ebuild b/sys-block/parted/parted-3.3-r1.ebuild
40 similarity index 94%
41 rename from sys-block/parted/parted-3.3.ebuild
42 rename to sys-block/parted/parted-3.3-r1.ebuild
43 index 1945a756254..4f2c019b732 100644
44 --- a/sys-block/parted/parted-3.3.ebuild
45 +++ b/sys-block/parted/parted-3.3-r1.ebuild
46 @@ -1,4 +1,4 @@
47 -# Copyright 1999-2019 Gentoo Authors
48 +# Copyright 1999-2020 Gentoo Authors
49 # Distributed under the terms of the GNU General Public License v2
50
51 EAPI=7
52 @@ -31,6 +31,7 @@ DEPEND="
53 "
54 PATCHES=(
55 "${FILESDIR}"/${PN}-3.2-po4a-mandir.patch
56 + "${FILESDIR}"/${PN}-3.3-atari.patch
57 )
58
59 src_prepare() {