Gentoo Archives: gentoo-dev

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Projects without a homepage, and valid contents of HOMEPAGE (per bug 239268)
Date: Mon, 06 Oct 2008 03:08:55
Message-Id: 20081006025240.GD9967@curie-int.orbis-terrarum.net
In Reply to: Re: [gentoo-dev] Projects without a homepage, and valid contents of HOMEPAGE (per bug 239268) by Alec Warner
1 On Sun, Oct 05, 2008 at 07:52:48PM -0700, Alec Warner wrote:
2 > On Sun, Oct 5, 2008 at 2:55 PM, Thilo Bangert <bangert@g.o> wrote:
3 > > Ciaran McCreesh <ciaran.mccreesh@××××××××××.com> said:
4 > >> On Sun, 5 Oct 2008 03:44:20 -0700
5 > >>
6 > >> "Robin H. Johnson" <robbat2@g.o> wrote:
7 > >> > Either we need special cases to declare that it no longer has a
8 > >> > homepage, or we need to allow the empty HOMEPAGE.
9 > >>
10 > >> HOMEPAGE="( )"
11 > >
12 > > HOMEPAGE="http://this-package-has-no-homepage.gentoo.org/"
13 > >
14 > That would impose needless lookups on subdomains of gentoo.org for
15 > clients trying to load the homepage.
16 http://gentoo.org/package-has-no-homepage/ then.
17
18 > HOMEPAGE="UNKNOWN" seems to work fine and keeps logic fairly simple:
19 > if HOMEPAGE != "UNKNOWN"
20 > do_something_with_HOMEPAGE
21 > ...
22 My reason to support an empty HOMEPAGE variable is that the only
23 existing code that needs changing is repoman. If we change to have some
24 special value that isn't a URL, then all existing code (esp code that
25 doesn't use the Portage APIs) needs to be changed.
26
27 HOMEPAGE="" # with some comment explaining why
28
29 --
30 Robin Hugh Johnson
31 Gentoo Linux Developer & Infra Guy
32 E-Mail : robbat2@g.o
33 GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85

Replies