[Bug 211641] graphics/py-mayavi mayavi2 runtime error

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Aug 17 12:27:06 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211641

vladimir.chukharev at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #173546|0                           |1
        is obsolete|                            |
 Attachment #173780|                            |maintainer-approval+
              Flags|                            |

--- Comment #17 from vladimir.chukharev at gmail.com ---
Created attachment 173780
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=173780&action=edit
Patch adding pkg-message

I still cannot solve a seemingly trivial and common problem.

The port installs a Python script as /usr/local/bin/mayavi2. I want to rename
it as /usr/local/bin/mayavi2.py and install a shell script which is a wrapper
for the renamed Python script. I cannot find a way to do it so that both
scripts are added correctly to the auto generated plist, registered in the
package and in the pkgng database.

The original script is created directly to the stage dir, it does not exist in
the build dir. And this process is buried deeply in the setup.py with many
libraries, so few hours were not enough for me to find out how this can be
changed to do the new task.

My current proposal is to just add a pkg-message informing about the need for
the environment variable LD_LIBRARY_PATH=/usr/local/lib/gcc48. The new patch
adds pkg-message.

Please comment. Particularly I'm interested to learn how a wrapping script can
be made.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-python mailing list