1 |
commit: 4f35256247d00b21d10386055070e748b1b3c15b |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 10 10:21:15 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 10 10:21:31 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f352562 |
7 |
|
8 |
sys-fs/diskdev_cmds: respct user's LDFLAGS |
9 |
|
10 |
Reported-by: Diego Elio Pettenò |
11 |
Fixed-by: Joshua B. Kahlenberg |
12 |
Closes: https://bugs.gentoo.org/334619 |
13 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
14 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
15 |
|
16 |
.../diskdev_cmds/diskdev_cmds-332.14_p1-r4.ebuild | 52 ++++++++++++++++++++++ |
17 |
.../files/diskdev_cmds-332.14_p1-ldflags.patch | 11 +++++ |
18 |
2 files changed, 63 insertions(+) |
19 |
|
20 |
diff --git a/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r4.ebuild b/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r4.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..1ae1b2667e5 |
23 |
--- /dev/null |
24 |
+++ b/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r4.ebuild |
25 |
@@ -0,0 +1,52 @@ |
26 |
+# Copyright 1999-2020 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+ |
31 |
+inherit toolchain-funcs |
32 |
+ |
33 |
+MY_PV=${PV%_p*} |
34 |
+ |
35 |
+DESCRIPTION="HFS and HFS+ utils ported from OSX, supplies mkfs and fsck" |
36 |
+HOMEPAGE="http://opendarwin.org" |
37 |
+SRC_URI="http://darwinsource.opendarwin.org/tarballs/apsl/diskdev_cmds-${MY_PV}.tar.gz |
38 |
+ mirror://gentoo/diskdev_cmds-${PV}.patch.bz2" |
39 |
+LICENSE="APSL-2" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
42 |
+IUSE="libressl" |
43 |
+DEPEND=" |
44 |
+ !libressl? ( dev-libs/openssl:0= ) |
45 |
+ libressl? ( dev-libs/libressl:0= ) |
46 |
+" |
47 |
+RDEPEND="${DEPEND}" |
48 |
+ |
49 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
50 |
+ |
51 |
+PATCHES=( |
52 |
+ "${WORKDIR}"/diskdev_cmds-${PV}.patch |
53 |
+ "${FILESDIR}"/${PN}-respect-cflags.patch |
54 |
+ "${FILESDIR}"/${P}-AR.patch |
55 |
+ "${FILESDIR}"/${P}-no-sysctl.patch |
56 |
+ "${FILESDIR}"/${P}-ldflags.patch |
57 |
+) |
58 |
+ |
59 |
+src_compile() { |
60 |
+ emake -f Makefile.lnx AR="$(tc-getAR)" CC="$(tc-getCC)" |
61 |
+} |
62 |
+ |
63 |
+src_install() { |
64 |
+ into / |
65 |
+ dosbin fsck_hfs.tproj/fsck_hfs |
66 |
+ dosbin newfs_hfs.tproj/newfs_hfs |
67 |
+ dosym newfs_hfs /sbin/mkfs.hfs |
68 |
+ dosym newfs_hfs /sbin/mkfs.hfsplus |
69 |
+ dosym fsck_hfs /sbin/fsck.hfs |
70 |
+ dosym fsck_hfs /sbin/fsck.hfsplus |
71 |
+ doman newfs_hfs.tproj/newfs_hfs.8 |
72 |
+ newman newfs_hfs.tproj/newfs_hfs.8 mkfs.hfs.8 |
73 |
+ newman newfs_hfs.tproj/newfs_hfs.8 mkfs.hfsplus.8 |
74 |
+ doman fsck_hfs.tproj/fsck_hfs.8 |
75 |
+ newman fsck_hfs.tproj/fsck_hfs.8 fsck.hfs.8 |
76 |
+ newman fsck_hfs.tproj/fsck_hfs.8 fsck.hfsplus.8 |
77 |
+} |
78 |
|
79 |
diff --git a/sys-fs/diskdev_cmds/files/diskdev_cmds-332.14_p1-ldflags.patch b/sys-fs/diskdev_cmds/files/diskdev_cmds-332.14_p1-ldflags.patch |
80 |
new file mode 100644 |
81 |
index 00000000000..84b9c58417f |
82 |
--- /dev/null |
83 |
+++ b/sys-fs/diskdev_cmds/files/diskdev_cmds-332.14_p1-ldflags.patch |
84 |
@@ -0,0 +1,11 @@ |
85 |
+--- a/newfs_hfs.tproj/Makefile.lnx |
86 |
++++ b/newfs_hfs.tproj/Makefile.lnx |
87 |
+@@ -4,7 +4,7 @@ OFILES = $(CFILES:.c=.o) |
88 |
+ all: newfs_hfs |
89 |
+ |
90 |
+ newfs_hfs: $(OFILES) |
91 |
+- ${CC} ${CFLAGS} -o newfs_hfs ${OFILES} -lcrypto |
92 |
++ ${CC} ${CFLAGS} -o newfs_hfs ${OFILES} ${LDFLAGS} -lcrypto |
93 |
+ |
94 |
+ clean: |
95 |
+ $(RM) newfs_hfs $(OFILES) |