#573127 sphinxsearch should use prefix for utlilities

Package:
sphinxsearch
Source:
sphinxsearch
Description:
Fast standalone full-text SQL search engine
Submitter:
"Dmitry E. Oboukhov"
Date:
2010-04-22 05:51:05 UTC
Severity:
wishlist
#573127#5
Date:
2010-03-09 08:45:01 UTC
From:
To:
Package: sphinxsearch
Version: 0.9.9-4
Severity: wishlist

Hi, maintainer!

Thanks for packaging this package. I used to my package before, now I
can switch to Your package.

But I think that it would be nice if sphinxsearch used prefix for its
utilities.

Its confugure has --program-prefix option, You can use it.

If You try to use

apt-file search bin/indexer

You will be able to find some indexer utilities, for example:

mnogosearch-mysql: /usr/sbin/indexer
mnogosearch-pgsql: /usr/sbin/indexer
mnogosearch-sqlite: /usr/sbin/indexer
sphinxsearch: /usr/bin/indexer

If we install mnogosearch and sphinxsearch we will duplicates in root
$PATH which will point to different utilities. This problem can lead
at problems in scripts which will be based on indexer utilitie.

The same situation with search(d).
also the name 'indexer' isn't informative


Could You use prefix for these utilities?

for ex: --program-prefix=sphinx option?

#573127#10
Date:
2010-04-22 05:23:20 UTC
From:
To:
RS> sphinxsearch is a package that provides binaries like searchd, indexer, etc.

RS> I received bug report #573127 which has the correct
RS> intention behind it that the binaries should be
RS> prefixed.

RS> The problem I am seeing is that any change like this
RS> would affect modules, plugins, and a lot of programs
RS> that interact with SphinxSearch. My particular use case
RS> is in Rails where searchd is a hardcoded value in
RS> plugins that interact with the daemon.

I think now there are few programs which have dependencies
on sphinxsearch. On new program we can file bugreports :)
I think that the patch of Rails will be simple.

RS> What I want to do is mark the bug as wontfix and Conflicts mongosearch-*.

I think it would be wrong idea. User would want install both packages.
Also, next time we will be able to find out other searchd/indexer
programs and will be forced to add another conflicts. I think that
this problem should be resolved now, when we have few users and few
dependencies.

RS> But I am looking for second opinions. What do you think?

Another way: using prefixes in deb-package and add alternative for
name searchd/indexer/etc. But this case You should file a bugreport
for mnogosearch-* to to the same.