Re: security/hydra and www/hydra

2010-07-23 Thread Shaun Amott
On Thu, Jul 22, 2010 at 09:35:30AM +0100, Matthew Seaman wrote:
> 
> On 21/07/2010 23:05, Mark Linimon wrote:
> > On Wed, Jul 21, 2010 at 10:21:11PM +0200, Kurt Jaeger wrote:
> >>> And is this ok to have two ports with the same name.
> >>
> >> No, it's bad and should be avoided. I'm pretty sure some
> >> portupgrade tool will break.
> > 
> > No, they actually handle it ok.  It _is_ confusing to the users, however
> > (and, if you go through a raw list of package binaries, You Just Have To
> > Know which one's which.)
> 
> Doesn't this cause problems for the CVS MODULES stuff?  I thought that
> was one of the biggest reasons for why port names should be unique.
> 

It does, but it's easy enough to work around by fabricating a unique
name where there would be a conflict (e.g. www_hydra, security_hydra).

-- 
Shaun Amott // PGP: 0x6B387A9A
"A foolish consistency is the hobgoblin
of little minds." - Ralph Waldo Emerson
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: security/hydra and www/hydra

2010-07-22 Thread Matthew Seaman
On 21/07/2010 23:05, Mark Linimon wrote:
> On Wed, Jul 21, 2010 at 10:21:11PM +0200, Kurt Jaeger wrote:
>>> And is this ok to have two ports with the same name.
>>
>> No, it's bad and should be avoided. I'm pretty sure some
>> portupgrade tool will break.
> 
> No, they actually handle it ok.  It _is_ confusing to the users, however
> (and, if you go through a raw list of package binaries, You Just Have To
> Know which one's which.)

Doesn't this cause problems for the CVS MODULES stuff?  I thought that
was one of the biggest reasons for why port names should be unique.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: security/hydra and www/hydra

2010-07-21 Thread Anonymous
Mark Linimon  writes:

> On Thu, Jul 22, 2010 at 02:18:36AM +0400, Anonymous wrote:
>> Ah, it uses NO_LATEST_LINK. So the answer is `none'. Sorry.
>
> Yeah, but I had to look it up myself.
>
> Do you know of any other examples that are missing either CONFLICTS or
> NO_LATEST_LINK?
>

I'm not sure what you mean by `either ... or' here but I don't think you
can substitute CONFLICTS with NO_LATEST_LINK. As for missing CONFLICTS
there are too many to check, I've stopped after finding following

  net/ttt, games/ttt - both install bin/ttt but only games/ttt has CONFLICTS
  chinese/vflib, japanese/vflib - have similar PLIST and no CONFLICTS
  lang/gawk, japanese/gawk - bin/gawk, no CONFLICTS
  math/surf, www/surf - bin/surf, no CONFLICTS
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: security/hydra and www/hydra

2010-07-21 Thread Mark Linimon
On Thu, Jul 22, 2010 at 02:18:36AM +0400, Anonymous wrote:
> Ah, it uses NO_LATEST_LINK. So the answer is `none'. Sorry.

Yeah, but I had to look it up myself.

Do you know of any other examples that are missing either CONFLICTS or
NO_LATEST_LINK?

mcl
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: security/hydra and www/hydra

2010-07-21 Thread Anonymous
Anonymous  writes:

> Mark Linimon  writes:
>
>> On Wed, Jul 21, 2010 at 10:21:11PM +0200, Kurt Jaeger wrote:
>>> > And is this ok to have two ports with the same name.
>>> 
>>> No, it's bad and should be avoided. I'm pretty sure some
>>> portupgrade tool will break.
>>
>> No, they actually handle it ok.  It _is_ confusing to the users, however
>> (and, if you go through a raw list of package binaries, You Just Have To
>> Know which one's which.)
>
> So, which package the following command will install?
>
>   $ pkg_add -r hydra

Ah, it uses NO_LATEST_LINK. So the answer is `none'. Sorry.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: security/hydra and www/hydra

2010-07-21 Thread Anonymous
Mark Linimon  writes:

> On Wed, Jul 21, 2010 at 10:21:11PM +0200, Kurt Jaeger wrote:
>> > And is this ok to have two ports with the same name.
>> 
>> No, it's bad and should be avoided. I'm pretty sure some
>> portupgrade tool will break.
>
> No, they actually handle it ok.  It _is_ confusing to the users, however
> (and, if you go through a raw list of package binaries, You Just Have To
> Know which one's which.)

So, which package the following command will install?

  $ pkg_add -r hydra
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: security/hydra and www/hydra

2010-07-21 Thread Mark Linimon
On Wed, Jul 21, 2010 at 10:21:11PM +0200, Kurt Jaeger wrote:
> > And is this ok to have two ports with the same name.
> 
> No, it's bad and should be avoided. I'm pretty sure some
> portupgrade tool will break.

No, they actually handle it ok.  It _is_ confusing to the users, however
(and, if you go through a raw list of package binaries, You Just Have To
Know which one's which.)

mcl
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: security/hydra and www/hydra

2010-07-21 Thread Kurt Jaeger
> 21.07.2010 20:47, Ashish SHUKLA ??:
> > In case of multiple ports installing files with same name at same path, then
> > one of them needs to alter the file names by using suffix or prefix, like 
> > GNU
> > projects do when they collide with BSD equivalents by using 'g' as prefix.
> 
> I don't think that prefixing gnu tools is good example.
> For example we have native make in /usr/bin and gmake
> in /usr/local/bin.And native make is in base system, and
> gmake is a port.
> 
> So why CONFLICTS needed then for?

It's needed here because both ports install into the same file.

But you are absolutly right, two ports with the same name (hydra)
are also bad. One of the should be changed, e.g. to hydra-webserver.

> And is this ok to have two ports with the same name.

No, it's bad and should be avoided. I'm pretty sure some
portupgrade tool will break.

-- 
p...@opsec.eu+49 171 310137210 years to go !
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: security/hydra and www/hydra

2010-07-21 Thread Ashish SHUKLA
Ruslan Mahmatkhanov writes:
> 21.07.2010 20:47, Ashish SHUKLA пишет:
>> In case of multiple ports installing files with same name at same path, then
>> one of them needs to alter the file names by using suffix or prefix, like GNU
>> projects do when they collide with BSD equivalents by using 'g' as prefix.

> I don't think that prefixing gnu tools is good example.
> For example we have native make in /usr/bin and gmake
> in /usr/local/bin.And native make is in base system, and
> gmake is a port.

> So why CONFLICTS needed then for?

IMHO, CONFLICTS are suited for ports which represent same project or forks or
with different options which install files at same places thus can't be
installed side-by-side. e.g. irc/bitlbee and irc/bitlbee-otr, editors/emacs*
ports etc., thats purely my observation.

> And is this ok to have two ports with the same name. I've
> searched Porters Handbook for this, but found nothing (i think
> it pretty obvious to mention it in docs).
> What if want to remove one of then, or update. Which one
> will be removed/updated?

Well, I don't think its good to have two ports with same name, esp. when they
result in same PKGNAME. To distinguish between similar named ports add a
prefix or suffix to them.

> Please don't get me wrong, just curious.

No problems.

% echo 'pkill cat' >curiosity

-- 
Ashish SHUKLA  | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0
freebsd.org!ashish | http://people.freebsd.org/~ashish/

“Keep your BitTorrent clients running and make the world a better
place to live in.” (Sir Debarshi Ray, ".signature", 2010)


pgpMGVS4wJuFT.pgp
Description: PGP signature


Re: security/hydra and www/hydra

2010-07-21 Thread Ruslan Mahmatkhanov

21.07.2010 20:47, Ashish SHUKLA пишет:

In case of multiple ports installing files with same name at same path, then
one of them needs to alter the file names by using suffix or prefix, like GNU
projects do when they collide with BSD equivalents by using 'g' as prefix.


I don't think that prefixing gnu tools is good example.
For example we have native make in /usr/bin and gmake
in /usr/local/bin.And native make is in base system, and
gmake is a port.

So why CONFLICTS needed then for?

And is this ok to have two ports with the same name. I've
searched Porters Handbook for this, but found nothing (i think
it pretty obvious to mention it in docs).
What if want to remove one of then, or update. Which one
will be removed/updated?

Please don't get me wrong, just curious.

--
Regards,
Ruslan
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: security/hydra and www/hydra

2010-07-21 Thread Ashish SHUKLA
cvs-src  writes:

>Good day!
>We now have two ports with name 'hydra' in the tree, one in security
>category, and one in www.
>Both installs file ${PREFIX}/bin/hydra.
>I firstly think about asking for add CONFLICTS line, but then come up
>to ports tree should not have
>two ports with same name.
>What you think about this?

In case of multiple ports installing files with same name at same path, then
one of them needs to alter the file names by using suffix or prefix, like GNU
projects do when they collide with BSD equivalents by using 'g' as prefix.

HTH
-- 
Ashish SHUKLA  | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0
freebsd.org!ashish | http://people.freebsd.org/~ashish/

“Does history record any case in which the majority was right?”
(Robert A. Heinlein, 1973)


pgpgLYL7oGVvR.pgp
Description: PGP signature