Re: [gentoo-dev] Projects without a homepage, and valid contents of HOMEPAGE (per bug 239268)

2008-10-11 Thread Peter Volkov
В Пнд, 06/10/2008 в 15:59 +0200, Robert Buchholz пишет:
> On Sunday 05 October 2008, Thilo Bangert wrote:
> > HOMEPAGE="http://this-package-has-no-homepage.gentoo.org/";
> 
> Why not use our package site for this, i.e.
> HOMEPAGE="http://packages.gentoo.org/package/${CAT}/${PN}";

This is not homepage. HOMEPAGE should point to "package dependent
information" or in other words to upstream. Then why point to some site
which has nothing to do with upstream?

Same stands to existent or nonexistent link on gentoo.org or any other
domain. This is even worth as this solution also makes users to open
another page which just tell them that homepage does not exist...

So I think if HOMEPAGE does not exist then it's better either put some
constant there or better make it empty. If we wish, for packages with
empty HOMEPAGE we can teach tools like emerge -s or eix to show "Home
page unknown" or "Homepage does not exist". Simple and clear, what else
do we need? :)

-- 
Peter.




Re: [gentoo-dev] Projects without a homepage, and valid contents of HOMEPAGE (per bug 239268)

2008-10-06 Thread Robert Buchholz
On Sunday 05 October 2008, Thilo Bangert wrote:
> Ciaran McCreesh <[EMAIL PROTECTED]> said:
> > On Sun, 5 Oct 2008 03:44:20 -0700
> >
> > "Robin H. Johnson" <[EMAIL PROTECTED]> wrote:
> > > Either we need special cases to declare that it no longer has a
> > > homepage, or we need to allow the empty HOMEPAGE.
> >
> > HOMEPAGE="( )"
>
> HOMEPAGE="http://this-package-has-no-homepage.gentoo.org/";

Why not use our package site for this, i.e.
HOMEPAGE="http://packages.gentoo.org/package/${CAT}/${PN}";

i.e. for this particular use case, 
http://packages.gentoo.org/package/app-mobilephone/smssend

The site contains a link to ChangeLog, description, current version, 
forums and bugs. I would suggest it is the most usable homepage a user 
can expect if no other exists.


Robert


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-dev] Projects without a homepage, and valid contents of HOMEPAGE (per bug 239268)

2008-10-06 Thread Jeroen Roovers
On Mon, 06 Oct 2008 08:49:04 +0200
Hans de Graaff <[EMAIL PROTECTED]> wrote:

> I think the suggestion is to have one generic homepage for all
> packages without one, not a Gentoo-specific homepage for each project.

+1

http://www.gentoo.org/proj/en/abandoned/

Put that in all ebuilds for packages with no homes to go to. Then, do
something very smart where the page automatically assembles a list
of those packages, and explains how they have been taken under Gentoo's
developers' wings. :)

We could perhaps do something similar for no-herd in metadata.xml...
make herds.xml actually list the no-herd herd with some kind of
explanation...


Kind regards,
 JeR



Re: [gentoo-dev] Projects without a homepage, and valid contents of HOMEPAGE (per bug 239268)

2008-10-05 Thread Hans de Graaff
On Sun, 2008-10-05 at 23:38 -0700, Josh Saddler wrote:
> Ulrich Mueller wrote:
> >> On Sun, 5 Oct 2008, Robin H Johnson wrote:
> > 
>  HOMEPAGE="http://this-package-has-no-homepage.gentoo.org/";
> >>> That would impose needless lookups on subdomains of gentoo.org for
> >>> clients trying to load the homepage.
> >> http://gentoo.org/package-has-no-homepage/ then.
> > 
> > Couldn't a page be created at this URL, with a notice that the package
> > has no real homepage?

> 
> I think that'd take too much time to create and maintain that sort of
> thing, especially once old packages are finally removed from the tree.

I think the suggestion is to have one generic homepage for all packages
without one, not a Gentoo-specific homepage for each project.

> Why not just stick in a message that says "This package has no
> homepage"? Or "none"? Is there any reason why that couldn't go into the
> HOMEPAGE="" variable? Will it break QA tools and other utilities?

I guess there are a bunch of tools out there that expect a URL in
HOMEPAGE, so providing one will not raise any potential
incompatibilities.

Hans


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] Projects without a homepage, and valid contents of HOMEPAGE (per bug 239268)

2008-10-05 Thread Josh Saddler
Ulrich Mueller wrote:
>> On Sun, 5 Oct 2008, Robin H Johnson wrote:
> 
 HOMEPAGE="http://this-package-has-no-homepage.gentoo.org/";
>>> That would impose needless lookups on subdomains of gentoo.org for
>>> clients trying to load the homepage.
>> http://gentoo.org/package-has-no-homepage/ then.
> 
> Couldn't a page be created at this URL, with a notice that the package
> has no real homepage?
> 
> Ulrich
> 

I think that'd take too much time to create and maintain that sort of
thing, especially once old packages are finally removed from the tree.

Why not just stick in a message that says "This package has no
homepage"? Or "none"? Is there any reason why that couldn't go into the
HOMEPAGE="" variable? Will it break QA tools and other utilities?

Sure, it'd be nice if there was a homepage, but putting one on
gentoo.org implies that we do code fixes and other work, not just
hosting the tarballs. Do we really want to *be* upstream for all our
orphaned packages?



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] Projects without a homepage, and valid contents of HOMEPAGE (per bug 239268)

2008-10-05 Thread Ulrich Mueller
> On Sun, 5 Oct 2008, Robin H Johnson wrote:

>> > HOMEPAGE="http://this-package-has-no-homepage.gentoo.org/";
>> That would impose needless lookups on subdomains of gentoo.org for
>> clients trying to load the homepage.
> http://gentoo.org/package-has-no-homepage/ then.

Couldn't a page be created at this URL, with a notice that the package
has no real homepage?

Ulrich



Re: [gentoo-dev] Projects without a homepage, and valid contents of HOMEPAGE (per bug 239268)

2008-10-05 Thread Robin H. Johnson
On Sun, Oct 05, 2008 at 07:52:48PM -0700, Alec Warner wrote:
> On Sun, Oct 5, 2008 at 2:55 PM, Thilo Bangert <[EMAIL PROTECTED]> wrote:
> > Ciaran McCreesh <[EMAIL PROTECTED]> said:
> >> On Sun, 5 Oct 2008 03:44:20 -0700
> >>
> >> "Robin H. Johnson" <[EMAIL PROTECTED]> wrote:
> >> > Either we need special cases to declare that it no longer has a
> >> > homepage, or we need to allow the empty HOMEPAGE.
> >>
> >> HOMEPAGE="( )"
> >
> > HOMEPAGE="http://this-package-has-no-homepage.gentoo.org/";
> >
> That would impose needless lookups on subdomains of gentoo.org for
> clients trying to load the homepage.
http://gentoo.org/package-has-no-homepage/ then.

> HOMEPAGE="UNKNOWN" seems to work fine and keeps logic fairly simple:
> if HOMEPAGE != "UNKNOWN"
>   do_something_with_HOMEPAGE
> ...
My reason to support an empty HOMEPAGE variable is that the only
existing code that needs changing is repoman. If we change to have some
special value that isn't a URL, then all existing code (esp code that
doesn't use the Portage APIs) needs to be changed.

HOMEPAGE="" # with some comment explaining why

-- 
Robin Hugh Johnson
Gentoo Linux Developer & Infra Guy
E-Mail : [EMAIL PROTECTED]
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85


pgppql8XSj3r4.pgp
Description: PGP signature


Re: [gentoo-dev] Projects without a homepage, and valid contents of HOMEPAGE (per bug 239268)

