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

Bug#833193: RFS: chapel/1.15-1 [ITP]



Hello Lumin,

On 5/10/17, 7:32 PM, "Lumin" <cdluminate@gmail.com> wrote:

    Hi Ben,
    
    > We do install the Chapel modules and runtime to versioned directories
    > like this:
    >
    >     /usr/share/chapel/1.15/modules etc
    >
    > The documentation is installed to
    >
    >      /usr/share/doc/chapel/1.15/rst etc
    >
    > Is it obviously better in your opinion to use
    >
    >      /usr/share/chapel-1.15/modules
    >
    > e.g.? If so, can you say why?
    
    This way users will not be able to install 2 different versions of chapel
    at the same time. For example, chapel/1.15 package will conflict
    with chapel/1.16 on some standard files e.g.:
    
      /usr/share/doc/chapel/changelog.Debian.gz  (in chapel/1.15)
      /usr/share/doc/chapel/changelog.Debian.gz  (in chapel/1.16)
    
    If you really plan to provide room for users to install multiple versions
    at the same time, I'd suggest you change the binary package name
    from chapel -> chapel-1.15 , this does not affect your
    
      /usr/share/chapel
    
    directory. That is to say, you name the binary package as chapel-1.15
    and the docs will be installed to /usr/share/doc/chapel-1.15
    (/usr/share/doc/<binary-package-name>)
    and (/usr/share/chapel) is controlled by yourself.
    
OK, we can include the version number in the package names to address this.
    
    > The upstream project supports both Python 2.7 and Python 3.
    > Would it be sufficient to depend on Python >= 2.7?
    > I don't think it would make sense to update the scripts to
    > have a Python 3 shebang (like #!/usr/bin/env python3).
    > Do we assume that /usr/bin/env python returns a python 3 in
    > some cases?
    
    Debian's Python Policy:
    https://www.debian.org/doc/packaging-manuals/python-policy/ch-python3.html
    
    A python2.7 package "python-*" may install files under this directory
    /usr/lib/python2.7/xxx
    
    while a Python3 package "python3-*" may install files under a
    different directory
    /usr/lib/python3/xxx
    
    This does not require changing the first line of python code. My point is
    that providing another package that supports python3 and install stuff to
    one of python3's search path.
    
We understand that Debian plans to upgrade to Python 3. We're not intending to install user-visible Python scripts or modules. The Python code that we use is used internally by our compiler and build scripts. In this case, is it necessary for us to patch all the Python code shebangs to point to /usr/bin/python3? Note that upstream would not accept this change.
    
    Thank you for working on it!
    
Thanks for your feedback!

Best,

Ben


Reply to: