bugGNU Source Installer - Bugs: bug #17375, sourceinstall-gtk: provide prefix...

 
 

bug #17375: sourceinstall-gtk: provide prefix override in the configuration window

Submitter:  Dâniel Fraga <dfraga>
Submitted:  Tue 08 Aug 2006 08:57:12 PM UTC
   
 
Category:  User Interface Severity:  3 - Normal
Status:  Fixed Assigned to:  sick_soul
Open/Closed:  Closed
Additional Notes: 


> If I don't define a prefix for sourceinstall and ran it as
> root, it will assume something like prefix=/


The default prefix value for the root user is /usr/local .
Could you explain what you mean here?

> Of course I can change the prefix in Preferences but it
> would be easier if I keep prefix value empty and use the
> default prefix from the source I'm installing.


I will answer this at a later date, or I'll be late to work.

Thanks for your report - Claudio

* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 14 Sep 2006 05:48:52 PM UTC, comment #5: 

Ok. I understood. So, in this case, I agree. It's fine for me. Thank you!

Dâniel Fraga <dfraga>
Thu 14 Sep 2006 05:46:40 PM UTC, comment #4: 


> Your implementation works fine, but isnt' there a way to
> sourceinstall discover by itself which is the default prefix
> from the source?


Yes, but the question is: is it a good idea?

By using a global default prefix option, the user can be sure that all packages he installs have a certain prefix, when he does not explicitly override the globally defined default.

Otherwise we are left with the packager's whims
(Is it /usr/local, /usr, $HOME/name, /usr/local/name, ...),
which means that after installing X packages we might have X different prefixes, with the involved confusion and potential necessity to extend PATH, LD_LIBRARY_PATH, PKG_CONFIG_PATH, YOUR_PATH_HERE,...

while by forcing the default prefix option we gain uniformity and simplicity.

It could be possible to show the package-provided prefix in the Directories tab as a reference though.

By the way, all packages installed from source code should have a package-provided default prefix of /usr/local (GNU coding standards, Filesystem Hierarchy Standard), so I do not agree with the samba choice here.

FHS:
http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLOCALLOCALHIERARCHY


Claudio Fontana <sick_soul>
Group administrator
Thu 14 Sep 2006 03:57:40 PM UTC, comment #3: 

Your implementation works fine, but isnt' there a way to sourceinstall discover by itself which is the default prefix from the source? For example, when installing Samba, at the Directories tab, I find --prefix=/usr/local. But it would be nice if it defaults to /usr/local/samba (default destination for samba). Is it possible? If not, it's fine this way. Thanks.


Dâniel Fraga <dfraga>
Wed 13 Sep 2006 10:04:14 PM UTC, comment #2: 


It is now possible to override the default prefix during configuration in sourceinstall-gtk too.

This has been already possible with sourceinstall command-line tool using the dedicated --prefix option, while the gtk frontend did not have an equivalent until now.

To override the default prefix, choose the Directories tab, and you will find --prefix as the first option, with the default value
pre-entered. Check the option and modify its value according to your needs.

It would be useful if you could check these changes and report your comments about them (checkout current cvs version, or use the pre-built cvs packages).


Claudio Fontana <sick_soul>
Group administrator
Fri 25 Aug 2006 03:40:20 PM UTC, comment #1: 


> The default prefix value for the root user is /usr/local .
> Could you explain what you mean here?


Example:

1) if I install Samba using ./configure; make; make install it will be installed in /usr/local/samba. For example:

fraga@tux /usr/local/samba$ ls
bin/  include/  lib/  man/  private/  sbin/  swat/  var/

2) if I install Samba using sourceinstall, it will install samba in /usr/local instead of /usr/local/samba. This way I have the above directories below /usr/local (wrong) and not /usr/local/samba (correct).

The default prefix is /usr/local, but for Samba it should be /usr/local/samba (default prefix using manual install thru configure; make; make install). So sourceinstall could respect the default prefix from the package instead of always forcing /usr/local.

Dâniel Fraga <dfraga>
Tue 08 Aug 2006 08:57:12 PM UTC, original submission:  

If I don't define a prefix for sourceinstall and ran it as root, it will assume something like prefix=/

I'd like that instead, sourceinstall used the default prefix from te source. For example, if I install Samba, it will be installed in /usr/local/samba. But if sourceinstall has prefix=/usr/local, is installs Samba in /usr/local... Of course I can change the prefix in Preferences but it would be easier if I keep prefix value empty  and use the default prefix from the source I'm installing.

Thanks.

Ps: other solution would be if I could just define an specific prefix for Samba in the sourceinstall-gtk interface. It could be when sourceinstall-gtk asks what configure options I'd like. It could have a --prefix option so I could supersede the default prefix in Preferences.

Dâniel Fraga <dfraga>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 7 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-09-20 sick_soul StatusReady For Test Fixed
    Assigned toNone sick_soul
    Open/ClosedOpen Closed
    SummaryAssume default prefix from source sourceinstall-gtk: provide prefix override in the configuration window
2006-09-13 sick_soul StatusNeed Info Ready For Test
2006-08-25 sick_soul StatusNone Need Info
    Additional Notes > If I don't define a prefix for sourceinstall and ran it as > root, it will assume something like prefix=/ The default prefix value for the root user is /usr/local . Could you explain what you mean here? > Of course I can change the prefix in Preferences but it > would be easier if I keep prefix value empty and use the > default prefix from the source I'm installing. I will answer this at a later date, or I'll be late to work. Thanks for your report - Claudio

Back to the top

Powered by Savane 3.13-aa77.
Corresponding source code