Bug 705144 - pymol packaging mishandles pymol_path
Summary: pymol packaging mishandles pymol_path
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pymol
Version: rawhide
Hardware: All
OS: All
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Fenn
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-16 18:58 UTC by Need Real Name
Modified: 2011-06-21 17:34 UTC (History)
1 user (show)

Fixed In Version: pymol-1.4.1-4.20110502svn3947.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-21 17:32:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
proper use of pymol_path (7.32 KB, text/plain)
2011-05-17 15:08 UTC, Need Real Name
no flags Details

Description Need Real Name 2011-05-16 18:58:12 UTC
Description of problem: The current pymol 1.4.1-1.20110502svn3947 %{?dist}
packaging mishandles the usage of pymol_path. The description of this feature in
__init.py of pymol is confusing. The comments there say....

# NOTE: with both methods, you should be able to get away with not
# specifying PYMOL_PATH if there is a subdirectory pymol_path located
# in the "pymol" modules directory which points to the main
# pymol directory

This is nonsensical and really means to say that pymol_path should be 
a symlink residing in the pymol modules directory that points at the directory
containing it. Thus the pymol package should be doing...

ln -s %{python_sitearch}/pymol ${RPM_BUILD_ROOT}%{python_sitearch}/pymol/pymol_path

Nothing needs to be 'copied' into pymol_path since it is just a symlink.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Need Real Name 2011-05-16 19:02:36 UTC
You won't notice the current breakage in pymol until you try to install something like relax nmr (http://www.nmr-relax.com/) which wants to load the pymol python module via the import mechanism. I discovered this problem in my MacPorts pymol/relax packaging where using Fedora'a approach of a pymol_path subdirectory instead of a symlink prevented relax from loading the pymol python module.

Comment 2 Need Real Name 2011-05-16 20:48:00 UTC
I also notice that when pymol starts up it complains about not finding shader files. This is due to the incorrect usage of pymol_path which should be a symlink residing in {python_sitearch}/pymol that points at %{python_sitearch}/pymol. Currently it is a subdirectory in {python_sitearch}/pymol only contains a small fraction of the pymol files.

Comment 3 Need Real Name 2011-05-17 15:08:29 UTC
Created attachment 499372 [details]
proper use  of pymol_path

The attached modified pymol.spec demonstrates the proper usage of pymol_path. Note that this packaging has issues upgrading from the current packaging due to the change of pymol_path from a directory to a symlink. Currently the existing pymol package must be deinstalled first. This needs to be addressed. However the attached packaging when installed allows pymol to be executed on the command line without any warning/error messages about the shader files not being found by pymol. Also note that the current mesa-dri support on radeon appears to be insufficient for proper shader support and this kernel panics the machine. I will open another PR about that. The horrible state of linux OpenGL driver support may be incapable of handling the shader support (which works fine on MacPorts/fink under MacOS X's Xquartz though).

Comment 4 Tim Fenn 2011-05-17 18:28:23 UTC
Great, thanks for the updated specfile, Paul.  I'll get a package into testing within the next day or so.

I'll also bring the pymol_path issue up with upstream - this should be fixed properly.

And I've had similar reports re. radeon drivers:

https://bugzilla.redhat.com/show_bug.cgi?id=474652

Comment 5 Tim Fenn 2011-05-17 20:04:39 UTC
test build here:

http://koji.fedoraproject.org/koji/taskinfo?taskID=3077549

I changed:

cp -pr data modules examples test scripts ${RPM_BUILD_ROOT}%{python_sitearch}/pymol

to:

cp -pr data examples test scripts ${RPM_BUILD_ROOT}%{python_sitearch}/pymol

since the necessary modules are already installed (via setup.py), so they shouldn't need to be copied a second time, AFAICT.

Comment 6 Need Real Name 2011-05-18 02:57:11 UTC
FYI, I tested my modified packaging on Fedora 14 against the non-free nvidia drivers and the shader support works fine there.

Comment 7 Fedora Update System 2011-05-18 19:14:20 UTC
pymol-1.4.1-2.20110502svn3947.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/pymol-1.4.1-2.20110502svn3947.fc14

Comment 8 Fedora Update System 2011-05-18 19:14:27 UTC
pymol-1.4.1-2.20110502svn3947.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/pymol-1.4.1-2.20110502svn3947.fc15

Comment 9 Fedora Update System 2011-05-18 21:32:56 UTC
pymol-1.4.1-3.20110502svn3947.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/pymol-1.4.1-3.20110502svn3947.fc14

Comment 10 Fedora Update System 2011-05-18 21:33:04 UTC
pymol-1.4.1-3.20110502svn3947.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/pymol-1.4.1-3.20110502svn3947.fc15

Comment 11 Tim Fenn 2011-05-18 21:46:48 UTC
(In reply to comment #3)
> 
> Note that this packaging has issues upgrading from the current packaging due to
> the change of pymol_path from a directory to a symlink. Currently the existing
> pymol package must be deinstalled first. This needs to be addressed.

I "fixed" this in 1.4.1-3 by using a %pre scriptlet:

%pre
if [ $1 -gt 1 ]; then
   rm -rf %{python_sitearch}/pymol/pymol_path
fi

Although there may be a more elegant solution?

Comment 12 Fedora Update System 2011-05-19 21:57:25 UTC
Package pymol-1.4.1-3.20110502svn3947.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pymol-1.4.1-3.20110502svn3947.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/pymol-1.4.1-3.20110502svn3947.fc14
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2011-06-07 19:18:12 UTC
pymol-1.4.1-4.20110502svn3947.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/pymol-1.4.1-4.20110502svn3947.fc14

Comment 14 Fedora Update System 2011-06-07 19:18:21 UTC
pymol-1.4.1-4.20110502svn3947.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/pymol-1.4.1-4.20110502svn3947.fc15

Comment 15 Fedora Update System 2011-06-21 17:32:29 UTC
pymol-1.4.1-4.20110502svn3947.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2011-06-21 17:34:12 UTC
pymol-1.4.1-4.20110502svn3947.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.