Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 315387 - sci-libs/mmdb: RWBROOK interface misaligns PDB atom name field
Summary: sci-libs/mmdb: RWBROOK interface misaligns PDB atom name field
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-15 05:34 UTC by Johan Hattne
Modified: 2010-06-30 19:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
CCP4 patches to sci-libs/mmdb. (mmdb-1.21-ccp4-6.1.3.patch,5.84 KB, patch)
2010-04-15 05:35 UTC, Johan Hattne
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Hattne 2010-04-15 05:34:48 UTC
The old RWBROOK (Fortran) interface to PDB I/O seems to strip leading white space from the atom name field while reading ATOM records, but does not put it back when writing ATOM records.  As a result, applications that read and write PDB files using this interface--mainly Fortran programs in sci-chemistry/ccp4-apps I guess--produce broken results.

Reproducible: Always

Steps to Reproduce:
1. echo "chain A X\nend\n" | pdbset XYZIN has-chain-A.pdb XYZOUT has-chain-X.pdb
2. diff has-chain-A.pdb has-chain-X.pdb

Actual Results:  
The atom name field of the output file is shifted one column to the left.

Expected Results:  
All chains except chain A unchanged.

The proposed patch was generated by a diff of the CCP4 mmdb source and the sources from the ebuild, and also addresses other issues not covered in this bug.  While the patch does change the behaviour of the library without changing its interface, all ebuilds that depend on sci-libs/mmdb seem to be related to CCP4 in one way or another so its application should be safe.

I'm not sure though how to deal with upstream, in this particular case?  While developed by Eugene Krissinel, he says the official version is distributed by CCP4, but the autotooled distribution in the ebuild comes from Paul Emsley.  Furthermore, the CCP4 mmdb sources include what seems to be half a SWIG-generated Python interface to mmdb (only the C++, not the Python part).  Since I'm pretty sure this is useless on it's own, maybe the issue should be raised with CCP4 upstream as well?
Comment 1 Johan Hattne 2010-04-15 05:35:55 UTC
Created attachment 227843 [details, diff]
CCP4 patches to sci-libs/mmdb.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2010-06-30 19:58:32 UTC
Thanks for the patch, included.