1 |
On Thu, 2019-09-19 at 19:47 +0200, Haelwenn (lanodan) Monnier wrote: |
2 |
> Which means that glibc needs to be masked as it's static-linking is |
3 |
> broken. |
4 |
> |
5 |
> I considered dietlibc as a replacement to klibc but: |
6 |
> - dietlibc is maintained-needed too |
7 |
> - it could be a elibc_glibc? in DEPEND but this would probably be a |
8 |
> noblah USE flag |
9 |
> - it would mean that arches where mksh is believed to work and some of |
10 |
> our libc do but not dietlibc or klibc (like alpha with bug #487672) |
11 |
> would be prevented from USE=static |
12 |
> |
13 |
> Closes: https://bugs.gentoo.org/653388 |
14 |
> Signed-off-by: Haelwenn (lanodan) Monnier <contact@×××××××××.me> |
15 |
> --- |
16 |
> app-shells/mksh/mksh-57-r2.ebuild | 49 +++++++++++++++++++++++ |
17 |
> app-shells/mksh/mksh-9999.ebuild | 7 +--- |
18 |
> profiles/base/package.use.mask | 4 ++ |
19 |
> profiles/features/musl/package.use.mask | 3 ++ |
20 |
> profiles/features/uclibc/package.use.mask | 3 ++ |
21 |
> 5 files changed, 61 insertions(+), 5 deletions(-) |
22 |
> create mode 100644 app-shells/mksh/mksh-57-r2.ebuild |
23 |
> |
24 |
> diff --git a/app-shells/mksh/mksh-57-r2.ebuild b/app-shells/mksh/mksh-57-r2.ebuild |
25 |
> new file mode 100644 |
26 |
> index 00000000000..cb6db11f38c |
27 |
> --- /dev/null |
28 |
> +++ b/app-shells/mksh/mksh-57-r2.ebuild |
29 |
> @@ -0,0 +1,49 @@ |
30 |
> +# Copyright 1999-2019 Gentoo Authors |
31 |
> +# Distributed under the terms of the GNU General Public License v2 |
32 |
> + |
33 |
> +EAPI=7 |
34 |
> + |
35 |
> +inherit toolchain-funcs |
36 |
> + |
37 |
> +if [[ $PV = 9999 ]]; then |
38 |
> + inherit cvs |
39 |
> + ECVS_SERVER="anoncvs.mirbsd.org:/cvs" |
40 |
> + ECVS_MODULE="mksh" |
41 |
> + ECVS_USER="_anoncvs" |
42 |
> + ECVS_AUTH="ext" |
43 |
> + KEYWORDS="" |
44 |
> +else |
45 |
> + SRC_URI="http://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.tgz" |
46 |
> + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
47 |
> +fi |
48 |
> + |
49 |
> +DESCRIPTION="MirBSD Korn Shell" |
50 |
> +HOMEPAGE="http://mirbsd.de/mksh" |
51 |
|
52 |
Please add empty line here. |
53 |
|
54 |
> +LICENSE="BSD" |
55 |
> +SLOT="0" |
56 |
> +IUSE="static test" |
57 |
|
58 |
...and here. |
59 |
|
60 |
> +DEPEND=" |
61 |
> + test? ( |
62 |
> + dev-lang/perl |
63 |
> + sys-apps/ed |
64 |
> + ) |
65 |
> +" |
66 |
|
67 |
...and possibly here, or just move S below HOMEPAGE. |
68 |
|
69 |
I know this is nitpicking but when you work on a lot of ebuilds, you get |
70 |
used to a particular ordering and grouping, and this helps us work |
71 |
faster. |
72 |
|
73 |
> +S="${WORKDIR}/${PN}" |
74 |
> + |
75 |
> +src_compile() { |
76 |
> + tc-export CC |
77 |
> + if use static; then export LDSTATIC="-static"; fi |
78 |
|
79 |
use static && ... |
80 |
|
81 |
Also, what's the purpose of this anyway? I mean, I can understand |
82 |
having busybox static so you could use it with broken libc. But what's |
83 |
the use for static mksh? |
84 |
|
85 |
> + export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\"" |
86 |
> + sh Build.sh -r || die |
87 |
> +} |
88 |
> + |
89 |
> +src_install() { |
90 |
> + into / |
91 |
> + dobin mksh |
92 |
> + doman mksh.1 |
93 |
> + dodoc dot.mkshrc |
94 |
> +} |
95 |
> + |
96 |
> +src_test() { |
97 |
> + ./test.sh -v || die |
98 |
|
99 |
I'd probably use 'sh test.sh' for consistency with how you call Build.sh |
100 |
;-). |
101 |
|
102 |
|
103 |
-- |
104 |
Best regards, |
105 |
Michał Górny |