Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414913 - sci-libs/ccp4-libs-6.1.3-r11 installs /etc/profile.d/40ccp4.setup.sh and 40ccp4.setup.csh which sets the CLIB and CLIBS variable to /usr/lib64 which blocks the installation of unison
Summary: sci-libs/ccp4-libs-6.1.3-r11 installs /etc/profile.d/40ccp4.setup.sh and 40cc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-06 18:26 UTC by Juergen Rose
Modified: 2013-05-24 16:45 UTC (History)
1 user (show)

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 Juergen Rose 2012-05-06 18:26:01 UTC
sci-libs/ccp4-libs installed by sci-chemistry/molrep installs /etc/profile.d/40ccp4.setup.sh and /etc/profile.d/40ccp4.setup.csh:

root@grizzly:/root(159)# qfile -v 40ccp4.setup.sh
sci-libs/ccp4-libs-6.1.3-r11 (/etc/profile.d/40ccp4.setup.sh)
root@grizzly:/root(160)# qfile -v 40ccp4.setup.csh
sci-libs/ccp4-libs-6.1.3-r11 (/etc/profile.d/40ccp4.setup.csh)


Both files set the CLIB and CLIBS variable to /usr/lib64:

root@grizzly:/root(162)# grep CLIB /etc/profile.d/40ccp4.setup.csh
# etc.  Non-shareable files reside in $CBIN and $CLIB (see below).
#   CLIB: location of (binary) library files such as libccp4.a and libccp4.so;
    setenv CLIB /usr/lib64
# so on multiple installs it need to be unique and not in $CLIBD
setenv MMCIFDIC $CLIB/cif_mmdic.lib
# They are distributed with CCP4 in $CLIBD. This env must have the trailing \ or /
### CLIBD_MON Point to the location of the dictionary files for REFMAC5
# They are distributed with CCP4 in $CLIBD/monomers. This env must have 
setenv CLIBD_MON /usr/share/ccp4/data/monomers/
setenv PUBLIC_FONT84   $CLIB/font84.dat  # plot84 fonts [used by plot84lib]
  setenv CLIBD /usr/share/ccp4/data
  setenv CLIBS /usr/lib64


These settings prevent the installation of unison, compare Bug 391985. I would say, that such general variables used in Makefiles should not set in scripts in /etc/profile.d.

Reproducible: Always
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2012-05-07 06:38:24 UTC
We will never be able to fix this. Many programs also thirdparty depend on the CLIB variable from ccp4. So we need to set it always.
Comment 2 Juergen Rose 2013-05-23 15:54:16 UTC
I hit this issue again (Bug 464098). Is there not any chance to rename the variables CLIB and CLIBS of ccp4-libs to something more specific as like CCP4_CLIB and  CCP4_CLIBS, that they do not conflict with unison.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2013-05-24 16:45:33 UTC
I dropped them after diligent inverstigation of the sources. It _shouldn't_ harm, but you'll never know. Please report any problems.

+*ccp4-libs-6.1.3-r13 (24 May 2013)
+
+  24 May 2013; Justin Lecher <jlec@gentoo.org> +ccp4-libs-6.1.3-r13.ebuild:
+  Drop CLIB and CLIBS from env, #414913
+