<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>168043</bug_id>
          
          <creation_ts>2007-02-22 21:41 0000</creation_ts>
          <short_desc>sci-* ebuilds abusing ROOT</short_desc>
          <delta_ts>2007-03-15 22:24:31 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ciaran.mccreesh@googlemail.com</reporter>
          <assigned_to>qa@gentoo.org</assigned_to>
          <cc>graphics@gentoo.org</cc>
    
    <cc>kde@gentoo.org</cc>
    
    <cc>sci-biology@gentoo.org</cc>
    
    <cc>sci-chemistry@gentoo.org</cc>
    
    <cc>sci@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>ciaran.mccreesh@googlemail.com</who>
            <bug_when>2007-02-22 21:41:17 0000</bug_when>
            <thetext>Some notes on ROOT:

* The idea behind ROOT is that one can build a system with ROOT=/somewhere and then chroot into it or tar up /somewhere as a system image. It is not designed to allow the user to run /somewhere/usr/bin/foo.

* ROOT can&apos;t be used correctly in src_*, since ROOT might be different when merging a binary package. For example, a binary package might be built with ROOT=/ and then installed onto a system using ROOT=/somewhere.

* ROOT isn&apos;t used for library dependencies. When building, libraries, headers etc. on / have to be used. Cross-compiling etc is done by configuring the toolchain correctly, not by hacking ebuilds in a way that breaks binary packages.

Summary of all mentioned herds:
  graphics kde sci sci-biology sci-chemistry

QA checks for package directory /sci-biology/trnascan-se:
/sci-biology/trnascan-se/trnascan-se-1.23-r1.ebuild
  21: sed -e &quot;s%BINDIR  = \$(HOME)/bin%BINDIR = ${ROOT}/usr/bin%&quot; \
  22: -e &quot;s%LIBDIR  = \$(HOME)/lib/tRNAscan-SE%LIBDIR = ${ROOT}/usr/lib/${PN}%&quot; \
  23: -e &quot;s%MANDIR  = \$(HOME)/man%MANDIR = ${ROOT}/usr/share/man%&quot; \
herds: sci-biology

QA checks for package directory /sci-chemistry/caver:
/sci-chemistry/caver/caver-0.99.2.ebuild
  38: -e &quot;s:^\(CAVER_BINARY_LOCATION\).*:\1 = \&quot;${ROOT}usr/bin/caver\&quot;:g&quot; \
/sci-chemistry/caver/caver-0.99.4.ebuild
  48: sed -e &quot;s:^\(CAVER_BINARY_LOCATION\).*:\1 = \&quot;${ROOT}usr/bin/caver\&quot;:g&quot; \
herds: sci-chemistry

QA checks for package directory /sci-chemistry/ccp4:
/sci-chemistry/ccp4/ccp4-6.0.1-r1.ebuild
  250: -e &quot;s:${S}:${ROOT}usr:g&quot; \
  254: #		-e &quot;s:${S}:${ROOT}usr:g&quot; \
/sci-chemistry/ccp4/ccp4-6.0.2.ebuild
  220: -e &quot;s:${S}:${ROOT}usr:g&quot; \
  224: #		-e &quot;s:${S}:${ROOT}usr:g&quot; \
herds: sci-chemistry

QA checks for package directory /sci-chemistry/cns:
/sci-chemistry/cns/cns-1.1.ebuild
  82: -e &quot;s:${S}:${ROOT}usr:g&quot; \
  83: -e &quot;s:^\(setenv CNS_SOLVE.*\):\1\nsetenv CNS_ROOT ${ROOT}usr:g&quot; \
herds: sci-chemistry

QA checks for package directory /sci-chemistry/coot:
/sci-chemistry/coot/coot-0.1.2.ebuild
  60: -e &quot;s:/y/people/emsley/coot/Linux/bin/probe.2.11.050121.linux.RH9:${ROOT}usr/bin/probe:g&quot; \
  61: -e &quot;s:/y/people/emsley/coot/Linux/bin/reduce.2.21.030604:${ROOT}usr/bin/reduce:g&quot; \
herds: sci-chemistry

