pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46685: ruby packages failed to install if multiple ruby-version are needed (pkgsrc 2012Q1)



>Number:         46685
>Category:       pkg
>Synopsis:       ruby packages failed to install if multiple ruby-version are 
>needed (pkgsrc 2012Q1)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 11 09:55:00 +0000 2012
>Originator:     Wolfgang Stukenbrock
>Release:        NetBSD 5.1.2
>Organization:
Dr. Nagler & Company GmbH
>Environment:
        
        
System: NetBSD test-s0 4.0 NetBSD 4.0 (NSW-WS) #0: Tue Aug 17 17:28:09 CEST 
2010 wgstuken@test-s0:/usr/src/sys/arch/amd64/compile/NSW-WS amd64
Architecture: x86_64
Machine: amd64
>Description:
        pkgsrc 2012Q1 supports the installation of multiple ruby version
        on the same machine - e.g. 1.9.3 (the default version) and 1.8.7
        in parrallel for applications that need ruby 1.8.x.
        Accedently some ruby-packages cannot be installed in that way.
        - devel/ruby-rake will fail to install a man page
          (And will fail to remve itselft (pkg_delete) for ruby-1.9.3.)
        - www/ruby-rack will fail to install (overwrite) an installed
          script, that is installed without ruby-version number.
          It is even not possible to install two different ruby-rack
          versions for different ruby version - same script file problem
        There may be more where I'm still not stumbled over ...
        May other packages (e.g. the DB-interfaces for mysql, 
ruby-activesupport3, ...)
        can be installed for multiple ruby versions without problems.
>How-To-Repeat:
        Try to install one of the packages mentioned above for two ruby
        version - e.g.:
        cd /usr/pkgsrc/www/ruby-rack
        make install
        make clean
        make RUBY_VERSION_DEFAULT=18 install
        cd /usr/pkgsrc/www/ruby-rack12
        make RUBY_VERSION_DEFAULT=18 install
>Fix:
        All scripts should be installed with the version number in the
        file name - or better all files installed in /usr/pkg/bin,
        /usr/pkg/man, .... should be installed with the version number.
        There should be a symlink to the file with "default"-version number
        for binaries such as /usr/pkg/bin/rackup that should be created by
        the lang/ruby package or special handlink is required to extract
        this information from the /usr/pkg/bin/ruby link, but I'm not shure
        if that would be a good idea. (The RUBY_VERSION_DEFAULT cannot be used
        during installation, because this is not the real default during
        installation.
        An other possible way would be to create ruby-version specific packages
        for all supported ruby-versions that will handle all aspects of this
        PR and the one without the ruby-version number in it will only
        create the symlinks to the default version. (this is somethink like
        it is for the ruby-package itself, but it would generate lots of
        additional packages ...)

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index