aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-physics/geant4/files')
-rw-r--r--sci-physics/geant4/files/geant-4.9.1_p01-configure.patch116
-rw-r--r--sci-physics/geant4/files/geant-4.9.1_p01-no-source.patch38
2 files changed, 154 insertions, 0 deletions
diff --git a/sci-physics/geant4/files/geant-4.9.1_p01-configure.patch b/sci-physics/geant4/files/geant-4.9.1_p01-configure.patch
new file mode 100644
index 000000000..55c925d49
--- /dev/null
+++ b/sci-physics/geant4/files/geant-4.9.1_p01-configure.patch
@@ -0,0 +1,116 @@
+--- Configure.orig 2007-11-28 13:49:23.000000000 +0000
++++ Configure 2008-04-07 18:45:41.317949330 +0000
+@@ -579,16 +579,17 @@
+ ;;
+ esac
+
+-: Sanity checks
+-case "$fastread$alldone" in
+-yescont|yesexit) ;;
+-*)
+- if test ! -t 0; then
+- echo "Say 'sh Configure', not 'sh <Configure'"
+- exit 1
+- fi
+- ;;
+-esac
++# breaks things in a sandbox.
++# : Sanity checks
++# case "$fastread$alldone" in
++# yescont|yesexit) ;;
++# *)
++# if test ! -t 0; then
++# echo "Say 'sh Configure', not 'sh <Configure'"
++# exit 1
++# fi
++# ;;
++# esac
+
+ exec 4>&1
+ case "$silent" in
+@@ -982,7 +983,7 @@
+ : general instructions
+ needman=true
+ firsttime=true
+-user=`(logname) 2>/dev/null`
++user=`(logname || true) 2>/dev/null`
+ case "$user" in
+ '') user=`whoami 2>&1`;;
+ esac
+@@ -1315,7 +1316,6 @@
+ '')
+ myuname=`( ($uname -a) 2>/dev/null || hostname) 2>&1`
+
+-mygcc=`( ($g++ -v) 2>/dev/null) 2>&1`
+ myuname=`echo $myuname | $sed -e 's/^[^=]*=//' -e 's/\///g' | \
+ ./tr '[A-Z]' '[a-z]' | tr '\012' ' '`
+ newmyuname="$myuname"
+@@ -1911,7 +1911,7 @@
+
+ . $src/.config/bin/$g4system/move.sh
+
+- exit 1
++ exit 0
+
+ fi #end of cppflags
+
+@@ -2119,7 +2119,7 @@
+ cp -i $src/.config/bin/$g4system/env.csh .
+ cp -i $src/.config/bin/$g4system/env.sh .
+
+- exit 1
++ exit 0
+ fi #end of -lib or user
+ else #there is no env.sh
+
+@@ -2217,7 +2217,7 @@
+
+ : who configured the system
+ cf_time=`$date 2>&1`
+-cf_by=`(logname) 2>/dev/null`
++cf_by=`(logname || true) 2>/dev/null`
+ case "$cf_by" in
+ "")
+ cf_by=`(whoami) 2>/dev/null`
+@@ -4200,9 +4200,9 @@
+ if test "X$g4osname" = "XLinux" ; then
+ g4vis_xmflags=" -I$g4vis_xmhome/include "
+ if test "X$g4vis_xmhome" = "X/usr/X11R6" ; then
+- g4vis_xmlibs=" -lXm -lXpm "
++ g4vis_xmlibs=" -lXm "
+ else
+- g4vis_xmlibs=" -L$g4vis_xmhome/lib -lXm -lXpm "
++ g4vis_xmlibs=" -L$g4vis_xmhome/lib -lXm "
+ fi
+ fi
+
+@@ -4908,9 +4908,9 @@
+ if test "X$g4osname" = "XLinux" ; then
+ g4vis_xmflags=" -I$g4vis_xmhome/include "
+ if test "X$g4vis_xmhome" = "X/usr/X11R6" ; then
+- g4vis_xmlibs=" -lXm -lXpm "
++ g4vis_xmlibs=" -lXm "
+ else
+- g4vis_xmlibs=" -L$g4vis_xmhome/lib -lXm -lXpm "
++ g4vis_xmlibs=" -L$g4vis_xmhome/lib -lXm "
+ fi
+ fi
+
+@@ -6123,7 +6123,7 @@
+
+ echo ""
+
+- g4_gmake_version=`(gmake -v) 2>/dev/null`
++ g4_gmake_version=`(gmake -v || true) 2>/dev/null`
+ case $g4_gmake_version in
+ GNU*)
+ g4_gmake=y
+@@ -6133,7 +6133,7 @@
+ ;;
+ esac
+
+- g4_make_version=`(make -v) 2>/dev/null`
++ g4_make_version=`(make -v || true) 2>/dev/null`
+ case $g4_make_version in
+ GNU*)
+ g4_make=y
diff --git a/sci-physics/geant4/files/geant-4.9.1_p01-no-source.patch b/sci-physics/geant4/files/geant-4.9.1_p01-no-source.patch
new file mode 100644
index 000000000..8ca619e88
--- /dev/null
+++ b/sci-physics/geant4/files/geant-4.9.1_p01-no-source.patch
@@ -0,0 +1,38 @@
+--- config/scripts/move.sh.SH.orig 2008-04-08 16:08:16.817366051 +0000
++++ config/scripts/move.sh.SH 2008-04-08 19:05:44.332687325 +0000
+@@ -445,33 +445,8 @@
+ cd $g4install
+ #echo `pwd`
+
+-
+-# Remove 'verbosity' in 'tar' command
+-# If not INCLUDE then install full tree in 'src' directory!
+-#
+-if [ X$g4includes_flag = Xn ] ; then
+-if [ X$g4install != X$g4final_install ] ; then
+-echo ""
+-echo "Installing sources and headers..."
+-echo ""
+-mkdir -p $g4final_install/src/geant4/
+-tar cf - Configure config/ source/ environments/ examples/ include/ |(cd $g4final_install/src/geant4/; tar xf -)
+-fi
+-fi
+-
+-########################################
+-# There is no env!
+-if [ X$g4includes_flag = Xy ] ; then
+-
+-if [ X$g4install != X$g4final_install ] ; then
+-echo ""
+-echo "Installing sources..."
+-echo ""
+-
+-mkdir -p $g4final_install/src/geant4/
+-tar cf - Configure config/ source/ environments/ examples/ |(cd $g4final_install/src/geant4/; tar xf -)
+-fi
+-
++# Remove all the stuff to not install sources
++#
+ echo ""
+ echo "Installing headers..."
+ echo ""