Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376061 - sci-chemistry/ccp4i-6.1.3-r3 missing runtime settings
Summary: sci-chemistry/ccp4i-6.1.3-r3 missing runtime settings
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 375907
  Show dependency tree
 
Reported: 2011-07-23 08:21 UTC by Ian Delaney (RETIRED)
Modified: 2011-07-23 13:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Delaney (RETIRED) gentoo-dev 2011-07-23 08:21:34 UTC
testing the package for stabalisation.  It emerges fine.
On invoking the package, runtime settings are lacking


Reproducible: Always

Steps to Reproduce:
1.  emerge package
2.
3.
Actual Results:  
testuser@archtester ~ $ which ccp4i
which: no ccp4i in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.5:/usr/games/bin)

testuser@archtester ~ $ qlist ccp4i | grep /bin
 reveals 

/usr/lib64/ccp4/ccp4i/bin/ccp4i

testuser@archtester ~ $ /usr/lib64/ccp4/ccp4i/bin/ccp4i
/usr/lib64/ccp4/ccp4i/bin/ccp4i: line 4: /bltwish: No such file or directory
/usr/lib64/ccp4/ccp4i/bin/ccp4i: line 4: exec: /bltwish: cannot execute: No such file or directory

indicates it is seeking the file bltwish in the root directory.
Making a symlink to / allows it to be found.

testuser@archtester ~ $ sudo ln -s /usr/bin/bltwish /

testuser@archtester ~ $ ccp4i
bash: /usr/bin/ccp4i: No such file or directory

testuser@archtester ~ $ sudo ln -s /usr/lib64/ccp4/ccp4i/bin/ccp4i /usr/bin/

testuser@archtester ~ $ ccp4i
Error in startup script: no such variable
    (read trace on "env(CCP4I_TOP)")
    invoked from within
"file join $env(CCP4I_TOP) bin ccp4i.tcl"
    invoked from within
"source [file join $env(CCP4I_TOP) bin ccp4i.tcl]"
    (file "/usr/bin/ccp4i" line 5)


Needs a review of the install phase; locations, symlinks.
Needs env variables to be prepared.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2011-07-23 08:28:07 UTC
you need to source /etc/profile to make it work. please test whther this helps.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2011-07-23 08:40:40 UTC
roger that jlec.

just a couple or permission issue to tie up.
The app does come up.  On invoking as user;

You do not have write permissions to this directory.

file && dir = /usr/lib64/ccp4i/etc/unix/configure.def

testuser@archtester ~ $ sudo ccp4i
Password: 
No protocol specified
Application initialization failed: couldn't connect to display ":0"
Error in startup script: no such variable
    (read trace on "env(CCP4I_TOP)")
    invoked from within
"file join $env(CCP4I_TOP) bin ccp4i.tcl"
    invoked from within
"source [file join $env(CCP4I_TOP) bin ccp4i.tcl]"
    (file "/usr/bin/ccp4i" line 5)

So it appears it ought to be run as user, but config need be written to root owned dir.

I would guess the source /etc/profile also need be written into the ebuild.
Your department.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2011-07-23 10:12:54 UTC
okay I found a simple hack around. And added a postinst msg. Please sync later and test again.
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2011-07-23 12:31:47 UTC
roger jlec
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2011-07-23 12:43:50 UTC
Nad please reopen if it works.
Comment 6 Ian Delaney (RETIRED) gentoo-dev 2011-07-23 13:15:51 UTC
(In reply to comment #5)
> Nad please reopen if it works.

eeeh jlec, do you have your wires crossed?
You marked it resolved anticipating it will work.  To me anyway it follows that if it works, to leave it marked resolved, which is closed.

That aside, your little hack worked like a charm.

All is good now
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2011-07-23 13:22:27 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Nad please reopen if it works.
> 
> eeeh jlec, do you have your wires crossed?

I am mixing the bugz. sorry
Comment 8 Ian Delaney (RETIRED) gentoo-dev 2011-07-23 13:52:22 UTC
no prob.  all is good