Gentoo Archives: gentoo-dev

From: Georgi Georgiev <chutz@×××.net>
To: gentoo-dev@××××××××××××.org
Subject: Re: [gentoo-dev] category sci-geosciences redundant ?
Date: Thu, 17 Mar 2005 05:33:16
Message-Id: 20050317053312.GA19329@ols-dell.iic.hokudai.ac.jp
In Reply to: Re: [gentoo-dev] category sci-geosciences redundant ? by "Robin H. Johnson"
1 maillog: 16/03/2005-21:03:29(-0800): Robin H. Johnson types
2 > On Thu, Mar 17, 2005 at 01:29:23PM +0900, Georgi Georgiev wrote:
3 > > Which is one of the reasons why I am behind the idea of *unique* package
4 > > names, even if that involves some redundand naming. It's for the greater
5 > > good. The package name being tied to its category is evil and it also
6 > > means that we'll never see multiple categories per package, or more
7 > > descriptive category names, or any other of these goodies. Ever.
8 > And what about packages that have the same name upstream, and yet do different
9 > things? It's a nice concept, but not practical.
10 >
11 > find $(<profiles/categories) -maxdepth 1 -mindepth 1 ! -name CVS -printf '%h %f\n' | sort -k2 | uniq -f1 -dD
12 > Shows we have 145 packages with non-unique names.
13 >
14 > We've even got a few cases where there are 3 applications with the same name
15 > upstream:
16 > app-arch/par
17 > app-text/par
18 > dev-util/par
19 > (2 other examples of the same thing as well).
20
21 I've been suggesting renaming packages appropriately, but the idea's
22 been shot down with 'We use upstream names' a few times already.
23
24 Still, I cannot restrain myself from hacking down your example from
25 above. It's just too good an oportunity to miss. :)
26
27
28 * app-arch/par
29 src_install() {
30 dobin par || die
31 dodoc AUTHORS NEWS README rs.doc
32 }
33
34 * app-text/par
35 src_install() {
36 newbin par par-format || die
37 doman par.1
38 dodoc releasenotes par.doc
39 }
40
41 * dev-util/par
42 src_install () {
43 dobin par
44 dolib *.a *.so
45
46 mv par.man par.1
47 doman par.1
48 }
49
50 Let's start with app-text/par.
51
52 - The binary is renamed to par-format to avoid a clash with the one from
53 app-arch/par (If I'm wrong, correct me, this is just an assumption).
54 - The man page is left as par, so that if a user decides to look-up the
55 usage of par-format, they have to type man par (overlooking I guess).
56 - To correct the above, the man page would also need to be renamed for
57 consistency with the name of the binary.
58 - We would end up with a package that installs /usr/bin/par-format and a
59 par-format.1 man page. What would be the big deal with renaming the
60 package itself, then?
61
62 - app-arch/par and dev-util/par both install /usr/bin/par
63 - app-text/par and dev-util/par both install /usr..../man.1.gz
64
65 Fix these collisions, and I'll tell you how to fix the problem with
66 their names.
67
68 --
69 *) Georgi Georgiev *) A definition of teaching: casting fake *)
70 (* chutz@×××.net (* pearls before real swine. -- Bill Cain, (*
71 *) +81(90)6266-1163 *) "Stand Up Tragedy" *)

Replies

Subject Author
Re: [gentoo-dev] category sci-geosciences redundant ? Georgi Georgiev <chutz@×××.net>
Re: [gentoo-dev] category sci-geosciences redundant? "Robin H. Johnson" <robbat2@g.o>