QA checks for package directory /sci-chemistry/eden:
/sci-chemistry/eden/eden-5.3.ebuild
  27: -e &quot;s:^\(FFTW.*=\).*:\1 ${ROOT}usr:g&quot; \
herds: sci-chemistry

QA checks for package directory /sci-chemistry/maxit:
/sci-chemistry/maxit/maxit-8.2.ebuild
  38: -e &quot;s:^\(GINCLUDE=\).*:\1-I${ROOT}usr/include/rcsb:g&quot; \
  39: -e &quot;s:^\(LIBDIR=\).*:\1${ROOT}usr/$(get_libdir):g&quot; \
herds: sci-chemistry

QA checks for package directory /sci-chemistry/pdb-extract:
/sci-chemistry/pdb-extract/pdb-extract-1.700.ebuild
  34: -e &quot;s:^\(GINCLUDE=\).*:\1-I${ROOT}usr/include/rcsb:g&quot; \
  35: -e &quot;s:^\(LIBDIR=\).*:\1${ROOT}usr/$(get_libdir):g&quot; \
herds: sci-chemistry

QA checks for package directory /sci-chemistry/shelx:
/sci-chemistry/shelx/shelx-20060317.ebuild
  37: -e &quot;s:CIFDIR=&apos;/usr/local/bin/&apos;:CIFDIR=&apos;${ROOT}usr/share/${PN}/&apos;:g&quot; \
herds: sci-chemistry

QA checks for package directory /sci-chemistry/sparky:
/sci-chemistry/sparky/sparky-3.111.ebuild
  67: -e &quot;s:^\(set PYTHON[[:space:]]*=\).*:\1 ${ROOT}usr/bin/python${PYVER}:g&quot; \
  68: -e &quot;s:^\(setenv TCLTK_LIB[[:space:]]*\).*:\1 ${ROOT}usr/$(get_libdir):g&quot; \
herds: sci-chemistry

QA checks for package directory /sci-chemistry/validation:
/sci-chemistry/validation/validation-6.2.ebuild
  37: -e &quot;s:^\(GINCLUDE=\).*:\1-I${ROOT}usr/include/rcsb:g&quot; \
  38: -e &quot;s:^\(LIBDIR=\).*:\1${ROOT}usr/$(get_libdir):g&quot; \
herds: sci-chemistry

QA checks for package directory /sci-libs/coot-data:
/sci-libs/coot-data/coot-data-1.ebuild
  28: COOT_REFMAC_LIB_DIR=&quot;${ROOT}usr/share/coot/lib&quot;
herds: sci-chemistry

QA checks for package directory /sci-libs/rcsb-data:
/sci-libs/rcsb-data/rcsb-data-1.700.ebuild
  25: -e &quot;s:^\(BINDIR=\).*:\1${ROOT}usr/bin:g&quot; \
herds: sci-chemistry

QA checks for package directory /sci-visualization/grace:
/sci-visualization/grace/grace-5.1.20.ebuild
  54: sed -i -e &quot;s%doc/%${ROOT}usr/share/doc/${PF}/html/%g&quot; src/*
  55: sed -i -e &quot;s%examples/%${ROOT}usr/share/doc/${PF}/examples/%g&quot; src/xmgrace.c
herds: graphics, sci

QA checks for package directory /sci-visualization/labplot:
/sci-visualization/labplot/labplot-1.5.1.3.ebuild
  52: export QTDIR=&quot;${ROOT}/usr/qt/3&quot;
  53: export QWT3D_PATH=&quot;${ROOT}/usr&quot;
  54: export KEXIDB_DIR=&quot;${ROOT}/usr&quot;
/sci-visualization/labplot/labplot-1.5.1.4.ebuild
  52: export QTDIR=&quot;${ROOT}/usr/qt/3&quot;
  53: export QWT3D_PATH=&quot;${ROOT}/usr&quot;
  54: export KEXIDB_DIR=&quot;${ROOT}/usr&quot;
herds: kde, sci</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kugelfang@gentoo.org</who>
            <bug_when>2007-03-15 22:24:31 0000</bug_when>
            <thetext>fixed all of them.

</thetext>
          </long_desc>
      
    </bug>

</bugzilla>