2008-10-05 Thread Alec Warner
On Sun, Oct 5, 2008 at 2:55 PM, Thilo Bangert <[EMAIL PROTECTED]> wrote:
> Ciaran McCreesh <[EMAIL PROTECTED]> said:
>> On Sun, 5 Oct 2008 03:44:20 -0700
>>
>> "Robin H. Johnson" <[EMAIL PROTECTED]> wrote:
>> > Either we need special cases to declare that it no longer has a
>> > homepage, or we need to allow the empty HOMEPAGE.
>>
>> HOMEPAGE="( )"
>
> HOMEPAGE="http://this-package-has-no-homepage.gentoo.org/";
>

That would impose needless lookups on subdomains of gentoo.org for
clients trying to load the homepage.

HOMEPAGE="UNKNOWN" seems to work fine and keeps logic fairly simple:

if HOMEPAGE != "UNKNOWN"
  do_something_with_HOMEPAGE
...

The metadata API could even wrap this functionality such that packages
with no homepages could return nothing (not even UNKNOWN) or throw
some kind of error.

The only reason I would prefer UNKNOWN to Ciaran's suggestion is that
HOMEPAGE="( )" is not obvious to the majority of people (it basically
looks like a developer mis-pasted or had some other accident).

-Alec



Re: [gentoo-dev] Projects without a homepage, and valid contents of HOMEPAGE (per bug 239268)

2008-10-05 Thread Thilo Bangert
Ciaran McCreesh <[EMAIL PROTECTED]> said:
> On Sun, 5 Oct 2008 03:44:20 -0700
>
> "Robin H. Johnson" <[EMAIL PROTECTED]> wrote:
> > Either we need special cases to declare that it no longer has a
> > homepage, or we need to allow the empty HOMEPAGE.
>
> HOMEPAGE="( )"

HOMEPAGE="http://this-package-has-no-homepage.gentoo.org/";


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-dev] Projects without a homepage, and valid contents of HOMEPAGE (per bug 239268)

2008-10-05 Thread Ciaran McCreesh
On Sun, 5 Oct 2008 03:44:20 -0700
"Robin H. Johnson" <[EMAIL PROTECTED]> wrote:
> Either we need special cases to declare that it no longer has a
> homepage, or we need to allow the empty HOMEPAGE.

HOMEPAGE="( )"

-- 
Ciaran McCreesh


signature.asc
Description: PGP signature


Re: [gentoo-dev] Projects without a homepage, and valid contents of HOMEPAGE (per bug 239268)

2008-10-05 Thread Dawid Węgliński
On Sunday 05 of October 2008 12:44:20 Robin H. Johnson wrote:

> I'm in favour of allowing the variable to empty, because I'm a lazy
> upstream, and I haven't even made a basic webpage for some of my
> projects (diradm, localshell, readahead-list, etc).

lol

+1 for allowing empty $HOMEPAGE



[gentoo-dev] Projects without a homepage, and valid contents of HOMEPAGE (per bug 239268)

2008-10-05 Thread Robin H. Johnson
For projects where the upstream has vanished off the face of the planet,
and the project was reasonably obscure, but the code works fine still, 
there's problems with either the requirements of HOMEPAGE or the repoman
check.

From PMS:
\item[HOMEPAGE] The URI or URIs for a package's homepage, including
protocols. May be defined by an eclass. See section~\ref{dependencies}
for full syntax.

Devmanual:
HOMEPAGE: Package's homepage. If you are unable to locate an official
one, try to provide a link to freshmeat.net  or a similar package
tracking site.  Never refer to a variable name in the string; include
only raw text. 

As Infra, I suggested that zero or more valid URLs should be present in
the bug where the question was raised.

However repoman doesn't like an empty HOMEPAGE variable:

HOMEPAGE.missing  1
 app-mobilephone/smssend/smssend-3.4.ebuild

Either we need special cases to declare that it no longer has a
homepage, or we need to allow the empty HOMEPAGE.

I'm in favour of allowing the variable to empty, because I'm a lazy
upstream, and I haven't even made a basic webpage for some of my
projects (diradm, localshell, readahead-list, etc).

-- 
Robin Hugh Johnson
Gentoo Linux Developer & Infra Guy
E-Mail : [EMAIL PROTECTED]
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85


pgpEY9IMEIoLw.pgp
Description: PGP signature