<?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>230716</bug_id>
          
          <creation_ts>2008-07-04 10:50 0000</creation_ts>
          <short_desc>Keyword sci-physics/geant-4.9.1_p02</short_desc>
          <delta_ts>2008-09-23 11:39:19 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>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>KEYWORDREQ</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>231962</dependson>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>bicatali@gentoo.org</reporter>
          <assigned_to>sci-physics@gentoo.org</assigned_to>
          <cc>benni@netronaut.de</cc>
    
    <cc>fmccor@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2008-07-04 10:50:51 0000</bug_when>
            <thetext>Please keyword geant-4. I&apos;m planning to add geant4 support to sci-physics/root.
Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2008-07-10 12:49:33 0000</bug_when>
            <thetext>sparc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2008-07-10 12:51:34 0000</bug_when>
            <thetext>I didn&apos;t mean stable and this needs a lot of keywords as well :P Will check later</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2008-07-15 04:27:38 0000</bug_when>
            <thetext>Marked ~hppa. Shame about the missing support for a test suite...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fmccor@gentoo.org</who>
            <bug_when>2008-07-15 17:28:58 0000</bug_when>
            <thetext>Added ~sparc for testing, everything seems OK.  That said, please note:
1.  This also requires keywords for:
  sci-physics/clhep-2.0.3.3
  sci-physics/paw-2.14.04-r2
  sci-physics/geant-3.21.14-r2
  media-gfx/dawn-3.88a

2.  On my system, it also requires a package.use.mask for openinventor because openinventor will not build (apparently include file problems).

3.  It&apos;s really to bad that with USE=examples this package does not actually build the examples; only installs source.  It seems to be impossible to build them from the GNUmakefile provided (without further instructions which are not provided so far as I can find).
  
I&apos;m leaving this open for comment, because I&apos;m curious why USE=examples does not build the examples.  (Or at least explain how to get it done.  It looks like that&apos;s a matter of setting up a lot of environment variables, such as in
make G4INSTALL=/usr/share/geant4 G4SYSTEM=Linux-g++
but there are clearly a lot more of them, and the examples do not build easily in the /var/tmp/portage/sci-portage build directory, either.)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2008-07-16 09:26:37 0000</bug_when>
            <thetext>Hi Ferris,

Thanks for clear review of the testing.
Could you file a bug for openinventor with your failure?

USE=examples should not build anything since it is not required for a working package.

I&apos;m cc-ing he original ebuild author (see bug #212221), who I&apos;m also including a test he sent me on a priv. email:

# mkdir ~/geant4
# cp -r /usr/share/doc/geant-4*/examples ~/geant4
# cd ~geant4/examples/advanced/cosmicray_charging
# make

and now for a fancy and useless picture (and seeing $G4WORKDIR break)

# G4LEDATA=$G4DATA/G4EMLOW5.1/ $G4WORKDIR/bin/$G4SYSTEM/CRCharging init.mac

or for some calculations (with a suprisingly condensed output to run00_*)

# G4LEVELGAMMADATA=$G4DATA/PhotonEvaporation2.0 G4LEDATA=$G4DATA/G4EMLOW5.1/ ~/geant4/bin/Linux-g++/CRCharging primaries/protons_solmin.mac

The .mac files are Geant4 macros for one of their interpreters;
init.mac has other output drivers in comments you could activate if
you really wanted to go into the matter.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fmccor@gentoo.org</who>
            <bug_when>2008-07-16 13:39:56 0000</bug_when>
            <thetext>Bug filed for openinventor and cross-referenced here.  I don&apos;t know if the little band-aid I used to get openinventor to build makes it good for geant; I&apos;ll verify as time permits.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>benni@netronaut.de</who>
            <bug_when>2008-07-16 19:47:58 0000</bug_when>
            <thetext>Hi,

(In reply to comment #5)

more up to date (now that we fixed the environment variables) instruction how to build+run e.g. this example would be

&gt; # mkdir ~/geant4
&gt; # cp -r /usr/share/doc/geant-4*/examples ~/geant4
&gt; # cd ~geant4/examples/advanced/cosmicray_charging
&gt; # make
&gt; 
&gt; and now for a fancy and useless picture (and seeing $G4WORKDIR break)

... shouldn&apos;t break anymore (and nice to see if X display is working)

&gt; # G4LEDATA=$G4DATA/G4EMLOW5.1/ $G4WORKDIR/bin/$G4SYSTEM/CRCharging init.mac

~geant4/bin/$G4SYSTEM/CRCharging init.mac

&gt; 
&gt; or for some calculations (with a suprisingly condensed output to run00_*)
&gt; 
&gt; # G4LEVELGAMMADATA=$G4DATA/PhotonEvaporation2.0 G4LEDATA=$G4DATA/G4EMLOW5.1/
&gt; ~/geant4/bin/Linux-g++/CRCharging primaries/protons_solmin.mac

~/geant4/bin/Linux-g++/CRCharging primaries/protons_solmin.mac

where ~/geant4 is $G4WORKDIR.

b.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fmccor@gentoo.org</who>
            <bug_when>2008-08-10 14:39:39 0000</bug_when>
            <thetext>I&apos;ve removed the package.use.mask on openinventor for geant because openinventor now builds correctly on sparc.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2008-08-22 15:57:33 0000</bug_when>
            <thetext>Ferris,

Is geant-4.9 ok? Can we close this bug?
Thanks
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2008-09-23 11:39:19 0000</bug_when>
            <thetext>I guess we can close this one since geant is ~sparc.
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>