Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: repo/gentoo:master commit in: dev-libs/libunibreak/
Date: Thu, 14 Dec 2017 13:41:28
Message-Id: 1513258877.1087.9.camel@gentoo.org
In Reply to: Re: [gentoo-dev] Re: repo/gentoo:master commit in: dev-libs/libunibreak/ by Fabian Groffen
1 W dniu czw, 14.12.2017 o godzinie 13∶56 +0100, użytkownik Fabian Groffen
2 napisał:
3 > On 14-12-2017 13:39:18 +0100, Michał Górny wrote:
4 > > Dnia 14 grudnia 2017 13:21:47 CET, Fabian Groffen <grobian@g.o> napisał(a):
5 > > > Can we make it a policy to list /what/ QA issues are the justification
6 > > > for commits like these? A description in the commit message would be
7 > > > preferred, but a pointer to a location where said issues can be found
8 > > > would do too.
9 > >
10 > > Maintainer-needed is reason enough. If somebody couldn't be bothered to maintain what he committed, why should we bother to list the issues?
11 > >
12 > > Using repoman and looking at CI mails is also a good idea.
13 >
14 > Obviously for me to learn something, I won't/can't use repoman here. So
15 > a pointer to said CI mails from the message of the QA commit would be
16 > nice.
17
18 Last I checked, I wasn't personally responsible for teaching people
19 ebuild writing 101 while on phone. But here you go (in malformed paste
20 of ebuild below).
21
22 > diff --git a/dev-libs/libunibreak/Manifest
23 > > >
24 > > > b/dev-libs/libunibreak/Manifest
25 > > > > deleted file mode 100644
26 > > > > index 487fd898f5d..00000000000
27 > > > > --- a/dev-libs/libunibreak/Manifest
28 > > > > +++ /dev/null
29 > > > > @@ -1 +0,0 @@
30 > > > > -DIST libunibreak-4.0.tar.gz 629403 SHA256
31 > > >
32 > > > f7329bef1eb169d3363f040cefcc323cfd0a0bc53290a35a395e1d1adc849539 SHA512
33 > > > 43da73f66fabd8fdef444c5a06ad1800464a0aeab590938522d6c19973950a242f2ccc0575a93d10d87bdcf82610452117ac081ddb73f47271a8c2a65897e11c
34 > > > WHIRLPOOL
35 > > > ad71bc5910ca3dff994651022a5a6c6093cd4023852270fa243848f7576287b7cec4ad02a6b27686149491cb52824a93fdb6a6dac4c878d67db2f4041282d300
36
37 Those are not correct checksums for a newly added distfile.
38
39 > > > >
40 > > > > diff --git a/dev-libs/libunibreak/libunibreak-4.0.ebuild
41 > > >
42 > > > b/dev-libs/libunibreak/libunibreak-4.0.ebuild
43 > > > > deleted file mode 100644
44 > > > > index f531bb66e38..00000000000
45 > > > > --- a/dev-libs/libunibreak/libunibreak-4.0.ebuild
46 > > > > +++ /dev/null
47 > > > > @@ -1,39 +0,0 @@
48 > > > > -# Copyright 1999-2017 Gentoo Foundation
49 > > > > -# Distributed under the terms of the GNU General Public License v2
50 > > > > -
51 > > > > -EAPI=6
52 > > > > -inherit versionator
53 > > > > -
54 > > > > -DESCRIPTION="Line and word breaking library"
55 > > > > -HOMEPAGE="http://vimgadgets.sourceforge.net/libunibreak/"
56 > > > >
57 > > >
58 > > > -SRC_URI="https://github.com/adah1972/${PN}/releases/download/${PN}_$(replace_all_version_separators
59 > > > '_')/${P}.tar.gz"
60 > > > > -
61 > > > > -LICENSE="ZLIB"
62 > > > > -SLOT="0"
63 > > > > -KEYWORDS="~amd64 ~arm ~ppc ~x86"
64 > > > > -IUSE="doc +man static-libs"
65 > > > > -
66 > > > > -DEPEND="man? ( app-doc/doxygen )"
67 > > > > -RDEPEND="!dev-libs/liblinebreak"
68 > > > > -
69 > > > > -src_prepare() {
70 > > > > - use man && echo -e 'GENERATE_MAN=YES\nGENERATE_HTML=NO' >> Doxyfile
71
72 Missing || die. Also don't use 'echo -e', it teaches people bad
73 practices and it's awfully unreadable.
74
75 > > > > - default
76 > > > > -}
77 > > > > -
78 > > > > -src_configure() {
79 > > > > - econf \
80 > > > > - $(use_enable static-libs static)
81 > > > > - use doc && export HTML_DOCS=( doc/html/. )
82
83 Why is this exported? And what does it have to do with src_configure?
84
85 > > > > -}
86 > > > > -
87 > > > > -src_compile() {
88 > > > > - default
89 > > > > - use man && doxygen || die
90
91 Gratz, USE=-man dies.
92
93 > > > > -}
94 > > > > -
95 > > > > -src_install() {
96 > > > > - default
97 > > > > - prune_libtool_files
98
99 Deprecated.
100
101 > > > > - use man && find "${D}/usr/include" -type f -execdir doman
102 > > > "${S}/doc/man/man3/{}.3" \;
103 > > > > -}
104
105 Why this hackery? Can't you just doman doc/man/man3/*.3?
106
107 > > > >
108 > > > > diff --git a/dev-libs/libunibreak/metadata.xml
109 > > >
110 > > > b/dev-libs/libunibreak/metadata.xml
111 > > > > deleted file mode 100644
112 > > > > index a8bbb441f29..00000000000
113 > > > > --- a/dev-libs/libunibreak/metadata.xml
114 > > > > +++ /dev/null
115 > > > > @@ -1,14 +0,0 @@
116 > > > > -<?xml version="1.0" encoding="UTF-8"?>
117 > > > > -<!DOCTYPE pkgmetadata SYSTEM
118 > > >
119 > > > "http://www.gentoo.org/dtd/metadata.dtd">;
120 > > > > -<pkgmetadata>
121 > > > > - <!-- maintainer-needed -->
122 > > > > - <longdescription lang="en">
123 > > > > - Libunibreak is an implementation of the line breaking and word
124 > > >
125 > > > breaking algorithms
126 > > > > - as described in Unicode Standard Annex 14 and Unicode Standard
127 > > >
128 > > > Annex 29. It is
129 > > > > - designed to be used in a generic text renderer.
130 > > > > - </longdescription>
131 > > > > - <use>
132 > > > > - <flag name="man">Generate man pages with doxygen.</flag>
133 > > > > - <flag name="doc">Install html API documentation.</flag>
134
135 Sort by name.
136
137 > > > > - </use>
138 > > > > -</pkgmetadata>
139 > > > >
140 > > > >
141 > >
142 > >
143 > > --
144 > > Best regards,
145 > > Michał Górny (by phone)
146 > >
147 >
148 >
149
150 --
151 Best regards,
152 Michał Górny

Replies