Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-cdr/dumpet/, app-cdr/dumpet/files/
Date: Mon, 30 Mar 2020 15:30:51
Message-Id: 1585582189.d4cca385687aaeedfb00e5684d08d9da0d3f4fc4.bkohler@gentoo
1 commit: d4cca385687aaeedfb00e5684d08d9da0d3f4fc4
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 30 15:28:56 2020 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 30 15:29:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4cca385
7
8 app-cdr/dumpet: add musl fix
9
10 Closes: https://bugs.gentoo.org/715450
11 Package-Manager: Portage-2.3.96, Repoman-2.3.22
12 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
13
14 app-cdr/dumpet/dumpet-2.1_p20140601-r2.ebuild | 44 +++++++++++++++++++++++++++
15 app-cdr/dumpet/files/musl-byteswap-fix.patch | 11 +++++++
16 2 files changed, 55 insertions(+)
17
18 diff --git a/app-cdr/dumpet/dumpet-2.1_p20140601-r2.ebuild b/app-cdr/dumpet/dumpet-2.1_p20140601-r2.ebuild
19 new file mode 100644
20 index 00000000000..fb18f5b349b
21 --- /dev/null
22 +++ b/app-cdr/dumpet/dumpet-2.1_p20140601-r2.ebuild
23 @@ -0,0 +1,44 @@
24 +# Copyright 1999-2020 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=6
28 +
29 +inherit toolchain-funcs vcs-snapshot
30 +
31 +COMMIT="8f47670dd582c96ad1b6dd3c9b9da0acebded5d8"
32 +
33 +DESCRIPTION="A tool to dump and debug bootable CD-like images"
34 +HOMEPAGE="https://github.com/rhboot/dumpet"
35 +SRC_URI="https://github.com/rhboot/dumpet/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
36 +
37 +LICENSE="GPL-2"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~x86"
40 +IUSE="test"
41 +#Restrict tests since required test file is unavailable
42 +RESTRICT="test"
43 +
44 +RDEPEND="dev-libs/libxml2
45 + dev-libs/popt"
46 +DEPEND="${RDEPEND}
47 + virtual/pkgconfig
48 + test? ( dev-util/valgrind )"
49 +
50 +PATCHES=( "${FILESDIR}"/musl-byteswap-fix.patch )
51 +
52 +src_prepare() {
53 + sed -i Makefile \
54 + -e "s/^install : all$/install :/" \
55 + -e "s/^CFLAGS:=/CFLAGS?=/" \
56 + -e "s/^CC:=/CC?=/" \
57 + || die
58 + default
59 +}
60 +
61 +src_compile() {
62 + emake CFLAGS="${CFLAGS}" dumpet
63 +}
64 +
65 +pkg_setup() {
66 + tc-export CC
67 +}
68
69 diff --git a/app-cdr/dumpet/files/musl-byteswap-fix.patch b/app-cdr/dumpet/files/musl-byteswap-fix.patch
70 new file mode 100644
71 index 00000000000..83beb321c59
72 --- /dev/null
73 +++ b/app-cdr/dumpet/files/musl-byteswap-fix.patch
74 @@ -0,0 +1,11 @@
75 +diff -ur a/applepart.c b/applepart.c
76 +--- a/applepart.c 2020-03-30 10:25:52.122137073 -0500
77 ++++ b/applepart.c 2020-03-30 10:26:09.803672537 -0500
78 +@@ -27,6 +27,7 @@
79 + #include <string.h>
80 + #include <stdio.h>
81 + #include <errno.h>
82 ++#include <byteswap.h>
83 +
84 + #include "applepart.h"
85 + #include "endian.h"