[bug-notifications] [alternatives 0004559]: --set does not work

Mantis Bug Tracker noreply at opencsw.org
Mon Oct 4 00:37:24 CEST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4559 
====================================================================== 
Reported By:                holzi
Assigned To:                phil
====================================================================== 
Project:                    alternatives
Issue ID:                   4559
Category:                   regular use
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
====================================================================== 
Date Submitted:             2010-09-30 15:47 CEST
Last Modified:              2010-10-04 00:37 CEST
====================================================================== 
Summary:                    --set does not work
Description: 
during testing the new apache2 package I wanted to change the alternative:

/opt/csw/sbin/alternatives --display httpd
Installed alternatives for httpd are:
/opt/csw/apache2/sbin/httpd httpd /opt/csw/apache2/sbin/httpd.prefork 100
/opt/csw/apache2/sbin/httpd httpd /opt/csw/apache2/sbin/httpd.worker 50


/opt/csw/sbin/alternatives --set httpd /opt/csw/apache2/sbin/httpd.worker

ln: cannot create /etc/opt/etc/alternatives/httpd: No such file or
directory

====================================================================== 

---------------------------------------------------------------------- 
 (0008341) phil (manager) - 2010-10-04 00:37
 https://www.opencsw.org/mantis/view.php?id=4559#c8341 
---------------------------------------------------------------------- 
It is just a curent implementation detail of GAR, that it only writes one
"alternatives" file per package. It could be modified to do otherwise.
Similarly, the current alternatives implementation "could be modified" to
do otherwise, but that would take a whole lot of thinking about design, and
then quite a bit of coding, to make it happen.
I'm guessing the GAR modification would be fairly easy.

I will not have time to do further modification to the 'alternatives'
program, for at least another two weeks.

I find this whole thing rather odd to start with, having the two apache
binaries merged into the top package.
If you split off the different apache implementations into separate
packages, (or at least the uncommon one) like we previously had, then this
whole "problem" becomes moot. And it would add functionality to the user.
there's no reason for them to download a binary (the lower-priority
"alternative") and have it laying around, if they are never going to use
it.



More information about the bug-notifications mailing list